HashiCorpHashiCorp
TA-002-P · Question #157
TA-002-P Question #157: Real Exam Question with Answer & Explanation
Sign in or unlock TA-002-P to reveal the answer and full explanation for question #157. The question stem and answer options stay visible for context.
Read, generate, and modify configuration
Question
John wants to use two different regions to deploy two different EC2 instances. He has specified two provider blocks in his providers.tf file. provider "aws" { region = "us-east-1" } provider "aws" { region = "us-west-2" } When he run terraform plan he encountered an error. How to fix this?
Options
- AUse another provider version
- BUse alias for region = "us-west-2"
- CUse default keyword with region = "us-east-1"
- DIt can not be fixed
Unlock TA-002-P to see the answer
You've previewed enough free TA-002-P questions. Unlock TA-002-P for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Providers#Aliases#Provider configuration#Multi-region