nerdexam
Oracle

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)
  • A
    76% (13)
  • B
    12% (2)
  • C
    6% (1)
  • D
    6% (1)

Community Discussion

5
Dragan P.Dragan P.Feb 27, 2026

Correct 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.

15
Petros O.Petros O.Mar 5, 2026

Thought B and D were it, but variable, resource, and data source are the actual HCL block types.

2
Samuel O.Samuel O.Mar 22, 2026

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?

2
Wesley A.Wesley A.Mar 13, 2026

Instance is core Terraform, A, D, E are your three picks.

0
Dragan P.Dragan P.Mar 14, 2026

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.

0
Full 1Z0-1072 Practice