Courseiva
hardMultiple ChoiceObjective-mapped

200-901 Practice Question: A developer is troubleshooting a CI/CD pipeline…

A developer is troubleshooting a CI/CD pipeline that automatically deploys configuration changes to network devices. The pipeline includes a stage that runs Python unit tests. Which of the following would be a valid test to include in that stage to validate the configuration before deployment?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Test that the configuration file is valid JSON

Validating that the configuration is valid JSON is a simple unit test that can catch syntax errors early. The other options either require network access (which unit tests should avoid) or are not unit-level.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Test that the configuration can be applied to the device by sending it via NETCONF

    Why it's wrong here

    This requires network access (NETCONF) to test, which is not suitable for a unit test stage; unit tests should be isolated and fast.

  • Test that the configuration file is valid JSON

    Why this is correct

    Correct. Validating that the configuration file is valid JSON is a fast, isolated unit test that catches syntax errors before deployment.

  • Test that the configuration changes do not break connectivity by pinging the device after deployment

    Why it's wrong here

    This test requires network connectivity and is performed after deployment, so it is not a unit test and cannot be run before deployment.

  • Test that the configuration adheres to company naming conventions using a regular expression

    Why it's wrong here

    Testing naming conventions with a regex is a form of policy validation, but it is not a unit test of the configuration's format; it is more of a linter check and could be combined with unit tests, but the primary unit test is to validate the file format.

About these practice questions

This 200-901 question is part of Courseiva's 989-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 200-901 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-901 exam.