exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 292 discussion

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



Refer to the exhibit. Which line of code needs to be placed on the snippet where the code is missing to provide API rate-limiting to the requests?

  • A. int(self.response.headers.post('Retry-After'))
  • B. int(self.response.headers.get('Retry-After'))
  • C. int(response.headers.post('Retry-After'))
  • D. int(response.headers.get('Retry-After'))
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
hatsec
Highly Voted 1 year, 4 months ago
Should be B because self is used in if -> it's inside a class
upvoted 11 times
lznlxl
1 year, 4 months ago
agree with B
upvoted 1 times
...
...
johntermlen
Most Recent 9 months, 4 weeks ago
Selected Answer: B
retry_after = int(self.response.headers.get('Retry-After'))
upvoted 1 times
...
johntermlen
9 months, 4 weeks ago
retry_after = int(self.response.headers.get('Retry-After'))
upvoted 1 times
...
[Removed]
1 year, 4 months ago
Selected Answer: B
B is correct.
upvoted 4 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