Terraform interview preparation
Study Terraform plans, state, resource identity and module contracts. Work through unknown values and distinguish a blocking validation from a warning before reviewing an apply.
Start here
Read basic HCL and understand cloud resource IDs, dependencies and the difference between configuration and running infrastructure.
- Read the Terraform operating model.
- Try the foundation question before opening its answer.
- Review a replacement plan, classify unknown values and write the conditions that must stop an apply. Open the course exercises.
Practise until you can
- Explain which parts of a resource address must be known during planning.
- Choose variable validation, preconditions or checks for a specific requirement.
- Review replacements and recovery evidence before approving an infrastructure change.
Terraform concepts
Build the explanation, then test it against the questions below.
Terraform questions
Start with an open answer, or sign in to track your practice. Locked answers show the access needed.
Course exercises using Terraform
These lessons belong to the broader DevOps courses. Each card shows its access level.
Review replacements before applying infrastructure
Read an infrastructure plan as a proposed sequence of state changes, checking Terraform instance keys, blocking conditions, replacement effects and recovery prerequisites.
Premium ยท 15 minSerialize infrastructure writers and protect state
Design state ownership, locking and recovery for concurrent infrastructure pipelines, including the current S3 lockfile contract and stale-lock investigation.
Premium ยท 15 minSeparate Terraform mocks from provider evidence
Design a layered infrastructure test plan that uses mocked providers for configuration behavior and real sandbox tests for permissions and service constraints.