Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Terraform-Associate-004 Question # 94 Topic 10 Discussion

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Terraform-Associate-004 Question # 94 Topic 10 Discussion

Terraform-Associate-004 Exam Topic 10 Question 94 Discussion:
Question #: 94
Topic #: 10

Exhibit:

provider " aws " { region = " us-east-1 " }

provider " aws " { region = " us-west-2 " }

You need to deploy resources into two different AWS regions in the same Terraform configuration using the provider blocks shown in the exhibit. What do you need to add to the provider configuration to deploy a resource to the us-west-2 AWS region?


A.

Add an alias to the us-west-2 provider (for example, alias = " west " ) and set provider = aws.west on resources that should use us-west-2.


B.

Rename the provider block to provider " aws " " west " { region = " us-west-2 " }.


C.

Create a new provider named provider " aws_west " { region = " us-west-2 " }.


D.

Nothing. Terraform will automatically decide which provider to use for each resource.


Get Premium Terraform-Associate-004 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.