Rationale for Correct Answer: max is Terraform ' s built-in function for selecting the numerically greatest value. For an actual list value, the technically correct Terraform expression is max(numcpus...), because the expansion symbol converts the list elements into separate function arguments.
Analysis of Incorrect Options (Distractors):
A: Terraform does not provide a top built-in function for this purpose.
C: high is not a Terraform built-in function.
D: ceil rounds a single numeric value upward to the nearest integer; it does not select the largest element of a collection.
Key Concept: Terraform built-in functions and argument expansion.
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit