Question 360
A Terraform associate evaluates: An engineer compares an object with a tuple to represent a small collection of heterogeneous settings. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The case says: An engineer compares an object with a tuple to represent a small collection of heterogeneous settings. The directly relevant Terraform response is: Use object type constraints for named fields and tuple for fixed-position heterogeneous elements when modeling structured input variables. This addresses the related failure mode: Treating a structured object like an untyped string makes required fields and attribute access error-prone. Validate the result by checking: Variable validation and console inspection show each named attribute or tuple position has the expected type. The selection matches this objective, rather than a different Terraform administration task.
The observed situation is: An engineer compares an object with a tuple to represent a small collection of heterogeneous settings. The acceptance evidence is: Variable validation and console inspection show each named attribute or tuple position has the expected type. It verifies the corrective approach (Use object type constraints for named fields and tuple for fixed-position heterogeneous elements when modeling structured input variables.) and controls the risk: Treating a structured object like an untyped string makes required fields and attribute access error-prone. Checking an unrelated Terraform setting would not prove the stated requirement was met.
Incorrect Answers
Malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. This belongs to Input variable validation rules (official objective 4g). Its separate risk is that malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. The question instead tests Object and tuple structural types; that other safeguard alone does not verify it.
The lookup selects the intended existing object and downstream managed resources reference its identifier. This is relevant to Read-only data source lookup (official objective 4a). Its distinct failure risk is that an ambiguous or missing data-source match can fail planning or target the wrong existing resource. The present question tests Object and tuple structural types, which this measure alone does not establish.
Select list when element order and duplicates matter, set for unique unordered values, and map for values indexed by string keys. This does not provide the required Object and tuple structural types action-and-evidence pair.