exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 377 discussion

Actual exam question from Cisco's 200-901
Question #: 377
Topic #: 1
[All 200-901 Questions]



Refer to the exhibit. An engineer prepares a script to automate workflow by using Cisco DNA Center APIs to display:
• total count of devices
• list of the network devices
• information of one device with a hostname filter

What is displayed in the final step after the Python script is executed?

  • A. information about a device of type C9500-40x.
  • B. filtered results by the hostname and the platformld C9500-40X
  • C. information about the test devices
  • D. list of devices with platformId C9500-40x
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
outrageous7
Highly Voted 1 year, 10 months ago
isn't it A since it doesn't specify hostname in the step before?
upvoted 10 times
...
Woonesuf
Highly Voted 1 year, 8 months ago
I agree. Answer 'A'. Hostname is specified in the other step. A list of devices is generated during the request, but "response[0]" indicates only return information about the first result.
upvoted 6 times
...
Ghneuma
Most Recent 10 months, 3 weeks ago
Selected Answer: A
The function devices_test() is called in line 31. The function returns the object response.json()['response'] which is a list of dictionaries. Each dictionary represents a device managed by DNAC. The function devices_info(headers, response[0]['id'])) in line 32 retrieves device info for the first device in the list of devices managed by DNAC.
upvoted 2 times
...
act111
1 year, 5 months ago
But the question is about "final step". And in the final step a list of devices from C9500-40x platform is displayed. So it's D.
upvoted 2 times
daniii89
3 months ago
Nop... The first device ID from this response is extracted and used to call devices_info(headers, response[0]['id']).
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago