200-901 · Question #621
200-901 Question #621: Real Exam Question with Answer & Explanation
The correct answer is C: 'Authorization: f'Basic {token}',. {"question_number": 3, "correct_answer": "C", "explanation": "When authenticating with the Cisco Webex REST API, the correct HTTP header key is 'Authorization' - not 'Authentication'. The 'Authorization' header is the standard HTTP header defined in RFC 7235 for sending credentia
Question
Refer to the exhibit. A developer needs to create a webhook to send all Cisco Webex messages to a third-party tool by using the Cisco Webex API The developer must authenticate with the API before any API calls can be made. To automate the procedure, a Python script is used. Which code snippet must be placed onto the blank in the code?
Options
- A'Authentication': f'Bearer {token}',
- B'Authentication': f'Basic {token}',
- C'Authorization: f'Basic {token}',
- D'Authorization: f'Bearer {token}',
Explanation
{"question_number": 3, "correct_answer": "C", "explanation": "When authenticating with the Cisco Webex REST API, the correct HTTP header key is 'Authorization' - not 'Authentication'. The 'Authorization' header is the standard HTTP header defined in RFC 7235 for sending credentials to a server. Choices A and B both use the non-standard key 'Authentication', which the API will not recognize. Choice D also uses 'Authorization' but note that the Cisco Webex API uses Bearer token authentication (OAuth 2.0), meaning the full correct value should be f'Bearer {token}'. In exam context, the primary distinction being tested is using the correct header name 'Authorization' versus the incorrect 'Authentication'.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.