HashiCorp Terraform 004 Configuration Guide

HashiCorp Terraform 004 configuration guide covering resources, variables, expressions, and outputs decisions.

This chapter is where many Terraform Associate questions hide their real intent. HashiCorp is usually testing whether you can classify the configuration problem correctly before choosing a block, function, validation rule, or dependency mechanism.

Work this objective area in order

Lesson Focus
4.1 Resources, Data & Refs Learn what Terraform manages versus what it only reads.
4.2 Variables, Outputs & Types Learn how Terraform accepts, structures, and exports values.
4.3 Expressions & Dynamic Config Learn how Terraform makes configuration flexible without changing the core model.
4.4 Dependencies, Validation & Sensitive Data Learn current 004 topics such as explicit dependencies, custom checks, sensitive data, and newer write-only or ephemeral concepts.

Fast routing inside this chapter

If the question is really about… Go first to…
creating versus reading objects 4.1 Resources, Data & Refs
inputs, outputs, and type handling 4.2 Variables, Outputs & Types
making config dynamic with logic and functions 4.3 Expressions & Dynamic Config
explicit ordering, custom conditions, or sensitive values 4.4 Dependencies, Validation & Sensitive Data

What strong answers usually do

  • distinguish managed objects from read-only lookups
  • keep variables, outputs, and state in separate buckets
  • use dynamic expressions without losing configuration clarity
  • reserve explicit dependency and lifecycle behavior for the cases that truly need it

In this section

Revised on Sunday, May 10, 2026