Free Terraform-Associate-003 Actual Exam Questions - Question 11 Discussion
Question No. 11
[Understand Terraform Basics and CLI]
You have a list of numbers that represents the number of free CPU cores on each virtual cluster:
numcpus =
[ 18, 3, 7, 11, 2 ]
What Terraform function could you use to select the largest number from the list?
[numcpus]
You have a list of numbers that represents the number of free CPU cores on each virtual cluster:
numcpus =
[ 18, 3, 7, 11, 2 ]
What Terraform function could you use to select the largest number from the list?
[numcpus]
Select one option, then reveal solution.
US
MZ
Michael Z.
2026-01-30
B, max() works directly on lists without unpacking.
0
OP
Osama P.
2026-01-25
B for sure, max() is the common way to get the highest number from a list.
0
JT
John T.
2026-01-17
It’s B because max() can take a list and returns the highest value. The other options are either invalid or don’t apply to lists like this.
0
JT
John T.
2026-01-15
B tbh, max(numcpus) is the usual way to get the largest value from a list in Terraform. The others don’t really make sense here.
0