nerdexam
Cisco

350-601 · Question #502

Refer to the exhibit. These Cisco ACI objects already have been created: - Bridge domain: Test_Telco - Application profile: PROD_App - Tenant: PROD Which value for application_profile_dn on line 2…

The correct answer is B. aci_application_profile.PROD_App.id. To automate the creation of an EPG within a specific Application Profile using Terraform, the application_profile_dn must correctly reference the ID of the parent Application Profile resource.

Automation

Question

Refer to the exhibit. These Cisco ACI objects already have been created:

  • Bridge domain: Test_Telco
  • Application profile: PROD_App
  • Tenant: PROD

Which value for application_profile_dn on line 2 must be used to automate the creation of EPG Red_Test_VM using Terraform?

Exhibit

350-601 question #502 exhibit

Options

  • Aaci_application_profile.PROD_App.Red_Test_VM.id
  • Baci_application_profile.PROD_App.id
  • Caci_application_profile.test_ap.id
  • Daci_application_profile.PROD.test_ap.Red_Test_VM.id

How the community answered

(39 responses)
  • A
    8% (3)
  • B
    77% (30)
  • C
    3% (1)
  • D
    13% (5)

Why each option

To automate the creation of an EPG within a specific Application Profile using Terraform, the `application_profile_dn` must correctly reference the ID of the parent Application Profile resource.

Aaci_application_profile.PROD_App.Red_Test_VM.id

This option attempts to include the EPG name `Red_Test_VM` within the application profile's ID reference, which is incorrect as the EPG is a child object and not part of the parent profile's own ID.

Baci_application_profile.PROD_App.idCorrect

In Terraform for Cisco ACI, the `application_profile_dn` attribute for an EPG resource expects the Distinguished Name (DN) of its parent Application Profile. The correct way to reference the ID (which corresponds to the DN) of an already defined `aci_application_profile` Terraform resource named `PROD_App` is `aci_application_profile.PROD_App.id`.

Caci_application_profile.test_ap.id

This option uses `test_ap` as the application profile name, which does not match the provided existing application profile name `PROD_App`.

Daci_application_profile.PROD.test_ap.Red_Test_VM.id

This path incorrectly includes the tenant `PROD` and an incorrect application profile name `test_ap` along with an EPG, which does not conform to the standard Terraform ACI resource referencing structure for an application profile's ID.

Concept tested: Terraform ACI resource referencing (Application Profile DN)

Source: https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/aci_epg

Topics

#Cisco ACI#Terraform#Automation#EPG

Community Discussion

No community discussion yet for this question.

Full 350-601 Practice