Question 470
At Oakcrest Data Platforms, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a load balancer listener is configured with a manually transcribed target group ARN that changes between environments. 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
Resource attributes provide typed dependency links across managed resources. That mechanism distinguishes cross-resource attribute reference in the Oakcrest Data Platforms case. The corresponding appropriate correction is: Reference the target group's exported ARN attribute directly. The measurable acceptance test is: The listener points to the intended newly created target group after apply.
Incorrect Answers
“Count creates indexed resource instances rather than one scalar resource value” reflects the mechanism: Count creates indexed resource instances rather than one scalar resource value. The actual reported symptoms are better explained by: Resource attributes provide typed dependency links across managed resources.
The offered principle describes: Variable values are separate from the reusable desired-state logic. The situation in this question instead depends on: Resource attributes provide typed dependency links across managed resources. These are different technical conditions.
“Terraform's provider plugin model supports multiple service APIs in the same configuration” reflects the mechanism: Terraform's provider plugin model supports multiple service APIs in the same configuration. The actual reported symptoms are better explained by: Resource attributes provide typed dependency links across managed resources.