Which action fixes the code to access a child managed object?
A.
Delete line 2.
B.
Change dnQuery to classQuery in line 1.
C.
Move line 2 to the last line.
D.
Change parent to children in line 2.
The Answer Is:
C
This question includes an explanation.
Explanation:
The code snippet is intended to access a child managed object within Cisco’s ACI. The current placement of line 2 (dnQuery.subtree = 'parent') specifies that the query should look at the parent objects, not the children. To fix the code so that it accesses a child managed object, line 2 should be moved to after line 3, where tenantMo is defined. This change will ensure that the subtree of tenantMo is set to ‘parent’, which means that when defaultBDmo is called in line 4, it will correctly reference a child managed object under tenantMo. References :=
Cisco ACI documentation on Managed Objects
Cisco DevNet ACI Programmability Guide
300-635 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 60% Discount on All Products,
Use Coupon: "8w52ceb345"