300-635 · Question #37
Refer to the exhibit. Which two statements are true about this API GET request to the ACI APIC?
The correct answer is D. The API call reads information from an object class. E. The API response is encoded in XML. Options D and E are correct because the exhibit's URL uses the /api/class/ path (not /api/mo/), which means the call queries an object class - retrieving all instances of that class rather than a specific managed object. The URL also ends with .xml, which explicitly tells the…
Question
Options
- AThe API call creates a new 10G interface in the APIC.
- BThe API call reads information from a managed object.
- CThe API response is encoded in JSON.
- DThe API call reads information from an object class.
- EThe API response is encoded in XML.
How the community answered
(19 responses)- A16% (3)
- B5% (1)
- C5% (1)
- D74% (14)
Explanation
Options D and E are correct because the exhibit's URL uses the /api/class/ path (not /api/mo/), which means the call queries an object class - retrieving all instances of that class rather than a specific managed object. The URL also ends with .xml, which explicitly tells the APIC to encode the response in XML, not JSON.
Why the distractors are wrong:
- A is wrong because GET requests only read data; creating objects requires a POST or PUT.
- B is wrong because a managed object (MO) query uses the
/api/mo/<DN>path, targeting a specific object by its Distinguished Name - the exhibit uses/api/class/instead. - C is wrong because the
.xmlextension in the URL dictates XML encoding; you would need.jsonin the URL to get a JSON response.
Memory tip: Use the URL as your decoder ring - /api/mo/ = specific Managed Object (B), /api/class/ = entire object class (D); and the file extension (.xml vs .json) tells you the response format directly.
Topics
Community Discussion
No community discussion yet for this question.