Question 330
The Terraform change owner at Evergreen Development seeks a verifiable outcome for: A security rule depends on a newly created service address, but an engineer adds an arbitrary time delay instead of a reference. Which observation best confirms that the proposed correction worked?
Explanation
Correct Answer
Planning shows the rule consumes the service address and succeeds without a fixed sleep interval. This directly verifies the corrective action: Create a direct resource-attribute reference that establishes the dependency through Terraform's graph. The measured result specifically addresses the failure at Evergreen Development: A security rule depends on a newly created service address, but an engineer adds an arbitrary time delay instead of a reference.
Incorrect Answers
A call omitting the optional input plans successfully with the declared default. This evidence would validate a DIFFERENT correction: Use the default for ordinary cases and override the input only for documented exceptional environments. That different correction addresses: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. It does not establish that the Evergreen Development issue has been corrected: A security rule depends on a newly created service address, but an engineer adds an arbitrary time delay instead of a reference. The relevant measured outcome is: Planning shows the rule consumes the service address and succeeds without a fixed sleep interval.
A noninteractive run resolves the expected values without unexpected prompts. This evidence would validate a DIFFERENT correction: Use declared defaults and supported explicit variable assignment mechanisms with documented precedence. That different correction addresses: An operator expects every variable to require a prompt even though some have defaults and others are set through tfvars or environment. It does not establish that the Evergreen Development issue has been corrected: A security rule depends on a newly created service address, but an engineer adds an arbitrary time delay instead of a reference. The relevant measured outcome is: Planning shows the rule consumes the service address and succeeds without a fixed sleep interval.
The run uses the documented version and passes its provider/module compatibility checks. This evidence would validate a DIFFERENT correction: Set a supported Terraform version in workspace settings and validate the configuration on a controlled speculative run. That different correction addresses: A platform upgrades the Terraform CLI version for its HCP Terraform workspace without validating version compatibility or plan behavior. It does not establish that the Evergreen Development issue has been corrected: A security rule depends on a newly created service address, but an engineer adds an arbitrary time delay instead of a reference. The relevant measured outcome is: Planning shows the rule consumes the service address and succeeds without a fixed sleep interval.