exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 126 discussion

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

DRAG DROP -

Refer to the exhibit. Drag and drop the parts of the Python code from the left onto the item numbers on the right that match the missing sections in the exhibit that consumes REST API pagination.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:

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
FR99
Highly Voted 2 years, 9 months ago
Agree with the answer: 1. response.status_code 2. response.headers.get('Link') 3. response.links['next']['url']
upvoted 35 times
...
Bloody_sausage
Highly Voted 2 years, 6 months ago
FR99 is correct. The correct URL from next page can be retrieved by using response.links['next']['url']. The use of response.headers.get('Link') could be easily replaced by an infinite loop like 'while True:' and it would be the same. They're just testing our knowledge here. The trick here is that once we reach the last page, response.links['next']['url'] within the 'try' context will fail and we'll move to the 'except' clause and the program will exit.
upvoted 7 times
kayleen
2 years, 5 months ago
That's true but it really should be response.links.get('next') which checks if there is a next link.
upvoted 4 times
...
...
Teringzooi
Most Recent 7 months, 3 weeks ago
Answer is correct: 1. response.status_code 2. response.headers.get('Link') 3. response.links['next']['url']
upvoted 1 times
...
designated
8 months, 2 weeks ago
Correct: 1. response.status_code 2. response.headers.get('Link') 3. response.links['next']['url']
upvoted 2 times
...
CertifiedGoogler
2 years, 7 months ago
I agree with FR99
upvoted 3 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