exam questions

Exam 350-601 All Questions

View all questions & answers for the 350-601 exam

Exam 350-601 topic 1 question 234 discussion

Actual exam question from Cisco's 350-601
Question #: 234
Topic #: 1
[All 350-601 Questions]

An engineer is using REST API calls to configure the Cisco APIC. Which data structure must be used within a POST message to receive a login token?

  • A. {"aaaUser":{"attributes":{"name":"apiuser","pwd":"cisco123"}}}
  • B. <aaaUser><name="apiuser"/><pwd="cisco123"/></aaaUser>
  • C. {aaaUser:{attributes:{name:apiuser,pwd:cisco123}}}
  • D. <aaaUser><name>apiuser</name><pwd>cisco123</pwd></aaaUser>
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
https://www.cisco.com/c/en/us/td/docs/switches/datacenter/aci/apic/sw/2-x/rest_cfg/2_1_x/b_Cisco_APIC_REST_API_Configuration_Guide/ b_Cisco_APIC_REST_API_Configuration_Guide_chapter_01.html

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
GuyThatTakesDumps
7 months, 4 weeks ago
A is correct!
upvoted 1 times
...
designated
1 year, 5 months ago
Selected Answer: A
A is correct { "aaaUser" : { "attributes" : { "name" : "georgewa", "pwd" : "paSSword1" } } }
upvoted 2 times
...
eddyedwards257
1 year, 6 months ago
It could be both Json and XML format
upvoted 1 times
...
Pakawat
1 year, 7 months ago
I should be A, as it is in correct JSON format. { "aaaUser" : { "attributes" : { "name" : "apiuser", "pwd" : "cisco123" } } }
upvoted 4 times
GG345
1 year, 7 months ago
https://www.cisco.com/c/en/us/td/docs/switches/datacenter/aci/apic/sw/2-x/rest_cfg/2_1_x/b_Cisco_APIC_REST_API_Configuration_Guide/b_Cisco_APIC_REST_API_Configuration_Guide_chapter_01.html
upvoted 1 times
...
...
unknowncode
1 year, 7 months ago
Answer should be B Authentication REST API username- and password-based authentication uses a special subset of request Universal Resource Identifiers (URIs), including aaaLogin, aaaLogout, and aaaRefresh as the DN targets of a POST operation. Their payloads contain a simple XML or JSON payload containing the MO representation of an aaaUser object with the attribute name and pwd defining the username and password: for example, <aaaUser name='admin' pwd='password'/>. The response to the POST operation will contain an authentication token as both a Set-Cookie header and an attribute to the aaaLogin object in the response named token, for which the XPath is /imdata/aaaLogin/@token if the encoding is XML. Subsequent operations on the REST API can use this token value as a cookie named APIC-cookie to authenticate future requests. https://www.cisco.com/c/en/us/td/docs/switches/datacenter/aci/apic/sw/2-x/rest_cfg/2_1_x/b_Cisco_APIC_REST_API_Configuration_Guide/b_Cisco_APIC_REST_API_Configuration_Guide_chapter_01.html
upvoted 1 times
poy4242
1 year, 6 months ago
B use node instead of attribute so xml structure is wrong.
upvoted 1 times
...
RTL_dude
1 year, 3 months ago
Only A is correct. The correct XML format is even in your explanation: <aaaUser name='admin' pwd='password'/> Also described here: https://www.cisco.com/c/en/us/td/docs/switches/datacenter/aci/apic/sw/1-x/api/rest/b_APIC_RESTful_API_User_Guide/performing_common_tasks.html#reference_9784F9F295D14677AF3BFB98287C3ED5
upvoted 2 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...