nerdexam
Cisco

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…

Cisco Platforms and Development

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

200-901 question #621 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)
  • A
    6% (2)
  • B
    15% (5)
  • C
    70% (23)
  • D
    9% (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

#Webex API#API Authentication#HTTP Authorization Header#Python Scripting

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice