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 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 🗳️
Reference:
https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
softarts
Highly Voted 1 year, 10 months ago
C (aws)
upvoted 10 times
...
Nunyabiznes
Highly Voted 1 year 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 8 times
...
enook
Most Recent 2 months, 1 week ago
Answer is C. aws_vpc is "resource type", and main is "resource name".
upvoted 1 times
...
gofavad926
6 months ago
Selected Answer: C
C for sure
upvoted 1 times
...
Jayanth
8 months ago
C. aws
upvoted 1 times
...
Busi57
8 months, 1 week ago
Selected Answer: C
i choose C
upvoted 1 times
...
gspb
11 months ago
Selected Answer: C
C - aws Here, aws is the provider and aws_vpc is the resource_type
upvoted 1 times
...
Saifwsm
11 months, 2 weeks ago
C - AWS
upvoted 1 times
...
gargaditya
1 year 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
...
E_aws
1 year, 2 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, 2 months ago
sorry, misunderstood.. C is the correct answer
upvoted 1 times
...
...
terraform
1 year, 3 months ago
Selected Answer: C
C , AWS
upvoted 1 times
...
Sm1ley
1 year, 4 months ago
Selected Answer: C
C, AWS
upvoted 1 times
...
alifie
1 year, 5 months ago
Selected Answer: C
c, aws
upvoted 1 times
...
Eltooth
1 year, 9 months ago
Selected Answer: C
C is correct answer.
upvoted 1 times
...
mk1708
1 year, 9 months ago
C (aws)
upvoted 2 times
...
cytron
1 year, 10 months ago
C (aws)
upvoted 2 times
...
habros
1 year, 10 months ago
C. aws_vpc is subset of AWS provider
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 ...