nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #254

You need to deploy resources into two different regions in the same Terraform configuration. To do this, you declare multiple provider configurations as shown in the Exhibit space on this page. What…

The correct answer is A. provider = aws.west. When multiple provider configurations are defined using an alias, Terraform requires the provider meta-argument inside the resource block to explicitly reference the aliased provider. In this case, the provider is defined as aws with alias = "west", so resources targeting…

Submitted by kim_seoul· Apr 18, 2026Understand Terraform Providers

Question

You need to deploy resources into two different regions in the same Terraform configuration. To do this, you declare multiple provider configurations as shown in the Exhibit space on this page. What meta-argument do you need to configure in a resource block to deploy the resource to the us-west-2 AWS region?

Exhibit

TERRAFORM-ASSOCIATE-004 question #254 exhibit

Options

  • Aprovider = aws.west
  • Balias = aws.west
  • Cprovider = west
  • Dalias = west

How the community answered

(42 responses)
  • A
    88% (37)
  • B
    2% (1)
  • C
    7% (3)
  • D
    2% (1)

Explanation

When multiple provider configurations are defined using an alias, Terraform requires the provider meta-argument inside the resource block to explicitly reference the aliased provider. In this case, the provider is defined as aws with alias = "west", so resources targeting us-west-2 must specify: provider = aws.west This tells Terraform exactly which provider configuration to use.

Topics

#Provider Configuration#Provider Aliases#Resource Meta-Arguments

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice