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 23

Question 220

A university DevOps class builds a pipeline that must alert on infrastructure changes but not mistake them for command failures. Which combined implementation and verification plan is the best match for this workload?

  1. Implement: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses. Verify: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.
  2. Implement: Run terraform plan -detailed-exitcode and distinguish exit code zero for no diff, two for proposed changes, and one for execution errors. Verify: Test a no-op configuration, a safe tagged change and a deliberately invalid credential, recording the separate Terraform exit codes.
  3. Implement: Run terraform plan -detailed-exitcode and distinguish exit code zero for no diff, two for proposed changes, and one for execution errors. Verify: Generate a protected test plan, review intended creates and deletes, then execute terraform apply with that saved file and verify the resulting object IDs.
  4. Implement: Create an execution plan with terraform plan -out to a protected artifact and apply that exact reviewed plan under the same intended infrastructure context. Verify: Test a no-op configuration, a safe tagged change and a deliberately invalid credential, recording the separate Terraform exit codes.

Answer & Explanations

Correct answer: B

A.

This action/test pair addresses “Apply a reviewed plan under the intended identity”. Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses. Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes. The case instead calls for: Run terraform plan -detailed-exitcode and distinguish exit code zero for no diff, two for proposed changes, and one for execution errors.

B.

The question is set in this situation: A university DevOps class builds a pipeline that must alert on infrastructure changes but not mistake them for command failures. Run terraform plan -detailed-exitcode and distinguish exit code zero for no diff, two for proposed changes, and one for execution errors. Confirm it through this test: Test a no-op configuration, a safe tagged change and a deliberately invalid credential, recording the separate Terraform exit codes. The detailed exit status separates changed infrastructure from command failure, letting CI enforce review without confusing drift with a failed command.

C.

The question is set in this situation: A university DevOps class builds a pipeline that must alert on infrastructure changes but not mistake them for command failures. The action is applicable: Run terraform plan -detailed-exitcode and distinguish exit code zero for no diff, two for proposed changes, and one for execution errors. But its proposed test—Generate a protected test plan, review intended creates and deletes, then execute terraform apply with that saved file and verify the resulting object IDs.—addresses “Save an execution plan artifact for controlled apply”. This requirement is confirmed instead by: Test a no-op configuration, a safe tagged change and a deliberately invalid credential, recording the separate Terraform exit codes.

D.

The question is set in this situation: A university DevOps class builds a pipeline that must alert on infrastructure changes but not mistake them for command failures. The test would be relevant: Test a no-op configuration, a safe tagged change and a deliberately invalid credential, recording the separate Terraform exit codes. But the offered implementation—Create an execution plan with terraform plan -out to a protected artifact and apply that exact reviewed plan under the same intended infrastructure context.—addresses “Save an execution plan artifact for controlled apply”. The action needed here is: Run terraform plan -detailed-exitcode and distinguish exit code zero for no diff, two for proposed changes, and one for execution errors.

Question 221

A bank infrastructure team receives a reviewed plan from CI and needs the deploy identity to execute only that approved change. Which HashiCorp Terraform infrastructure implementation best satisfies this requirement?

  1. Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.
  2. Require terraform fmt -check in CI and apply terraform fmt to the authoring branch when formatting does not match the canonical HCL style.
  3. Reserve terraform apply -auto-approve for tightly controlled automation with prior independent plan approval, identity boundaries and audit records.
  4. Initialize providers and backend, validate configuration, inspect a plan and apply only reviewed changes under the appropriate identity.

Answer & Explanations

Correct answer: A

A.

Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses. Apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review. Verify the result with this test: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.

B.

Require terraform fmt -check in CI and apply terraform fmt to the authoring branch when formatting does not match the canonical HCL style. This addresses “Use terraform fmt -check before merging HCL”, where the governing principle is: The formatter normalizes whitespace and alignment, and the check flag detects differences without modifying the working directory. The stated case instead calls for: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

C.

Reserve terraform apply -auto-approve for tightly controlled automation with prior independent plan approval, identity boundaries and audit records. This addresses “Avoid auto-approval of production changes without policy gates”, where the governing principle is: The flag skips interactive confirmation; it does not validate policy compliance or remove the impact of destructive provider operations. The stated case instead calls for: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

D.

Initialize providers and backend, validate configuration, inspect a plan and apply only reviewed changes under the appropriate identity. This addresses “Follow init-plan-apply workflow before changing infrastructure”, where the governing principle is: Terraform builds an execution plan from configuration, state and remote reality; separating review from apply helps control infrastructure effects. The stated case instead calls for: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

Question 222

A bank infrastructure team receives a reviewed plan from CI and needs the deploy identity to execute only that approved change. The infrastructure engineer proposes this change: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses. Which mechanism explains why it works?

  1. The formatter normalizes whitespace and alignment, and the check flag detects differences without modifying the working directory.
  2. The flag skips interactive confirmation; it does not validate policy compliance or remove the impact of destructive provider operations.
  3. Terraform builds an execution plan from configuration, state and remote reality; separating review from apply helps control infrastructure effects.
  4. Apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review.

Answer & Explanations

Correct answer: D

A.

The formatter normalizes whitespace and alignment, and the check flag detects differences without modifying the working directory. That explains “Use terraform fmt -check before merging HCL”, not the mechanism behind the described change. The relevant principle is: Apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review.

B.

The flag skips interactive confirmation; it does not validate policy compliance or remove the impact of destructive provider operations. That explains “Avoid auto-approval of production changes without policy gates”, not the mechanism behind the described change. The relevant principle is: Apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review.

C.

Terraform builds an execution plan from configuration, state and remote reality; separating review from apply helps control infrastructure effects. That explains “Follow init-plan-apply workflow before changing infrastructure”, not the mechanism behind the described change. The relevant principle is: Apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review.

D.

Apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review. The corresponding implementation is: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

Question 223

A bank infrastructure team receives a reviewed plan from CI and needs the deploy identity to execute only that approved change. After implementing this change—Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.—which test most directly validates its intended outcome?

  1. Introduce inconsistent indentation in a test .tf file, verify fmt -check reports it and a subsequent fmt produces a clean check.
  2. Compare a nonproduction apply requiring confirmation with a gated CI apply and verify the gate rather than a prompt protects production changes.
  3. Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.
  4. In a sandbox, run init, validate, plan and apply with an approved test resource, then confirm an unchanged subsequent plan.

Answer & Explanations

Correct answer: C

A.

Introduce inconsistent indentation in a test.tf file, verify fmt -check reports it and a subsequent fmt produces a clean check. That would help test “Use terraform fmt -check before merging HCL”, not the outcome required in this scenario. The relevant acceptance check is: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.

B.

Compare a nonproduction apply requiring confirmation with a gated CI apply and verify the gate rather than a prompt protects production changes. That would help test “Avoid auto-approval of production changes without policy gates”, not the outcome required in this scenario. The relevant acceptance check is: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.

C.

Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes. This check is decisive because apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review.

D.

In a sandbox, run init, validate, plan and apply with an approved test resource, then confirm an unchanged subsequent plan. That would help test “Follow init-plan-apply workflow before changing infrastructure”, not the outcome required in this scenario. The relevant acceptance check is: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.

Question 224

A bank infrastructure team receives a reviewed plan from CI and needs the deploy identity to execute only that approved change. Which proposed shortcut most directly risks unauthorized or incorrect infrastructure changes during apply and should therefore be rejected?

  1. Treat terraform fmt as a provider-backed deployment validator and skip all other checks after it succeeds.
  2. Run a saved plan from an untrusted source or an unrelated workspace without checking that its backend and target context are intended.
  3. Grant broad production privileges to a cron job and run apply -auto-approve for every repository edit with no review or plan evidence.
  4. Run terraform apply on an unfamiliar production directory before initialization and without reviewing the proposed resource changes.

