Cisco 200-901 Practice Test - Questions Answers, Page 21
List of questions
Related questions
Refer to the exhibit.
An engineer writes a Python script that uses two different API calls to query Cisco DNA Center for the number of interfaces on a device. The engineer notices that the two API calls produce different results. Why are fewer interfaces returned for the same device when the 'get_all_interfaces' API call is used?
times out
rate limit
pagination
invalid password
Why is refactoring done during test-driven development?
to enable larger objects and longer methods
to improve maintainability and readability
to ensure that the previous uses of the objects are explained
to ensure the duplication of essential code
Refer to the exhibit.
A network engineer must change the configuration on devices daily. The Python script must collect CLI arguments from the user, organize data according to the Cisco-IOS-XE-native YANG model, and utilize Cisco REST APIs to make the configuration. Which workflow is being automated by the Python script?
updating an existing route on the device
adding a new route to a device
including a route on the device and overwriting the current routes
deleting the route that is passed through the command-line variables
Which platform is used to programmatically create a space and invite users for collaboration?
Cisco Intersight
Cisco Finesse
Cisco Webex
Cisco UCM
Refer to the exhibit.
A developer wants to create a room named cisco through Webex API. The developer prepares the request by putting an API token inside the authorization header; however, the given HTTP call returns error code 400. How must the call parameters be changed to ensure a valid response?
Replace the team body parameter with the name body parameter.
Replace cisco with a valid name for a team.
Change the token in the header with the authorization token.
Change the HTTP method of the call to PUT.
Refer to the exhibit.
Which line must be included in the Bash script for the Python code to succeed?
define WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here
export WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here
set WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here
WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here
What is a capability of the NETCONF protocol?
allows Python scripts to be executed externally from a network device
uses JSON to encode data in its content layer
allows XML messages to be exchanged via the SSH protocol
exposes a web-based interface
Refer to the exhibit.
A network engineer uses model-driven programmability to monitor and perform changes on the network.
The network engineer decides to use the NETCONF RPC message to complete one of their tasks. What is accomplished by sending the RPC message?
The running-config of the device is returned.
The name of each interface is reset to a default name.
All the YANG capabilities supported by the device are returned.
A list of interface names is returned.
Refer to the exhibit.
A developer creates a script to obtain a list of devices by using the Cisco DNA Center API. The remote server authorizes the request only if an authentication token is supplied in the headers. A function named get_auth_token() must retrieve a valid token by using HTTP Basic Authentication. Which code must be added to complete the get_auth_token() function?
resp = requests.post(url, auth=HTTPBasicAuth(DNAC_USER, DNAC_PASSWORD)) token = resp.json()['Token'] return token
resp = requests.post(url, auth=(DNAC_USER, DNAC_PASSWORD)) token = resp.json ()['Token'] return token
resp = http.post(url, auth=HTTPBasicAuth(DNAC_USER, DNAC_PASSWORD)) token = resp.json()['Token'] return token
resp = http.post(url, auth=(DNAC_USER, DNAC_PASSWORD)) token = resp.json()['Token'] return token
Refer to the exhibit.
A network engineer wants to use an API to update information about device interfaces. The network devices are deployed in a Cisco DevNet Sandbox and have running interfaces. Which line of code needs to be placed in the snippet where the code is missing?
{'Content-Type': 'application/yang.data+xml', 'Accept': 'application/yang.data+xml'}
{'Content-Type': 'application/yang.data+yaml', 'Accept': 'application/yang.data+yaml'}
{'Content-Type': 'application/restconf.data+json', 'Accept': 'application/restconf.data+json'}
{'Content-Type': 'application/yang.data+utf8', 'Accept': 'application/restconf.data+utf8'}
Question