nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #191

What is the provider for the resource shown in the Exhibit? resource "aws_vpc" "main" { name = "test" }

The correct answer is D. aws. Terraform resource type names follow the convention '<provider>_<resource_type>'. In 'aws_vpc', everything before the first underscore is the provider name - 'aws'. The portion after the first underscore ('vpc') identifies the specific resource type within that provider. The labe

Submitted by asante_acc· Apr 18, 2026Understand Terraform Providers

Question

What is the provider for the resource shown in the Exhibit? resource "aws_vpc" "main" { name = "test" }

Options

  • AVPC
  • Btest
  • Cmain
  • Daws

How the community answered

(44 responses)
  • B
    5% (2)
  • C
    2% (1)
  • D
    93% (41)

Explanation

Terraform resource type names follow the convention '<provider>_<resource_type>'. In 'aws_vpc', everything before the first underscore is the provider name - 'aws'. The portion after the first underscore ('vpc') identifies the specific resource type within that provider. The label 'main' is the local resource name used to reference this resource elsewhere in configuration. 'test' is just a tag value. Therefore, the provider is 'aws'.

Topics

#Terraform resource syntax#Providers#Resource block structure

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice