200-901 · Question #621
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…
The correct answer is C. 'Authorization: f'Basic {token}'. 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…
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?
Exhibit
Options
- A'Authentication': f'Bearer {token}',
- B'Authentication': f'Basic {token}',
- C'Authorization: f'Basic {token}',
- D'Authorization: f'Bearer {token}',
How the community answered
(33 responses)- A6% (2)
- B15% (5)
- C70% (23)
- D9% (3)
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'.
Topics
Community Discussion
No community discussion yet for this question.
