View Full Cisco CCNA Automation 200-901 Exam Dumps and Practice Test Dumps.
Question 61
Which protocol is commonly used to securely transfer files between systems over an SSH connection?
- TFTP
- FTP
- SFTP
- HTTP
Correct Answer: 3
Explanation
SFTP, or SSH File Transfer Protocol, provides secure file transfer capabilities over an SSH connection. It encrypts authentication credentials and transferred data, making it appropriate for securely moving configuration files, scripts, logs, and other files between systems. TFTP does not provide encryption and is commonly used for simple file transfers in network environments. Traditional FTP also does not inherently encrypt credentials or data, while HTTP is primarily a web communication protocol. Therefore, SFTP is the appropriate choice when secure file transfer over an SSH-based connection is required.
Question 62
Which Python data type is used to store text values?
- String
- Integer
- Boolean
- Float
Correct Answer: 1
Explanation
A Python string is used to represent text data. Strings can contain characters such as letters, numbers, spaces, symbols, IP addresses, hostnames, and configuration commands. They are commonly enclosed in single or double quotation marks. Network automation scripts frequently use strings to store device names, interface descriptions, API endpoints, usernames, and command output. Integers represent whole numbers, floats represent decimal numbers, and Boolean values represent True or False. Therefore, the string data type is the correct choice when an automation program needs to store textual information.
Question 63
Which Python data type represents Boolean values?
- Float
- Boolean
- String
- List
Correct Answer: 2
Explanation
The Python Boolean data type represents logical values using True and False. Boolean values are frequently used in automation scripts for conditions such as determining whether a device is reachable, whether an interface is enabled, or whether a configuration requirement has been satisfied. Strings represent text, floats represent decimal numbers, and lists store collections of values. Boolean expressions are especially useful with if statements and other conditional logic. Therefore, Boolean is the correct Python data type for representing true or false conditions in automation programs.
Question 64
Which Python operator is commonly used to test whether two values are equal?
- =
- !=
- ==
- +=
Correct Answer: 3
Explanation
The == operator is used in Python to compare two values and determine whether they are equal. It produces a Boolean result of True when the values are equal and False otherwise. This operator is frequently used in automation scripts to compare device states, API responses, configuration values, or user input. The single = operator is used for assignment, != checks whether two values are different, and += performs an addition and assignment operation. Therefore, == is the correct comparison operator for checking equality.
Question 65
Which Python keyword exits the current loop immediately?
- continue
- break
- return
- pass
Correct Answer: 2
Explanation
The Python break statement immediately terminates the loop in which it is executed. In network automation, this can be useful when a script finds the required device, encounters a critical condition, or completes a search before processing all remaining items. The continue statement skips the remaining statements in the current iteration and moves to the next iteration. return exits a function, while pass performs no operation and is often used as a placeholder. Therefore, break is the correct keyword for immediately exiting a loop.
Question 66
Which Python statement skips the remainder of the current loop iteration and proceeds to the next iteration?
- break
- exit
- continue
- stop
Correct Answer: 3
Explanation
The continue statement causes Python to skip the remaining statements in the current iteration of a loop and begin the next iteration. This can be useful in automation scripts when certain devices or data entries should be skipped based on a condition while processing continues for the rest. The break statement terminates the loop completely, while exit and stop are not standard Python loop-control keywords. Therefore, continue is the appropriate statement when an automation program needs to skip one iteration without terminating the entire loop.
Question 67
Which file format is commonly used by Ansible playbooks?
- XML
- YAML
- CSV
- JSONP
Correct Answer: 2
Explanation
Ansible playbooks are commonly written in YAML because YAML provides a human-readable way to describe tasks, variables, hosts, and automation workflows. YAML uses indentation to represent hierarchy, so correct indentation is important when writing playbooks. Automation engineers can use Ansible playbooks to describe repeatable configuration and operational tasks across network devices and servers. XML is commonly associated with technologies such as NETCONF, CSV is a tabular data format, and JSONP is not the standard format for Ansible playbooks. Therefore, YAML is the correct answer.
Question 68
In Ansible, what is the primary purpose of an inventory?
- Store information about managed hosts
- Define Python functions
- Encrypt Ethernet frames
- Provide DNS resolution
Correct Answer: 1
Explanation
An Ansible inventory identifies the hosts and groups of hosts that Ansible can manage. It can contain information such as device names, IP addresses, connection parameters, variables, and group membership. Network automation engineers can organize routers, switches, firewalls, or servers into logical groups and then target those groups from playbooks. An inventory does not define Python functions, provide Ethernet encryption, or perform DNS resolution. It serves as the source from which Ansible determines which managed nodes are available for automation. Therefore, storing information about managed hosts is its primary purpose.
Question 69
Which Ansible component contains the tasks that describe the operations to be performed on managed devices?
- Playbook
- Inventory
- Vault password
- SSH key
Correct Answer: 1
Explanation
An Ansible playbook contains the automation instructions that define which tasks should be performed against selected hosts. Playbooks are typically written in YAML and can include variables, tasks, conditions, handlers, and other automation constructs. The inventory identifies managed hosts, while an SSH key can be used for authentication and Ansible Vault can protect sensitive information. Playbooks provide the structured workflow that tells Ansible what actions to perform. Therefore, the playbook is the component containing the tasks and automation logic applied to managed devices.
Question 70
Which Ansible feature is designed to protect sensitive information such as passwords and API credentials?
- Ansible Inventory
- Ansible Vault
- Ansible Facts
- Ansible Handler
Correct Answer: 2
Explanation
Ansible Vault is designed to encrypt sensitive data used by Ansible automation. It can protect information such as passwords, API tokens, private keys, and other confidential variables. This allows sensitive information to remain encrypted while being stored with automation code or configuration files. Inventory files identify managed hosts, facts represent information gathered about managed systems, and handlers are tasks triggered by changes in other tasks. Therefore, Ansible Vault is the appropriate feature for protecting sensitive information within Ansible automation environments.
Question 71
Which automation tool uses an agentless architecture and commonly connects to network devices using SSH or supported network APIs?
- Ansible
- DHCP
- STP
- ARP
Correct Answer: 1
Explanation
Ansible is commonly described as an agentless automation platform because managed systems generally do not require a continuously running Ansible agent. For network automation, Ansible can communicate with supported devices using SSH, network-specific connection methods, or APIs depending on the platform and module. This makes it useful for automating configurations across routers, switches, firewalls, and other infrastructure. DHCP provides dynamic addressing, STP prevents Layer 2 loops, and ARP resolves IPv4 addresses to MAC addresses. Therefore, Ansible is the automation tool described in the question.
Question 72
Which Cisco automation platform is based on a controller architecture and provides APIs for interacting with network resources?
- Cisco DNA Center
- Cisco IOS ROMMON
- Cisco Console Port
- Cisco Power Supply
Correct Answer: 1
Explanation
Cisco DNA Center uses a controller-based architecture to provide centralized management, automation, assurance, and policy capabilities for enterprise networks. It also exposes APIs that allow external applications and automation scripts to interact with supported resources. For example, automation applications can retrieve device inventory, execute supported workflows, or obtain assurance information programmatically. ROMMON is a device recovery environment, the console port provides direct management access, and a power supply is a hardware component. Therefore, Cisco DNA Center is the controller-based Cisco automation platform described.
Question 73
Which concept describes managing network infrastructure by defining the desired outcome rather than manually specifying every individual configuration command?
- Intent-based networking
- Manual CLI management
- Packet switching
- Static routing
Correct Answer: 1
Explanation
Intent-based networking focuses on expressing the desired state or outcome of the network and allowing software platforms to translate that intent into appropriate configurations and policies. The system can also monitor the network to determine whether the actual state continues to match the desired state. This approach can reduce repetitive manual configuration and improve consistency across infrastructure. Manual CLI management requires administrators to enter commands directly, while packet switching and static routing describe networking functions rather than a broad automation methodology. Therefore, intent-based networking best represents the concept described.
Question 74
Which term describes the difference that can develop between the intended network configuration and the actual configuration running on a device?
- API endpoint
- Configuration drift
- Data serialization
- Network telemetry
Correct Answer: 2
Explanation
Configuration drift occurs when the actual configuration of a device gradually differs from the intended or standardized configuration. This can happen because of manual changes, emergency troubleshooting, inconsistent deployments, or other operational activities. Automation can help reduce configuration drift by repeatedly applying desired configurations and validating device state. An API endpoint identifies a location used to access an API resource, data serialization converts data into a transferable format, and network telemetry involves collecting operational information. Therefore, configuration drift is the term that describes differences between intended and actual device configurations.
Question 75
Which technology is commonly used to collect streaming operational data from network devices for monitoring and analytics?
- Model-driven telemetry
- Telnet
- TFTP
- ARP
Correct Answer: 1
Explanation
Model-driven telemetry allows network devices to continuously stream structured operational data to a monitoring or analytics system. Instead of relying entirely on periodic polling, telemetry can provide timely information about interface statistics, device health, traffic conditions, and other operational metrics. The data is generally based on structured models, which makes it easier for software systems to process. Telnet provides remote CLI access, TFTP provides basic file transfer, and ARP resolves local IPv4-to-MAC mappings. Therefore, model-driven telemetry is the appropriate technology for streaming structured operational information from network devices.
Question 76
Which automation characteristic allows a workflow to be executed repeatedly with the same expected steps and results?
- Repeatability
- Randomness
- Manual variation
- Physical dependency
Correct Answer: 1
Explanation
Repeatability is an important characteristic of network automation because the same workflow can be executed multiple times using the same defined process. For example, an organization can use an automation workflow to deploy a standardized interface configuration across hundreds of devices. This reduces the variation that can occur when different administrators manually perform the same task. Repeatability also makes testing and troubleshooting easier because the workflow is predictable and documented. Randomness and manual variation work against standardized automation, while physical dependency is unrelated to software-based workflow execution. Therefore, repeatability is the correct answer.
Question 77
Which API component identifies the specific location of a resource that an application wants to access?
- Endpoint
- Variable
- Loop
- Compiler
Correct Answer: 1
Explanation
An API endpoint identifies a specific URL or resource location through which an application interacts with an API. Different endpoints can represent different resources, such as devices, interfaces, users, sites, or configurations. An automation script sends HTTP requests to the appropriate endpoint using supported methods and parameters. A variable stores information within a program, a loop repeats operations, and a compiler translates source code into another form. Therefore, the endpoint is the API component that identifies the resource location an application wants to access.
Question 78
Which HTTP method is commonly used to submit data to an API to create a new resource?
- GET
- DELETE
- POST
- HEAD
Correct Answer: 3
Explanation
POST is commonly used to submit data to a REST API for operations such as creating a new resource. For example, an automation application might send a POST request containing JSON data to create a new object supported by the API. GET is normally used to retrieve resources, DELETE is used to remove resources, and HEAD retrieves response headers without the normal response body. The exact behavior depends on the API implementation, but POST is widely associated with resource creation and submission operations. Therefore, POST is the correct HTTP method for the described use case.
Question 79
Which HTTP method is commonly used to replace an existing resource with a complete new representation?
- PUT
- GET
- PATCH
- OPTIONS
Correct Answer: 1
Explanation
PUT is commonly used to create or replace a resource with a complete representation of that resource. In REST API design, an automation application may send a PUT request containing the desired complete state of a resource. PATCH is generally used when only part of an existing resource needs to be modified. GET retrieves information, while OPTIONS can be used to discover supported communication options for a resource. Actual behavior depends on the API specification, but PUT is traditionally associated with replacing a complete resource representation. Therefore, PUT is the correct choice.
Question 80
Which approach allows network automation software to communicate with devices without relying exclusively on screen scraping CLI output?
- API-based automation
- Manual console access
- Physical cabling
- Keyboard macros only
Correct Answer: 1
Explanation
API-based automation allows software to communicate with network devices and management platforms through structured programmatic interfaces. Instead of depending entirely on CLI screen scraping, automation applications can use REST APIs, RESTCONF, NETCONF, SDKs, or other supported interfaces to retrieve and modify structured data. This can make automation more reliable because applications can work with defined resources and data models rather than interpreting human-oriented command output. Manual console access and keyboard macros require direct interaction, while physical cabling provides connectivity but does not itself provide automation. Therefore, API-based automation is the appropriate approach.