Answer & Explanations

Correct answer: B

A.

Treat terraform fmt as a provider-backed deployment validator and skip all other checks after it succeeds. That shortcut risks invalid or unsafe infrastructure changes masked by a style-only check. Here the specific shortcut is: Run a saved plan from an untrusted source or an unrelated workspace without checking that its backend and target context are intended.

B.

Run a saved plan from an untrusted source or an unrelated workspace without checking that its backend and target context are intended. The foreseeable failure is unauthorized or incorrect infrastructure changes during apply. The safer response is: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

C.

Grant broad production privileges to a cron job and run apply -auto-approve for every repository edit with no review or plan evidence. That shortcut risks unreviewed destructive infrastructure changes applied automatically. Here the specific shortcut is: Run a saved plan from an untrusted source or an unrelated workspace without checking that its backend and target context are intended.

D.

Run terraform apply on an unfamiliar production directory before initialization and without reviewing the proposed resource changes. That shortcut risks unintended production changes from skipping baseline validation and change review. Here the specific shortcut is: Run a saved plan from an untrusted source or an unrelated workspace without checking that its backend and target context are intended.

Question 225

A bank infrastructure team receives a reviewed plan from CI and needs the deploy identity to execute only that approved change. Which combined implementation and verification plan is the best match for this workload?

  1. Implement: Require terraform fmt -check in CI and apply terraform fmt to the authoring branch when formatting does not match the canonical HCL style. Verify: Introduce inconsistent indentation in a test .tf file, verify fmt -check reports it and a subsequent fmt produces a clean check.
  2. Implement: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses. Verify: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.
  3. Implement: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses. Verify: Compare a nonproduction apply requiring confirmation with a gated CI apply and verify the gate rather than a prompt protects production changes.
  4. Implement: Reserve terraform apply -auto-approve for tightly controlled automation with prior independent plan approval, identity boundaries and audit records. Verify: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.

Answer & Explanations

Correct answer: B

A.

This action/test pair addresses “Use terraform fmt -check before merging HCL”. Require terraform fmt -check in CI and apply terraform fmt to the authoring branch when formatting does not match the canonical HCL style. Introduce inconsistent indentation in a test.tf file, verify fmt -check reports it and a subsequent fmt produces a clean check. The case instead calls for: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

B.

Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses. Confirm it through this test: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes. Apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review.

C.

The action is applicable: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses. But its proposed test—Compare a nonproduction apply requiring confirmation with a gated CI apply and verify the gate rather than a prompt protects production changes.—addresses “Avoid auto-approval of production changes without policy gates”. This requirement is confirmed instead by: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.

D.

The test would be relevant: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes. But the offered implementation—Reserve terraform apply -auto-approve for tightly controlled automation with prior independent plan approval, identity boundaries and audit records.—addresses “Avoid auto-approval of production changes without policy gates”. The action needed here is: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

Question 226

A shipping platform wants a dry-run review before approving changes to several shared load balancers. Which HashiCorp Terraform infrastructure implementation best satisfies this requirement?

  1. Create an execution plan with terraform plan -out to a protected artifact and apply that exact reviewed plan under the same intended infrastructure context.
  2. Use independent backend state and credentials per environment, generating and reviewing plans against the selected environment before any apply.
  3. Reserve terraform apply -auto-approve for tightly controlled automation with prior independent plan approval, identity boundaries and audit records.
  4. Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

Answer & Explanations

Correct answer: D

A.

Create an execution plan with terraform plan -out to a protected artifact and apply that exact reviewed plan under the same intended infrastructure context. This addresses “Save an execution plan artifact for controlled apply”, where the governing principle is: A saved plan fixes the selected actions for approval while still requiring safeguards against stale state and leaked sensitive values in plan artifacts. The stated case instead calls for: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

B.

