Question 130
A billing module needs the ID of an existing centrally managed network and must not create a second network. Which failure mode would most clearly show that this specific requirement remains unmet?
Explanation
Correct Answer
Data sources expose remote information for use by managed resources without ownership of the source object. Query the existing network with a supported data source and use its ID.
Incorrect Answers
Terraform conditional expressions select values based on a boolean condition. Data sources expose remote information for use by managed resources without ownership of the source object.
Input variable defaults apply only when no higher-priority value is supplied. The plan reads the existing network without proposing a duplicate managed network.
Explicit depends_on is appropriate for behavioral dependencies not visible through value references. Query the existing network with a supported data source and use its ID.