300-635 · Question #19
Which Python snippets create an application policy named OrderProcess that contains two application endpoint groups under Tenant SuperEats using direct calls to the ACI REST API? Assume that…
The correct answer is A. ```python OPERATION = 'api/node/mo/uni.json' DATA = { "fvTenant": {"attributes": {"name": "SuperEats"}, "children": [{"fvAP": {"attributes": {"name": "OrderProcess"}, "children": [ {"fvAEPg": {"attributes": {"name": "app"}}}, {"fvAEPg": {"attributes": {"name": "web"}}} ]}}]}} RESPONSE = requests.post(APIC+OPERATION, json=DATA, cookies=COOKIE) ```. Option A correctly constructs the ACI managed object (MO) hierarchy using the REST API endpoint api/node/mo/uni.json, which targets the root of the MIT (Management Information Tree). The JSON payload follows the required nested structure: fvTenant (Tenant: SuperEats) → fvAP…
Question
Options
- A
OPERATION = 'api/node/mo/uni.json' DATA = { "fvTenant": {"attributes": {"name": "SuperEats"}, "children": [{"fvAP": {"attributes": {"name": "OrderProcess"}, "children": [ {"fvAEPg": {"attributes": {"name": "app"}}}, {"fvAEPg": {"attributes": {"name": "web"}}} ]}}]}} RESPONSE = requests.post(APIC+OPERATION, json=DATA, cookies=COOKIE) - B
- C
- D
How the community answered
(40 responses)- A80% (32)
- B8% (3)
- C3% (1)
- D10% (4)
Explanation
Option A correctly constructs the ACI managed object (MO) hierarchy using the REST API endpoint api/node/mo/uni.json, which targets the root of the MIT (Management Information Tree). The JSON payload follows the required nested structure: fvTenant (Tenant: SuperEats) → fvAP (Application Profile: OrderProcess) → two fvAEPg children ("app" and "web"), matching how ACI models application policy membership. The requests.post() call correctly submits this payload with the session cookie for authentication.
The distractors (B, C, D) are not shown in full here, but common mistakes in such questions include using the wrong API path (e.g., targeting a specific DN that skips the parent tenant), incorrect nesting of the JSON children (e.g., placing fvAEPg directly under fvTenant instead of under fvAP), or using requests.get() instead of requests.post() - which cannot create objects.
Memory tip: Think of the ACI hierarchy as a family tree - Tenant → Application Profile → AEPg - and remember the class names: fvTenant, fvAP, fvAEPg. The uni.json endpoint is your universal entry point; always POST to create.
Topics
Community Discussion
No community discussion yet for this question.