nerdexam
Cisco

300-535 · Question #118

Refer to the exhibit. An engineer must retrieve a list of service instances for a service called svi_verify_example in the environment using NSO RESTCONF with the Base64-encoded string…

The correct answer is D. 'Authorization': 'Basic T0S6B0UWa9jmT6QjPk7Nfcn5ZpY2VzY1DH6GRP='. The correct HTTP header for sending a Base64-encoded authentication string for RESTCONF is 'Authorization': 'Basic <Base64-encoded-string>'.

Automation APIs and Protocols

Question

Refer to the exhibit. An engineer must retrieve a list of service instances for a service called svi_verify_example in the environment using NSO RESTCONF with the Base64-encoded string T0S6B0UWa9jmT6QjPk7Nfcn5ZpY2VzY1DH6GRP=. Which line of code must be added to the box where the code is missing to complete the Python request?

Options

  • A'x-token': 'T0S6B0UWa9jmT6QjPk7Nfcn5ZpY2VzY1DH6GRP='
  • B'x-token': 'Basic T0S6B0UWa9jmT6QjPk7Nfcn5ZpY2VzY1DH6GR='
  • C'Authorization': 'Bearer T0S6B0UWa9jmT6QjPk7Nfcn5ZpY2VzY1 DH6GRP='
  • D'Authorization': 'Basic T0S6B0UWa9jmT6QjPk7Nfcn5ZpY2VzY1DH6GRP='

How the community answered

(30 responses)
  • A
    10% (3)
  • B
    3% (1)
  • C
    7% (2)
  • D
    80% (24)

Explanation

The correct HTTP header for sending a Base64-encoded authentication string for RESTCONF is 'Authorization': 'Basic <Base64-encoded-string>'.

Topics

#NSO RESTCONF#Basic authentication#Base64#Python requests

Community Discussion

No community discussion yet for this question.

Full 300-535 Practice