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

You need to deploy resources into two different cloud regions in the same Terraform configuration. To do that, you declare multiple provider configurations as follows:

What meta-argument do you need to configure in a resource block to deploy the resource to the `us-west-2` AWS region?

    Correct Answer: C

    To deploy resources to a specific provider configuration in Terraform, you use the 'provider' meta-argument in the resource block. Given the provider configurations defined with alias 'west' for the 'us-west-2' region, the correct way to specify this in the resource block is using 'provider = aws.west'. This tells Terraform to use the alternate provider configuration named 'aws.west', hence deploying the resource to the 'us-west-2' region.

Discussion
bp339Option: C

https://www.terraform.io/language/providers/configuration

Orpheus123Option: C

C - is the correct answer

concepts015Option: D

I think the right answer is D alias is used in the argument and AWS.WEST is the right way to write the argument

CHRIS12722222

No, C is correct

Roro_BrotherOption: C

C is correct

BereOption: C

For us-east-1: resource "aws_instance" "example_east" { ami = "ami-abc12345" instance_type = "t2.micro" // No provider meta-argument specified, so it uses the default (us-east-1) } For us-west-2: resource "aws_instance" "example_west" { ami = "ami-xyz67890" instance_type = "t2.micro" provider = aws.west // This directs Terraform to use the 'us-west-2' region provider configuration } With this setup, Terraform will deploy the example_east instance in the us-east-1 region and the example_west instance in the us-west-2 region.

Ni33Option: C

CCCCCCCCCCC

thor7Option: C

Definitely, C is the correct answer. https://www.terraform.io/language/providers/configuration

Zam88Option: C

alias is not meta-argument c is correct

elvancedonzyOption: C

C is Correct

bigboi23Option: C

Confirmed. C is correct.

Power123Option: C

Answer is C

NzudinOption: B

https://developer.hashicorp.com/terraform/language/providers/configuration#selecting-alternate-provider-configurations

EltoothOption: C

C is correct answer.

tracemeOption: C

answer is C