Devnet Exam Questions And Answers Graded A+
A company has written a script that creates a log bundle from the Cisco DNA Center every day. The script runs without error and the log bundles are produced. However, when the script is run during business hours, people report poor voice quality of phone calls. What explains this behavior? - The app is running in the Voice VLAN and this causes delay and jitter. 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? - Convert repeated lines to functions A developer is writing an application that uses a REST API and the application requires a valid response from the API. Which element of the response is used in the conditional check? - Status Code An automation script fails to connect to an internal server exactly 1 out of 2 times it is executed. This behavior is seen from different clients. Which networking device must be at fault? - Load Balancer Before which process is code review performed when version control is used? A. checkout of code B. merge of code C. committing code D. branching code - Merge of code docker run -p 3000:5000 f877 A process on the host wants to access the service running inside this Docker container. Which port is used to make a connection? - 3000 (the first argument in the -p parameter) 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 messages were entered.HTTP GET /v1/rooms______________ - HTTP GET /v1/rooms?sortBy=lastactivity Fill in the blanks to complete the cURL command that invokes a RESTful API to retrieve a resource in JSON format using OA -X ____________ -H " __________: application/json" -H " _______: Bearer AbCdEf123456″ - Get Accept Authorization Fill in the blanks to complete the Python script to request a service ticket using the APIC-EM REST API for the user "devnetuser". import requests import json controller = ' url = "https://" + controller + "api/va/ticket" payload = {'username': '_________________', 'password': ''} header = {'Content-type': ''} response = _______________________.post(url, data=(payload), headers= ______________________, verify=False) r_json = () print (r_json) ticket = r_json["response"]["serviceTicket"] print(ticket) - devnetuser requests header Fill in the blanks to complete the Python script to retrieve a list of network devices using the Cisco DNA Center API.my_token= xxyyzzy' import requests url = "https://myDNAserver/dna/intent/api/v1/networkdevice" payload = {} headers = {'x-auth-token': my_token} } response = st(_______________________ , url, headers = _________________________, data = _______________________ ) print(e('utf8')) - The params look like: ("GET", url, headers = headers, data = payload) Fill in the blanks to complete the statement. Cisco DNA Center provides the capability to send an HTTP _______________ request to the API endpoint https://DNA-C_API_ADDRESS/api/v1/ network-device/and receive the network _______________ list in _______________ format. - GET devices JSON Fill in the blanks to complete the statement. Given a username of "devnet" and a password of "cisco123", applications must create a base64 encoding of the string "________________" when sending HTTP requests to an API that uses _______________ authentication. - "devnet:cisco123" Basic In DNS, which record specifies an alias that refers to another name that ultimately resolves to an IP address? A. CNAME B. NS C. AAA D. SOA - A. CNAME
Written for
- Institution
- Devnet
- Course
- Devnet
Document information
- Uploaded on
- July 14, 2024
- Number of pages
- 12
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
Also available in package deal