Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Terraform-Associate-004 Question # 45 Topic 5 Discussion

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Terraform-Associate-004 Question # 45 Topic 5 Discussion

Terraform-Associate-004 Exam Topic 5 Question 45 Discussion:
Question #: 45
Topic #: 5

The exhibit below shows part of a Terraform configuration you have been asked to update. The name of the Azure Virtual Network should be set to the name of the resource group followed by a dash and the word vnet.

Exhibit:

data " azurerm_resource_group " " example " {

name = var.resource_group_name

}

resource " azurerm_virtual_network " " example " {

name = ______________________

}

Which expression fulfills this requirement?


A.

" ${data.azurerm_resource_group.example.name}-vnet "


B.

concat(data.azurerm_resource_group.example.name, " - " , " vnet " )


C.

join( " - " , var.resource_group_name, " vnet " )


D.

" ${azurerm_resource_group.example.name}-vnet "


Get Premium Terraform-Associate-004 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.