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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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 ago
Selected Answer: A
dev for sure
upvoted 12 times
...
Chuddysambo
Highly Voted 10 months, 2 weeks ago
the keyword here is "assigned by terraform", the correct answer is B
upvoted 9 times
vibzr2023
4 weeks 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 3 times
...
...
mattuyghur
Most Recent 2 months, 3 weeks ago
azurerm_resource_group
upvoted 1 times
...
hoangphan
2 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 2 times
...
Alandt
3 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
3 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
3 months, 4 weeks 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
5 months, 3 weeks 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
5 months, 3 weeks ago
Selected Answer: B
"assigned by terraform', not user
upvoted 1 times
...
gofavad926
6 months, 4 weeks ago
Selected Answer: A
A, dev
upvoted 1 times
...
AWS_cert2023
10 months, 3 weeks ago
A is the answer. https://developer.hashicorp.com/terraform/language/resources/syntax
upvoted 1 times
...
Beast_Hollow
10 months, 3 weeks 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
11 months, 3 weeks ago
Selected Answer: A
A is the correct answer.
upvoted 2 times
...
karendavtyan
11 months, 3 weeks ago
Selected Answer: D
D. for sure
upvoted 1 times
...
Rezi
1 year 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 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 ago
Answer is A - dev
upvoted 1 times
...
Swissmali
1 year, 1 month 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, 1 month 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 ...