HashiCorp
TERRAFORM-ASSOCIATE-003 · Question #25
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…
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
Read, generate, and modify configuration
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
How the community answered
(28 responses)- A7% (2)
- B79% (22)
- C11% (3)
- D4% (1)
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
Topics
#object type#input variables#complex types#variable types
Community Discussion
No community discussion yet for this question.