Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 99 discussion

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

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?

  • A. alias = west
  • B. provider = west
  • C. provider = aws.west
  • D. alias = aws.west
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
bp339
Highly Voted 2 years, 5 months ago
Selected Answer: C
https://www.terraform.io/language/providers/configuration
upvoted 13 times
...
Bere
Most Recent 1 year ago
Selected Answer: 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.
upvoted 2 times
...
Ni33
1 year, 6 months ago
Selected Answer: C
CCCCCCCCCCC
upvoted 2 times
...
Power123
1 year, 7 months ago
Answer is C
upvoted 1 times
...
thor7
1 year, 8 months ago
Selected Answer: C
Definitely, C is the correct answer. https://www.terraform.io/language/providers/configuration
upvoted 2 times
...
Nzudin
1 year, 8 months ago
https://developer.hashicorp.com/terraform/language/providers/configuration#selecting-alternate-provider-configurations
upvoted 1 times
...
Eltooth
2 years, 4 months ago
Selected Answer: C
C is correct answer.
upvoted 1 times
...
Zam88
2 years, 5 months ago
alias is not meta-argument c is correct
upvoted 2 times
...
elvancedonzy
2 years, 5 months ago
Selected Answer: C
C is Correct
upvoted 2 times
...
concepts015
2 years, 6 months ago
I think the right answer is D alias is used in the argument and AWS.WEST is the right way to write the argument
upvoted 3 times
CHRIS12722222
2 years, 5 months ago
No, C is correct
upvoted 2 times
...
...
Roro_Brother
2 years, 6 months ago
Selected Answer: C
C is correct
upvoted 3 times
...
bigboi23
2 years, 6 months ago
Selected Answer: C
Confirmed. C is correct.
upvoted 2 times
...
Orpheus123
2 years, 6 months ago
C - is the correct answer
upvoted 4 times
...
traceme
2 years, 6 months ago
answer is C
upvoted 1 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 ...