Question 140
After adopting format function, an infrastructure reviewer wants objective acceptance evidence for its goal to interpolate a region and numeric index into a consistent server name. Which result should the reviewer expect?
Explanation
Correct Answer
This finding directly verifies format function: format builds strings using format specifiers. It establishes the stated outcome rather than merely confirming a resource exists.
Incorrect Answers
That evidence concerns templatefile function, used to fill placeholders in a separate file of startup configuration text. It does not verify whether format function meets its acceptance criteria.
That evidence concerns join function, used to construct a comma-delimited environment variable from a list of service names. It does not verify whether format function meets its acceptance criteria.
That evidence concerns Conditional expression with ?:, used to choose a larger instance type only for a production environment. It does not verify whether format function meets its acceptance criteria.






HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests