exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 467 discussion

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



Refer to the exhibit. A developer creates a Python script to query a REST API by using an HTTP GET request. The remote server will authorize the request only if it includes HTTP Basic Auth parameters. The username is admin and the password is devnet123. Which line of code needs to be placed on the snippet where the code is missing?

  • A.
  • B.
  • C.
  • D.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
StewartJ
3 months, 3 weeks ago
Selected Answer: C
confirmed via documentation C
upvoted 1 times
...
kymoni
7 months ago
Selected Answer: A
Option C has a typo, as there has to be a comma between username and password. Option A is correct too, it's a short version of HTTPBasicAuth. https://requests.readthedocs.io/en/latest/user/authentication/
upvoted 3 times
...
kymoni
7 months ago
Selected Answer: C
We're importing the whole "requests" library, therefore we can use HTTPBasicAuth
upvoted 1 times
daniii89
3 months, 1 week ago
its not : its , so A correct
upvoted 1 times
...
...
peterbuza
11 months ago
Selected Answer: A
HTTPBasicAuth can be used once the it is imported: from requests.auth import HTTPBasicAuth In the other case A is working
upvoted 4 times
...
LukeJones
11 months, 1 week ago
C - needs base62 encoding
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