Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 13

What is the provider for this fictitious resource?

    Correct Answer: C

    In the given code snippet, the resource block is defined as "aws_vpc" which indicates the resource type for AWS Virtual Private Cloud (VPC). In Terraform, the prefix of the resource type "aws_vpc" indicates the provider. Here, "aws" is the provider responsible for managing resources on the Amazon Web Services (AWS) cloud platform. The term "main" is the local name of the resource, and "test" is the name attribute given to this specific resource instance. Therefore, the correct provider is AWS (option C).

Discussion
softartsOption: C

C (aws)

NunyabiznesOption: C

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" }

gargadityaOption: 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" }

mk1708Option: C

C (aws)

cytronOption: C

C (aws)

Molly1994Option: C

Resource block defines all resources from its own provider. The questions is asking the provider. So answer definitely is AWS

enookOption: C

Answer is C. aws_vpc is "resource type", and main is "resource name".

gofavad926Option: C

C for sure

JayanthOption: C

C. aws

Busi57Option: C

i choose C

gspbOption: C

C - aws Here, aws is the provider and aws_vpc is the resource_type

SaifwsmOption: C

C - AWS

E_awsOption: C

actually I see no error in the syntax https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc

E_aws

sorry, misunderstood.. C is the correct answer

terraformOption: C

C , AWS

Sm1leyOption: C

C, AWS

alifieOption: C

c, aws

EltoothOption: C

C is correct answer.