1Z0-1072 · Question #206
Which three are valid Terraform configuration components? (Choose three.)
The correct answer is A. variable E. resource F. data source. See the full explanation below for the reasoning.
Question
Which three are valid Terraform configuration components? (Choose three.)
Options
- Avariable
- Bregion
- Cmetadata
- Dinstance
- Eresource
- Fdata source
How the community answered
(17 responses)- A76% (13)
- B12% (2)
- C6% (1)
- D6% (1)
Community Discussion
5Correct answers are A, E, and F. In Terraform, variable blocks let you parameterize your configs, resource blocks declare the infrastructure objects you want to provision, and data source blocks let you read existing infrastructure or external data without managing it, and those three are core HCL building blocks you will see in every real-world Terraform module. Region, metadata, and instance are not top-level Terraform configuration components, they are arguments or resource types that live inside those blocks, and the exam loves this distinction precisely because candidates who learned Terraform by copy-pasting examples confuse a block type with an argument value.
Thought B and D were it, but variable, resource, and data source are the actual HCL block types.
Good question to trip people up on. Variable, resource, and data source are actual Terraform block types you'll write in your .tf files, while the other options sound like they belong in a cloud provider's console or an API spec, not a Terraform configuration itself. Quick check though, have you been studying Terraform's HCL syntax directly or are you mainly working through practice questions, because that changes whether you need to memorize the block keyword names or just recognize the pattern of what Terraform manages versus what the provider defines?
Instance is core Terraform, A, D, E are your three picks.
Wesley, appreciate the effort but D gets swapped out for F here, because D describes behavior that falls under a different resource block scope while F aligns with how Terraform actually tracks instance state during the plan and apply cycle. Easy one to mix up under exam pressure.