HashiCorpHashiCorp
TA-002-P · Question #319
TA-002-P Question #319: Real Exam Question with Answer & Explanation
The correct answer is B: what?. This question assesses knowledge of Terraform function evaluation, where a specific function call produces a particular string output.
Read, generate, and modify configuration
Question
What is the result of the following terraform function call?
Options
- Ahello
- Bwhat?
- Cgoodbye
Explanation
This question assesses knowledge of Terraform function evaluation, where a specific function call produces a particular string output.
Common mistakes.
- A. This choice would be correct if the function call evaluated to "hello", such as accessing the first element of a list using index 0.
- C. This choice would be correct if the function call evaluated to "goodbye", such as accessing the third element of a list using index 2.
Concept tested. Terraform function evaluation
Reference. https://developer.hashicorp.com/terraform/language/functions/element
Topics
#Terraform functions#String functions#Expression evaluation
Community Discussion
No community discussion yet for this question.