TA-002-P · Question #264
TA-002-P Question #264: Real Exam Question with Answer & Explanation
Sign in or unlock TA-002-P to reveal the answer and full explanation for question #264. The question stem and answer options stay visible for context.
Question
Your team has started using terraform OSS in a big way , and now wants to deploy multi region deployments (DR) in aws using the same terraform files . You want to deploy the same infra (VPC,EC2 ...) in both us-east-1 ,and us-west-2 using the same script , and then peer the VPCs across both the regions to enable DR traffic. But , when you run your script , all resources are getting created in only the default provider region. What should you do? Your provider setting is as below -# The default provider configuration provider "aws" { region = "us-east-1" }
Options
- ANo way to enable this via a single script . Write 2 different scripts with different default
- BCreate a list of regions , and then use a for-each to iterate over the regions , and create
- CUse provider alias functionality , and add another provider for us-west region . While
- DManually create the DR region , once the Primary has been created , since you are using
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.