CiscoCisco
200-901 · Question #204
200-901 Question #204: Real Exam Question with Answer & Explanation
Sign in or unlock 200-901 to reveal the answer and full explanation for question #204. The question stem and answer options stay visible for context.
Understanding and Using APIs
Question
A developer is creating a script to interact with a REST API service which requires basic authentication. The credentials are "devnet:391665405" and the Base64 encoding of the credentials is "GV2bmV0dXNlcjpDaXNj=". Which payload and header combination must be used for authentication? A. B. C. D.
Options
- Apayload = { } headers= { 'Authorization' : 'Basic GV2bmV0dXNlcjpDaXNj=', 'Content-Type' : 'application/json' }
- Bpayload = { } headers= { 'Authorization' : 'Basic GV2bmV0dXNlcjpDaXNj=', 'Content-Type' : 'application/json' }
- Cpayload = { } headers= { 'Authorization' : 'Bearer GV2bmV0dXNlcjpDaXNj=', 'Content-Type' : 'application/json' }
- Dpayload = { } headers= { 'Authorization' : 'Bearer GV2bmV0dXNlcjpDaXNj=', 'Content-Type' : 'application/json' }
Unlock 200-901 to see the answer
You've previewed enough free 200-901 questions. Unlock 200-901 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#REST API#Basic Authentication#HTTP Headers#API Authentication