View Full Cisco CCNA Automation 200-901 Exam Dumps and Practice Test Dumps.
Question 181
Which Ansible feature can be used to execute a task only when a previous task reports a change?
- Inventory
- Handler
- Variable
- Role
Correct Answer: 2
Explanation
Ansible handlers are tasks that are triggered when another task reports a change through a notification. They are commonly used for operations that should occur only after a configuration change, such as restarting a service after modifying its configuration. This helps avoid unnecessary service restarts and makes automation more efficient. Variables store reusable values, inventories define managed hosts, and roles provide a structured way to organize automation content. Handlers are particularly useful when an operation should happen only when a related task actually changes the system. Therefore, Handler is the correct answer.
Question 182
Which Ansible feature is primarily used to organize reusable automation content into a standardized directory structure?
- Roles
- Loops
- Facts
- Handlers
Correct Answer: 1
Explanation
Ansible roles provide a standardized structure for organizing reusable automation content. A role can contain tasks, variables, handlers, templates, files, and other related components. This organization makes large automation projects easier to maintain and reuse across multiple environments. Loops are used to repeat tasks, facts provide information gathered about managed systems, and handlers execute tasks in response to notifications. By separating automation logic into roles, teams can build modular projects instead of maintaining very large playbooks. Therefore, roles are the appropriate Ansible feature for organizing reusable automation content.
Question 183
Which Ansible feature allows the same task to be executed repeatedly for multiple items?
- Handlers
- Loops
- Roles
- Facts
Correct Answer: 2
Explanation
Ansible loops allow a task to be executed repeatedly for multiple items. For example, an automation playbook can use a loop to configure several interfaces, create multiple users, or install multiple packages without writing separate tasks for each item. This improves readability and reduces duplicate automation code. Handlers are triggered by changes, roles organize reusable content, and facts provide information about managed systems. Loops can also work with lists of dictionaries when each iteration requires multiple related values. Therefore, loops are the correct Ansible feature for repeated task execution.
Question 184
What is the primary purpose of Jinja2 templates in network automation?
- To dynamically generate configuration or text files
- To replace SSH completely
- To monitor CPU temperature
- To create physical network interfaces
Correct Answer: 1
Explanation
Jinja2 templates are commonly used to dynamically generate configuration files or other text-based output from structured variables. In network automation, a template can contain placeholders for values such as hostname, interface addresses, VLANs, routing parameters, or other device-specific information. The automation system supplies the appropriate variables and renders the final configuration. This approach separates configuration logic from device-specific data and makes automation more reusable. Jinja2 does not replace SSH, monitor hardware temperature, or create physical interfaces. Therefore, dynamically generating configuration or text is its primary purpose.
Question 185
Which Jinja2 construct is commonly used to iterate over a list of values?
- {% for %}
- {% import %}
- {% error %}
- {% connect %}
Correct Answer: 1
Explanation
The Jinja2 {% for %} construct is used to iterate over a collection of values. In network automation, this is useful when generating repeated configuration sections for multiple interfaces, VLANs, users, routes, or other objects. A template can loop through a list of structured data and generate the appropriate configuration for each item. Jinja2 also provides conditional constructs such as {% if %} for decision-making during template rendering. The other options are not standard Jinja2 constructs for iteration. Therefore, {% for %} is the correct answer.
Question 186
Which Jinja2 construct is used to conditionally include content in a rendered template?
- {% loop %}
- {% if %}
- {% include-only %}
- {% condition %}
Correct Answer: 2
Explanation
The Jinja2 {% if %} construct allows a template to include content conditionally. This is useful when different devices require different configuration sections based on variables or characteristics. For example, a template can generate a particular routing configuration only when a variable indicates that the device should use that feature. Jinja2 also supports elif and else for more complex conditions. {% loop %} is not the standard syntax for this purpose, while the other listed constructs are not standard Jinja2 conditional tags. Therefore, {% if %} is correct.
Question 187
Which data format uses indentation to represent hierarchical structure and is commonly used by Ansible?
- YAML
- JPEG
- MP3
- Binary
Correct Answer: 1
Explanation
YAML is a human-readable data serialization format that uses indentation to represent hierarchical relationships. It is widely used for Ansible playbooks, variables, and configuration files because its syntax is relatively easy for humans to read and edit. YAML does not generally use brackets and braces as heavily as JSON, although both formats can represent structured data. JPEG and MP3 are media formats, while binary is a general representation of machine-readable data rather than a specific configuration language. Therefore, YAML is the correct answer for the described format.
Question 188
Which data format uses angle-bracketed tags to represent structured information?
- JSON
- YAML
- XML
- CSV
Correct Answer: 3
Explanation
XML represents structured information using tags enclosed in angle brackets. For example, an XML document can use elements such as <device> and <hostname> to organize data hierarchically. XML is important in network automation because technologies such as NETCONF commonly use XML-encoded RPC messages and data. JSON uses objects and arrays, YAML commonly relies on indentation and key-value syntax, and CSV represents tabular data separated by delimiters. Therefore, XML is the format that uses angle-bracketed tags to represent structured information.
Question 189
Which format is commonly used by REST APIs to represent structured data in a compact, human-readable form?
- JSON
- PNG
- WAV
- EXE
Correct Answer: 1
Explanation
JSON, or JavaScript Object Notation, is widely used by REST APIs to exchange structured information. It represents data using objects, key-value pairs, arrays, strings, numbers, Boolean values, and null values. Network automation applications can parse JSON responses into Python dictionaries and lists and then process the information programmatically. PNG and WAV are media formats, while EXE is an executable file format used primarily by Windows systems. Because of its simplicity and broad software support, JSON is one of the most common data formats used with modern REST APIs.
Question 190
What does serialization generally mean in software applications?
- Converting an in-memory data structure into a transferable or storable representation
- Deleting all application data
- Encrypting every network packet
- Restarting a server automatically
Correct Answer: 1
Explanation
Serialization is the process of converting an in-memory data structure into a representation that can be stored or transmitted. For example, a Python dictionary can be serialized into JSON before being sent as the body of an HTTP API request. The receiving application can then deserialize the representation back into a usable data structure. Serialization is important in automation because scripts frequently exchange structured information between applications, controllers, and network devices. It is not the same as encryption, deletion, or restarting systems. Therefore, converting data into a transferable or storable representation is correct.
Question 191
Which NETCONF datastore contains the configuration currently being used by the device?
- Startup
- Running
- Candidate
- Backup
Correct Answer: 2
Explanation
The NETCONF running datastore represents the configuration currently active on a device. Automation applications can retrieve or modify configuration through NETCONF operations, depending on the device’s supported capabilities. The candidate datastore can be used to prepare configuration changes before they are committed, while startup commonly represents configuration intended to be used when the device boots. The exact datastore support depends on the implementation and device capabilities. Therefore, among the listed options, the running datastore represents the active configuration.
Question 192
Which NETCONF datastore is commonly used to stage configuration changes before committing them?
- Candidate
- Running
- Startup
- Archive
Correct Answer: 1
Explanation
The NETCONF candidate datastore is commonly used as a staging area for configuration changes. An automation application can make several changes in the candidate configuration and then commit them when the complete configuration is ready. This can provide a more controlled workflow than immediately changing the active configuration after every individual operation. The running datastore represents the active configuration, while startup commonly represents boot-time configuration. Support for the candidate datastore depends on device capabilities. Therefore, Candidate is the correct answer for staging configuration changes before a commit.
Question 193
Which NETCONF operation is used to make candidate configuration changes active?
- lock
- get
- commit
- close-session
Correct Answer: 3
Explanation
The NETCONF commit operation is used to apply changes from the candidate configuration to the running configuration on devices that support the candidate datastore and commit capability. This provides an explicit point at which prepared configuration changes become active. The get operation retrieves information, lock controls access to a datastore, and close-session terminates a NETCONF session. The exact workflow depends on the device and supported NETCONF capabilities. Therefore, commit is the operation associated with applying candidate configuration changes.
Question 194
Which YANG statement defines a single data node that contains one value?
- leaf
- container
- list
- grouping
Correct Answer: 1
Explanation
The YANG leaf statement defines a single data node that contains one value. A leaf can represent information such as an interface description, an IP address, an administrative state, or another typed value. A container groups related data nodes without itself representing a repeated collection, while a list represents a collection of similar entries and can use keys to identify individual entries. A grouping defines reusable schema content. Therefore, the leaf statement is used for a single-valued data node.
Question 195
Which YANG statement represents a collection of similar entries that can be uniquely identified by a key?
- leaf
- list
- typedef
- notification
Correct Answer: 2
Explanation
The YANG list statement represents a collection of similar data entries. A list can contain multiple instances of the same schema structure and can use one or more key statements to uniquely identify entries. For example, an interface list may contain multiple interface objects, with an interface name serving as the key. A leaf represents a single value, typedef defines a reusable type, and notification describes event-related data. Therefore, a YANG list is the appropriate structure for a collection of keyed entries.
Question 196
What is the purpose of a YANG typedef statement?
- To define a reusable data type
- To establish an SSH connection
- To create a NETCONF session
- To start a REST API server
Correct Answer: 1
Explanation
A YANG typedef defines a reusable data type that can be referenced elsewhere within a YANG model. This allows model designers to define common constraints or characteristics once and reuse them across multiple schema nodes. For example, a typedef can define a specialized string or numeric type with particular restrictions. This improves consistency and reduces duplication in YANG models. Establishing SSH connections, creating NETCONF sessions, and starting REST API servers are operational functions rather than the purpose of a typedef. Therefore, defining a reusable data type is correct.
Question 197
Which technology is designed to stream telemetry data from network devices using a subscription-based model?
- Model-driven telemetry
- FTP
- Telnet
- DHCP
Correct Answer: 1
Explanation
Model-driven telemetry is designed to provide structured operational data from network devices and can use subscription-based mechanisms to stream updates to a collector. Instead of repeatedly polling devices for information, a telemetry system can provide data according to a configured subscription and reporting policy. This can improve the timeliness of monitoring information and reduce unnecessary polling. FTP is primarily a file-transfer protocol, Telnet provides remote terminal access, and DHCP provides network configuration services. Therefore, model-driven telemetry is the technology described.
Question 198
Which architecture separates the network control function from packet-forwarding functions?
- SDN
- Ethernet switching
- DNS
- DHCP
Correct Answer: 1
Explanation
Software-Defined Networking, or SDN, separates or abstracts network control functions from the underlying packet-forwarding infrastructure. This enables centralized or logically centralized software to manage network behavior through programmable interfaces. Controller-based architectures can use APIs and automation systems to configure policies across multiple devices. Ethernet switching is a forwarding technology, DNS resolves names, and DHCP provides network configuration information. SDN implementations vary in their exact architecture, but separation of control and forwarding is a fundamental concept. Therefore, SDN is the correct answer.
Question 199
Which concept describes defining the desired network state and allowing automation to determine the required changes?
- Declarative automation
- Manual configuration
- Screen scraping
- Packet capture
Correct Answer: 1
Explanation
Declarative automation describes the desired end state rather than requiring the operator to specify every individual command needed to reach that state. The automation system determines or applies the necessary changes to move the environment toward the declared state. This approach can improve consistency and make automation easier to maintain because the desired outcome is separated from implementation details. Manual configuration requires direct operator actions, screen scraping extracts information from command-line displays, and packet capture analyzes network traffic. Therefore, declarative automation is the correct concept.
Question 200
Which automation property means that running the same operation multiple times produces the same intended final state without causing unnecessary additional changes?
- Idempotency
- Randomization
- Fragmentation
- Broadcasting
Correct Answer: 1
Explanation
Idempotency means that repeatedly applying the same automation operation results in the same intended final state rather than continually introducing additional changes. This is an important characteristic of reliable network automation. For example, an idempotent configuration task should recognize that a desired setting is already present and avoid making unnecessary modifications. This helps reduce configuration churn and makes automation safer to rerun after interruptions or failures. Randomization, fragmentation, and broadcasting do not describe this behavior. Therefore, idempotency is the correct answer.