nerdexam
Cisco

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'.

Automation

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

350-601 question #196 exhibit

Options

  • Aaci_vrf.Signaling.id
  • Baci_vrf.App.id
  • Caci_vrf.Sigtran.id
  • Daci_vrf.PROD.id

How the community answered

(16 responses)
  • A
    6% (1)
  • B
    6% (1)
  • C
    88% (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'.

Aaci_vrf.Signaling.id

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'.

Baci_vrf.App.id

'App' refers to the bridge domain, not the VRF, and cannot be used to reference the VRF's ID.

Caci_vrf.Sigtran.idCorrect

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.

Daci_vrf.PROD.id

'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

#Terraform#Cisco ACI#VRF#Resource Referencing

Community Discussion

No community discussion yet for this question.

Full 350-601 Practice