Use independent backend state and credentials per environment, generating and reviewing plans against the selected environment before any apply. This addresses “Keep development and production approvals separate within the same workflow”, where the governing principle is: The same HCL can operate on very different resources when credentials and state differ; a local workspace name is not a complete security boundary. The stated case instead calls for: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

C.

The question is set in this situation: A shipping platform wants a dry-run review before approving changes to several shared load balancers. Reserve terraform apply -auto-approve for tightly controlled automation with prior independent plan approval, identity boundaries and audit records. This addresses “Avoid auto-approval of production changes without policy gates”, where the governing principle is: The flag skips interactive confirmation; it does not validate policy compliance or remove the impact of destructive provider operations. The stated case instead calls for: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

D.

The question is set in this situation: A shipping platform wants a dry-run review before approving changes to several shared load balancers. Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses. Apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review. Verify the result with this test: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.

Question 227

A shipping platform wants a dry-run review before approving changes to several shared load balancers. The infrastructure engineer proposes this change: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses. Which mechanism explains why it works?

  1. Apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review.
  2. The flag skips interactive confirmation; it does not validate policy compliance or remove the impact of destructive provider operations.
  3. A saved plan fixes the selected actions for approval while still requiring safeguards against stale state and leaked sensitive values in plan artifacts.
  4. The same HCL can operate on very different resources when credentials and state differ; a local workspace name is not a complete security boundary.

Answer & Explanations

Correct answer: A

A.

The question is set in this situation: A shipping platform wants a dry-run review before approving changes to several shared load balancers. Apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review. The corresponding implementation is: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

B.

The question is set in this situation: A shipping platform wants a dry-run review before approving changes to several shared load balancers. The flag skips interactive confirmation; it does not validate policy compliance or remove the impact of destructive provider operations. That explains “Avoid auto-approval of production changes without policy gates”, not the mechanism behind the described change. The relevant principle is: Apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review.

C.

A saved plan fixes the selected actions for approval while still requiring safeguards against stale state and leaked sensitive values in plan artifacts. That explains “Save an execution plan artifact for controlled apply”, not the mechanism behind the described change. The relevant principle is: Apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review.

D.

The same HCL can operate on very different resources when credentials and state differ; a local workspace name is not a complete security boundary. That explains “Keep development and production approvals separate within the same workflow”, not the mechanism behind the described change. The relevant principle is: Apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review.

Question 228

A shipping platform wants a dry-run review before approving changes to several shared load balancers. After implementing this change—Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.—which test most directly validates its intended outcome?

  1. Generate a protected test plan, review intended creates and deletes, then execute terraform apply with that saved file and verify the resulting object IDs.
  2. Plan the same module in isolated development and production test contexts and verify the state backend and provider account match each environment.
  3. Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.
  4. Compare a nonproduction apply requiring confirmation with a gated CI apply and verify the gate rather than a prompt protects production changes.

Answer & Explanations

Correct answer: C

A.

Generate a protected test plan, review intended creates and deletes, then execute terraform apply with that saved file and verify the resulting object IDs. That would help test “Save an execution plan artifact for controlled apply”, not the outcome required in this scenario. The relevant acceptance check is: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.

B.

Plan the same module in isolated development and production test contexts and verify the state backend and provider account match each environment. That would help test “Keep development and production approvals separate within the same workflow”, not the outcome required in this scenario. The relevant acceptance check is: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.

C.

The question is set in this situation: A shipping platform wants a dry-run review before approving changes to several shared load balancers. Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes. This check is decisive because apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review.

D.

The question is set in this situation: A shipping platform wants a dry-run review before approving changes to several shared load balancers. Compare a nonproduction apply requiring confirmation with a gated CI apply and verify the gate rather than a prompt protects production changes. That would help test “Avoid auto-approval of production changes without policy gates”, not the outcome required in this scenario. The relevant acceptance check is: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.

Question 229

