Modules
⏱ ~3-min readAceMark GuideWhat this topic is really about
The root module consists of the resources defined in the main working directory where you execute Terraform commands like 'terraform apply'. It is not a child module, which is instead called from within another configuration using a 'module' block.
A Terraform module is a container for multiple resources that are used together, allowing you to package and reuse configuration patterns. It is not a provider plugin, which is a separate binary used to translate Terraform commands into API calls.
See the mechanism
A Terraform module is a container for multiple resources that are used together, allowing you to package and reuse configuration patterns. A diagram for this topic isn't available yet — the worked example below walks the same reasoning step by step.
An exam-style question, fully explained
A Terraform module is:
- Identify what the question tests: A Terraform module is:.
- A Terraform module is a container for multiple resources that are used together, allowing you to package and reuse configuration patterns.
- It is not a provider plugin, which is a separate binary used to translate Terraform commands into API calls.
Traps the examiner sets
- Read each option carefully — distractors on Modules are designed to look plausible.
- Re-check the exact wording of the question stem before committing to an answer.
- Watch the qualifiers ("always", "only", "except") that flip a correct-looking option.
Test your recall
Answer each from memory — you'll see instantly whether you're right and why.
Run a focused 10-question mini-mock on Modules and see it stick.
Practice more of this topic →