Pass the Cisco Cisco Certified DevNet Professional 350-901 Questions and answers with CertsForce

Viewing page 2 out of 11 pages
Viewing questions 11-20 out of questions
Questions # 11:

Refer to the exhibit.

Question # 11

An Intersight API is being used to query RackUnit resources that have a tag keyword set to “Site”. What is the expected output of this command?

Options:

A.

list of all resources that have a tag with the keyword “Site”


B.

error message because the Value field was not specified


C.

error message because the tag filter should be lowercase


D.

list of all sites that contain RackUnit tagged compute resources


Expert Solution
Questions # 12:

An engineer needs to configure an interface named GigabitEthernet3 with an IP address on several RESTCONF-enabled Cisco IOS XE devices. Which code snippet must be placed in the blank in the code to meet this requirement?

Options:

A.

(item["name"])'


B.

(item["name"])/ip/addres3


C.

item["name"]:/ip/address/primary'


D.

(ltemt"name"]} /ip


Expert Solution
Questions # 13:

Refer to the exhibit.

Question # 13

A network engineer needs to handle API errors in their requests when users do not have permission to access the resource, even if they are authenticated and authorized. Which line of code needs to be placed on the snippet where the code is missing to handle these API errors?

Options:

A.

if r.status_code == 403


B.

il if r.raise for status() == 403


C.

if r.raise for_status() = 401


D.

if r.status_code = 401


Expert Solution
Questions # 14:

Which two statements describe advantages of static code analysis over unit tests? (Choose two.)

Options:

A.

It checks for potential tainted data where input is not checked.


B.

It enforces proper coding standards and style.


C.

It performs a quick analysis of whether tests will pass or fail when run.


D.

It checks for race conditions in threaded applications.


E.

It estimates the performance of the code when run.


Expert Solution
Questions # 15:

Drag and drop the code snippets from the bottom onto the boxes where the code is missing to deploy three Cisco UCS servers each from a different template Not all options ate used.

Question # 15


Expert Solution
Questions # 16:

Drag and drop the code from the bottom onto the box where the code is missing in the Python script to display the error message to the user. The script uses Python to connect to Cisco DNA Center and provides details if the connection fails. Not all options are used.

Question # 16


Expert Solution
Questions # 17:

A developer has just completed the configuration of an API that connects sensitive internal systems. Based on company policies, the security of the data is a high priority.

Which approach must be taken to secure API keys and passwords?

Options:

A.

Embed them directly in the code.


B.

Store them in a hidden file.


C.

Store them inside the source tree of the application.


D.

Change them periodically.


Expert Solution
Questions # 18:

Drag and drop the code from the bottom onto the box where the code is missing to delete a host object by using the Cisco Firepower Device Manager API Not all options are used.

Question # 18


Expert Solution
Questions # 19:

Refer to the exhibit.

Question # 19

An application has been created to serve a whole enterprise. Based on use and department requirements, changes are requested on a quarterly basis. When evaluating the application design, which two actions improve code maintainability?

Options:

A.

Replace the requests library with the http client library in the code.


B.

Place all import statements on a single line at the top of the code.


C.

Cache responses to API calls for later reuse on other code.


D.

Parameterize similar code blocks inside functions and reuse within the code.


E.

Add comments in appropriate locations to aid in understanding the code.


Expert Solution
Questions # 20:

{'lat': 37.4180951010362, 'lng': -122.098531723022, 'address': '', 'serial': 'Q2HP-F5K5-F98Q',

'mac': '88:15:44:ea:f5:bf', 'lanIp': '10.10.10.15',

'url': 'https://n149.meraki.com/DevNet-Sandbox/n/EFZDavc/manage/nodes/new_list/78214561218351',

'model': 'MS220-8P', 'switchProfileId': None, 'firmware': 'switch-11-31', 'floorPlanId': None}

Refer to the exhibit. A developer needs to find the geographical coordinates of a device on the network L_397561557481105433 using a Python script to query the Meraki API. After running response = requests.get() against the Meraki API, the value of response.text is shown in the exhibit.

What Python code is needed to retrieve the longitude and latitude coordinates of the device?

Options:

A.

latitude = response.text['lat']

longitude = response.text['lng']


B.

latitude = response.json()['lat']

longitude = response.json()['lng']


C.

latitude = response.json()[0]

longitude = response.json()[1]


D.

latitude = response.text[0]

longitude = response.text[1]


Expert Solution
Viewing page 2 out of 11 pages
Viewing questions 11-20 out of questions