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 76

Question 750

A company divides workspaces by product team and must standardize access grants without collapsing separate cloud resources into one state. 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: Create a test project with development and staging workspaces and verify each retains separate runs and state while sharing intended project metadata.
  2. 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.
  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: Create a test project with development and staging workspaces and verify each retains separate runs and state while sharing intended project metadata.
  4. 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.

Answer & Explanations

Correct answer: A

A.

The question is set in this situation: A company divides workspaces by product team and must standardize access grants without collapsing separate cloud resources into one state. Organize workspaces into HCP Terraform projects according to team, application or lifecycle boundaries, applying sensible project-level access and variable policies. Confirm it through this test: Create a test project with development and staging workspaces and verify each retains separate runs and state while sharing intended project metadata. Projects group and govern related workspaces; a project does not replace the workspace's own state or automatically merge several separate infrastructure graphs.

B.

The action is applicable: Organize workspaces into HCP Terraform projects according to team, application or lifecycle boundaries, applying sensible project-level access and variable policies. But its proposed test—Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.—addresses “Use HCP Terraform run triggers for intentional upstream dependencies”. This requirement is confirmed instead by: Create a test project with development and staging workspaces and verify each retains separate runs and state while sharing intended project metadata.

C.

The test would be relevant: Create a test project with development and staging workspaces and verify each retains separate runs and state while sharing intended project metadata. But the offered implementation—Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.—addresses “Use HCP Terraform run triggers for intentional upstream dependencies”. The action needed here is: Organize workspaces into HCP Terraform projects according to team, application or lifecycle boundaries, applying sensible project-level access and variable policies.

D.

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: Organize workspaces into HCP Terraform projects according to team, application or lifecycle boundaries, applying sensible project-level access and variable policies.

Question 751

A regional healthcare platform groups all patient-app workspaces into one project and needs strong production versus test separation. Which HashiCorp Terraform infrastructure implementation best satisfies this requirement?

  1. Use terraform login or an approved token mechanism for authorized HCP Terraform CLI access, protecting credential storage and limiting token scope.
  2. Configure supported HCP Terraform policy sets using Sentinel or Open Policy Agent to inspect planned resource changes against defined governance rules.
  3. Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.
  4. Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.

Answer & Explanations

Correct answer: C

A.

Use terraform login or an approved token mechanism for authorized HCP Terraform CLI access, protecting credential storage and limiting token scope. This addresses “Authenticate HCP Terraform CLI sessions through supported login workflow”, where the governing principle is: CLI authentication grants access to the configured HCP organization and workspace, while cloud provider API credentials are separate resources and identities. The stated case instead calls for: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.

B.

Configure supported HCP Terraform policy sets using Sentinel or Open Policy Agent to inspect planned resource changes against defined governance rules. This addresses “Apply policy-as-code checks to HCP Terraform runs”, where the governing principle is: Policy evaluation can detect disallowed infrastructure settings in a run before approval, but each rule's enforcement level and policy configuration matter. The stated case instead calls for: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.

C.

Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership. Each HCP Terraform workspace tracks its own runs and state; project organization is a governance hierarchy rather than a shared resource-instance mapping. Verify the result with this test: Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.

D.

Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run. This addresses “Use HCP Terraform run triggers for intentional upstream dependencies”, where the governing 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. The stated case instead calls for: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.

Question 752

A regional healthcare platform groups all patient-app workspaces into one project and needs strong production versus test separation. The infrastructure engineer proposes this change: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership. Which mechanism explains why it works?

  1. Policy evaluation can detect disallowed infrastructure settings in a run before approval, but each rule's enforcement level and policy configuration matter.
  2. Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input.
  3. CLI authentication grants access to the configured HCP organization and workspace, while cloud provider API credentials are separate resources and identities.
  4. Each HCP Terraform workspace tracks its own runs and state; project organization is a governance hierarchy rather than a shared resource-instance mapping.

Answer & Explanations

Correct answer: D

A.

Policy evaluation can detect disallowed infrastructure settings in a run before approval, but each rule's enforcement level and policy configuration matter. That explains “Apply policy-as-code checks to HCP Terraform runs”, not the mechanism behind the described change. The relevant 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.

B.

Run triggers coordinate workspace execution ordering but do not themselves convert unrelated workspaces into one state or automatically transfer every output as input. That explains “Use HCP Terraform run triggers for intentional upstream dependencies”, not the mechanism behind the described change. The relevant 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.

C.

CLI authentication grants access to the configured HCP organization and workspace, while cloud provider API credentials are separate resources and identities. That explains “Authenticate HCP Terraform CLI sessions through supported login workflow”, not the mechanism behind the described change. The relevant 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.