A shipping platform wants a dry-run review before approving changes to several shared load balancers. Which proposed shortcut most directly risks unauthorized or incorrect infrastructure changes during apply and should therefore be rejected?

  1. Assume copying a terraform directory from staging into production makes it safe to apply without checking credentials, backend and target objects.
  2. Approve one displayed plan but later run an unrelated unreviewed apply after intervening configuration edits.
  3. Run a saved plan from an untrusted source or an unrelated workspace without checking that its backend and target context are intended.
  4. Grant broad production privileges to a cron job and run apply -auto-approve for every repository edit with no review or plan evidence.

Answer & Explanations

Correct answer: C

A.

Assume copying a terraform directory from staging into production makes it safe to apply without checking credentials, backend and target objects. That shortcut risks accidental infrastructure changes to a protected environment. Here the specific shortcut is: Run a saved plan from an untrusted source or an unrelated workspace without checking that its backend and target context are intended.

B.

Approve one displayed plan but later run an unrelated unreviewed apply after intervening configuration edits. That shortcut risks production changes that differ from the reviewed execution plan. Here the specific shortcut is: Run a saved plan from an untrusted source or an unrelated workspace without checking that its backend and target context are intended.

C.

The question is set in this situation: A shipping platform wants a dry-run review before approving changes to several shared load balancers. Run a saved plan from an untrusted source or an unrelated workspace without checking that its backend and target context are intended. The foreseeable failure is unauthorized or incorrect infrastructure changes during apply. The safer response is: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

D.

The question is set in this situation: A shipping platform wants a dry-run review before approving changes to several shared load balancers. Grant broad production privileges to a cron job and run apply -auto-approve for every repository edit with no review or plan evidence. That shortcut risks unreviewed destructive infrastructure changes applied automatically. Here the specific shortcut is: Run a saved plan from an untrusted source or an unrelated workspace without checking that its backend and target context are intended.

Question 230

A shipping platform wants a dry-run review before approving changes to several shared load balancers. Which combined implementation and verification plan is the best match for this workload?

  1. Implement: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses. Verify: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.
  2. Implement: Reserve terraform apply -auto-approve for tightly controlled automation with prior independent plan approval, identity boundaries and audit records. Verify: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.
  3. Implement: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses. Verify: Compare a nonproduction apply requiring confirmation with a gated CI apply and verify the gate rather than a prompt protects production changes.
  4. Implement: Use independent backend state and credentials per environment, generating and reviewing plans against the selected environment before any apply. Verify: Plan the same module in isolated development and production test contexts and verify the state backend and provider account match each environment.

Answer & Explanations

Correct answer: A

A.

The question is set in this situation: A shipping platform wants a dry-run review before approving changes to several shared load balancers. Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses. Confirm it through this test: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes. Apply executes provider operations from the selected plan and updates state; credential context and state consistency remain important despite plan review.

B.

The question is set in this situation: A shipping platform wants a dry-run review before approving changes to several shared load balancers. The test would be relevant: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes. But the offered implementation—Reserve terraform apply -auto-approve for tightly controlled automation with prior independent plan approval, identity boundaries and audit records.—addresses “Avoid auto-approval of production changes without policy gates”. The action needed here is: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

C.

The question is set in this situation: A shipping platform wants a dry-run review before approving changes to several shared load balancers. The action is applicable: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses. But its proposed test—Compare a nonproduction apply requiring confirmation with a gated CI apply and verify the gate rather than a prompt protects production changes.—addresses “Avoid auto-approval of production changes without policy gates”. This requirement is confirmed instead by: Apply a saved plan in a disposable account and verify its resulting state and resources match the planned creates, updates and deletes.

D.

This action/test pair addresses “Keep development and production approvals separate within the same workflow”. Use independent backend state and credentials per environment, generating and reviewing plans against the selected environment before any apply. Plan the same module in isolated development and production test contexts and verify the state backend and provider account match each environment. The case instead calls for: Run terraform apply on a reviewed saved plan after checking backend, workspace, provider account, authorization and expected changed resource addresses.

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