{"id":15051,"date":"2026-09-17T09:02:31","date_gmt":"2026-09-17T09:02:31","guid":{"rendered":"https:\/\/www.examlabs.com\/certification\/?p=15051"},"modified":"2026-09-17T09:02:31","modified_gmt":"2026-09-17T09:02:31","slug":"cisco-ccna-automation-200-901-practice-test-questions-and-exam-dumps-part5-q81-100","status":"publish","type":"post","link":"https:\/\/www.examlabs.com\/certification\/cisco-ccna-automation-200-901-practice-test-questions-and-exam-dumps-part5-q81-100\/","title":{"rendered":"Cisco CCNA Automation 200-901 Practice Test Questions and Exam Dumps Part5 Q81-100"},"content":{"rendered":"<h1><\/h1>\n<h2><b>View Full <\/b><a href=\"https:\/\/www.examlabs.com\/200-901-exam-dumps\"><b>Cisco CCNA Automation 200-901 Exam Dumps<\/b><\/a><b> and Practice Test Dumps.<\/b><\/h2>\n<p>&nbsp;<\/p>\n<h3><b>Question 81<\/b><\/h3>\n<p><b>Which protocol is commonly used to retrieve structured network configuration data from a device using YANG models?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">NETCONF<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">FTP<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Telnet<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">SMTP<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">NETCONF is a network-management protocol designed for programmatic access to configuration and operational data. It commonly works with YANG data models and uses XML-based RPC messages to perform operations such as retrieving configuration, editing configuration, validating changes, and committing updates. This model-driven approach allows automation applications to interact with network devices using structured information rather than relying exclusively on CLI output. FTP is used for file transfer, Telnet provides remote terminal access, and SMTP handles email transmission. Therefore, NETCONF is the appropriate protocol for structured network configuration using YANG models.<\/span><\/p>\n<h3><b>Question 82<\/b><\/h3>\n<p><b>Which protocol provides a RESTful interface for interacting with YANG-modeled network data?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">NETCONF<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">RESTCONF<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">TFTP<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">SNMP<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">RESTCONF provides an HTTP-based RESTful interface for accessing and manipulating YANG-modeled configuration and operational data. It combines REST principles with standardized network data models, allowing automation applications to use familiar HTTP methods such as GET, POST, PUT, PATCH, and DELETE when supported. NETCONF also works with YANG but uses XML-based RPC operations rather than a RESTful HTTP interface. TFTP provides simple file transfer, while SNMP is commonly used for network monitoring and management. Therefore, RESTCONF is the correct protocol for REST-style interaction with YANG-modeled network data.<\/span><\/p>\n<h3><b>Question 83<\/b><\/h3>\n<p><b>Which data modeling language is commonly used by NETCONF and RESTCONF to describe network configuration and operational data?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">YAML<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">JSON<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">YANG<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">CSV<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">YANG is a data modeling language specifically designed to describe configuration and operational data for network-management systems. NETCONF and RESTCONF can use YANG models to provide a structured representation of network resources such as interfaces, routing information, and system settings. YAML and JSON are data serialization formats, although JSON may be used to represent YANG-modeled data through RESTCONF. CSV is primarily used for tabular data. YANG defines the structure, relationships, constraints, and semantics of the modeled network information. Therefore, YANG is the correct answer.<\/span><\/p>\n<h3><b>Question 84<\/b><\/h3>\n<p><b>Which NETCONF operation retrieves configuration and state information from a network device?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&lt;get&gt;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&lt;commit&gt;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&lt;lock&gt;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&lt;close-session&gt;<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The NETCONF <\/span><span style=\"font-weight: 400;\">&lt;get&gt;<\/span><span style=\"font-weight: 400;\"> operation is used to retrieve both configuration and operational state information from a network device. It can be used to request information from supported data stores and operational data depending on the implementation. <\/span><span style=\"font-weight: 400;\">&lt;commit&gt;<\/span><span style=\"font-weight: 400;\"> applies candidate configuration changes to the running configuration in systems that support the candidate datastore. <\/span><span style=\"font-weight: 400;\">&lt;lock&gt;<\/span><span style=\"font-weight: 400;\"> prevents other sessions from modifying a datastore while it is locked, and <\/span><span style=\"font-weight: 400;\">&lt;close-session&gt;<\/span><span style=\"font-weight: 400;\"> terminates the NETCONF session. Therefore, <\/span><span style=\"font-weight: 400;\">&lt;get&gt;<\/span><span style=\"font-weight: 400;\"> is the appropriate operation for retrieving configuration and state information.<\/span><\/p>\n<h3><b>Question 85<\/b><\/h3>\n<p><b>Which NETCONF operation is used to apply candidate configuration changes to the running configuration?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&lt;discard-changes&gt;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&lt;commit&gt;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&lt;get-config&gt;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&lt;validate&gt;<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The NETCONF <\/span><span style=\"font-weight: 400;\">&lt;commit&gt;<\/span><span style=\"font-weight: 400;\"> operation is used to apply changes from the candidate configuration datastore to the running configuration on devices that support the candidate configuration capability. This provides a structured workflow in which changes can be prepared, reviewed, validated, and then committed. <\/span><span style=\"font-weight: 400;\">&lt;discard-changes&gt;<\/span><span style=\"font-weight: 400;\"> removes uncommitted candidate changes, <\/span><span style=\"font-weight: 400;\">&lt;get-config&gt;<\/span><span style=\"font-weight: 400;\"> retrieves configuration data, and <\/span><span style=\"font-weight: 400;\">&lt;validate&gt;<\/span><span style=\"font-weight: 400;\"> checks whether configuration is valid according to supported rules. The candidate-and-commit model can help reduce accidental partial configuration changes. Therefore, <\/span><span style=\"font-weight: 400;\">&lt;commit&gt;<\/span><span style=\"font-weight: 400;\"> is the correct NETCONF operation for applying candidate changes.<\/span><\/p>\n<h3><b>Question 86<\/b><\/h3>\n<p><b>Which NETCONF operation can be used to discard uncommitted changes in the candidate configuration?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&lt;lock&gt;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&lt;discard-changes&gt;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&lt;commit&gt;<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">&lt;get&gt;<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The NETCONF <\/span><span style=\"font-weight: 400;\">&lt;discard-changes&gt;<\/span><span style=\"font-weight: 400;\"> operation removes pending modifications from the candidate configuration datastore and restores it to the previous committed state. This is useful when an administrator or automation application determines that proposed changes should not be applied. The <\/span><span style=\"font-weight: 400;\">&lt;commit&gt;<\/span><span style=\"font-weight: 400;\"> operation applies candidate changes, <\/span><span style=\"font-weight: 400;\">&lt;lock&gt;<\/span><span style=\"font-weight: 400;\"> controls access to a datastore, and <\/span><span style=\"font-weight: 400;\">&lt;get&gt;<\/span><span style=\"font-weight: 400;\"> retrieves information. Using candidate configuration with explicit commit or discard operations can provide greater control over automated configuration workflows. Therefore, <\/span><span style=\"font-weight: 400;\">&lt;discard-changes&gt;<\/span><span style=\"font-weight: 400;\"> is the appropriate operation for removing uncommitted candidate changes.<\/span><\/p>\n<h3><b>Question 87<\/b><\/h3>\n<p><b>Which YANG statement defines a single scalar data value such as an interface description?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">list<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">container<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">leaf<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">grouping<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The YANG <\/span><span style=\"font-weight: 400;\">leaf<\/span><span style=\"font-weight: 400;\"> statement defines a single data value. Examples include an interface description, hostname, IP address, Boolean setting, or numeric parameter. A leaf includes a data type that determines what kind of value it can contain. A <\/span><span style=\"font-weight: 400;\">container<\/span><span style=\"font-weight: 400;\"> organizes related child nodes, a <\/span><span style=\"font-weight: 400;\">list<\/span><span style=\"font-weight: 400;\"> represents multiple instances of structured data, and a <\/span><span style=\"font-weight: 400;\">grouping<\/span><span style=\"font-weight: 400;\"> defines reusable sets of schema nodes. In network automation, leaf nodes are frequently accessed or modified when applications interact with YANG-modeled data through NETCONF or RESTCONF. Therefore, <\/span><span style=\"font-weight: 400;\">leaf<\/span><span style=\"font-weight: 400;\"> is the correct answer.<\/span><\/p>\n<h3><b>Question 88<\/b><\/h3>\n<p><b>Which YANG structure represents a collection of related child nodes grouped under a single logical object?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Container<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Leaf<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">RPC<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Notification<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">A YANG <\/span><span style=\"font-weight: 400;\">container<\/span><span style=\"font-weight: 400;\"> groups related child data nodes into a logical structure. For example, a container might organize several parameters associated with a network interface or system service. Containers help create a hierarchical and understandable data model. A leaf represents one value, while RPC and notification statements have different purposes related to operations and event reporting. In network automation, containers allow applications using NETCONF or RESTCONF to navigate structured configuration and operational data. Therefore, the container structure is appropriate for grouping related child nodes under a logical object.<\/span><\/p>\n<h3><b>Question 89<\/b><\/h3>\n<p><b>Which YANG construct represents an operation that can be invoked by a client?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Leaf<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Action<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Container<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Typedef<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The YANG <\/span><span style=\"font-weight: 400;\">action<\/span><span style=\"font-weight: 400;\"> statement represents an operation that can be invoked by a client on a particular data node. Actions can be used to model operations that are not simply configuration changes, such as initiating a supported device operation. This provides a standardized way for management applications to invoke modeled operations through supported protocols. A leaf represents a data value, a container groups data nodes, and a typedef defines a reusable type definition. Therefore, <\/span><span style=\"font-weight: 400;\">action<\/span><span style=\"font-weight: 400;\"> is the YANG construct associated with an invokable operation.<\/span><\/p>\n<h3><b>Question 90<\/b><\/h3>\n<p><b>Which YANG construct is designed to describe an event notification sent from a device to a management application?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Action<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Leaf<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Notification<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Container<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The YANG <\/span><span style=\"font-weight: 400;\">notification<\/span><span style=\"font-weight: 400;\"> statement defines event information that can be sent from a device to a management application. Notifications can describe events such as state changes, alarms, or other operational conditions modeled by the device. This differs from an action, which is invoked by a client to request an operation. A leaf represents an individual data value, while a container organizes related data nodes. Notifications are important in model-driven management because they can allow management systems to react to events rather than relying exclusively on periodic polling. Therefore, <\/span><span style=\"font-weight: 400;\">notification<\/span><span style=\"font-weight: 400;\"> is the correct YANG construct.<\/span><\/p>\n<h3><b>Question 91<\/b><\/h3>\n<p><b>Which network automation method typically involves directly sending commands to a device CLI over SSH?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">CLI-based automation<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Model-driven telemetry<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">REST API<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">NETCONF<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">CLI-based automation uses software to connect to a network device&#8217;s command-line interface and execute commands, commonly through SSH. Automation libraries and frameworks can send commands, collect output, and perform configuration tasks. Although CLI automation can be useful, the returned output may be designed for human readability rather than structured machine processing. REST APIs, NETCONF, and other model-driven methods generally provide more structured interfaces. Model-driven telemetry is focused on streaming operational data rather than sending CLI commands. Therefore, CLI-based automation is the approach that directly interacts with the device CLI over SSH.<\/span><\/p>\n<h3><b>Question 92<\/b><\/h3>\n<p><b>Which automation approach uses structured models rather than relying primarily on human-readable CLI output?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Model-driven automation<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Console automation<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Keyboard macros<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Manual configuration<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Model-driven automation uses structured data models to describe configuration and operational information. Technologies such as YANG, NETCONF, and RESTCONF allow automation systems to interact with network resources in a predictable, machine-readable way. This can reduce the need to parse human-oriented CLI output and can make automation workflows more consistent. Console automation and keyboard macros depend heavily on interactive interfaces, while manual configuration requires direct administrator involvement. Therefore, model-driven automation is the approach that relies on structured models rather than primarily interpreting CLI text.<\/span><\/p>\n<h3><b>Question 93<\/b><\/h3>\n<p><b>Which Python library is commonly used to make REST API calls over HTTP and HTTPS?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Requests<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Paramiko<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">PyYAML<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">NumPy<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The Python Requests library provides a straightforward interface for sending HTTP and HTTPS requests. Automation developers commonly use it to interact with REST APIs by performing operations such as GET, POST, PUT, PATCH, and DELETE. Requests can also handle headers, authentication information, parameters, request bodies, and response processing. Paramiko focuses on SSH communication, PyYAML is commonly used for YAML parsing, and NumPy is primarily a numerical-computing library. Therefore, Requests is the appropriate Python library for making REST API calls over HTTP and HTTPS.<\/span><\/p>\n<h3><b>Question 94<\/b><\/h3>\n<p><b>Which Python library can be used to parse YAML configuration files?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">PyYAML<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Paramiko<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Requests<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Flask<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">PyYAML is a Python library commonly used to parse and generate YAML data. Automation programs can use it to read configuration files containing structured information such as device inventories, variables, credentials references, or automation parameters. YAML is frequently used in automation frameworks because it is relatively human-readable and supports hierarchical structures. Paramiko provides SSH capabilities, Requests handles HTTP communication, and Flask is a web application framework. Therefore, PyYAML is the appropriate library when a Python automation program needs to process YAML configuration data.<\/span><\/p>\n<h3><b>Question 95<\/b><\/h3>\n<p><b>Which Python feature allows a function to receive values supplied by the caller?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Parameters<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Comments<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Modules<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Exceptions<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Function parameters allow a Python function to receive values supplied by the caller. Parameters make functions reusable because the same function can perform an operation using different inputs. For example, an automation function could accept a device IP address, username, or configuration value as parameters rather than hard-coding those values. Comments document code, modules provide reusable code collections, and exceptions represent runtime error conditions. Using parameters effectively can help network automation developers create modular and maintainable programs that work with many devices or different data sets.<\/span><\/p>\n<h3><b>Question 96<\/b><\/h3>\n<p><b>Which Python statement is used to send a value back from a function to the calling code?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">yield<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">return<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">continue<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">break<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 2<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">The <\/span><span style=\"font-weight: 400;\">return<\/span><span style=\"font-weight: 400;\"> statement sends a value from a Python function back to the code that called the function. In network automation, a function might connect to a device, retrieve information, process an API response, and return the resulting data to the main program. <\/span><span style=\"font-weight: 400;\">yield<\/span><span style=\"font-weight: 400;\"> is associated with generators, <\/span><span style=\"font-weight: 400;\">continue<\/span><span style=\"font-weight: 400;\"> skips to the next iteration of a loop, and <\/span><span style=\"font-weight: 400;\">break<\/span><span style=\"font-weight: 400;\"> terminates a loop. Returning values allows automation programs to separate individual operations into reusable functions and then combine their results into larger workflows. Therefore, <\/span><span style=\"font-weight: 400;\">return<\/span><span style=\"font-weight: 400;\"> is the correct statement.<\/span><\/p>\n<h3><b>Question 97<\/b><\/h3>\n<p><b>Which Python keyword is used to define a function?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">function<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">define<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">def<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">func<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 3<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Python uses the <\/span><span style=\"font-weight: 400;\">def<\/span><span style=\"font-weight: 400;\"> keyword to define a function. A function definition specifies the function name, parameters, and the block of code that should execute when the function is called. Functions are important in automation because they allow developers to organize repetitive tasks into reusable components. For example, a developer can create a function that retrieves device information and call it for many devices. <\/span><span style=\"font-weight: 400;\">function<\/span><span style=\"font-weight: 400;\">, <\/span><span style=\"font-weight: 400;\">define<\/span><span style=\"font-weight: 400;\">, and <\/span><span style=\"font-weight: 400;\">func<\/span><span style=\"font-weight: 400;\"> are not Python keywords used to define standard functions. Therefore, <\/span><span style=\"font-weight: 400;\">def<\/span><span style=\"font-weight: 400;\"> is the correct answer.<\/span><\/p>\n<h3><b>Question 98<\/b><\/h3>\n<p><b>Which practice helps prevent sensitive API credentials from being hard-coded directly into automation scripts?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Store credentials securely using secrets management<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Publish credentials in comments<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Put passwords directly in source code<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Use the same password everywhere<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Secure secrets management helps prevent sensitive information such as API tokens, passwords, and private keys from being embedded directly in source code. Credentials can instead be stored using mechanisms such as encrypted secret stores, environment variables, Ansible Vault, or other supported secrets-management systems. Hard-coding credentials creates security risks because source code may be copied, shared, or committed to version-control systems. Publishing credentials in comments or reusing the same password across systems increases exposure. Therefore, securely managing secrets is the appropriate practice for protecting automation credentials.<\/span><\/p>\n<h3><b>Question 99<\/b><\/h3>\n<p><b>Which version-control system is widely used to track changes to automation scripts and configuration files?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Git<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">DHCP<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">DNS<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">NTP<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Git is a distributed version-control system widely used to track changes to source code, automation scripts, templates, and configuration files. It allows developers to maintain history, compare changes, create branches, collaborate with others, and revert to earlier versions when necessary. These capabilities are especially valuable in network automation because configuration logic can evolve rapidly and multiple engineers may work on the same automation project. DHCP provides dynamic addressing, DNS provides name resolution, and NTP synchronizes time. Therefore, Git is the appropriate technology for version-controlling automation code and configuration artifacts.<\/span><\/p>\n<h3><b>Question 100<\/b><\/h3>\n<p><b>Which automation practice helps ensure that changes to network automation code are reviewed before being merged into a shared codebase?<\/b><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Pull request review<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Telnet access<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Manual console logging<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">DHCP renewal<\/span><\/li>\n<\/ol>\n<p><b>Correct Answer: 1<\/b><\/p>\n<h3><b>Explanation<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Pull request review is a common software-development practice in which proposed changes are reviewed before being merged into a shared codebase. In network automation projects, this can help identify coding errors, incorrect configuration logic, security problems, and unintended behavior before automation is executed in production. Version-control platforms can provide comments, approvals, automated checks, and change history as part of this process. Telnet access, console logging, and DHCP renewal do not provide a structured code-review workflow. Therefore, pull request review is an important practice for maintaining quality and reducing risks in collaborative automation development.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>View Full Cisco CCNA Automation 200-901 Exam Dumps and Practice Test Dumps. &nbsp; Question 81 Which protocol is commonly used to retrieve structured network configuration data from a device using YANG models? NETCONF FTP Telnet SMTP Correct Answer: 1 Explanation NETCONF is a network-management protocol designed for programmatic access to configuration and operational data. It [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1648,1647],"tags":[],"_links":{"self":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/15051"}],"collection":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/comments?post=15051"}],"version-history":[{"count":1,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/15051\/revisions"}],"predecessor-version":[{"id":15083,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/posts\/15051\/revisions\/15083"}],"wp:attachment":[{"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/media?parent=15051"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/categories?post=15051"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.examlabs.com\/certification\/wp-json\/wp\/v2\/tags?post=15051"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}