HashiCorp Terraform Associate Practice Test 55
Question 540
A module's root inputs include a sensitive password but the author publishes it as an ordinary output to make debugging convenient. 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?
- The child receives the approved engine size through its public interface.
- Only required non-secret module information is exposed in ordinary outputs.
- Consumers obtain the endpoint without secret data exposure.
- Production consumes a reviewed module revision independent of branch movement.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: Only required non-secret module information is exposed in ordinary outputs. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Use approved secrets integration and avoid password output altogether.
Incorrect Answers
A:“The child receives the approved engine size through its public interface” would address a different Terraform configuration concern; the source instead describes A module's root inputs include a sensitive password but the author publishes it as an ordinary output to make debugging convenient. The appropriate design is to avoid exporting secrets unnecessarily and mark permitted outputs sensitive while protecting actual state. Confirm whether only required non-secret module information is exposed in ordinary outputs.
C:“Consumers obtain the endpoint without secret data exposure” would address a different Terraform configuration concern; the source instead describes A module's root inputs include a sensitive password but the author publishes it as an ordinary output to make debugging convenient. The appropriate design is to avoid exporting secrets unnecessarily and mark permitted outputs sensitive while protecting actual state. Confirm whether only required non-secret module information is exposed in ordinary outputs.
D:“Production consumes a reviewed module revision independent of branch movement” would address a different Terraform configuration concern; the source instead describes A module's root inputs include a sensitive password but the author publishes it as an ordinary output to make debugging convenient. The appropriate design is to avoid exporting secrets unnecessarily and mark permitted outputs sensitive while protecting actual state. Confirm whether only required non-secret module information is exposed in ordinary outputs.
Question 541
A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- 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.
- Map the appropriate provider alias in the module providers argument and declare expected child aliases.
- Use documented moved blocks or carefully coordinated state migration to preserve resource identity during module refactoring.
Explanation
Correct Answer
B:The proposed intervention addresses the reported Terraform engineering failure: A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. It applies the design choice Select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Review the primary diagnostic: Inspect current and target semantic versions of the module. The expected outcome is: The module advances within a declared reviewed compatibility window. The rollout safeguard is: Test intended versions and document compatible upgrade policy.
Incorrect Answers
A:“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 company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
C:“Map the appropriate provider alias in the module providers argument and declare expected child aliases” would address a different Terraform configuration concern; the source instead describes A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
D:“Use documented moved blocks or carefully coordinated state migration to preserve resource identity during module refactoring” would address a different Terraform configuration concern; the source instead describes A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
Question 542
A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. 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 the services collection keys and module variable contract.
- Inspect current and target semantic versions of the module.
- Inspect source address grammar and registry host requirements.
- Verify the constraint accepts desired patch/minor updates while blocking major changes.
- Inspect the target module release's variable changes.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Inspect current and target semantic versions of the 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: Select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. The expected confirmation is The module advances within a declared reviewed compatibility window.
D:This is directly relevant evidence for the reported behavior: Verify the constraint accepts desired patch/minor updates while blocking major changes. 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: Select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. The expected confirmation is The module advances within a declared reviewed compatibility window.
Incorrect Answers
A:“Inspect the services collection keys and module variable contract” would address a different Terraform configuration concern; the source instead describes A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
C:“Inspect source address grammar and registry host requirements” would address a different Terraform configuration concern; the source instead describes A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
E:“Inspect the target module release's variable changes” would address a different Terraform configuration concern; the source instead describes A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
Question 543
A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Incorrect relative sources can silently reference the wrong directory or fail initialization.
- Loose constraints can import breaking updates into production.
- Ignoring module multiplicity produces type and reference errors.
- Moving branch tips can change infrastructure behavior without a root code diff.
Explanation
Correct Answer
B:The reported condition creates the specific potential exposure: Loose constraints can import breaking updates into production. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect current and target semantic versions of the module. Second diagnostic: Verify the constraint accepts desired patch/minor updates while blocking major changes.
Incorrect Answers
A:“Incorrect relative sources can silently reference the wrong directory or fail initialization” would address a different Terraform configuration concern; the source instead describes A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
C:“Ignoring module multiplicity produces type and reference errors” would address a different Terraform configuration concern; the source instead describes A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
D:“Moving branch tips can change infrastructure behavior without a root code diff” would address a different Terraform configuration concern; the source instead describes A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
Question 544
A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Choose immutable keys and plan transitions carefully.
- Test intended versions and document compatible upgrade policy.
- Select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range.
- Use secret retrieval through controlled identity rather than module output.
- Upgrade callers with the new input values and validate the module contract before rollout.
Explanation
Correct Answers
B:This is one of the two necessary decisions for a safe design: Test intended versions and document compatible upgrade policy. Together the corrective action and its implementation safeguard need to address the recorded condition: A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. Acceptance requires The module advances within a declared reviewed compatibility window.
C:This is one of the two necessary decisions for a safe design: Select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Together the corrective action and its implementation safeguard need to address the recorded condition: A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. Acceptance requires The module advances within a declared reviewed compatibility window.
Incorrect Answers
A:“Choose immutable keys and plan transitions carefully” would address a different Terraform configuration concern; the source instead describes A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
D:“Use secret retrieval through controlled identity rather than module output” would address a different Terraform configuration concern; the source instead describes A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
E:“Upgrade callers with the new input values and validate the module contract before rollout” would address a different Terraform configuration concern; the source instead describes A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
Question 545
A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. 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?
- Each upgraded root passes the required new input deliberately.
- New module consumers discover invalid contracts before production deployment.
- The module advances within a declared reviewed compatibility window.
- Child-managed resources use the intended account and region.
Explanation
Correct Answer
C:This is the appropriate measurable post-change acceptance criterion: The module advances within a declared reviewed compatibility window. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Test intended versions and document compatible upgrade policy.
Incorrect Answers
A:“Each upgraded root passes the required new input deliberately” would address a different Terraform configuration concern; the source instead describes A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
B:“New module consumers discover invalid contracts before production deployment” would address a different Terraform configuration concern; the source instead describes A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
D:“Child-managed resources use the intended account and region” would address a different Terraform configuration concern; the source instead describes A company needs a new minor release of a network module but wants to prevent adoption of the next major breaking revision. The appropriate design is to select an appropriate compatible version constraint such as ~> on a registry module version and review the allowed range. Confirm whether the module advances within a declared reviewed compatibility window.
Question 546
A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Define an accurate object or map input contract, or explicitly transform the caller's data into the accepted type.
- Expose a typed input variable in the child and pass the engine size through the module block.
- Compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries.
- Map the appropriate provider alias in the module providers argument and declare expected child aliases.
Explanation
Correct Answer
C:The proposed intervention addresses the reported Terraform engineering failure: A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. It applies the design choice Compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Review the primary diagnostic: Inspect which resources share lifecycle and operational owners. The expected outcome is: Independent service changes avoid unrelated persistent infrastructure modifications. The rollout safeguard is: Retain stable outputs and plan staged refactoring.
Incorrect Answers
A:“Define an accurate object or map input contract, or explicitly transform the caller's data into the accepted type” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications.
B:“Expose a typed input variable in the child and pass the engine size through the module block” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications.
D:“Map the appropriate provider alias in the module providers argument and declare expected child aliases” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications.
Question 547
A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. 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 which resources share lifecycle and operational owners.
- Inspect downstream callers and required fields.
- Inspect the module source and currently selected version.
- Inspect all child outputs and their consumer requirements.
- Compare plan blast radius from a database change in monolithic versus composed modules.
Explanation
Correct Answers
A:This is directly relevant evidence for the reported behavior: Inspect which resources share lifecycle and operational owners. 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: Compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. The expected confirmation is Independent service changes avoid unrelated persistent infrastructure modifications.
E:This is directly relevant evidence for the reported behavior: Compare plan blast radius from a database change in monolithic versus composed modules. 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: Compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. The expected confirmation is Independent service changes avoid unrelated persistent infrastructure modifications.
Incorrect Answers
B:“Inspect downstream callers and required fields” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications.
C:“Inspect the module source and currently selected version” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications.
D:“Inspect all child outputs and their consumer requirements” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications.
Question 548
A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Overly coupled modules make safe lifecycle management harder.
- Bundled sensitive outputs widen access to confidential information.
- Hardcoded production metadata can misroute inventory, billing and automation.
- Root modules cannot write arbitrary private child locals.
Explanation
Correct Answer
A:The reported condition creates the specific potential exposure: Overly coupled modules make safe lifecycle management harder. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect which resources share lifecycle and operational owners. Second diagnostic: Compare plan blast radius from a database change in monolithic versus composed modules.
Incorrect Answers
B:“Bundled sensitive outputs widen access to confidential information” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications.
C:“Hardcoded production metadata can misroute inventory, billing and automation” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications.
D:“Root modules cannot write arbitrary private child locals” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications.
Question 549
A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Retain stable outputs and plan staged refactoring.
- Compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries.
- Map the appropriate provider alias in the module providers argument and declare expected child aliases.
- Use immutable references and peer-reviewed module releases.
- Test intended versions and document compatible upgrade policy.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Retain stable outputs and plan staged refactoring. Together the corrective action and its implementation safeguard need to address the recorded condition: A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. Acceptance requires Independent service changes avoid unrelated persistent infrastructure modifications.
B:This is one of the two necessary decisions for a safe design: Compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Together the corrective action and its implementation safeguard need to address the recorded condition: A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. Acceptance requires Independent service changes avoid unrelated persistent infrastructure modifications.
Incorrect Answers
C:“Map the appropriate provider alias in the module providers argument and declare expected child aliases” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications. For a governed implementation, the complementary validated step is to retain stable outputs and plan staged refactoring.
D:“Use immutable references and peer-reviewed module releases” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications.
E:“Test intended versions and document compatible upgrade policy” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications.
Question 550
A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. 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?
- Each release uses an authorized module revision consistent with compatibility policy.
- Independent service changes avoid unrelated persistent infrastructure modifications.
- The root output selects the intended child instance endpoint.
- Existing remote objects retain correct Terraform ownership under new module addresses.
Explanation
Correct Answer
B:This is the appropriate measurable post-change acceptance criterion: Independent service changes avoid unrelated persistent infrastructure modifications. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Retain stable outputs and plan staged refactoring.
Incorrect Answers
A:“Each release uses an authorized module revision consistent with compatibility policy” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications.
C:“The root output selects the intended child instance endpoint” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications.
D:“Existing remote objects retain correct Terraform ownership under new module addresses” would address a different Terraform configuration concern; the source instead describes A team builds a broad platform module that creates networks, databases and application services all at once, making small app updates risk full database replacement. The appropriate design is to compose smaller purpose-focused modules with explicit dependencies and outputs that reflect stable ownership boundaries. Confirm whether independent service changes avoid unrelated persistent infrastructure modifications.