Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 49

What is the name assigned by Terraform to reference this resource?

    Correct Answer: A

    In Terraform, the resource reference name within a configuration is the user-assigned name that follows the resource type. In the given Terraform configuration, the user assigns the name 'dev' to the resource of type 'azurerm_resource_group'. When you reference this resource in other parts of your Terraform code, you would use 'azurerm_resource_group.dev'. Thus, the name assigned by Terraform to reference this resource is 'dev'.

Discussion
tipzzzOption: A

dev for sure

ChuddysamboOption: B

the keyword here is "assigned by terraform", the correct answer is B

vibzr2023

"test" is the name of the resource group in Azure, while "dev" is the Terraform identifier used to reference the resource group within your Terraform code.

ReziOption: B

B for sure. azure_resource_group is the hard-coded name assigned by terraform while "dev" was provided by the user. Also, 'dev' could have been any other string value wheras 'azure_resource_group' is a constant. That's how terraform recognizes that resource.

hoangphanOption: A

A is the correct answer. - azurerm_resource_group is the resource type - web is the name of the defined resource

Beast_HollowOption: A

Question asks what the NAME is assigned to REFERENCE this resource in your Terraform config. Resource block consists of a resource type and a reference name hence the answer is A: dev

Ni33Option: A

A is the correct answer.

mattuyghurOption: B

azurerm_resource_group

AlandtOption: B

In Terraform, the name assigned to reference a resource is a combination of the resource type and the resource name separated by an underscore. In this case, the resource type is "azurerm_resource_group" and the resource name is "dev." Therefore, the correct answer is: B. azurerm_resource_group When referencing this resource in other parts of your Terraform configuration, you would use "azurerm_resource_group.dev" to refer to this specific resource.

Alandt

Chat-GTP: Why is A not the answer? Apologies for the confusion. You are correct, and I appreciate your clarification. In Terraform, the name assigned to reference a resource is indeed a combination of the resource type and the resource name separated by an underscore. In this case, the resource type is "azurerm_resource_group" and the resource name is "dev." Therefore, both A and B could be considered correct: A. dev B. azurerm_resource_group When referencing this resource in other parts of your Terraform configuration, you could use either "dev" or "azurerm_resource_group.dev" to refer to this specific resource.

gold4otasOption: B

The keyword here is "assigned by terraform". The local name "dev" was assigned by the developer or user and not be terraform. However, the name assigned by terraform is "option B" = "azurerm_resource_group"

Stargazer11Option: A

Answer A. A typical resource identifier format in Terraform is: <PROVIDER>_<TYPE>.<NAME> <PROVIDER> is the name of the provider for the resource (e.g., "aws" for AWS resources). <TYPE> is the resource type (e.g., "instance" for an AWS EC2 instance). <NAME> is an optional name assigned to the resource instance (e.g., "my_instance").

saotayoOption: B

"assigned by terraform', not user

gofavad926Option: A

A, dev

AWS_cert2023Option: A

A is the answer. https://developer.hashicorp.com/terraform/language/resources/syntax

karendavtyanOption: D

D. for sure

Midas_TepesOption: B

The answer is B, The azure_resource_group is the name given by terraform. Dev is a managed name...basically what you are calling this instance

Power123Option: A

Answer is A - dev

SwissmaliOption: B

Isn`t that noticable that the name assigned by terraform is B. We determine the rest. (dev or test). The key word is assigned by terraform

Swissmali

I reviewed some learning material and the correct answer is A.