Guide | CCNA Automation 200-901 CCNAAUTO
v1.1 | Python, APIs, Git, Docker, YANG, NETCONF,
RESTCONF & Network Automation | 2026 Updated
WGU D416 DevNet Fundamentals — Complete Practice Exam
180 Questions with Detailed Explanations
Section 1: Software Development and Design
Question 1
Which of the following data formats is best described as a human-readable, self-
describing format that uses angle brackets to define elements?
A) JSON
B) YAML
C) XML
D) CSV
Answer: C
Explanation: XML (Extensible Markup Language) uses angle brackets (< >) to
define elements in a hierarchical structure. It is both human-readable and
machine-readable, making it suitable for data interchange. JSON uses curly braces
and key-value pairs, YAML uses indentation, and CSV uses commas to separate
values.
Question 2
Which data format is commonly used for configuration files in DevOps and is
known for its use of indentation to denote structure?
,A) JSON
B) XML
C) YAML
D) HTML
Answer: C
Explanation: YAML (YAML Ain't Markup Language) uses indentation to represent
hierarchical data structures, making it highly readable for humans. It is frequently
used in configuration files for applications like Docker Compose, Ansible, and
Kubernetes.
Question 3
What Python data structure is created when parsing a JSON object?
A) List
B) Dictionary
C) Tuple
D) Set
Answer: B
Explanation: When a JSON object is parsed using Python's json.loads() method, it
is converted into a Python dictionary. JSON objects consist of key-value pairs,
which map directly to Python dictionaries.
Question 4
What is the primary advantage of organizing code into functions?
A) It makes the code run faster
B) It promotes code reusability and modularity
C) It eliminates the need for comments
D) It reduces memory usage
Answer: B
,Explanation: Organizing code into functions promotes reusability, modularity, and
maintainability. Functions allow developers to encapsulate logic that can be called
multiple times, reducing redundancy and making the code easier to test and
debug.
Question 5
Which software development methodology emphasises iterative development,
collaboration, and responding to change?
A) Waterfall
B) Lean
C) Agile
D) Spiral
Answer: C
Explanation: Agile is a software development methodology that emphasises
iterative development, continuous feedback, collaboration, and the ability to
respond to change. It contrasts with Waterfall, which is a linear, sequential
approach.
Question 6
What is the purpose of Test-Driven Development (TDD)?
A) To write tests after the code is complete
B) To write tests before writing the code
C) To eliminate the need for testing
D) To write code and tests simultaneously
Answer: B
Explanation: Test-Driven Development (TDD) is a software development process
where tests are written before the code. The cycle is: write a failing test, write the
minimum code to pass the test, and then refactor the code.
, Question 7
What is the Model-View-Controller (MVC) design pattern primarily used for?
A) Managing database connections
B) Separating application logic into three interconnected components
C) Handling network requests
D) Compiling code
Answer: B
Explanation: The MVC design pattern separates an application into three
components: Model (data and business logic), View (user interface), and Controller
(handles input and updates the Model and View). This separation improves code
organisation and maintainability.
Question 8
Which version control operation is used to create a copy of a remote repository on
a local machine?
A) Push
B) Pull
C) Clone
D) Commit
Answer: C
Explanation: The git clone command creates a local copy of a remote repository.
This is typically the first step when working with a Git repository.
Question 9
What is the purpose of the git diff command?
A) To show changes between commits, branches, or the working directory
B) To delete a file from the repository