Question 180
At Fairlake Education Services, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a DNS record managed by one provider requires the endpoint address created by a different provider. Choose the technically best Terraform Associate 004 practice response to this particular infrastructure case. Which operational control addresses the risk long term?
Explanation
Correct Answer
Document cross-provider output dependencies in shared root modules. This control addresses cross-provider resource references because resource references can connect provider-specific objects in one dependency graph. The original implementation remedy remains: Reference the endpoint's exported attribute from the DNS resource configuration.
Incorrect Answers
This safeguard is for the dependency described by: Each provider supports its own service resource schemas and authentication context. The continuing risk here is determined by: Resource references can connect provider-specific objects in one dependency graph. The targeted safeguard is “Document cross-provider output dependencies in shared root modules”.
That review protects the control associated with: Terraform tracks managed object identity through provider-defined resource state and change rules. It does not directly prevent the stated recurrence, which concerns: Resource references can connect provider-specific objects in one dependency graph. The appropriate guardrail is “Document cross-provider output dependencies in shared root modules”.
This safeguard is for the dependency described by: Variables without defaults require a supplied value at the module boundary. The continuing risk here is determined by: Resource references can connect provider-specific objects in one dependency graph. The targeted safeguard is “Document cross-provider output dependencies in shared root modules”.