200-901 DevNet Associate (DEVASC) Questions and Answers
Drag and drop the HTTP methods from the left onto their generally accepted corresponding create, read, update, and delete operations on the right.

Which type of HTTP method is used by the Meraki nad webex teams APIs to send webhook notifications?
Drag and drop the characteristics from the left onto the software development methodologies on the right.

Drag and drop the code from the bottom onto the box where the code is missing to authent i cate with the Cisco DNA Center REST API by using basic authentication. Then generate a t o ken for later use. Not all options are used.

When a Cisco IOS XE networking device is configured using RESTCONF, what is the default data-encoding method?
A developer is working on a new feature in a branch named ' newfeat123456789 ' and the cu r rent working primary branch is named ' prim987654321 ' . The developer requires a merge commit during a fast forward merge for record-keeping purposes. Which Git command must be used?
Refer to the exhibit.

A network engineer wants to automate the port enable/disable process on specific Cisco switches. The engineer creates a script to send a request through RESTCONF and uses ietf as the YANG model and JSON as payload. Which command enables an interface named Loopback1?
An engineer clones a repository that contains a Python script from GitLab to a laptop. After modifying the code, the engineer wants to validate the changes. Which command starts … CI/CD pipeline and runs the automated tests?

A file in a local Git repository has been updated and issued the git add . command. The git diff command has been run to compare the changes to the previous commit, but nothing shows. Which action identifies the problem?
A function my_func() returns True when it executes normally. Which python snippet tests my_func()?

Refer to the exhibit.

Up to which device does the communication server 1 and server 2 go?
Refer to the exhibit.

An engineer wants to create a Bash script to automate a workflow that is related to a machine learning-based application. The engineer wants to use the application as a container and use an image from the open-source public repository. What is accomplished by the script?
Refer to the exhibit.

What do all the calls shown in the sequence diagram have in common?
A developer completed the creation of a script using Git. Before delivering it to the customer, the developer wants to be sure about all untracked files, without losing any information. Which command gathers this information?
Drag and drop the code from the bottom onto the box where the code is missing to complete the error path scenario. Not all options are used.

Refer to the exhibit.

A company recently acquired new IP-based security cameras. After discussion with the eng i neering team, they decide to segment the security camera traffic m the rest…The engineer assigns the new VLAN 10 for the security camera traffic. After all the devices are configured, it seems as if the cameras cannot access the Internet, .. a few minutes of debugging, the eng i neer restricts the problem to the router configuration. What is the cause of the issue?
A developer starts to learn about building applications that use Cisco APIs. The developer needs access to Cisco security products in a development lab to test the first new Dlication that has been built. Which DevNet resource must be used?

Refer to the exhibit. A developer is using cURL to test connectivity to a webpage. The request times out after 10 seconds. The developer tested connectivity by using Ping and can open a socket to the remote server by using Telnet. Other users confirm that they can access the webpage from their device. The developer has SSH access to the remote server and runs commands to troubleshoot. What causes the issue?
Refer to the exhibit.

What are two results of running the RESTCONF query? (Choose two.)
A developer created a new secure API and is testing the functionality locally. The API was added to a container for further testing, and other team members and applications need to connect to the API. Which command exposes the API in the container as port 8443 and allows connections external to the host?
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 hea d ers. A function named get_auth_token() must retrieve a valid token by using HTTP Basic A u thentication. Which code must be added to complete the get_auth_token() function?
While developing a real-Time VoIP application on a Cisco Webex platform, users report that their voice gets chopped or parts of the conversation drop out. Which network constraint is impacting the application?
What is the purpose of running tests before writing code in test-driven development?
A developer is creating a script to interact with a REST API service which requires basic a u thentication. The credentials are " devnet:391665405 " and the Base64 encoding of the crede n tials is " GV2bmV0dXNlcjpDaXNj= " . Which payload and header combination must be used for authentication?

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?

Refer to the exhibit. A developer needs to create a webhook to send all Cisco Webex messages to a third-party tool by using the Cisco Webex API. The developer must Auhenticate with the API before any API calls can be made. To automate the procedure, a Python script is used. Which code snippet must be placed onto the blank in the code?
A)

B)

C)

D)


Refer to the exhibit. A developer writes a script to create a new network by using the Cisco DNA Center API. After running the script for the first time, the developer observes that HTTP code 404 is printed to the console. Which action resolves the problem?
Refer to the exhibit.

A developer needs to upload a local file by using the REST API. The developer gathers information according to the documentation and sends the request by using the cURL command in the exhibit but gets an error code. Which action should be followed to get valid response?
Drag and drop the descriptions from the left onto correct application deployment models on the right.


Refer to the exhibit. A network engineer executes the bash script shown. Which two things are achieved by running the script? (Choose two.)

Refer to the exhibit. A developer creates a Python script by using the Cisco Meraki API. The solution must:
• Obtain a list of HTTP servers for a network named " netl " .
• Print the response body if the HTTP status code is 200.
• Handle the timeout requests as exceptions, and print Timeout Error next to the exception to stdout.
Which block of code completes the script?
A)

B)

Drag and drop the Python data transformation methods from the left onto the data formats on the right.

Drag and drop the code from the bottom onto the box where the code is missing in the Python script to list all devices. Not all options are used.

Drag and drop the types of management from the left onto the levels at which they are performed on the right.

Refer to the exhibit.

A developer must integrate a bot with an internal communication app. The developer wants to replace the webexbot package with the teamsbot package by using Ansible and prepares a playbook In the first two tasks, the playbook stops the webexbot and verifies that the teamsbot is installed. What is accomplished in the last task of the workflow when the developer runs the Ansible playbook?
Which advantage does the agile process offer compared to waterfall software development?
How does a developer create and switch to a new branch called " my-bug-fix " to develop a product fix?
A company wants to accelerate the adoption of technologies that will simplify its operations. Staff have different skill levels and are looking for a single site to find easy-to-consume beginner, intermediate, and advanced multidomain use cases. Which site should be used?
Refer to the exhibit.

A developer needs to automatically retrieve all of the messages of a Webex room with the roomld of
HY2l2Y292cGFyazovL3Vz397748444YjU5NjAtNTk0ZJ0xMWVhLTk0Mj " . Using the Webex API documentation shown, drag and drop the code snippets from below onto the code to complete the Python script to list all of the messages in the room. Not all options are used.

Refer to the exhibit.

A network engineer must collect information from the network using Cisco DNA Center APIs. The script must query for the devices with ' platformId ' ' C9540-x ' and then send commands to be executed. Which process is automated by the Python script?
A new application is being developed with specific platform requirements. The platform and application deployment and the ongoing platform management must be fully automated. The application includes a large database component that has significant disk I/O requirements. Which application deployment type meets the requirements?
A company is adopting DevOps as part of an internal transformation, and is reviewing the success of the first deployments. Developers and engineers are working together to resolve any resulting issues. However, this new way of working has increased overhead, and the team is finding it difficult to complete releases in time.
Which area of the CALMS framework must the company target for improvement?
A developer is trying to retrieve data over a REST API. The API server responds with an HTTP client error response code. After investigating the response the developer realizes the realizes the response has a Retry-After header. What is the root cause of this error?

Refer to the exhibit. What does the load balancer enable in the network topology?
What is a requirement when authenticating a RESTCONF API session with a router that runs Cisco IOS XE Software?

Refer to the exhibit. A network engineer must collect information from the network. The engineer prepares a script to automate workflow by using Cisco Meraki API. The script must run over nested loops to collect organization and network information and uses the collected data for final collection. Which process is being automated by using the Python script?
Refer to the exhibit.

A network engineer must manage the network devices. The engineer prepares a Python scripts to authenticate to the Cisco to DNA Center API and request a device list. The device request fails and returns errors code 401. Which action solves the problem?
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 developer is working on a feature for a new application. The changes in the existing branch named ' feat00304 ' must be integrated into a single commit with the current working primary branch named ' prodapp411926287 ' . Which git command must be used?
Refer to the exhibit.

The Cisco Meraki API manages two organizations. In each organization, two independent networks are defined. How many calls to the /organizations/(orgid)networks endpoint will be run parallel by the GetAllNetwork function of the API client?
A file that already exists in a local repository is updated. Which command must be executed to ensure that the changes in the file are included in the next Git commit?
Refer to the exhibit.

Which device limits traffic between server 1 and server 2?

Refer to the exhibit. A developer must use a token to collect data from Cisco DNA Center API and prepares a Python script to send requests. Which line of code needs to be placed on the snippet where the code is missing to obtain a token from the Cisco DNA Center API?
Drag and drop the code from the bottom onto the box where the code is missing to construct a Python script that calls a REST API request. Not all options are used.

An engineer needs to collect information about 20,000 Bluetooth clients using the Cisco M e raki API. The API returns only 1,000 results. One of the HTTP response headers has the data:
Link: https://api.meraki.com.info/api/v0/networks/ABC/bluetoothClients?perPage=1000 & startingAfter=1000 > ;rel=“next”
Which RFC is implemented by the API to apply the restriction?
A developer creates a program in which an object maintains a list of classes based on the o b server pattern. The classes are dependent on the object. Whenever the state of the object changes, it notifies the dependent classes directly through callbacks. Which advantage of the observer pattern offers minimum dependencies and maximum flexibility between dependent objects or classes?
Which network constraint causes the performance of the application to decrease as the nu m ber of users accessing the application increases?
Which IP service is responsible for automatically assigning an IP address to a device?
How does edge computing analyze sensitive data in the context of privacy control?

Refer to the exhibit. Drag and drop the code from the bottom onto the box where the code is missing to construct a request that generates a security token and gets a list of network d e vices. Not all options are used.

What are two advantages of the Model-view-controller software design pattern? (Choose two.)
Refer to the exhibit.

Given the API documentation for the UCS SDK python class, UcsHandle, which code snippet creates a handle instance?

Refer to the exhibit.

What is the value of the node defined by this YANG structure?

