Exam 200-901 Question id=6262 Infrastructure and Automation

Refer to the exhibit.

curl -i -k -X "GET" "https"://172.18.110.64:443/ restconf/data/Cisco-IOS-XE-native:native/hostname" \ -H ‘Accept: application/yang-data+json’ \ -u ‘cisco:cisco’

q137

An administrator attempts to perform a GET using the Cisco IOS XE RESTCONF API to return the hostname of a device. The sequence diagram illustrates the HTTP messages observed. Which change to the API request resolves the issue?

A. Remove the -H ‘Accept: application/yang-data+json’ HTTP header because it is not required.
B. Use -u cisco:cisco instead of -u ‘cisco:cisco’
C. Change the request method from -X “GET” to -X “POST”
D. Add Content-Type HTTP header with ‘application/yang-data+json’ using -H ‘Content-Type: application/yang-data+json’

WARNING

the answers are mixed, do not specify in the comment number or the letter of the answer
please write answer#A instead A, answer#B instead B...
Subject:

only logged users can write comments