Practice AWS provider Terraform Modules questions with full explanations on every answer.
Start practicing
Terraform Modules — choose a session length
Free · No account required
Click any question to see the full explanation and answer options, or start a focused practice session above.
Which directory structure is considered standard for a Terraform module?
2What is the primary benefit of using a module registry compared to a local file path for module distribution?
3When refactoring a large infrastructure configuration, you move a resource into a child module. How do you handle the existing state to prevent Terraform from destroying and recreating the resource?
4You have a nested module structure. How can you pass a variable from the root module through an intermediate module to a leaf module?
5You are designing a module that should conditionally create resources based on a boolean input. What feature should you use?
6You need to output a complex object from a child module to be used by the root module. What is the best practice for defining the output?
7Your team requires a custom module to be versioned strictly to prevent breaking changes during deployments. What is the recommended way to reference a module from a private Git repository?
8You are building a module that needs to be consumed by multiple teams. How should you structure your module to ensure that the root module can provide values for variable definitions without hardcoding them in the module itself?
9When should you use the 'for_each' meta-argument within a module?
10Where do module outputs appear after a 'terraform apply'?
11How can you protect a module's inputs from receiving incorrect types of data?
12You want to use a module that is hosted in a private GitHub repository. Which authentication method should Terraform use to access it?
13What is the purpose of the 'terraform init' command when working with modules?
14If a module has a required variable but you do not provide it in the calling configuration, what happens?
15You are using a module that depends on a specific provider version. Where should this constraint be defined?
16Which argument in a module block allows you to provide a custom name to the module instance?
17What is the impact of using 'sensitive = true' in a module output?
18You need to share a module across your entire organization. Which registry type should you use?
19Which THREE of the following are valid sources for a Terraform module?
20What is the recommended approach for managing a module that has grown too large?
21When a module is updated, how do you ensure that all environments using this module get the update?
22If you have a module that creates an S3 bucket, and you want the bucket name to be prefixed by a value provided by the caller, how do you achieve this?
23What command do you run to view the documentation for a module that has been published to a registry?
24Why would you use a 'locals' block within a module instead of passing everything through variables?
25Which THREE actions are best practices when publishing a module to a private registry?
26Which TWO meta-arguments can be used within a module block?
27Which THREE of these are benefits of using modules in Terraform?
28Which TWO of the following are true regarding variable validation in modules?
29Which THREE items should be included in a well-documented Terraform module?
30Which TWO of the following are true about the '.terraform' directory?
31Which THREE of the following are components of the 'source' string when using the Terraform Registry?
32Which THREE tasks are performed by 'terraform init -upgrade'?
33Which TWO of the following are valid ways to pass a provider configuration to a child module?
The Terraform Modules domain covers the key concepts tested in this area of the AWS provider exam blueprint published by HashiCorp. Courseiva provides free domain-focused practice, mock exams, missed-question review, and readiness tracking across all AWS provider domains — no account required.
The Courseiva AWS provider question bank contains 33 questions in the Terraform Modules domain. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Terraform Modules domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included