Question 230
An application module needs to reference a shared DNS zone owned by another team but cannot alter its zone lifecycle. Which failure mode would most clearly show that this specific requirement remains unmet?
Explanation
Correct Answer
Reading a shared object is distinct from declaring Terraform ownership of it. Use a provider data source to resolve the shared DNS zone.
Incorrect Answers
Input variable defaults apply only when no higher-priority value is supplied. The retrieved zone ID is used while no new DNS-zone resource is proposed.
Attribute references create implicit dependencies when one resource's result is needed. Use a provider data source to resolve the shared DNS zone.
Merge combines maps with later arguments taking precedence on duplicate keys. Reading a shared object is distinct from declaring Terraform ownership of it.