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 265 discussion

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

When using multiple configurations of the same Terraform provider, what meta-argument must be included in any non-default provider configurations?

  • A. depends_on
  • B. alias
  • C. id
  • D. name
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
090200f
3 months, 3 weeks ago
Selected Answer: B
https://developer.hashicorp.com/terraform/language/meta-arguments/resource-provider The provider meta-argument specifies which provider configuration to use for a resource, overriding Terraform's default behavior of selecting one based on the resource type name. Its value should be an unquoted <PROVIDER>.<ALIAS> reference. # default configuration provider "google" { region = "us-central1" } # alternate configuration, whose alias is "europe" provider "google" { alias = "europe" region = "europe-west1" }
upvoted 1 times
...
Sam1101
1 year, 3 months ago
Selected Answer: B
To create multiple configurations for a given provider, include multiple provider blocks with the same provider name. For each additional non-default configuration, use the alias meta-argument to provide an extra name segment.
upvoted 2 times
...
DevoteamAnalytix
1 year, 5 months ago
Selected Answer: B
https://developer.hashicorp.com/terraform/language/providers/configuration#alias-multiple-provider-configurations
upvoted 4 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 ...