HashiCorp Terraform Associate Practice Test 60
Question 590
A platform team tests the root Terraform configuration successfully but never tests a child module alone, causing a missing required input to surface only in production usage. The team has implemented an approved Terraform change. Which observed result most directly confirms that the original requirement is now met, beyond a successful command exit code?
- Downstream systems receive only explicitly published root outputs.
- Both customers use a maintained reusable module with intentional differences.
- The root consumes a supported module interface rather than internal addresses.
- New module consumers discover invalid contracts before production deployment.
Explanation
Correct Answer
D:This is the appropriate measurable post-change acceptance criterion: New module consumers discover invalid contracts before production deployment. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Maintain versioned module examples and contract tests.
Incorrect Answers
A:“Downstream systems receive only explicitly published root outputs” would address a different Terraform configuration concern; the source instead describes A platform team tests the root Terraform configuration successfully but never tests a child module alone, causing a missing required input to surface only in production usage. The appropriate design is to build a minimal isolated module test fixture with representative required inputs and provider configuration. Confirm whether new module consumers discover invalid contracts before production deployment.
B:“Both customers use a maintained reusable module with intentional differences” would address a different Terraform configuration concern; the source instead describes A platform team tests the root Terraform configuration successfully but never tests a child module alone, causing a missing required input to surface only in production usage. The appropriate design is to build a minimal isolated module test fixture with representative required inputs and provider configuration. Confirm whether new module consumers discover invalid contracts before production deployment.
C:“The root consumes a supported module interface rather than internal addresses” would address a different Terraform configuration concern; the source instead describes A platform team tests the root Terraform configuration successfully but never tests a child module alone, causing a missing required input to surface only in production usage. The appropriate design is to build a minimal isolated module test fixture with representative required inputs and provider configuration. Confirm whether new module consumers discover invalid contracts before production deployment.
Question 591
A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Pin a specific stable Git ref or tag in the module source and test the selected commit.
- Convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate.
- Pin a tested version or bounded compatible range for registry modules and update deliberately.
- Use the appropriate Registry or VCS module source syntax rather than a local file path.
Explanation
Correct Answer
B:The proposed intervention addresses the reported Terraform engineering failure: A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. It applies the design choice Convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Review the primary diagnostic: Inspect resource tags and constants inside the child module. The expected outcome is: Resource labels follow the calling environment's approved values. The rollout safeguard is: Test module outputs and metadata in each environment.
Incorrect Answers
A:“Pin a specific stable Git ref or tag in the module source and test the selected commit” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
C:“Pin a tested version or bounded compatible range for registry modules and update deliberately” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
D:“Use the appropriate Registry or VCS module source syntax rather than a local file path” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
Question 592
A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. Before choosing a remedy, the team needs independent evidence of the actual root cause. Which TWO checks most directly test this case? (Select TWO.)
- Inspect all child outputs and their consumer requirements.
- Compare planned tags for staging and production module calls.
- Inspect resource tags and constants inside the child module.
- Inspect current source URL and ref parameter.
- Inspect downstream callers and required fields.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Compare planned tags for staging and production module calls. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. The expected confirmation is Resource labels follow the calling environment's approved values.
C:This is directly relevant evidence for the reported behavior: Inspect resource tags and constants inside the child module. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. The expected confirmation is Resource labels follow the calling environment's approved values.
Incorrect Answers
A:“Inspect all child outputs and their consumer requirements” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
D:“Inspect current source URL and ref parameter” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
E:“Inspect downstream callers and required fields” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
Question 593
A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Mistaking child directories for independent state can create broad unintended plans.
- Implicit scope expectations can result in missing or wrong module settings.
- Incorrect relative sources can silently reference the wrong directory or fail initialization.
- Hardcoded production metadata can misroute inventory, billing and automation.
Explanation
Correct Answer
D:The reported condition creates the specific potential exposure: Hardcoded production metadata can misroute inventory, billing and automation. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect resource tags and constants inside the child module. Second diagnostic: Compare planned tags for staging and production module calls.
Incorrect Answers
A:“Mistaking child directories for independent state can create broad unintended plans” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
B:“Implicit scope expectations can result in missing or wrong module settings” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
C:“Incorrect relative sources can silently reference the wrong directory or fail initialization” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
Question 594
A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Test module outputs and metadata in each environment.
- Use secret retrieval through controlled identity rather than module output.
- Use an indexed or collection expression matching the module instance addressing created by count.
- Retain stable outputs and plan staged refactoring.
- Convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Test module outputs and metadata in each environment. Together the corrective action and its implementation safeguard need to address the recorded condition: A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. Acceptance requires Resource labels follow the calling environment's approved values.
E:This is one of the two necessary decisions for a safe design: Convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Together the corrective action and its implementation safeguard need to address the recorded condition: A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. Acceptance requires Resource labels follow the calling environment's approved values.
Incorrect Answers
B:“Use secret retrieval through controlled identity rather than module output” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
C:“Use an indexed or collection expression matching the module instance addressing created by count” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
D:“Retain stable outputs and plan staged refactoring” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
Question 595
A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The team has implemented an approved Terraform change. Which observed result most directly confirms that the original requirement is now met, beyond a successful command exit code?
- Resource labels follow the calling environment's approved values.
- Each child receives an intentional environment input with no implicit name propagation.
- The root output selects the intended child instance endpoint.
- The child receives the approved engine size through its public interface.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: Resource labels follow the calling environment's approved values. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Test module outputs and metadata in each environment.
Incorrect Answers
B:“Each child receives an intentional environment input with no implicit name propagation” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
C:“The root output selects the intended child instance endpoint” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
D:“The child receives the approved engine size through its public interface” would address a different Terraform configuration concern; the source instead describes A reusable VPC module has a hardcoded production tag and environment name, so staging resources inherit production labels. The appropriate design is to convert environment-specific attributes to explicit inputs while retaining safe defaults only where appropriate. Confirm whether resource labels follow the calling environment's approved values.
Question 596
A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Build a minimal isolated module test fixture with representative required inputs and provider configuration.
- Use the appropriate Registry or VCS module source syntax rather than a local file path.
- Use an indexed or collection expression matching the module instance addressing created by count.
- Select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range.
Explanation
Correct Answer
B:The proposed intervention addresses the reported Terraform engineering failure: A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. It applies the design choice Use the appropriate Registry or VCS module source syntax rather than a local file path. Review the primary diagnostic: Inspect source address grammar and registry host requirements. The expected outcome is: The module downloads from its approved registry release instead of an absent local folder. The rollout safeguard is: Verify registry authentication and pin the expected version.
Incorrect Answers
A:“Build a minimal isolated module test fixture with representative required inputs and provider configuration” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder.
C:“Use an indexed or collection expression matching the module instance addressing created by count” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder.
D:“Select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder.
Question 597
A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. Before choosing a remedy, the team needs independent evidence of the actual root cause. Which TWO checks most directly test this case? (Select TWO.)
- Inspect old and proposed resource addresses before migration.
- Inspect source address grammar and registry host requirements.
- Inspect the parent's provider configurations and module providers map.
- Check initialization resolution and authentication for the intended registry.
- Inspect provider blocks inside the child and caller.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Inspect source address grammar and registry host requirements. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Use the appropriate Registry or VCS module source syntax rather than a local file path. The expected confirmation is The module downloads from its approved registry release instead of an absent local folder.
D:This is directly relevant evidence for the reported behavior: Check initialization resolution and authentication for the intended registry. Pair it with a separate check from the same case rather than assuming one finding proves the cause. The evidence supports or refutes the change proposal: Use the appropriate Registry or VCS module source syntax rather than a local file path. The expected confirmation is The module downloads from its approved registry release instead of an absent local folder.
Incorrect Answers
A:“Inspect old and proposed resource addresses before migration” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder.
C:“Inspect the parent's provider configurations and module providers map” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder.
E:“Inspect provider blocks inside the child and caller” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder.
Question 598
A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Confusing source schemes can break reproducible initialization.
- Hidden outputs cannot be accessed reliably outside the current root.
- Sensitive values may leak through module outputs or state even if input is marked sensitive.
- Hardcoded production metadata can misroute inventory, billing and automation.
Explanation
Correct Answer
A:The reported condition creates the specific potential exposure: Confusing source schemes can break reproducible initialization. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect source address grammar and registry host requirements. Second diagnostic: Check initialization resolution and authentication for the intended registry.
Incorrect Answers
B:“Hidden outputs cannot be accessed reliably outside the current root” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder.
C:“Sensitive values may leak through module outputs or state even if input is marked sensitive” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder.
D:“Hardcoded production metadata can misroute inventory, billing and automation” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder.
Question 599
A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Build a minimal isolated module test fixture with representative required inputs and provider configuration.
- Choose immutable keys and plan transitions carefully.
- Use a documented migration guide and gradual adoption.
- Use the appropriate Registry or VCS module source syntax rather than a local file path.
- Verify registry authentication and pin the expected version.
Explanation
Correct Answers
D:This is one of the two necessary decisions for a safe design: Use the appropriate Registry or VCS module source syntax rather than a local file path. Together the corrective action and its implementation safeguard need to address the recorded condition: A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. Acceptance requires The module downloads from its approved registry release instead of an absent local folder.
E:This is one of the two necessary decisions for a safe design: Verify registry authentication and pin the expected version. Together the corrective action and its implementation safeguard need to address the recorded condition: A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. Acceptance requires The module downloads from its approved registry release instead of an absent local folder.
Incorrect Answers
A:“Build a minimal isolated module test fixture with representative required inputs and provider configuration” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder. For a governed implementation, the complementary validated step is to verify registry authentication and pin the expected version.
B:“Choose immutable keys and plan transitions carefully” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder.
C:“Use a documented migration guide and gradual adoption” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder.
Question 600
A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The team has implemented an approved Terraform change. Which observed result most directly confirms that the original requirement is now met, beyond a successful command exit code?
- Existing remote objects retain correct Terraform ownership under new module addresses.
- Each child receives an intentional environment input with no implicit name propagation.
- The root output selects the intended child instance endpoint.
- The module downloads from its approved registry release instead of an absent local folder.
Explanation
Correct Answer
D:This is the appropriate measurable post-change acceptance criterion: The module downloads from its approved registry release instead of an absent local folder. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Verify registry authentication and pin the expected version.
Incorrect Answers
A:“Existing remote objects retain correct Terraform ownership under new module addresses” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder.
B:“Each child receives an intentional environment input with no implicit name propagation” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder.
C:“The root output selects the intended child instance endpoint” would address a different Terraform configuration concern; the source instead describes A team starts calling a private module registry but puts a local relative path into source and expects Terraform to resolve it remotely. The appropriate design is to use the appropriate Registry or VCS module source syntax rather than a local file path. Confirm whether the module downloads from its approved registry release instead of an absent local folder.