D.

Each HCP Terraform workspace tracks its own runs and state; project organization is a governance hierarchy rather than a shared resource-instance mapping. The corresponding implementation is: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.

Question 753

A regional healthcare platform groups all patient-app workspaces into one project and needs strong production versus test separation. After implementing this change—Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.—which test most directly validates its intended outcome?

  1. Authenticate in a disposable environment, inspect the intended organization and attempt a permitted workspace operation, then revoke the test token.
  2. Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.
  3. Submit a test plan with an intentionally disallowed tag or region, then verify the configured mandatory policy blocks its progression.
  4. 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: B

A.

Authenticate in a disposable environment, inspect the intended organization and attempt a permitted workspace operation, then revoke the test token. That would help test “Authenticate HCP Terraform CLI sessions through supported login workflow”, not the outcome required in this scenario. The relevant acceptance check is: Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.

B.

Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources. This check is decisive because each HCP Terraform workspace tracks its own runs and state; project organization is a governance hierarchy rather than a shared resource-instance mapping.

C.

Submit a test plan with an intentionally disallowed tag or region, then verify the configured mandatory policy blocks its progression. That would help test “Apply policy-as-code checks to HCP Terraform runs”, not the outcome required in this scenario. The relevant acceptance check is: Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.

D.

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

Question 754

A regional healthcare platform groups all patient-app workspaces into one project and needs strong production versus test separation. Which proposed shortcut most directly risks cross-environment confusion and unsafe state assumptions and should therefore be rejected?

  1. Assume every workspace in one project automatically reruns when any other workspace changes, even with no configured run triggers.
  2. Treat a policy advisory warning as an immutable hard security barrier while allowing all unauthorized applies to continue.
  3. Commit the terraform login access token into a Git repository and assume that token also grants the exact minimum cloud provider permissions.
  4. Assume assigning two workspaces to the same project causes terraform apply in one workspace to update the other's managed resources automatically.

Answer & Explanations

Correct answer: D

A.

Assume every workspace in one project automatically reruns when any other workspace changes, even with no configured run triggers. That shortcut risks missed dependent updates or accidental assumptions about workspace orchestration. Here the specific shortcut is: Assume assigning two workspaces to the same project causes terraform apply in one workspace to update the other's managed resources automatically.

B.

Treat a policy advisory warning as an immutable hard security barrier while allowing all unauthorized applies to continue. That shortcut risks prohibited infrastructure reaching production because policy enforcement was misunderstood. Here the specific shortcut is: Assume assigning two workspaces to the same project causes terraform apply in one workspace to update the other's managed resources automatically.

C.

Commit the terraform login access token into a Git repository and assume that token also grants the exact minimum cloud provider permissions. That shortcut risks exposed HCP workspace access and confusion between HCP and provider authentication. Here the specific shortcut is: Assume assigning two workspaces to the same project causes terraform apply in one workspace to update the other's managed resources automatically.

D.

Assume assigning two workspaces to the same project causes terraform apply in one workspace to update the other's managed resources automatically. The foreseeable failure is cross-environment confusion and unsafe state assumptions. The safer response is: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.

Question 755

A regional healthcare platform groups all patient-app workspaces into one project and needs strong production versus test separation. Which combined implementation and verification plan is the best match for this workload?

  1. 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.
  2. 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.
  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: Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.
  4. Implement: Use terraform login or an approved token mechanism for authorized HCP Terraform CLI access, protecting credential storage and limiting token scope. Verify: Authenticate in a disposable environment, inspect the intended organization and attempt a permitted workspace operation, then revoke the test token.

Answer & Explanations

Correct answer: A

A.

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.

B.

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—Set up two disposable linked workspaces, apply an upstream harmless change and verify the expected downstream run is queued without unauthorized auto-apply.—addresses “Use HCP Terraform run triggers for intentional upstream dependencies”. 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.

C.

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—Configure explicit HCP Terraform run triggers when a downstream workspace must queue a run after an approved upstream workspace completes a relevant run.—addresses “Use HCP Terraform run triggers for intentional upstream dependencies”. The action needed here is: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.

D.

This action/test pair addresses “Authenticate HCP Terraform CLI sessions through supported login workflow”. Use terraform login or an approved token mechanism for authorized HCP Terraform CLI access, protecting credential storage and limiting token scope. Authenticate in a disposable environment, inspect the intended organization and attempt a permitted workspace operation, then revoke the test token. The case instead calls for: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.

Question 756

A mobile gaming company shares module code across environments while preserving distinct HCP Terraform state, access and run histories. Which HashiCorp Terraform infrastructure implementation best satisfies this requirement?

  1. Organize workspaces into HCP Terraform projects according to team, application or lifecycle boundaries, applying sensible project-level access and variable policies.
  2. Connect a workspace to an authorized repository and branch so HCP Terraform can queue plans from version-controlled commits and record run history.
  3. Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.
  4. 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.

