HashiCorp Terraform Associate Practice Test 61
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.
Question 601
A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Map the appropriate provider alias in the module providers argument and declare expected child aliases.
- Use an indexed or collection expression matching the module instance addressing created by count.
- Define an accurate object or map input contract, or explicitly transform the caller's data into the accepted type.
- Prefer vetted sources and an internal private module registry with reviewed version governance.
Explanation
Correct Answer
B:The proposed intervention addresses the reported Terraform engineering failure: A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. It applies the design choice Use an indexed or collection expression matching the module instance addressing created by count. Review the primary diagnostic: Inspect the count expression and resulting module instances. The expected outcome is: The root output selects the intended child instance endpoint. The rollout safeguard is: Test zero, one and multiple instances for expected outputs.
Incorrect Answers
A:“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 root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
C:“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 root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
D:“Prefer vetted sources and an internal private module registry with reviewed version governance” would address a different Terraform configuration concern; the source instead describes A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
Question 602
A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. 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 count expression and resulting module instances.
- Inspect the services collection keys and module variable contract.
- Inspect resource tags and constants inside the child module.
- Check output expression types and references to specific instances.
- Inspect downstream callers and required fields.
Explanation
Correct Answers
A:This is directly relevant evidence for the reported behavior: Inspect the count expression and resulting module instances. 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 an indexed or collection expression matching the module instance addressing created by count. The expected confirmation is The root output selects the intended child instance endpoint.
D:This is directly relevant evidence for the reported behavior: Check output expression types and references to specific instances. 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 an indexed or collection expression matching the module instance addressing created by count. The expected confirmation is The root output selects the intended child instance endpoint.
Incorrect Answers
B:“Inspect the services collection keys and module variable contract” would address a different Terraform configuration concern; the source instead describes A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
C:“Inspect resource tags and constants inside the child module” would address a different Terraform configuration concern; the source instead describes A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
E:“Inspect downstream callers and required fields” would address a different Terraform configuration concern; the source instead describes A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
Question 603
A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Hardcoded production metadata can misroute inventory, billing and automation.
- Ignoring module multiplicity produces type and reference errors.
- Hardcoded provider credentials and embedded configurations reduce module composability.
- Uncoordinated module upgrades can halt automated infrastructure releases.
Explanation
Correct Answer
B:The reported condition creates the specific potential exposure: Ignoring module multiplicity produces type and reference errors. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the count expression and resulting module instances. Second diagnostic: Check output expression types and references to specific instances.
Incorrect Answers
A:“Hardcoded production metadata can misroute inventory, billing and automation” would address a different Terraform configuration concern; the source instead describes A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
C:“Hardcoded provider credentials and embedded configurations reduce module composability” would address a different Terraform configuration concern; the source instead describes A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
D:“Uncoordinated module upgrades can halt automated infrastructure releases” would address a different Terraform configuration concern; the source instead describes A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
Question 604
A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. 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.
- Use an indexed or collection expression matching the module instance addressing created by count.
- Pin a specific stable Git ref or tag in the module source and test the selected commit.
- Test zero, one and multiple instances for expected outputs.
- Test alias propagation with region-specific disposable resources.
Explanation
Correct Answers
B:This is one of the two necessary decisions for a safe design: Use an indexed or collection expression matching the module instance addressing created by count. Together the corrective action and its implementation safeguard need to address the recorded condition: A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. Acceptance requires The root output selects the intended child instance endpoint.
D:This is one of the two necessary decisions for a safe design: Test zero, one and multiple instances for expected outputs. Together the corrective action and its implementation safeguard need to address the recorded condition: A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. Acceptance requires The root output selects the intended child instance endpoint.
Incorrect Answers
A:“Choose immutable keys and plan transitions carefully” would address a different Terraform configuration concern; the source instead describes A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
C:“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 root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
E:“Test alias propagation with region-specific disposable resources” would address a different Terraform configuration concern; the source instead describes A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
Question 605
A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. 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 root output selects the intended child instance endpoint.
- The module receives a predictable typed subnet collection.
- The reusable module works with different approved account contexts.
- Both customers use a maintained reusable module with intentional differences.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: The root output selects the intended child instance endpoint. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Test zero, one and multiple instances for expected outputs.
Incorrect Answers
B:“The module receives a predictable typed subnet collection” would address a different Terraform configuration concern; the source instead describes A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
C:“The reusable module works with different approved account contexts” would address a different Terraform configuration concern; the source instead describes A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
D:“Both customers use a maintained reusable module with intentional differences” would address a different Terraform configuration concern; the source instead describes A root module sets count on child module instances and then refers to module.service.endpoint as if the module were a single object. The appropriate design is to use an indexed or collection expression matching the module instance addressing created by count. Confirm whether the root output selects the intended child instance endpoint.
Question 606
A security team adds a private module version that introduces a new required input but applies it without updating calling roots. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Use the appropriate Registry or VCS module source syntax rather than a local file path.
- Use for_each over stable service keys on the module block and pass the expected per-service inputs.
- Upgrade callers with the new input values and validate the module contract before rollout.
- Prefer vetted sources and an internal private module registry with reviewed version governance.
Explanation
Correct Answer
C:The proposed intervention addresses the reported Terraform engineering failure: A security team adds a private module version that introduces a new required input but applies it without updating calling roots. It applies the design choice Upgrade callers with the new input values and validate the module contract before rollout. Review the primary diagnostic: Inspect the target module release's variable changes. The expected outcome is: Each upgraded root passes the required new input deliberately. The rollout safeguard is: Use a documented migration guide and gradual adoption.
Incorrect Answers
A:“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 security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.
B:“Use for_each over stable service keys on the module block and pass the expected per-service inputs” would address a different Terraform configuration concern; the source instead describes A security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.
D:“Prefer vetted sources and an internal private module registry with reviewed version governance” would address a different Terraform configuration concern; the source instead describes A security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.
Question 607
A security team adds a private module version that introduces a new required input but applies it without updating calling roots. 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 actual customization requirements across both customers.
- Inspect child output block and intended exported value.
- Inspect current and target semantic versions of the module.
- Check terraform validate and plan for every affected root.
- Inspect the target module release's variable changes.
Explanation
Correct Answers
D:This is directly relevant evidence for the reported behavior: Check terraform validate and plan for every affected root. 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: Upgrade callers with the new input values and validate the module contract before rollout. The expected confirmation is Each upgraded root passes the required new input deliberately.
E:This is directly relevant evidence for the reported behavior: Inspect the target module release's variable 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: Upgrade callers with the new input values and validate the module contract before rollout. The expected confirmation is Each upgraded root passes the required new input deliberately.
Incorrect Answers
A:“Inspect actual customization requirements across both customers” would address a different Terraform configuration concern; the source instead describes A security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.
B:“Inspect child output block and intended exported value” would address a different Terraform configuration concern; the source instead describes A security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.
C:“Inspect current and target semantic versions of the module” would address a different Terraform configuration concern; the source instead describes A security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.
Question 608
A security team adds a private module version that introduces a new required input but applies it without updating calling roots. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Ignoring module multiplicity produces type and reference errors.
- Uncoordinated module upgrades can halt automated infrastructure releases.
- Copy-pasted module blocks can drift and complicate additions or deletions.
- Implicit type coercion can hide missing metadata or produce invalid resource iteration.
Explanation
Correct Answer
B:The reported condition creates the specific potential exposure: Uncoordinated module upgrades can halt automated infrastructure releases. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect the target module release's variable changes. Second diagnostic: Check terraform validate and plan for every affected root.
Incorrect Answers
A:“Ignoring module multiplicity produces type and reference errors” would address a different Terraform configuration concern; the source instead describes A security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.
C:“Copy-pasted module blocks can drift and complicate additions or deletions” would address a different Terraform configuration concern; the source instead describes A security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.
D:“Implicit type coercion can hide missing metadata or produce invalid resource iteration” would address a different Terraform configuration concern; the source instead describes A security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.
Question 609
A security team adds a private module version that introduces a new required input but applies it without updating calling roots. A reviewer asks for BOTH a targeted technical response and a corresponding change-control safeguard. Which TWO actions together meet that requirement? (Select TWO.)
- Use secret retrieval through controlled identity rather than module output.
- Upgrade callers with the new input values and validate the module contract before rollout.
- Use a documented migration guide and gradual adoption.
- Map the appropriate provider alias in the module providers argument and declare expected child aliases.
- Review external interfaces and avoid exporting unnecessary internals.
Explanation
Correct Answers
B:This is one of the two necessary decisions for a safe design: Upgrade callers with the new input values and validate the module contract before rollout. Together the corrective action and its implementation safeguard need to address the recorded condition: A security team adds a private module version that introduces a new required input but applies it without updating calling roots. Acceptance requires Each upgraded root passes the required new input deliberately.
C:This is one of the two necessary decisions for a safe design: Use a documented migration guide and gradual adoption. Together the corrective action and its implementation safeguard need to address the recorded condition: A security team adds a private module version that introduces a new required input but applies it without updating calling roots. Acceptance requires Each upgraded root passes the required new input deliberately.
Incorrect Answers
A:“Use secret retrieval through controlled identity rather than module output” would address a different Terraform configuration concern; the source instead describes A security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.
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 security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.
E:“Review external interfaces and avoid exporting unnecessary internals” would address a different Terraform configuration concern; the source instead describes A security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.
Question 610
A security team adds a private module version that introduces a new required input but applies it without updating calling roots. 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.
- Only required non-secret module information is exposed in ordinary outputs.
- Existing remote objects retain correct Terraform ownership under new module addresses.
- Resource labels follow the calling environment's approved values.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: Each upgraded root passes the required new input deliberately. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Use a documented migration guide and gradual adoption.
Incorrect Answers
B:“Only required non-secret module information is exposed in ordinary outputs” would address a different Terraform configuration concern; the source instead describes A security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.
C:“Existing remote objects retain correct Terraform ownership under new module addresses” would address a different Terraform configuration concern; the source instead describes A security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.
D:“Resource labels follow the calling environment's approved values” would address a different Terraform configuration concern; the source instead describes A security team adds a private module version that introduces a new required input but applies it without updating calling roots. The appropriate design is to upgrade callers with the new input values and validate the module contract before rollout. Confirm whether each upgraded root passes the required new input deliberately.