HashiCorp
TERRAFORM-ASSOCIATE-003 · Question #25
TERRAFORM-ASSOCIATE-003 Question #25: Real Exam Question with Answer & Explanation
The correct answer is B. Object. This is the variable type that you could use for this input, as it can store multiple attributes of different types within a single value. The other options are either invalid or incorrect for this use
Question
You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string. Which variable type could you use for this input?
Options
- AList
- BObject
- CMap
- DTerraform does not support complex input variables of different types
Explanation
This is the variable type that you could use for this input, as it can store multiple attributes of different types within a single value. The other options are either invalid or incorrect for this use
Community Discussion
No community discussion yet for this question.