Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 49 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 49
Topic #: 1
[All Terraform Associate Questions]

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

  • A. dev
  • B. azurerm_resource_group
  • C. azurerm
  • D. test
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
tipzzz
Highly Voted 2 years, 7 months ago
Selected Answer: A
dev for sure
upvoted 15 times
...
Chuddysambo
Highly Voted 1 year, 5 months ago
the keyword here is "assigned by terraform", the correct answer is B
upvoted 13 times
vibzr2023
8 months ago
"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.
upvoted 7 times
...
...
mattuyghur
Most Recent 9 months, 3 weeks ago
azurerm_resource_group
upvoted 1 times
...
hoangphan
9 months, 3 weeks ago
Selected Answer: A
A is the correct answer. - azurerm_resource_group is the resource type - web is the name of the defined resource
upvoted 4 times
...
Alandt
10 months ago
Selected Answer: 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.
upvoted 1 times
Alandt
10 months ago
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.
upvoted 1 times
...
...
gold4otas
11 months ago
Selected Answer: 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"
upvoted 1 times
...
Stargazer11
1 year ago
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").
upvoted 1 times
...
saotayo
1 year ago
Selected Answer: B
"assigned by terraform', not user
upvoted 1 times
...
gofavad926
1 year, 1 month ago
Selected Answer: A
A, dev
upvoted 1 times
...
AWS_cert2023
1 year, 5 months ago
A is the answer. https://developer.hashicorp.com/terraform/language/resources/syntax
upvoted 1 times
...
Beast_Hollow
1 year, 5 months ago
Selected Answer: 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
upvoted 3 times
...
Ni33
1 year, 6 months ago
Selected Answer: A
A is the correct answer.
upvoted 2 times
...
karendavtyan
1 year, 6 months ago
Selected Answer: D
D. for sure
upvoted 1 times
...
Rezi
1 year, 7 months ago
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.
upvoted 4 times
...
Midas_Tepes
1 year, 7 months ago
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
upvoted 1 times
...
Power123
1 year, 7 months ago
Answer is A - dev
upvoted 1 times
...
Swissmali
1 year, 8 months ago
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
upvoted 1 times
Swissmali
1 year, 8 months ago
I reviewed some learning material and the correct answer is A.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...