Practice Exams:

HashiCorp Terraform Associate 004 Dumps

EXAM: HashiCorp Certified: Terraform Associate (004)
Verified By Experts
Premium Bundle
$40.00
$59.97 $99.97

Terraform Associate 004 Premium Bundle


  • Premium File 167 Questions & Answers
  • Training Course 118 Lectures
  • Study Guide 285 Pages

HashiCorp Terraform Associate 004 Practice Test 77

Question 760

A mobile gaming company shares module code across environments while preserving distinct HCP Terraform state, access and run histories. Which combined implementation and verification plan is the best match for this workload?

  1. Implement: Organize workspaces into HCP Terraform projects according to team, application or lifecycle boundaries, applying sensible project-level access and variable policies. Verify: Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.
  2. Implement: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership. Verify: Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.
  3. Implement: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership. Verify: Create a test project with development and staging workspaces and verify each retains separate runs and state while sharing intended project metadata.
  4. Implement: Create an HCP Terraform workspace connected to a reviewed configuration and let its run lifecycle plan and apply infrastructure using its own state and variables. Verify: Create a disposable workspace, queue a plan and inspect its run history, state association and variable configuration before any authorized apply.

Answer & Explanations

Correct answer: B

A.

The test would be relevant: Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources. But the offered implementation—Organize workspaces into HCP Terraform projects according to team, application or lifecycle boundaries, applying sensible project-level access and variable policies.—addresses “Group HCP Terraform workspaces into meaningful projects”. The action needed here is: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.

B.

The question is set in this situation: A mobile gaming company shares module code across environments while preserving distinct HCP Terraform state, access and run histories. Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership. Confirm it through this test: Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources. Each HCP Terraform workspace tracks its own runs and state; project organization is a governance hierarchy rather than a shared resource-instance mapping.

C.

The action is applicable: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership. But its proposed test—Create a test project with development and staging workspaces and verify each retains separate runs and state while sharing intended project metadata.—addresses “Group HCP Terraform workspaces into meaningful projects”. This requirement is confirmed instead by: Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.

D.

This action/test pair addresses “Understand HCP Terraform workspace runs as managed workflow units”. Create an HCP Terraform workspace connected to a reviewed configuration and let its run lifecycle plan and apply infrastructure using its own state and variables. Create a disposable workspace, queue a plan and inspect its run history, state association and variable configuration before any authorized apply. The case instead calls for: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.

Question 761

A networking team updates a shared virtual network and wants an application workspace to plan after the network run completes. Which HashiCorp Terraform infrastructure implementation best satisfies this requirement?

  1. Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.
  2. Assign reviewers and operators to the minimum appropriate project or workspace roles rather than granting every collaborator organization-wide administrator privileges.
  3. Publish approved reusable modules to the HCP Terraform private registry with documented source repositories, versions and access permissions.
  4. Organize workspaces into HCP Terraform projects according to team, application or lifecycle boundaries, applying sensible project-level access and variable policies.

Answer & Explanations

Correct answer: A

A.

Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run. Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input. Verify the result with this test: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.

B.

Assign reviewers and operators to the minimum appropriate project or workspace roles rather than granting every collaborator organization-wide administrator privileges. This addresses “Use HCP Terraform team permissions to limit workspace access”, where the governing principle is: HCP Terraform collaboration permissions determine who can view, plan, apply or manage settings; repository access alone does not imply full run authorization. The stated case instead calls for: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

C.

Publish approved reusable modules to the HCP Terraform private registry with documented source repositories, versions and access permissions. This addresses “Use the private module registry with controlled source provenance”, where the governing principle is: A private registry makes reviewed internal modules discoverable and versioned, while public registry availability alone does not establish an organization's security approval. The stated case instead calls for: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

D.

Organize workspaces into HCP Terraform projects according to team, application or lifecycle boundaries, applying sensible project-level access and variable policies. This addresses “Group HCP Terraform workspaces into meaningful projects”, where the governing principle is: Projects group and govern related workspaces; a project does not replace the workspace's own state or automatically merge several separate infrastructure graphs. The stated case instead calls for: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

Question 762

A networking team updates a shared virtual network and wants an application workspace to plan after the network run completes. The infrastructure engineer proposes this change: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run. Which mechanism explains why it works?

  1. A private registry makes reviewed internal modules discoverable and versioned, while public registry availability alone does not establish an organization's security approval.
  2. HCP Terraform collaboration permissions determine who can view, plan, apply or manage settings; repository access alone does not imply full run authorization.
  3. Projects group and govern related workspaces; a project does not replace the workspace's own state or automatically merge several separate infrastructure graphs.
  4. Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input.

Answer & Explanations

Correct answer: D

A.

A private registry makes reviewed internal modules discoverable and versioned, while public registry availability alone does not establish an organization's security approval. That explains “Use the private module registry with controlled source provenance”, not the mechanism behind the described change. The relevant principle is: Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input.

B.

HCP Terraform collaboration permissions determine who can view, plan, apply or manage settings; repository access alone does not imply full run authorization. That explains “Use HCP Terraform team permissions to limit workspace access”, not the mechanism behind the described change. The relevant principle is: Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input.

C.

Projects group and govern related workspaces; a project does not replace the workspace's own state or automatically merge several separate infrastructure graphs. That explains “Group HCP Terraform workspaces into meaningful projects”, not the mechanism behind the described change. The relevant principle is: Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input.

D.

Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input. The corresponding implementation is: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

Question 763

A networking team updates a shared virtual network and wants an application workspace to plan after the network run completes. After implementing this change—Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.—which test most directly validates its intended outcome?

  1. Publish a disposable versioned module, configure an authorized consumer workspace and verify the requested module version resolves to the reviewed source.
  2. Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.
  3. Create separate test reviewer and operator roles, confirm the reviewer can inspect plans but cannot perform a prohibited apply.
  4. Create a test project with development and staging workspaces and verify each retains separate runs and state while sharing intended project metadata.

Answer & Explanations

Correct answer: B

A.

Publish a disposable versioned module, configure an authorized consumer workspace and verify the requested module version resolves to the reviewed source. That would help test “Use the private module registry with controlled source provenance”, not the outcome required in this scenario. The relevant acceptance check is: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.

B.

Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply. This check is decisive because run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input.

C.

Create separate test reviewer and operator roles, confirm the reviewer can inspect plans but cannot perform a prohibited apply. That would help test “Use HCP Terraform team permissions to limit workspace access”, not the outcome required in this scenario. The relevant acceptance check is: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.

D.

Create a test project with development and staging workspaces and verify each retains separate runs and state while sharing intended project metadata. That would help test “Group HCP Terraform workspaces into meaningful projects”, not the outcome required in this scenario. The relevant acceptance check is: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.

Question 764

A networking team updates a shared virtual network and wants an application workspace to plan after the network run completes. Which proposed shortcut most directly risks missed dependent updates or accidental assumptions about workspace orchestration and should therefore be rejected?

  1. Make every engineer an organization owner so anyone can unblock a failed staging run without waiting for approval.
  2. Move several workspaces into one HCP Terraform project and assume their state files automatically combine into one authoritative Terraform state.
  3. Assume every workspace in one project automatically reruns when any other workspace changes, even with no configured run triggers.
  4. Let every team copy modules from unknown repositories without any shared versioning or approval process and call it enterprise governance.

Answer & Explanations

Correct answer: C

A.

Make every engineer an organization owner so anyone can unblock a failed staging run without waiting for approval. That shortcut risks uncontrolled production applies and workspace configuration changes. Here the specific shortcut is: Assume every workspace in one project automatically reruns when any other workspace changes, even with no configured run triggers.

B.

Move several workspaces into one HCP Terraform project and assume their state files automatically combine into one authoritative Terraform state. That shortcut risks misunderstood infrastructure ownership and unintended cross-environment access assumptions. Here the specific shortcut is: Assume every workspace in one project automatically reruns when any other workspace changes, even with no configured run triggers.

C.

Assume every workspace in one project automatically reruns when any other workspace changes, even with no configured run triggers. The foreseeable failure is missed dependent updates or accidental assumptions about workspace orchestration. The safer response is: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

D.

Let every team copy modules from unknown repositories without any shared versioning or approval process and call it enterprise governance. That shortcut risks duplicated untrusted module code and inconsistent upgrades across teams. Here the specific shortcut is: Assume every workspace in one project automatically reruns when any other workspace changes, even with no configured run triggers.

Question 765

A networking team updates a shared virtual network and wants an application workspace to plan after the network run completes. Which combined implementation and verification plan is the best match for this workload?

  1. Implement: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run. Verify: Create a test project with development and staging workspaces and verify each retains separate runs and state while sharing intended project metadata.
  2. Implement: Assign reviewers and operators to the minimum appropriate project or workspace roles rather than granting every collaborator organization-wide administrator privileges. Verify: Create separate test reviewer and operator roles, confirm the reviewer can inspect plans but cannot perform a prohibited apply.
  3. Implement: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run. Verify: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.
  4. Implement: Organize workspaces into HCP Terraform projects according to team, application or lifecycle boundaries, applying sensible project-level access and variable policies. Verify: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.

Answer & Explanations

Correct answer: C

A.

The action is applicable: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run. But its proposed test—Create a test project with development and staging workspaces and verify each retains separate runs and state while sharing intended project metadata.—addresses “Group HCP Terraform workspaces into meaningful projects”. This requirement is confirmed instead by: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.

B.

This action/test pair addresses “Use HCP Terraform team permissions to limit workspace access”. Assign reviewers and operators to the minimum appropriate project or workspace roles rather than granting every collaborator organization-wide administrator privileges. Create separate test reviewer and operator roles, confirm the reviewer can inspect plans but cannot perform a prohibited apply. The case instead calls for: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

C.

Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run. Confirm it through this test: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply. Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input.

D.

The test would be relevant: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply. But the offered implementation—Organize workspaces into HCP Terraform projects according to team, application or lifecycle boundaries, applying sensible project-level access and variable policies.—addresses “Group HCP Terraform workspaces into meaningful projects”. The action needed here is: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

Question 766

An online store maintains separate database and API workspaces and needs explicit follow-on validation after a database networking change. Which HashiCorp Terraform infrastructure implementation best satisfies this requirement?

  1. Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.
  2. Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.
  3. Publish approved reusable modules to the HCP Terraform private registry with documented source repositories, versions and access permissions.
  4. Connect a workspace to an authorized repository and branch so HCP Terraform can queue plans from version-controlled commits and record run history.

Answer & Explanations

Correct answer: A

A.

The question is set in this situation: An online store maintains separate database and API workspaces and needs explicit follow-on validation after a database networking change. Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run. Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input. Verify the result with this test: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.

B.

Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership. This addresses “Keep HCP Terraform workspaces isolated even within the same project”, where the governing principle is: Each HCP Terraform workspace tracks its own runs and state; project organization is a governance hierarchy rather than a shared resource-instance mapping. The stated case instead calls for: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

C.

The question is set in this situation: An online store maintains separate database and API workspaces and needs explicit follow-on validation after a database networking change. Publish approved reusable modules to the HCP Terraform private registry with documented source repositories, versions and access permissions. This addresses “Use the private module registry with controlled source provenance”, where the governing principle is: A private registry makes reviewed internal modules discoverable and versioned, while public registry availability alone does not establish an organization's security approval. The stated case instead calls for: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

D.

Connect a workspace to an authorized repository and branch so HCP Terraform can queue plans from version-controlled commits and record run history. This addresses “Use a VCS-driven workspace to connect code changes to managed runs”, where the governing principle is: A VCS-linked workspace associates runs with source commits and configured triggers, rather than relying on untracked command history from a developer laptop. The stated case instead calls for: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

Question 767

An online store maintains separate database and API workspaces and needs explicit follow-on validation after a database networking change. The infrastructure engineer proposes this change: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run. Which mechanism explains why it works?

  1. Each HCP Terraform workspace tracks its own runs and state; project organization is a governance hierarchy rather than a shared resource-instance mapping.
  2. A private registry makes reviewed internal modules discoverable and versioned, while public registry availability alone does not establish an organization's security approval.
  3. A VCS-linked workspace associates runs with source commits and configured triggers, rather than relying on untracked command history from a developer laptop.
  4. Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input.

Answer & Explanations

Correct answer: D

A.

Each HCP Terraform workspace tracks its own runs and state; project organization is a governance hierarchy rather than a shared resource-instance mapping. That explains “Keep HCP Terraform workspaces isolated even within the same project”, not the mechanism behind the described change. The relevant principle is: Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input.

B.

The question is set in this situation: An online store maintains separate database and API workspaces and needs explicit follow-on validation after a database networking change. A private registry makes reviewed internal modules discoverable and versioned, while public registry availability alone does not establish an organization's security approval. That explains “Use the private module registry with controlled source provenance”, not the mechanism behind the described change. The relevant principle is: Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input.

C.

A VCS-linked workspace associates runs with source commits and configured triggers, rather than relying on untracked command history from a developer laptop. That explains “Use a VCS-driven workspace to connect code changes to managed runs”, not the mechanism behind the described change. The relevant principle is: Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input.

D.

The question is set in this situation: An online store maintains separate database and API workspaces and needs explicit follow-on validation after a database networking change. Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input. The corresponding implementation is: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

Question 768

