Question 170
At Fairlake Health Research, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a project must deploy identical service resources to two regions but a second provider block overwrites assumptions for the first. Choose the technically best Terraform Associate 004 practice response to this particular infrastructure case. What mechanism explains why the original approach fails?
Explanation
Correct Answer
Multiple configurations of a provider need distinct aliases to target different contexts. That mechanism distinguishes two named instances of one provider in the Fairlake Health Research case. The corresponding appropriate correction is: Configure provider alias instances for each region and bind resources explicitly. The measurable acceptance test is: A plan shows each resource using its intended regional provider instance.
Incorrect Answers
“Each provider supports its own service resource schemas and authentication context” reflects the mechanism: Each provider supports its own service resource schemas and authentication context. The actual reported symptoms are better explained by: Multiple configurations of a provider need distinct aliases to target different contexts.
The offered principle describes: Provider schema and default changes can alter planned behavior across versions. The situation in this question instead depends on: Multiple configurations of a provider need distinct aliases to target different contexts. These are different technical conditions.
“Provider instances establish the target API context for resource operations” reflects the mechanism: Provider instances establish the target API context for resource operations. The actual reported symptoms are better explained by: Multiple configurations of a provider need distinct aliases to target different contexts.