HashiCorp Terraform Associate Practice Test 99
Question 980
A managed workspace receives API token settings in its repository, and the team expects marking the HCL variable sensitive to hide the token from Git history. 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?
- Remote runs receive scoped credentials without storing secret values in code.
- Drift is surfaced for review without silent infrastructure mutation.
- Each infrastructure workspace has an accountable team and cost context.
- Runs can reach the protected API without exposing it publicly.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: Remote runs receive scoped credentials without storing secret values in code. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Rotate leaked tokens and restrict variable access.
Incorrect Answers
B:“Drift is surfaced for review without silent infrastructure mutation” would address a different Terraform configuration concern; the source instead describes A managed workspace receives API token settings in its repository, and the team expects marking the HCL variable sensitive to hide the token from Git history. The appropriate design is to move secrets into sensitive HCP variables or dynamic credential integration rather than committing them to VCS. Confirm whether remote runs receive scoped credentials without storing secret values in code.
C:“Each infrastructure workspace has an accountable team and cost context” would address a different Terraform configuration concern; the source instead describes A managed workspace receives API token settings in its repository, and the team expects marking the HCL variable sensitive to hide the token from Git history. The appropriate design is to move secrets into sensitive HCP variables or dynamic credential integration rather than committing them to VCS. Confirm whether remote runs receive scoped credentials without storing secret values in code.
D:“Runs can reach the protected API without exposing it publicly” would address a different Terraform configuration concern; the source instead describes A managed workspace receives API token settings in its repository, and the team expects marking the HCL variable sensitive to hide the token from Git history. The appropriate design is to move secrets into sensitive HCP variables or dynamic credential integration rather than committing them to VCS. Confirm whether remote runs receive scoped credentials without storing secret values in code.
Question 981
A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Treat health and drift assessments as detection or reporting functions and require explicit approved remediation runs.
- Use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association.
- Distinguish CLI workspaces from HCP Terraform organization workspaces and create the appropriate managed workspace explicitly.
- Evaluate HCP Terraform agents in an approved network with the necessary API connectivity and scoped credentials.
Explanation
Correct Answer
B:The proposed intervention addresses the reported Terraform engineering failure: A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. It applies the design choice Use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Review the primary diagnostic: Inspect existing local state contents and backend configuration. The expected outcome is: The remote execution workspace manages the same intended objects without duplicates. The rollout safeguard is: Back up state and inspect a no-op plan before apply.
Incorrect Answers
A:“Treat health and drift assessments as detection or reporting functions and require explicit approved remediation runs” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
C:“Distinguish CLI workspaces from HCP Terraform organization workspaces and create the appropriate managed workspace explicitly” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
D:“Evaluate HCP Terraform agents in an approved network with the necessary API connectivity and scoped credentials” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
Question 982
A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. 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 pending and active run statuses and lock events.
- Inspect proposed policy definitions and scoped workspaces.
- Inspect the policy set's enforcement configuration.
- Inspect existing local state contents and backend configuration.
- Check HCP workspace remote state after controlled migration.
Explanation
Correct Answers
D:This is directly relevant evidence for the reported behavior: Inspect existing local state contents and backend configuration. 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 supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. The expected confirmation is The remote execution workspace manages the same intended objects without duplicates.
E:This is directly relevant evidence for the reported behavior: Check HCP workspace remote state after controlled migration. 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 supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. The expected confirmation is The remote execution workspace manages the same intended objects without duplicates.
Incorrect Answers
A:“Inspect pending and active run statuses and lock events” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
B:“Inspect proposed policy definitions and scoped workspaces” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
C:“Inspect the policy set's enforcement configuration” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
Question 983
A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Incorrect migration can cause an empty state and duplicate planned creates.
- Flat organization can hide ownership and lead to overbroad access.
- Uncontrolled variable propagation may overwrite legitimate environment differences.
- Terraform input variables and shell environment variables are not interchangeable in all providers.
Explanation
Correct Answer
A:The reported condition creates the specific potential exposure: Incorrect migration can cause an empty state and duplicate planned creates. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect existing local state contents and backend configuration. Second diagnostic: Check HCP workspace remote state after controlled migration.
Incorrect Answers
B:“Flat organization can hide ownership and lead to overbroad access” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
C:“Uncontrolled variable propagation may overwrite legitimate environment differences” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
D:“Terraform input variables and shell environment variables are not interchangeable in all providers” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
Question 984
A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. 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 supported cloud block or backend migration workflow and confirm remote state lineage and workspace association.
- Organize workspaces into named HCP projects with intentional team and policy scopes.
- Upgrade through staging and review policy/tool compatibility.
- Back up state and inspect a no-op plan before apply.
- Rotate leaked tokens and restrict variable access.
Explanation
Correct Answers
A:This is one of the two necessary decisions for a safe design: Use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Together the corrective action and its implementation safeguard need to address the recorded condition: A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. Acceptance requires The remote execution workspace manages the same intended objects without duplicates.
D:This is one of the two necessary decisions for a safe design: Back up state and inspect a no-op plan before apply. Together the corrective action and its implementation safeguard need to address the recorded condition: A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. Acceptance requires The remote execution workspace manages the same intended objects without duplicates.
Incorrect Answers
B:“Organize workspaces into named HCP projects with intentional team and policy scopes” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
C:“Upgrade through staging and review policy/tool compatibility” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
E:“Rotate leaked tokens and restrict variable access” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
Question 985
A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. 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?
- Plans execute the intended monorepo root without unrelated resources.
- Drift is surfaced for review without silent infrastructure mutation.
- The remote execution workspace manages the same intended objects without duplicates.
- Production changes execute under accountable controlled workspace permissions.
Explanation
Correct Answer
C:This is the appropriate measurable post-change acceptance criterion: The remote execution workspace manages the same intended objects without duplicates. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Back up state and inspect a no-op plan before apply.
Incorrect Answers
A:“Plans execute the intended monorepo root without unrelated resources” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
B:“Drift is surfaced for review without silent infrastructure mutation” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
D:“Production changes execute under accountable controlled workspace permissions” would address a different Terraform configuration concern; the source instead describes A software provider wants to connect an existing local Terraform root to HCP remote execution and assumes changing a UI setting automatically migrates the backend state. The appropriate design is to use supported cloud block or backend migration workflow and confirm remote state lineage and workspace association. Confirm whether the remote execution workspace manages the same intended objects without duplicates.
Question 986
An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The infrastructure review requires a supported, least-disruptive Terraform solution. Which proposed change most directly addresses this specific situation?
- Choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly.
- Configure the correct VCS working directory and trigger rules for that root module.
- Distinguish CLI workspaces from HCP Terraform organization workspaces and create the appropriate managed workspace explicitly.
- Treat health and drift assessments as detection or reporting functions and require explicit approved remediation runs.
Explanation
Correct Answer
A:The proposed intervention addresses the reported Terraform engineering failure: An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. It applies the design choice Choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Review the primary diagnostic: Inspect workspace VCS connection status and execution mode. The expected outcome is: The team understands which actions start runs and which only update source code. The rollout safeguard is: Test events in a nonproduction workspace before relying on automation.
Incorrect Answers
B:“Configure the correct VCS working directory and trigger rules for that root module” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.
C:“Distinguish CLI workspaces from HCP Terraform organization workspaces and create the appropriate managed workspace explicitly” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.
D:“Treat health and drift assessments as detection or reporting functions and require explicit approved remediation runs” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.
Question 987
An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. 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 repository history for secrets and effective workspace variable configuration.
- Check actual run source for recent CLI calls versus commits.
- Inspect workspace VCS connection status and execution mode.
- Inspect effective team permissions at organization project and workspace levels.
- Inspect effective variables for sample workspaces and precedence.
Explanation
Correct Answers
B:This is directly relevant evidence for the reported behavior: Check actual run source for recent CLI calls versus commits. 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: Choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. The expected confirmation is The team understands which actions start runs and which only update source code.
C:This is directly relevant evidence for the reported behavior: Inspect workspace VCS connection status and execution mode. 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: Choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. The expected confirmation is The team understands which actions start runs and which only update source code.
Incorrect Answers
A:“Inspect repository history for secrets and effective workspace variable configuration” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.
D:“Inspect effective team permissions at organization project and workspace levels” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.
E:“Inspect effective variables for sample workspaces and precedence” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.
Question 988
An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. If this behavior continues without correction, which specific risk is most closely supported by the facts, without assuming harm has already occurred?
- Poor ownership metadata can hide waste and delay safe cleanup.
- Overbroad workspace permissions can expose state and production infrastructure.
- Broad local credentials can bypass governance even with remote state storage.
- Misunderstood run triggers can leave infrastructure unexpectedly unchanged.
Explanation
Correct Answer
D:The reported condition creates the specific potential exposure: Misunderstood run triggers can leave infrastructure unexpectedly unchanged. A risk is not evidence that every adverse outcome already occurred. Two independent checks can corroborate the assessment. First diagnostic: Inspect workspace VCS connection status and execution mode. Second diagnostic: Check actual run source for recent CLI calls versus commits.
Incorrect Answers
A:“Poor ownership metadata can hide waste and delay safe cleanup” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.
B:“Overbroad workspace permissions can expose state and production infrastructure” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.
C:“Broad local credentials can bypass governance even with remote state storage” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.
Question 989
An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. 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 failed checks and document escalation ownership.
- Check the configured policy enforcement mode and approval behavior before declaring a run compliant or blocked.
- Test events in a nonproduction workspace before relying on automation.
- Rotate leaked tokens and restrict variable access.
- Choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly.
Explanation
Correct Answers
C:This is one of the two necessary decisions for a safe design: Test events in a nonproduction workspace before relying on automation. Together the corrective action and its implementation safeguard need to address the recorded condition: An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. Acceptance requires The team understands which actions start runs and which only update source code.
E:This is one of the two necessary decisions for a safe design: Choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Together the corrective action and its implementation safeguard need to address the recorded condition: An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. Acceptance requires The team understands which actions start runs and which only update source code.
Incorrect Answers
A:“Test failed checks and document escalation ownership” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.
B:“Check the configured policy enforcement mode and approval behavior before declaring a run compliant or blocked” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.
D:“Rotate leaked tokens and restrict variable access” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.
Question 990
An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. 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 team understands which actions start runs and which only update source code.
- Each infrastructure workspace has an accountable team and cost context.
- The remote execution workspace manages the same intended objects without duplicates.
- Remote and local plans agree on tested configuration semantics.
Explanation
Correct Answer
A:This is the appropriate measurable post-change acceptance criterion: The team understands which actions start runs and which only update source code. A successful Terraform command or a completed change request alone would not demonstrate that outcome. Preserve this control during validation: Test events in a nonproduction workspace before relying on automation.
Incorrect Answers
B:“Each infrastructure workspace has an accountable team and cost context” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.
C:“The remote execution workspace manages the same intended objects without duplicates” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.
D:“Remote and local plans agree on tested configuration semantics” would address a different Terraform configuration concern; the source instead describes An engineering group uses a CLI-driven HCP workspace but assumes any branch push to its repository automatically starts a remote plan. The appropriate design is to choose and document VCS-driven versus CLI-driven workflow semantics and configure triggers accordingly. Confirm whether the team understands which actions start runs and which only update source code.