An online store maintains separate database and API workspaces and needs explicit follow-on validation after a database networking change. After implementing this change—Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.—which test most directly validates its intended outcome?

  1. Create a test branch change, inspect the queued speculative plan and confirm run metadata references the intended commit without automatically approving production.
  2. Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.
  3. Publish a disposable versioned module, configure an authorized consumer workspace and verify the requested module version resolves to the reviewed source.
  4. Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.

Answer & Explanations

Correct answer: B

A.

Create a test branch change, inspect the queued speculative plan and confirm run metadata references the intended commit without automatically approving production. That would help test “Use a VCS-driven workspace to connect code changes to managed runs”, not the outcome required in this scenario. The relevant acceptance check is: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.

B.

The question is set in this situation: An online store maintains separate database and API workspaces and needs explicit follow-on validation after a database networking change. Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply. This check is decisive because run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input.

C.

The question is set in this situation: An online store maintains separate database and API workspaces and needs explicit follow-on validation after a database networking change. Publish a disposable versioned module, configure an authorized consumer workspace and verify the requested module version resolves to the reviewed source. That would help test “Use the private module registry with controlled source provenance”, not the outcome required in this scenario. The relevant acceptance check is: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.

D.

Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources. That would help test “Keep HCP Terraform workspaces isolated even within the same project”, not the outcome required in this scenario. The relevant acceptance check is: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.

Question 769

An online store maintains separate database and API workspaces and needs explicit follow-on validation after a database networking change. Which proposed shortcut most directly risks missed dependent updates or accidental assumptions about workspace orchestration and should therefore be rejected?

  1. Let every team copy modules from unknown repositories without any shared versioning or approval process and call it enterprise governance.
  2. Assume assigning two workspaces to the same project causes terraform apply in one workspace to update the other's managed resources automatically.
  3. Assume every workspace in one project automatically reruns when any other workspace changes, even with no configured run triggers.
  4. Push an unreviewed commit and assume a successful remote plan means human approval is unnecessary for production apply.

Answer & Explanations

Correct answer: C

A.

The question is set in this situation: An online store maintains separate database and API workspaces and needs explicit follow-on validation after a database networking change. Let every team copy modules from unknown repositories without any shared versioning or approval process and call it enterprise governance. That shortcut risks duplicated untrusted module code and inconsistent upgrades across teams. Here the specific shortcut is: Assume every workspace in one project automatically reruns when any other workspace changes, even with no configured run triggers.

B.

Assume assigning two workspaces to the same project causes terraform apply in one workspace to update the other's managed resources automatically. That shortcut risks cross-environment confusion and unsafe state assumptions. Here the specific shortcut is: Assume every workspace in one project automatically reruns when any other workspace changes, even with no configured run triggers.

C.

The question is set in this situation: An online store maintains separate database and API workspaces and needs explicit follow-on validation after a database networking change. Assume every workspace in one project automatically reruns when any other workspace changes, even with no configured run triggers. The foreseeable failure is missed dependent updates or accidental assumptions about workspace orchestration. The safer response is: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

D.

Push an unreviewed commit and assume a successful remote plan means human approval is unnecessary for production apply. That shortcut risks unapproved changes promoted after confusing plan execution with release authorization. Here the specific shortcut is: Assume every workspace in one project automatically reruns when any other workspace changes, even with no configured run triggers.

Question 770

An online store maintains separate database and API workspaces and needs explicit follow-on validation after a database networking change. Which combined implementation and verification plan is the best match for this workload?

  1. Implement: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run. Verify: Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.
  2. Implement: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run. Verify: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.
  3. Implement: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership. Verify: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.
  4. Implement: Publish approved reusable modules to the HCP Terraform private registry with documented source repositories, versions and access permissions. Verify: Publish a disposable versioned module, configure an authorized consumer workspace and verify the requested module version resolves to the reviewed source.

Answer & Explanations

Correct answer: B

A.

The action is applicable: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run. But its proposed test—Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.—addresses “Keep HCP Terraform workspaces isolated even within the same project”. This requirement is confirmed instead by: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.

B.

The question is set in this situation: An online store maintains separate database and API workspaces and needs explicit follow-on validation after a database networking change. Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run. Confirm it through this test: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply. Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input.

C.

The test would be relevant: Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply. But the offered implementation—Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.—addresses “Keep HCP Terraform workspaces isolated even within the same project”. The action needed here is: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

D.

This action/test pair addresses “Use the private module registry with controlled source provenance”. Publish approved reusable modules to the HCP Terraform private registry with documented source repositories, versions and access permissions. Publish a disposable versioned module, configure an authorized consumer workspace and verify the requested module version resolves to the reviewed source. The case instead calls for: Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests