exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 13 discussion

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

What is the provider for this fictitious resource?

  • A. vpc
  • B. main
  • C. aws
  • D. test
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
softarts
Highly Voted 2 years, 7 months ago
C (aws)
upvoted 12 times
...
Nunyabiznes
Highly Voted 3 months ago
In Terraform, a provider is responsible for managing resources of a particular type or a specific cloud service. In the given example, the resource type is aws_vpc which belongs to the AWS cloud platform, so the provider is specified as aws. Therefore, the correct code snippet with the provider block would be: provider "aws" { region = "us-west-2" } resource "aws_vpc" "main" { name = "test" }
upvoted 9 times
...
gargaditya
Most Recent 3 months ago
Selected Answer: C
Each resource block describes one or more infrastructure objects, such as virtual networks, compute instances, or higher-level components such as DNS records. A resource block declares a resource of a given type ("aws_instance") with a given local name ("web"). The name is used to refer to this resource from elsewhere in the same Terraform module, but has no significance outside that module's scope. The resource type and name together serve as an identifier for a given resource and so must be unique within a module. Terraform usually automatically determines which provider to use based on a resource type's name. (By convention, resource type names start with their provider's preferred local name.) eg. resource "aws_instance" "web" { ami = "ami-a1b2c3d4" instance_type = "t2.micro" }
upvoted 2 times
...
Molly1994
7 months ago
Resource block defines all resources from its own provider. The questions is asking the provider. So answer definitely is AWS
upvoted 1 times
...
enook
11 months, 2 weeks ago
Answer is C. aws_vpc is "resource type", and main is "resource name".
upvoted 1 times
...
gofavad926
1 year, 3 months ago
Selected Answer: C
C for sure
upvoted 1 times
...
Jayanth
1 year, 5 months ago
C. aws
upvoted 1 times
...
Busi57
1 year, 5 months ago
Selected Answer: C
i choose C
upvoted 1 times
...
gspb
1 year, 8 months ago
Selected Answer: C
C - aws Here, aws is the provider and aws_vpc is the resource_type
upvoted 1 times
...
Saifwsm
1 year, 8 months ago
C - AWS
upvoted 1 times
...
E_aws
1 year, 12 months ago
actually I see no error in the syntax https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc
upvoted 1 times
E_aws
1 year, 12 months ago
sorry, misunderstood.. C is the correct answer
upvoted 1 times
...
...
terraform
1 year, 12 months ago
Selected Answer: C
C , AWS
upvoted 1 times
...
Sm1ley
2 years, 1 month ago
Selected Answer: C
C, AWS
upvoted 1 times
...
alifie
2 years, 2 months ago
Selected Answer: C
c, aws
upvoted 1 times
...
Eltooth
2 years, 6 months ago
Selected Answer: C
C is correct answer.
upvoted 1 times
...
mk1708
2 years, 6 months ago
C (aws)
upvoted 2 times
...
cytron
2 years, 6 months ago
C (aws)
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago