mcAfee Secure Website
23

HashiCorp Terraform Associate 004 Bundle

Exam Code: Terraform Associate 004

Exam Name HashiCorp Certified: Terraform Associate (004)

Certification Provider: HashiCorp

Corresponding Certification: Terraform Associate

Terraform Associate 004 Training Materials $44.99

Reliable & Actual Study Materials for Terraform Associate 004 Exam Success

The Latest Terraform Associate 004 Exam Questions as Experienced in the Actual Test!

  • 24
    Questions & Answers

    Terraform Associate 004 Questions & Answers

    167 Questions & Answers

    Includes questions types found on actual exam such as drag and drop, simulation, type in, and fill in the blank.

  • 25
    Terraform Associate 004 Video Course

    Terraform Associate 004 Training Course

    118 Video Lectures

    Based on Real Life Scenarios which you will encounter in exam and learn by working with real equipment.

  • exam =30
    Study Guide

    Terraform Associate 004 Study Guide

    285 PDF Pages

    Study Guide developed by industry experts who have written exams in the past. They are technology-specific IT certification researchers with at least a decade of experience at Fortune 500 companies.

exam =32

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

Guarantee

Satisfaction Guaranteed

Pass4sure has a remarkable HashiCorp Candidate Success record. We're confident of our products and provide no hassle product exchange. That's how confident we are!

99.3% Pass Rate
Total Cost: $194.97
Bundle Price: $149.98

Purchase Individually

  • exam =34
    Questions & Answers

    Questions & Answers

    167 Questions

    $124.99
    exam =35
  • exam =37
    Terraform Associate 004 Video Course

    Training Course

    118 Video Lectures

    $39.99
  • exam =36
    Study Guide

    Study Guide

    285 PDF Pages

    $29.99

HashiCorp Terraform Associate 004 Practice Test 66

Question 650

A Terraform associate evaluates: A security engineer asks how to collect logs without keeping secrets in long-term shared build output. Select TWO complementary responses: the appropriate action AND direct evidence it worked.

  1. The listed address matches the intended resource and show presents its recorded attributes for review.
  2. Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources.
  3. Set TF_LOG together with TF_LOG_PATH to capture troubleshooting output in a protected file and remove it after authorized review.
  4. The designated log file captures the relevant run and is stored under approved short-lived restricted access.
  5. Set TF_LOG to an appropriate supported level such as DEBUG or TRACE only while investigating, then disable it afterward.

Explanation

Correct Answers

C:

The case says: A security engineer asks how to collect logs without keeping secrets in long-term shared build output. The directly relevant Terraform response is: Set TF_LOG together with TF_LOG_PATH to capture troubleshooting output in a protected file and remove it after authorized review. This addresses the related failure mode: Logs containing resource attributes and credentials should not be committed to Git or left in public CI artifacts. Validate the result by checking: The designated log file captures the relevant run and is stored under approved short-lived restricted access. The selection matches this objective, rather than a different Terraform administration task.

D:

The observed situation is: A security engineer asks how to collect logs without keeping secrets in long-term shared build output. The acceptance evidence is: The designated log file captures the relevant run and is stored under approved short-lived restricted access. It verifies the corrective approach (Set TF_LOG together with TF_LOG_PATH to capture troubleshooting output in a protected file and remove it after authorized review.) and controls the risk: Logs containing resource attributes and credentials should not be committed to Git or left in public CI artifacts. Checking an unrelated Terraform setting would not prove the stated requirement was met.

Incorrect Answers

A:

The listed address matches the intended resource and show presents its recorded attributes for review. This belongs to Inspect state list and show (official objective 7b). Its separate risk is that guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address. The question instead tests TF_LOG_PATH debug log file handling; that other safeguard alone does not verify it.

B:

Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources. This is relevant to State mv versus state rm and moved blocks (official objective 7b). Its distinct failure risk is that removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources. The present question tests TF_LOG_PATH debug log file handling, which this measure alone does not establish.

E:

Set TF_LOG to an appropriate supported level such as DEBUG or TRACE only while investigating, then disable it afterward. This does not provide the required TF_LOG_PATH debug log file handling action-and-evidence pair.

Question 651

A Terraform engineer reports: An organization wants infrastructure changes to start from reviewed Git commits. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Use HCP Terraform policy sets, team access and approvals to enforce organizational infrastructure rules around managed runs.
  2. Use an HCP Terraform workspace with a supported cloud configuration or remote workflow for CLI-driven plans and applies, keeping state under the hosted workspace.
  3. Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs.
  4. Group workspaces into appropriate HCP Terraform projects and use controlled run triggers or variable sets for dependencies and shared configuration.

Explanation

Correct Answer

C:

The case says: An organization wants infrastructure changes to start from reviewed Git commits. The directly relevant Terraform response is: Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs. This addresses the related failure mode: A workspace without the intended VCS connection will not automatically track repository changes. Validate the result by checking: A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Use HCP Terraform policy sets, team access and approvals to enforce organizational infrastructure rules around managed runs. This belongs to HCP Terraform policy and governance controls (official objective 8b). Its separate risk is that without enforcement gates a valid Terraform plan can still violate security or cost policy. The question instead tests HCP Terraform VCS-driven runs; that other safeguard alone does not verify it.

B:

Use an HCP Terraform workspace with a supported cloud configuration or remote workflow for CLI-driven plans and applies, keeping state under the hosted workspace. This is relevant to CLI-driven HCP Terraform remote operations (official objective 8a). Its distinct failure risk is that a local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory. The present question tests HCP Terraform VCS-driven runs, which this measure alone does not establish.

D:

Group workspaces into appropriate HCP Terraform projects and use controlled run triggers or variable sets for dependencies and shared configuration. This addresses HCP Terraform projects workspaces and triggers (official objective 8c). The separate hazard is that a CLI workspace in one directory is not the same as an HCP workspace with access controls, project membership and run history. It does not by itself satisfy the case-specific requirement for HCP Terraform VCS-driven runs.

Question 652

After a reviewed change, the team checks: An organization wants infrastructure changes to start from reviewed Git commits. Which evidence MOST directly proves the selected approach is working?

  1. The CLI targets the correct hosted workspace and remote runs obtain approved short-lived credentials without static secrets in code.
  2. A deliberately disallowed plan fails the configured policy gate and cannot apply without authorized override where permitted.
  3. An approved CLI-driven run executes under the targeted HCP workspace and its state and run history are available centrally.
  4. A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records.

Explanation

Correct Answer

D:

The observed situation is: An organization wants infrastructure changes to start from reviewed Git commits. The acceptance evidence is: A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records. It verifies the corrective approach (Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs.) and controls the risk: A workspace without the intended VCS connection will not automatically track repository changes. Checking an unrelated Terraform setting would not prove the stated requirement was met.

Incorrect Answers

A:

The CLI targets the correct hosted workspace and remote runs obtain approved short-lived credentials without static secrets in code. This belongs to HCP Terraform cloud integration and credentials (official objective 8d). Its separate risk is that a cloud block conflicts with a backend block, while hardcoded long-lived cloud credentials undermine secure integration. The question instead tests HCP Terraform VCS-driven runs; that other safeguard alone does not verify it.

B:

A deliberately disallowed plan fails the configured policy gate and cannot apply without authorized override where permitted. This is relevant to HCP Terraform policy and governance controls (official objective 8b). Its distinct failure risk is that without enforcement gates a valid Terraform plan can still violate security or cost policy. The present question tests HCP Terraform VCS-driven runs, which this measure alone does not establish.

C:

An approved CLI-driven run executes under the targeted HCP workspace and its state and run history are available centrally. That addresses CLI-driven HCP Terraform remote operations (official objective 8a), specifically the hazard that a local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory. Here the necessary action or evidence is A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records, not that separate control.

Question 653

A configuration review reveals: A cloud workspace needs to connect to its application's infrastructure repository. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Use an HCP Terraform workspace with a supported cloud configuration or remote workflow for CLI-driven plans and applies, keeping state under the hosted workspace.
  2. Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs.
  3. Configure the Terraform cloud block and supported HCP authentication or dynamic provider credentials for the intended organization and workspace; do not also define a backend block.
  4. Use HCP Terraform policy sets, team access and approvals to enforce organizational infrastructure rules around managed runs.

Explanation

Correct Answer

B:

The case says: A cloud workspace needs to connect to its application's infrastructure repository. The directly relevant Terraform response is: Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs. This addresses the related failure mode: A workspace without the intended VCS connection will not automatically track repository changes. Validate the result by checking: A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Use an HCP Terraform workspace with a supported cloud configuration or remote workflow for CLI-driven plans and applies, keeping state under the hosted workspace. This belongs to CLI-driven HCP Terraform remote operations (official objective 8a). Its separate risk is that a local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory. The question instead tests HCP Terraform VCS-driven runs; that other safeguard alone does not verify it.

C:

