Question 190
An autoscaling policy takes a collection of unique role names where ordering must not affect membership. Which Terraform concept most directly explains the appropriate approach?
Explanation
Correct Answer
Use a set(string) to represent the unique unordered role names. Duplicate role names are normalized and list-position assumptions disappear.
Incorrect Answers
Refer directly to the managed resource attribute rather than paste a historical value. Use a set(string) to represent the unique unordered role names.
Declare a typed input variable for the port and pass environment-specific values. A set models unique elements without relying on positional order.
Use an approved Vault integration with least-privilege access and ephemeral handling where supported. Duplicate role names are normalized and list-position assumptions disappear.