ExamGecko
Home Home / Cisco / 200-901

Cisco 200-901 Practice Test - Questions Answers, Page 21

Question list
Search
Search

List of questions

Search

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?

A.

times out

A.

times out

Answers
B.

rate limit

B.

rate limit

Answers
C.

pagination

C.

pagination

Answers
D.

invalid password

D.

invalid password

Answers
Suggested answer: C

Why is refactoring done during test-driven development?

A.

to enable larger objects and longer methods

A.

to enable larger objects and longer methods

Answers
B.

to improve maintainability and readability

B.

to improve maintainability and readability

Answers
C.

to ensure that the previous uses of the objects are explained

C.

to ensure that the previous uses of the objects are explained

Answers
D.

to ensure the duplication of essential code

D.

to ensure the duplication of essential code

Answers
Suggested answer: B

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?

A.

updating an existing route on the device

A.

updating an existing route on the device

Answers
B.

adding a new route to a device

B.

adding a new route to a device

Answers
C.

including a route on the device and overwriting the current routes

C.

including a route on the device and overwriting the current routes

Answers
D.

deleting the route that is passed through the command-line variables

D.

deleting the route that is passed through the command-line variables

Answers
Suggested answer: A

Which platform is used to programmatically create a space and invite users for collaboration?

A.

Cisco Intersight

A.

Cisco Intersight

Answers
B.

Cisco Finesse

B.

Cisco Finesse

Answers
C.

Cisco Webex

C.

Cisco Webex

Answers
D.

Cisco UCM

D.

Cisco UCM

Answers
Suggested answer: C

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?

A.

Replace the team body parameter with the name body parameter.

A.

Replace the team body parameter with the name body parameter.

Answers
B.

Replace cisco with a valid name for a team.

B.

Replace cisco with a valid name for a team.

Answers
C.

Change the token in the header with the authorization token.

C.

Change the token in the header with the authorization token.

Answers
D.

Change the HTTP method of the call to PUT.

D.

Change the HTTP method of the call to PUT.

Answers
Suggested answer: A

Refer to the exhibit.

Which line must be included in the Bash script for the Python code to succeed?

A.

define WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here

A.

define WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here

Answers
B.

export WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here

B.

export WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here

Answers
C.

set WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here

C.

set WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here

Answers
D.

WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here

D.

WEBEX_TEAMS_ACCESS_TOKEN=your_access_token_here

Answers
Suggested answer: B

What is a capability of the NETCONF protocol?

A.

allows Python scripts to be executed externally from a network device

A.

allows Python scripts to be executed externally from a network device

Answers
B.

uses JSON to encode data in its content layer

B.

uses JSON to encode data in its content layer

Answers
C.

allows XML messages to be exchanged via the SSH protocol

C.

allows XML messages to be exchanged via the SSH protocol

Answers
D.

exposes a web-based interface

D.

exposes a web-based interface

Answers
Suggested answer: C

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?

A.

The running-config of the device is returned.

A.

The running-config of the device is returned.

Answers
B.

The name of each interface is reset to a default name.

B.

The name of each interface is reset to a default name.

Answers
C.

All the YANG capabilities supported by the device are returned.

C.

All the YANG capabilities supported by the device are returned.

Answers
D.

A list of interface names is returned.

D.

A list of interface names is returned.

Answers
Suggested answer: A

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?

A.

resp = requests.post(url, auth=HTTPBasicAuth(DNAC_USER, DNAC_PASSWORD)) token = resp.json()['Token'] return token

A.

resp = requests.post(url, auth=HTTPBasicAuth(DNAC_USER, DNAC_PASSWORD)) token = resp.json()['Token'] return token

Answers
B.

resp = requests.post(url, auth=(DNAC_USER, DNAC_PASSWORD)) token = resp.json ()['Token'] return token

B.

resp = requests.post(url, auth=(DNAC_USER, DNAC_PASSWORD)) token = resp.json ()['Token'] return token

Answers
C.

resp = http.post(url, auth=HTTPBasicAuth(DNAC_USER, DNAC_PASSWORD)) token = resp.json()['Token'] return token

C.

resp = http.post(url, auth=HTTPBasicAuth(DNAC_USER, DNAC_PASSWORD)) token = resp.json()['Token'] return token

Answers
D.

resp = http.post(url, auth=(DNAC_USER, DNAC_PASSWORD)) token = resp.json()['Token'] return token

D.

resp = http.post(url, auth=(DNAC_USER, DNAC_PASSWORD)) token = resp.json()['Token'] return token

Answers
Suggested answer: A

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?

A.

{'Content-Type': 'application/yang.data+xml', 'Accept': 'application/yang.data+xml'}

A.

{'Content-Type': 'application/yang.data+xml', 'Accept': 'application/yang.data+xml'}

Answers
B.

{'Content-Type': 'application/yang.data+yaml', 'Accept': 'application/yang.data+yaml'}

B.

{'Content-Type': 'application/yang.data+yaml', 'Accept': 'application/yang.data+yaml'}

Answers
C.

{'Content-Type': 'application/restconf.data+json', 'Accept': 'application/restconf.data+json'}

C.

{'Content-Type': 'application/restconf.data+json', 'Accept': 'application/restconf.data+json'}

Answers
D.

{'Content-Type': 'application/yang.data+utf8', 'Accept': 'application/restconf.data+utf8'}

D.

{'Content-Type': 'application/yang.data+utf8', 'Accept': 'application/restconf.data+utf8'}

Answers
Suggested answer: C
Total 471 questions
Go to page: of 48