Exam Terraform-Associate-004 Topic 1 Question 14 Discussion
Actual exam question for HashiCorp's Terraform-Associate-004 exam
Question #: 14
Topic #: 1
Question #: 14
Topic #: 1
A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of the resource block?
Suggested Answer: D Vote an answer
In Terraform, theresource nameis the second argument in the resource block.
The structure of a resource block is:
resource "provider_resource_type" "resource_name" {
# Configuration settings
}
Here, the provider type isgoogle_compute_instance, and theresource nameis "main".
The name "test" is simply the value assigned to the name attribute, which is unrelated to the Terraform resource name.
"google" and "compute_instance" are part of the provider and resource type, not the resource name.
Official Terraform Documentation Reference:
Terraform Resource Documentation
The structure of a resource block is:
resource "provider_resource_type" "resource_name" {
# Configuration settings
}
Here, the provider type isgoogle_compute_instance, and theresource nameis "main".
The name "test" is simply the value assigned to the name attribute, which is unrelated to the Terraform resource name.
"google" and "compute_instance" are part of the provider and resource type, not the resource name.
Official Terraform Documentation Reference:
Terraform Resource Documentation
by Hunter at Jun 02, 2026, 12:18 AM
0
0
0
10
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).