Answer & Explanations

Correct answer: C

A.

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 separate workspaces with independent state and variables for production, staging and development despite their common project membership.

B.

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 separate workspaces with independent state and variables for production, staging and development despite their common project membership.

C.

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. Each HCP Terraform workspace tracks its own runs and state; project organization is a governance hierarchy rather than a shared resource-instance mapping. Verify the result with this test: Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.

D.

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. This addresses “Understand HCP Terraform workspace runs as managed workflow units”, where the governing principle is: An HCP Terraform workspace owns a distinct execution and state context; it is not equivalent to a plain Terraform language module or cloud region. The stated case instead calls for: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.

Question 757

A mobile gaming company shares module code across environments while preserving distinct HCP Terraform state, access and run histories. The infrastructure engineer proposes this change: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership. 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 VCS-linked workspace associates runs with source commits and configured triggers, rather than relying on untracked command history from a developer laptop.
  3. An HCP Terraform workspace owns a distinct execution and state context; it is not equivalent to a plain Terraform language module or cloud region.
  4. Projects group and govern related workspaces; a project does not replace the workspace's own state or automatically merge several separate infrastructure graphs.

Answer & Explanations

Correct answer: A

A.

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. Each HCP Terraform workspace tracks its own runs and state; project organization is a governance hierarchy rather than a shared resource-instance mapping. The corresponding implementation is: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.

B.

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: Each HCP Terraform workspace tracks its own runs and state; project organization is a governance hierarchy rather than a shared resource-instance mapping.

C.

An HCP Terraform workspace owns a distinct execution and state context; it is not equivalent to a plain Terraform language module or cloud region. That explains “Understand HCP Terraform workspace runs as managed workflow units”, not the mechanism behind the described change. The relevant 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.

D.

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: Each HCP Terraform workspace tracks its own runs and state; project organization is a governance hierarchy rather than a shared resource-instance mapping.

Question 758

A mobile gaming company shares module code across environments while preserving distinct HCP Terraform state, access and run histories. After implementing this change—Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.—which test most directly validates its intended outcome?

  1. Create a disposable workspace, queue a plan and inspect its run history, state association and variable configuration before any authorized apply.
  2. Create a test project with development and staging workspaces and verify each retains separate runs and state while sharing intended project metadata.
  3. Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.
  4. Create a test branch change, inspect the queued speculative plan and confirm run metadata references the intended commit without automatically approving production.

Answer & Explanations

Correct answer: C

A.

Create a disposable workspace, queue a plan and inspect its run history, state association and variable configuration before any authorized apply. That would help test “Understand HCP Terraform workspace runs as managed workflow units”, not the outcome required in this scenario. The relevant acceptance check is: Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.

B.

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: Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.

C.

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. Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources. This check is decisive because each HCP Terraform workspace tracks its own runs and state; project organization is a governance hierarchy rather than a shared resource-instance mapping.

D.

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: Plan identical disposable modules in two workspaces and verify applying in one changes only that workspace's state and selected remote resources.

Question 759

A mobile gaming company shares module code across environments while preserving distinct HCP Terraform state, access and run histories. Which proposed shortcut most directly risks cross-environment confusion and unsafe state assumptions and should therefore be rejected?

  1. Create a workspace named production and assume the name automatically configures cloud credentials and every required approval policy.
  2. Move several workspaces into one HCP Terraform project and assume their state files automatically combine into one authoritative Terraform state.
  3. Push an unreviewed commit and assume a successful remote plan means human approval is unnecessary for production apply.
  4. Assume assigning two workspaces to the same project causes terraform apply in one workspace to update the other's managed resources automatically.

Answer & Explanations

Correct answer: D

A.

Create a workspace named production and assume the name automatically configures cloud credentials and every required approval policy. That shortcut risks uncontrolled run permissions or incorrect state association in remote execution. Here the specific shortcut is: Assume assigning two workspaces to the same project causes terraform apply in one workspace to update the other's managed resources automatically.

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 assigning two workspaces to the same project causes terraform apply in one workspace to update the other's managed resources automatically.

C.

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 assigning two workspaces to the same project causes terraform apply in one workspace to update the other's managed resources automatically.

D.

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. Assume assigning two workspaces to the same project causes terraform apply in one workspace to update the other's managed resources automatically. The foreseeable failure is cross-environment confusion and unsafe state assumptions. The safer response is: Configure separate workspaces with independent state and variables for production, staging and development despite their common project membership.

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.

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