350-601 · Question #196
Refer to the exhibit. An engineer created a VRF called "Sigtran" using Terraform resource "aci_vrf" identified by "Signaling" and the bridge domain called "App". Which argument reference must be…
The correct answer is C. aci_vrf.Sigtran.id. To map the 'App' bridge domain to the 'Sigtran' VRF using Terraform, the argument reference aci_vrf.Sigtran.id must be used to correctly identify the target VRF. This assumes the Terraform resource block for the 'Sigtran' VRF is also locally named 'Sigtran'.
Question
Refer to the exhibit. An engineer created a VRF called "Sigtran" using Terraform resource "aci_vrf" identified by "Signaling" and the bridge domain called "App". Which argument reference must be used to map the bridge domain to the "Sigtran" VRF?
Exhibit
Options
- Aaci_vrf.Signaling.id
- Baci_vrf.App.id
- Caci_vrf.Sigtran.id
- Daci_vrf.PROD.id
How the community answered
(16 responses)- A6% (1)
- B6% (1)
- C88% (14)
Why each option
To map the 'App' bridge domain to the 'Sigtran' VRF using Terraform, the argument reference `aci_vrf.Sigtran.id` must be used to correctly identify the target VRF. This assumes the Terraform resource block for the 'Sigtran' VRF is also locally named 'Sigtran'.
If the local Terraform resource name for the VRF 'Sigtran' was 'Signaling', then `aci_vrf.Signaling.id` would be correct; however, based on the provided answer, the resource's local name is implied to be 'Sigtran'.
'App' refers to the bridge domain, not the VRF, and cannot be used to reference the VRF's ID.
In Terraform, to reference an attribute of a resource, the syntax is `resource_type.resource_local_name.attribute`. If the `aci_vrf` resource creating the 'Sigtran' VRF was locally named 'Sigtran' in the Terraform configuration (e.g., `resource "aci_vrf" "Sigtran" { name = "Sigtran" ... }`), then `aci_vrf.Sigtran.id` is the correct reference to obtain its ID for mapping the bridge domain.
'PROD' is an unspecified identifier and is not related to the VRF 'Sigtran' mentioned in the question.
Concept tested: Terraform ACI resource referencing
Source: https://developer.hashicorp.com/terraform/language/expressions/references#resource-attributes
Topics
Community Discussion
No community discussion yet for this question.