Refer to the exhibit.

Which JSON snippet configures a new interface according to YANG model?
A)

B)

C)

D)

Refer to the exhibit.

Which two files are being edited in the unified diff? (Choose two.)
Refer to the exhibit.

An engineer must configure a load balancer server. The engineer prepares a script to automate workflow by using Bash. The script install the nginx package, moves to the /optAtginx directory, and reads the sites M We (or further processing Based on the script workflow, which process is being automated within the loop by using the information mi sites txt?
Refer to the exhibit.

An engineer sends the request to collect data over Cisco AMP for Endpoints API. The Eng i neer must list guide and hostname data for all computers, but the first request returns only 500 items out of 2,000. Then, the engineer adds the loop to collect all the data. What must be added to the script where the code is missing to complete the requests?

A developer checks the performance of a web application. The application is in the local data center and uses a REST-based API. Based on the API logs, it is discovered that many its abandon API requests. Also, the response is taking too long to get back. What is the reason for this issue?

Refer to the exhibit. A developer is part of a team that is working on an open-source project in which source code is hosted in a public GitHub repository. While the application was built, s e curity concerns were addressed by encrypting the credentials on the server. After a few months, the developer realized that a hacker managed to gain access to the account. The e x hibit contains part of the source code for the login process. Why was the attacker able to a c cess the developer ' s account?
eating a Python script to programmatically save network device configurations. Which code snippet must be placed onto the blank in .. code?
Refer to the exhibit.

A Python script must delete all Cisco Catayst 9300 Series switches that have an uptime that is greater than 90 days The script must also query for the status of all the other devices Drag and drop the code from the bottom onto the bottom box the code is missing to complete the script Not at options are used

Refer to the exhibit.

A developer creates a Python script that queries Cisco Webex. When the script is executed, a 401 code is returned. After troubleshooting, the developer discovers that the service is missing privileges. Which change to the header in line 4 of the script results in the code 200?
A)

B)

C)

D)

Which Cisco platform provides organization-wide automation, security, policy enforcement, any agility across wired and wireless networks?
In test-driven development, what are two of the green bar patterns? (Choose two.)
Drag and drop the code from the bottom onto the box where the code is missing in the Bash script to complete the missing assignment.

Refer to the exhibit.

While developing a Cisco Webex bot, an application reaches the public IP address of the fir e wall, but traffic is forwarded to the IP address of server 1 instead of the IP address of server 2. What causes this issue?
Which two statements describe the traits of an asynchronous API call? (Choose two.)
Refer to the exhibit.

Drag and drop the variables from the left onto the item numbers on the right that match the missing assignments in the exhibit.

Refer to the exhibit.

Drag and drop the descriptors from the left onto the correct parts of the API request and response on the right.

Drag and drop the network automation interfaces from the left onto the transport protocols that they support on the right.

Which task is performed because the test-driven development approach is being used?
Fill in the blanks to complete the python script to retrieve a list of network devices using the Cisco DNA center API.

Refer to the exhibit.

What is the effect of this Ansible playbook on an IOS router?
A developer is writing an application that a REST API and the application requires a valid from the API which element of the response is used in the conditional check?
Drag and drop the capability on the left onto the Cisco compute management platform that supports the capability on the right.

A small company has 5 servers and 50 clients. What are two reasons an engineer should spilt this network into separate client and server subnets? (Choose two)
Which two descriptions can be given to an application that is interacting with a webhook? (Choose two.)
Refer to the exhibit.

Drag and Drop the code from the bottom onto the box where the code is missing on the Meraki Python script to create a new network

Fill in the blanks to complete the Bash script in which each file in a directory is renamed to Its SHA256 hash?

Which device is used to transport traffic from one broadcast domain to another broadcast domain?
Which two statements describe the advantages of using a version control system? (Choose two.)
Refer to the exhibit.

Fill in the blank to complete the query parameter and value so that the result set is returned in reverse chronological order (most recent first) based on when message were entered.

Drag and Drop the GIT commands from the left onto the right that add modified local files to a remote repository. Not all options are used

Fill in the blanks to complete the python script to request a service ticket using the APIC-EM rest API for the user “devnetuser”.

A developer is reviewing a code that was written by a colleague. It runs fine, but there are many lines of code to do a seemingly simple task repeatedly. Which action organizes the code?
Refer to the exhibit.


Drag and drop the code from the left onto the item numbers on the right to complete to Meraki python script shown in the exhibit.

Refer to the exhibit.

Which two statements about the network diagram are true? (Choose two.)
Refer to the exhibit.

The definition of the YANG module and a RESTCONF query sent to a Cisco IOc XE device is shown. Which statement is correct if the RESTCONF interface responds with a 204 status code?
When using the Bash shell, how it the output of the devnet command saved to a tile named “output.txt”?
A developer needs to prepare the file README.md in the working tree for the next commit operation using Git. Which command needs to be used to accomplish this?
Drag and drop elements of the RESTCONF protocol stack from the left onto the correct description on the right. Not all elements on the left are used.





































