nerdexam
Cisco

300-635 · Question #65

Refer to the exhibit. What does the provided Python script print?

The correct answer is B. It prints out the distinguished name of all application profiles. Option B is correct because the script queries the ACI fvAp managed object class (which represents application profiles) and prints the dn (distinguished name) attribute for each result - the DN is the full hierarchical path, such as uni/tn-Heroes/ap-Save_The_World_App. Why the…

Cisco Application Centric Infrastructure

Question

Refer to the exhibit. What does the provided Python script print?

Options

  • AIt prints out the relative name of all application profiles.
  • BIt prints out the distinguished name of all application profiles.
  • CIt prints out the distinguished name of all tenants.
  • DIt prints out the relative name of all tenants.

How the community answered

(26 responses)
  • B
    96% (25)
  • C
    4% (1)

Explanation

Option B is correct because the script queries the ACI fvAp managed object class (which represents application profiles) and prints the dn (distinguished name) attribute for each result - the DN is the full hierarchical path, such as uni/tn-Heroes/ap-Save_The_World_App.

Why the distractors are wrong:

  • A is wrong because printing a relative name would require accessing the name attribute, not dn. The RN would only be something like ap-Save_The_World_App.
  • C is wrong because tenants use the fvTenant class; the script targets fvAp, which is the application profile class.
  • D is wrong for both reasons combined - wrong object class (fvTenant) and wrong attribute (name vs dn).

Memory tip: In Cisco ACI, remember DN = full path, RN = last segment only, and class names reveal the object type - fvTenant = tenant, fvAp = application profile, fvBD = bridge domain. If the script says fvAp + dn, it's full-path app profiles, which is answer B.

Topics

#Python scripting#ACI object queries#Distinguished Names#Application Profiles

Community Discussion

No community discussion yet for this question.

Full 300-635 Practice