Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 212 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 212
Topic #: 1
[All Terraform Associate Questions]

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?

  • A. max(numcpus)
  • B. ceil(numcpus)
  • C. top(numcpus)
  • D. high[numcpus]
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
090200f
3 months, 3 weeks ago
Selected Answer: A
> ceil(5) 5 > ceil(5.1) 6 > max(12, 54, 3) 54 seems like there is no top and high functions.. so answer is max(...) A. https://developer.hashicorp.com/terraform/language/functions/max
upvoted 1 times
...
gekkehenk
1 year, 10 months ago
Selected Answer: A
"max takes one or more numbers and returns the greatest number from the set."
upvoted 3 times
...
ArizonaClassics
1 year, 10 months ago
A is correct See https://developer.hashicorp.com/terraform/language/functions/max
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...