Configure the Terraform cloud block and supported HCP authentication or dynamic provider credentials for the intended organization and workspace; do not also define a backend block. That addresses HCP Terraform cloud integration and credentials (official objective 8d), specifically the hazard that a cloud block conflicts with a backend block, while hardcoded long-lived cloud credentials undermine secure integration. Here the necessary action or evidence is Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs, not that separate control.

D:

Use HCP Terraform policy sets, team access and approvals to enforce organizational infrastructure rules around managed runs. This addresses HCP Terraform policy and governance controls (official objective 8b). The separate hazard is that without enforcement gates a valid Terraform plan can still violate security or cost policy. It does not by itself satisfy the case-specific requirement for HCP Terraform VCS-driven runs.

Question 654

A Terraform governance audit identifies: A cloud workspace needs to connect to its application's infrastructure repository. What risk MOST directly explains why a correction is needed?

  1. A local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory.
  2. A CLI workspace in one directory is not the same as an HCP workspace with access controls, project membership and run history.
  3. Without enforcement gates a valid Terraform plan can still violate security or cost policy.
  4. A workspace without the intended VCS connection will not automatically track repository changes.

Explanation

Correct Answer

D:

The reported issue (A cloud workspace needs to connect to its application's infrastructure repository) exposes the risk: A workspace without the intended VCS connection will not automatically track repository changes. The corrective action is: Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs. Confirm with: A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records. The risk is specific to this configuration or operation, not an unrelated Terraform feature.

Incorrect Answers

A:

A local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory. This belongs to CLI-driven HCP Terraform remote operations (official objective 8a). Its separate risk is that a local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory. The question instead tests HCP Terraform VCS-driven runs; that other safeguard alone does not verify it.

B:

A CLI workspace in one directory is not the same as an HCP workspace with access controls, project membership and run history. This is relevant to HCP Terraform projects workspaces and triggers (official objective 8c). Its distinct failure risk is that a CLI workspace in one directory is not the same as an HCP workspace with access controls, project membership and run history. The present question tests HCP Terraform VCS-driven runs, which this measure alone does not establish.

C:

Without enforcement gates a valid Terraform plan can still violate security or cost policy. That is the exact risk associated with HCP Terraform policy and governance controls (official objective 8b), not the required HCP Terraform VCS-driven runs outcome.

Question 655

During a controlled infrastructure change, a team observes: A team expects a VCS-driven run even though the workspace is configured only for CLI-driven use. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Configure the Terraform cloud block and supported HCP authentication or dynamic provider credentials for the intended organization and workspace; do not also define a backend block.
  2. Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs.
  3. Use an HCP Terraform workspace with a supported cloud configuration or remote workflow for CLI-driven plans and applies, keeping state under the hosted workspace.
  4. Use HCP Terraform policy sets, team access and approvals to enforce organizational infrastructure rules around managed runs.

Explanation

Correct Answer

B:

The case says: A team expects a VCS-driven run even though the workspace is configured only for CLI-driven use. The directly relevant Terraform response is: Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs. This addresses the related failure mode: A workspace without the intended VCS connection will not automatically track repository changes. Validate the result by checking: A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Configure the Terraform cloud block and supported HCP authentication or dynamic provider credentials for the intended organization and workspace; do not also define a backend block. This belongs to HCP Terraform cloud integration and credentials (official objective 8d). Its separate risk is that a cloud block conflicts with a backend block, while hardcoded long-lived cloud credentials undermine secure integration. The question instead tests HCP Terraform VCS-driven runs; that other safeguard alone does not verify it.

C:

Use an HCP Terraform workspace with a supported cloud configuration or remote workflow for CLI-driven plans and applies, keeping state under the hosted workspace. That addresses CLI-driven HCP Terraform remote operations (official objective 8a), specifically the hazard that a local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory. Here the necessary action or evidence is Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs, not that separate control.

D:

Use HCP Terraform policy sets, team access and approvals to enforce organizational infrastructure rules around managed runs. This addresses HCP Terraform policy and governance controls (official objective 8b). The separate hazard is that without enforcement gates a valid Terraform plan can still violate security or cost policy. It does not by itself satisfy the case-specific requirement for HCP Terraform VCS-driven runs.

Question 656

An operator wants proof regarding: A team expects a VCS-driven run even though the workspace is configured only for CLI-driven use. Which evidence MOST directly proves the selected approach is working?

  1. The CLI targets the correct hosted workspace and remote runs obtain approved short-lived credentials without static secrets in code.
  2. Project access is scoped appropriately and a successful upstream apply queues only the intended downstream workspace run.
  3. An approved CLI-driven run executes under the targeted HCP workspace and its state and run history are available centrally.
  4. A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records.

Explanation

Correct Answer

D:

The observed situation is: A team expects a VCS-driven run even though the workspace is configured only for CLI-driven use. The acceptance evidence is: A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records. It verifies the corrective approach (Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs.) and controls the risk: A workspace without the intended VCS connection will not automatically track repository changes. Checking an unrelated Terraform setting would not prove the stated requirement was met.

Incorrect Answers

A:

The CLI targets the correct hosted workspace and remote runs obtain approved short-lived credentials without static secrets in code. This belongs to HCP Terraform cloud integration and credentials (official objective 8d). Its separate risk is that a cloud block conflicts with a backend block, while hardcoded long-lived cloud credentials undermine secure integration. The question instead tests HCP Terraform VCS-driven runs; that other safeguard alone does not verify it.

B:

Project access is scoped appropriately and a successful upstream apply queues only the intended downstream workspace run. This is relevant to HCP Terraform projects workspaces and triggers (official objective 8c). Its distinct failure risk is that a CLI workspace in one directory is not the same as an HCP workspace with access controls, project membership and run history. The present question tests HCP Terraform VCS-driven runs, which this measure alone does not establish.

C:

An approved CLI-driven run executes under the targeted HCP workspace and its state and run history are available centrally. That addresses CLI-driven HCP Terraform remote operations (official objective 8a), specifically the hazard that a local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory. Here the necessary action or evidence is A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records, not that separate control.

Question 657

An infrastructure deployment design calls for: An engineer wants HCP Terraform to plan on a pull request before production apply. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Use an HCP Terraform workspace with a supported cloud configuration or remote workflow for CLI-driven plans and applies, keeping state under the hosted workspace.
  2. Use HCP Terraform policy sets, team access and approvals to enforce organizational infrastructure rules around managed runs.
  3. Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs.
  4. Group workspaces into appropriate HCP Terraform projects and use controlled run triggers or variable sets for dependencies and shared configuration.

Explanation

Correct Answer

C:

The case says: An engineer wants HCP Terraform to plan on a pull request before production apply. The directly relevant Terraform response is: Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs. This addresses the related failure mode: A workspace without the intended VCS connection will not automatically track repository changes. Validate the result by checking: A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Use an HCP Terraform workspace with a supported cloud configuration or remote workflow for CLI-driven plans and applies, keeping state under the hosted workspace. This belongs to CLI-driven HCP Terraform remote operations (official objective 8a). Its separate risk is that a local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory. The question instead tests HCP Terraform VCS-driven runs; that other safeguard alone does not verify it.

B:

Use HCP Terraform policy sets, team access and approvals to enforce organizational infrastructure rules around managed runs. This is relevant to HCP Terraform policy and governance controls (official objective 8b). Its distinct failure risk is that without enforcement gates a valid Terraform plan can still violate security or cost policy. The present question tests HCP Terraform VCS-driven runs, which this measure alone does not establish.

D:

Group workspaces into appropriate HCP Terraform projects and use controlled run triggers or variable sets for dependencies and shared configuration. This addresses HCP Terraform projects workspaces and triggers (official objective 8c). The separate hazard is that a CLI workspace in one directory is not the same as an HCP workspace with access controls, project membership and run history. It does not by itself satisfy the case-specific requirement for HCP Terraform VCS-driven runs.

Question 658

A production-readiness review highlights: An engineer wants HCP Terraform to plan on a pull request before production apply. What risk MOST directly explains why a correction is needed?

  1. A workspace without the intended VCS connection will not automatically track repository changes.
  2. Without enforcement gates a valid Terraform plan can still violate security or cost policy.
  3. A CLI workspace in one directory is not the same as an HCP workspace with access controls, project membership and run history.
  4. A local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory.

Explanation

Correct Answer

A:

The reported issue (An engineer wants HCP Terraform to plan on a pull request before production apply) exposes the risk: A workspace without the intended VCS connection will not automatically track repository changes. The corrective action is: Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs. Confirm with: A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records. The risk is specific to this configuration or operation, not an unrelated Terraform feature.

Incorrect Answers

B:

Without enforcement gates a valid Terraform plan can still violate security or cost policy. This is relevant to HCP Terraform policy and governance controls (official objective 8b). Its distinct failure risk is that without enforcement gates a valid Terraform plan can still violate security or cost policy. The present question tests HCP Terraform VCS-driven runs, which this measure alone does not establish.

C:

A CLI workspace in one directory is not the same as an HCP workspace with access controls, project membership and run history. That is the exact risk associated with HCP Terraform projects workspaces and triggers (official objective 8c), not the required HCP Terraform VCS-driven runs outcome.

D:

A local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory. This addresses CLI-driven HCP Terraform remote operations (official objective 8a). The separate hazard is that a local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory. It does not by itself satisfy the case-specific requirement for HCP Terraform VCS-driven runs.

Question 659

An operations team needs to resolve: A workspace run history should link each infrastructure plan to a repository revision. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Use an HCP Terraform workspace with a supported cloud configuration or remote workflow for CLI-driven plans and applies, keeping state under the hosted workspace.
  2. Configure the Terraform cloud block and supported HCP authentication or dynamic provider credentials for the intended organization and workspace; do not also define a backend block.
  3. Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs.
  4. Group workspaces into appropriate HCP Terraform projects and use controlled run triggers or variable sets for dependencies and shared configuration.

Explanation

Correct Answer

C:

The case says: A workspace run history should link each infrastructure plan to a repository revision. The directly relevant Terraform response is: Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs. This addresses the related failure mode: A workspace without the intended VCS connection will not automatically track repository changes. Validate the result by checking: A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Use an HCP Terraform workspace with a supported cloud configuration or remote workflow for CLI-driven plans and applies, keeping state under the hosted workspace. This belongs to CLI-driven HCP Terraform remote operations (official objective 8a). Its separate risk is that a local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory. The question instead tests HCP Terraform VCS-driven runs; that other safeguard alone does not verify it.

B:

Configure the Terraform cloud block and supported HCP authentication or dynamic provider credentials for the intended organization and workspace; do not also define a backend block. This is relevant to HCP Terraform cloud integration and credentials (official objective 8d). Its distinct failure risk is that a cloud block conflicts with a backend block, while hardcoded long-lived cloud credentials undermine secure integration. The present question tests HCP Terraform VCS-driven runs, which this measure alone does not establish.

D:

Group workspaces into appropriate HCP Terraform projects and use controlled run triggers or variable sets for dependencies and shared configuration. This addresses HCP Terraform projects workspaces and triggers (official objective 8c). The separate hazard is that a CLI workspace in one directory is not the same as an HCP workspace with access controls, project membership and run history. It does not by itself satisfy the case-specific requirement for HCP Terraform VCS-driven runs.

Question 660

A Terraform associate evaluates: A workspace run history should link each infrastructure plan to a repository revision. Select TWO complementary responses: the appropriate action AND direct evidence it worked.

  1. A CLI workspace in one directory is not the same as an HCP workspace with access controls, project membership and run history.
  2. Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs.
  3. Use an HCP Terraform workspace with a supported cloud configuration or remote workflow for CLI-driven plans and applies, keeping state under the hosted workspace.
  4. A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records.
  5. The CLI targets the correct hosted workspace and remote runs obtain approved short-lived credentials without static secrets in code.

Explanation

Correct Answers

B:

The case says: A workspace run history should link each infrastructure plan to a repository revision. The directly relevant Terraform response is: Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs. This addresses the related failure mode: A workspace without the intended VCS connection will not automatically track repository changes. Validate the result by checking: A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records. The selection matches this objective, rather than a different Terraform administration task.

D:

The observed situation is: A workspace run history should link each infrastructure plan to a repository revision. The acceptance evidence is: A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records. It verifies the corrective approach (Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs.) and controls the risk: A workspace without the intended VCS connection will not automatically track repository changes. Checking an unrelated Terraform setting would not prove the stated requirement was met.

Incorrect Answers

A:

A CLI workspace in one directory is not the same as an HCP workspace with access controls, project membership and run history. This belongs to HCP Terraform projects workspaces and triggers (official objective 8c). Its separate risk is that a CLI workspace in one directory is not the same as an HCP workspace with access controls, project membership and run history. The question instead tests HCP Terraform VCS-driven runs; that other safeguard alone does not verify it.

C:

Use an HCP Terraform workspace with a supported cloud configuration or remote workflow for CLI-driven plans and applies, keeping state under the hosted workspace. That addresses CLI-driven HCP Terraform remote operations (official objective 8a), specifically the hazard that a local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory. Here the necessary action or evidence is the paired action Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs and separate validation A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records, not that separate control.

E:

The CLI targets the correct hosted workspace and remote runs obtain approved short-lived credentials without static secrets in code. This does not provide the required HCP Terraform VCS-driven runs action-and-evidence pair.