Question 380
An acceptance reviewer at Westhaven Application Ops must validate the fix for: An API requires a set of unique IP ranges, but a configuration passes a list with duplicates and relies on position-based semantics. Which controlled check would validate the remediation?
Explanation
Correct Answer
Duplicate entries collapse and the resulting plan uses a unique collection of permitted ranges. This directly verifies the corrective action: Use a set(string) type for unique unordered values when the provider argument expects set-like semantics. The measured result specifically addresses the failure at Westhaven Application Ops: An API requires a set of unique IP ranges, but a configuration passes a list with duplicates and relies on position-based semantics.
Incorrect Answers
Validation resolves the child output and the value appears after successful creation. This evidence would validate a DIFFERENT correction: Add an explicit child output block and reference it through the module namespace from the root. That different correction addresses: A deployment consumes an output from a child module but forgets to declare the output in the module itself. It does not establish that the Westhaven Application Ops issue has been corrected: An API requires a set of unique IP ranges, but a configuration passes a list with duplicates and relies on position-based semantics. The relevant measured outcome is: Duplicate entries collapse and the resulting plan uses a unique collection of permitted ranges.
Initialization loads the intended provider and configuration validation accepts the supported SaaS resource schema. This evidence would validate a DIFFERENT correction: Select the service's correct Terraform provider and resource or data source type instead of assuming provider interchangeability. That different correction addresses: A platform engineer uses a cloud-specific resource type to control an unrelated SaaS service and receives unsupported-argument errors. It does not establish that the Westhaven Application Ops issue has been corrected: An API requires a set of unique IP ranges, but a configuration passes a list with duplicates and relies on position-based semantics. The relevant measured outcome is: Duplicate entries collapse and the resulting plan uses a unique collection of permitted ranges.
The imported object has matching managed configuration and no unexplained destructive plan is produced. This evidence would validate a DIFFERENT correction: Declare or generate suitable resource configuration using the supported import workflow, then review required attributes. That different correction addresses: A consultant attempts terraform import for an object that has no resource configuration and expects full valid HCL to be generated automatically. It does not establish that the Westhaven Application Ops issue has been corrected: An API requires a set of unique IP ranges, but a configuration passes a list with duplicates and relies on position-based semantics. The relevant measured outcome is: Duplicate entries collapse and the resulting plan uses a unique collection of permitted ranges.