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.
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
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)- A8% (3)
- B77% (30)
- C3% (1)
- D13% (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.
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.
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`.
This option uses `test_ap` as the application profile name, which does not match the provided existing application profile name `PROD_App`.
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
Community Discussion
No community discussion yet for this question.
