Question 350
A controlled test for Orchard Enterprise Platforms focuses on the original failure: A regional network module hardcodes its CIDR block and cannot be reused in test and production. Which observation best confirms that the proposed correction worked?
Explanation
Correct Answer
Two plans use the same module code but show the appropriate CIDR for each environment. This directly verifies the corrective action: Declare a typed input variable for the CIDR and supply environment-specific values to the module. The measured result specifically addresses the failure at Orchard Enterprise Platforms: A regional network module hardcodes its CIDR block and cannot be reused in test and production.
Incorrect Answers
The returned object attributes correspond to the intended address and are reviewed securely. This evidence would validate a DIFFERENT correction: Use terraform state show with the exact resource address and handle displayed sensitive information appropriately. That different correction addresses: An engineer wants to inspect attributes recorded for a specific managed resource without editing state JSON directly. It does not establish that the Orchard Enterprise Platforms issue has been corrected: A regional network module hardcodes its CIDR block and cannot be reused in test and production. The relevant measured outcome is: Two plans use the same module code but show the appropriate CIDR for each environment.
Validation accepts the expression and the output contains the intended one or many instance IDs. This evidence would validate a DIFFERENT correction: Use the correct counted-resource index or an expression over instances when referencing their attributes. That different correction addresses: A list of indexed resources uses count but a caller references the whole group as if it were a single unindexed object. It does not establish that the Orchard Enterprise Platforms issue has been corrected: A regional network module hardcodes its CIDR block and cannot be reused in test and production. The relevant measured outcome is: Two plans use the same module code but show the appropriate CIDR for each environment.
The reviewed plan detects the controlled manual change instead of relying solely on stale state. This evidence would validate a DIFFERENT correction: Use a normal refreshed plan when current remote drift must be evaluated and review the resulting differences. That different correction addresses: A developer tries to prove there is no drift by using terraform plan -refresh=false in a system with known manual changes. It does not establish that the Orchard Enterprise Platforms issue has been corrected: A regional network module hardcodes its CIDR block and cannot be reused in test and production. The relevant measured outcome is: Two plans use the same module code but show the appropriate CIDR for each environment.