McAfee-Secured Website

Exam Bundle

Exam Code: Terraform Associate 004

Exam Name HashiCorp Certified: Terraform Associate (004)

Certification Provider: HashiCorp

Corresponding Certification: Terraform Associate

HashiCorp Terraform Associate 004 Bundle $19.99

100% HashiCorp Terraform Associate 004 Guaranteed Success With Testking Training Materials

Get Real Terraform Associate 004 Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

  • Questions & Answers

    Terraform Associate 004 Questions & Answers

    167 Questions & Answers

    The ultimate exam preparation tool, Questions & Answers mirrors the actual Terraform Associate 004 exam while allowing you to hone and measure every aspect of your test-taking ability.

  • Study Guide

    Terraform Associate 004 Study Guide

    285 PDF Pages

    Developed by industry experts, this 285-page guide spells out in painstaking detail all of the information you need to ace Terraform Associate 004 exam.

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

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Total Cost: $154.98
Bundle Price: $134.99

Purchase Individually

  • Questions & Answers

    Questions & Answers

    167 Questions

    $124.99
  • Study Guide

    Study Guide

    285 PDF Pages

    $29.99

HashiCorp Terraform Associate 004 Practice Test 58

Question 570

The Terraform change owner at Eastbridge Operations seeks a verifiable outcome for: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. Which observation best confirms that the proposed correction worked?

  1. The run uses the documented version and passes its provider/module compatibility checks.
  2. The review identifies the protected database and prevents unauthorized data destruction.
  3. The second job waits or exits according to policy and never corrupts the first job's state write.
  4. The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

Explanation

Correct Answer

D:

The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure. This directly verifies the corrective action: Preserve or migrate the local state file with the configuration rather than leaving resource mappings behind. The measured result specifically addresses the failure at Eastbridge Operations: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files.

Incorrect Answers

A:

The run uses the documented version and passes its provider/module compatibility checks. This evidence would validate a DIFFERENT correction: Set a supported Terraform version in workspace settings and validate the configuration on a controlled speculative run. That different correction addresses: A platform upgrades the Terraform CLI version for its HCP Terraform workspace without validating version compatibility or plan behavior. It does not establish that the Eastbridge Operations issue has been corrected: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The relevant measured outcome is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

B:

The review identifies the protected database and prevents unauthorized data destruction. This evidence would validate a DIFFERENT correction: Review destroy implications and lifecycle/retention controls before decommissioning managed data services. That different correction addresses: A training exercise uses destroy to clear a resource but ignores a required retention policy for its database. It does not establish that the Eastbridge Operations issue has been corrected: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The relevant measured outcome is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

C:

The second job waits or exits according to policy and never corrupts the first job's state write. This evidence would validate a DIFFERENT correction: Use the documented lock-timeout behavior or release scheduling instead of disabling locking. That different correction addresses: A long plan times out waiting for the state lock while another maintenance run legitimately holds it. It does not establish that the Eastbridge Operations issue has been corrected: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The relevant measured outcome is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

Question 571

During repository review at Harborline Infrastructure, the platform team reports: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. Which proposed fix addresses the reported root cause?

  1. Preserve or migrate the local state file with the configuration rather than leaving resource mappings behind.
  2. Explain that Terraform declares desired manageable resources and reconciles them through provider APIs and tracked state.
  3. Supply backend configuration through values available during initialization, independently of normal resource evaluation.
  4. Interpret plan action symbols and the resource-specific reasons for changes before approval.

Explanation

Correct Answer

A:

Preserve or migrate the local state file with the configuration rather than leaving resource mappings behind. This is targeted to the observed Terraform issue: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. At Harborline Infrastructure, the acceptance criterion is not merely a valid plan; the team should verify: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

Incorrect Answers

B:

Explain that Terraform declares desired manageable resources and reconciles them through provider APIs and tracked state. This would be suitable for a DIFFERENT Terraform problem: A service owner believes infrastructure as code requires every physical device to be recreated from scratch during each deployment. It does not directly resolve the Harborline Infrastructure failure: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The required acceptance evidence instead is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

C:

Supply backend configuration through values available during initialization, independently of normal resource evaluation. This would be suitable for a DIFFERENT Terraform problem: A pipeline attempts to calculate the backend bucket name from an output that is not known until after apply. It does not directly resolve the Harborline Infrastructure failure: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The required acceptance evidence instead is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

D:

Interpret plan action symbols and the resource-specific reasons for changes before approval. This would be suitable for a DIFFERENT Terraform problem: An engineer reads the plan's plus and minus indicators as simple text decoration and misses resource destruction. It does not directly resolve the Harborline Infrastructure failure: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The required acceptance evidence instead is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

Question 572

An acceptance reviewer at Harborline Infrastructure must validate the fix for: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. What result would demonstrate that the identified problem is actually resolved?

  1. A deliberately removed resource is identified as a destroy action in the review record.
  2. The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.
  3. A clean init resolves the configured backend before planning any resources.
  4. A no-change review leaves existing managed resources in place while detecting only an intentionally altered configuration field.

Explanation

Correct Answer

B:

The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure. This directly verifies the corrective action: Preserve or migrate the local state file with the configuration rather than leaving resource mappings behind. The measured result specifically addresses the failure at Harborline Infrastructure: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files.

Incorrect Answers

A:

A deliberately removed resource is identified as a destroy action in the review record. This evidence would validate a DIFFERENT correction: Interpret plan action symbols and the resource-specific reasons for changes before approval. That different correction addresses: An engineer reads the plan's plus and minus indicators as simple text decoration and misses resource destruction. It does not establish that the Harborline Infrastructure issue has been corrected: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The relevant measured outcome is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

C:

A clean init resolves the configured backend before planning any resources. This evidence would validate a DIFFERENT correction: Supply backend configuration through values available during initialization, independently of normal resource evaluation. That different correction addresses: A pipeline attempts to calculate the backend bucket name from an output that is not known until after apply. It does not establish that the Harborline Infrastructure issue has been corrected: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The relevant measured outcome is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

D:

A no-change review leaves existing managed resources in place while detecting only an intentionally altered configuration field. This evidence would validate a DIFFERENT correction: Explain that Terraform declares desired manageable resources and reconciles them through provider APIs and tracked state. That different correction addresses: A service owner believes infrastructure as code requires every physical device to be recreated from scratch during each deployment. It does not establish that the Harborline Infrastructure issue has been corrected: A developer relocates the root directory and assumes the local backend state will automatically follow an unrelated copy of only the .tf files. The relevant measured outcome is: The moved workspace retains tracked resources and its next plan does not propose duplicating existing infrastructure.

Question 573

During repository review at Westfield Digital Systems, the platform team reports: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. What is the most appropriate corrective action for this Terraform scenario?

  1. Pass provider configurations from the caller and avoid nested provider configuration in reusable child modules where possible.
  2. Use declarative Terraform code to record the intended infrastructure state rather than relying on current-state screenshots.
  3. Verify the selected backend's documented locking support and add an execution serialization control if necessary.
  4. Use correctly configured Terraform CLI workspaces or distinct state paths with documented environment isolation.

Explanation

Correct Answer

D:

Use correctly configured Terraform CLI workspaces or distinct state paths with documented environment isolation. This is targeted to the observed Terraform issue: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. At Westfield Digital Systems, the acceptance criterion is not merely a valid plan; the team should verify: Each environment's state list contains only its own intended resource addresses.

Incorrect Answers

A:

Pass provider configurations from the caller and avoid nested provider configuration in reusable child modules where possible. This would be suitable for a DIFFERENT Terraform problem: An application module quietly configures an independent provider account, conflicting with the root's deployment credentials. It does not directly resolve the Westfield Digital Systems failure: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. The required acceptance evidence instead is: Each environment's state list contains only its own intended resource addresses.

B:

Use declarative Terraform code to record the intended infrastructure state rather than relying on current-state screenshots. This would be suitable for a DIFFERENT Terraform problem: An audit asks for the desired infrastructure configuration, but the team offers only screenshots of resources that currently exist. It does not directly resolve the Westfield Digital Systems failure: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. The required acceptance evidence instead is: Each environment's state list contains only its own intended resource addresses.

C:

Verify the selected backend's documented locking support and add an execution serialization control if necessary. This would be suitable for a DIFFERENT Terraform problem: A repository uses a remote backend that does not implement locking, but a team claims every remote backend automatically prevents concurrent applies. It does not directly resolve the Westfield Digital Systems failure: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. The required acceptance evidence instead is: Each environment's state list contains only its own intended resource addresses.

Question 574

An acceptance reviewer at Westfield Digital Systems must validate the fix for: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. Which controlled check would validate the remediation?

  1. Each environment's state list contains only its own intended resource addresses.
  2. The reviewer can locate the resource definitions in a reviewed repository and compare their planned result with the deployed environment.
  3. A simulated pair of runs does not perform simultaneous unsafe state writes.
  4. The module's resources resolve the caller-approved account and no unexpected credentials are used.

Explanation

Correct Answer

A:

Each environment's state list contains only its own intended resource addresses. This directly verifies the corrective action: Use correctly configured Terraform CLI workspaces or distinct state paths with documented environment isolation. The measured result specifically addresses the failure at Westfield Digital Systems: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file.

Incorrect Answers

B:

The reviewer can locate the resource definitions in a reviewed repository and compare their planned result with the deployed environment. This evidence would validate a DIFFERENT correction: Use declarative Terraform code to record the intended infrastructure state rather than relying on current-state screenshots. That different correction addresses: An audit asks for the desired infrastructure configuration, but the team offers only screenshots of resources that currently exist. It does not establish that the Westfield Digital Systems issue has been corrected: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. The relevant measured outcome is: Each environment's state list contains only its own intended resource addresses.

C:

A simulated pair of runs does not perform simultaneous unsafe state writes. This evidence would validate a DIFFERENT correction: Verify the selected backend's documented locking support and add an execution serialization control if necessary. That different correction addresses: A repository uses a remote backend that does not implement locking, but a team claims every remote backend automatically prevents concurrent applies. It does not establish that the Westfield Digital Systems issue has been corrected: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. The relevant measured outcome is: Each environment's state list contains only its own intended resource addresses.

D:

The module's resources resolve the caller-approved account and no unexpected credentials are used. This evidence would validate a DIFFERENT correction: Pass provider configurations from the caller and avoid nested provider configuration in reusable child modules where possible. That different correction addresses: An application module quietly configures an independent provider account, conflicting with the root's deployment credentials. It does not establish that the Westfield Digital Systems issue has been corrected: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. The relevant measured outcome is: Each environment's state list contains only its own intended resource addresses.

Question 575

At Evergreen Development, the Terraform review finds this specific problem: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. Which action would best restore the intended infrastructure-as-code workflow?

  1. Investigate the active lock holder and underlying backend health instead of bypassing normal locking.
  2. Use correctly configured Terraform CLI workspaces or distinct state paths with documented environment isolation.
  3. Use the published module source syntax and a supported version constraint for the registry module.
  4. Choose an appropriate homogeneous list or fixed-shape tuple type based on how the input is consumed.

Explanation

Correct Answer

B:

Use correctly configured Terraform CLI workspaces or distinct state paths with documented environment isolation. This is targeted to the observed Terraform issue: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. At Evergreen Development, the acceptance criterion is not merely a valid plan; the team should verify: Each environment's state list contains only its own intended resource addresses.

Incorrect Answers

A:

Investigate the active lock holder and underlying backend health instead of bypassing normal locking. This would be suitable for a DIFFERENT Terraform problem: A Terraform job fails to acquire a state lock and its operator reaches immediately for -lock=false to continue in production. It does not directly resolve the Evergreen Development failure: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. The required acceptance evidence instead is: Each environment's state list contains only its own intended resource addresses.

C:

Use the published module source syntax and a supported version constraint for the registry module. This would be suitable for a DIFFERENT Terraform problem: A team tries to install a remote Terraform Registry module without specifying a valid registry source address. It does not directly resolve the Evergreen Development failure: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. The required acceptance evidence instead is: Each environment's state list contains only its own intended resource addresses.

D:

Choose an appropriate homogeneous list or fixed-shape tuple type based on how the input is consumed. This would be suitable for a DIFFERENT Terraform problem: An engineer assumes a tuple and a list are interchangeable without considering fixed per-position element types. It does not directly resolve the Evergreen Development failure: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. The required acceptance evidence instead is: Each environment's state list contains only its own intended resource addresses.

Question 576

After corrective work at Evergreen Development, a reviewer requests measurable proof for: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. Which observation best confirms that the proposed correction worked?

  1. Init resolves the intended published module version and records it in the installed module manifest.
  2. Type validation catches a shape mismatch before the input reaches provider arguments.
  3. Each environment's state list contains only its own intended resource addresses.
  4. The next authorized run acquires the lock without a competing state modification.

Explanation

Correct Answer

C:

Each environment's state list contains only its own intended resource addresses. This directly verifies the corrective action: Use correctly configured Terraform CLI workspaces or distinct state paths with documented environment isolation. The measured result specifically addresses the failure at Evergreen Development: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file.

Incorrect Answers

A:

Init resolves the intended published module version and records it in the installed module manifest. This evidence would validate a DIFFERENT correction: Use the published module source syntax and a supported version constraint for the registry module. That different correction addresses: A team tries to install a remote Terraform Registry module without specifying a valid registry source address. It does not establish that the Evergreen Development issue has been corrected: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. The relevant measured outcome is: Each environment's state list contains only its own intended resource addresses.

B:

Type validation catches a shape mismatch before the input reaches provider arguments. This evidence would validate a DIFFERENT correction: Choose an appropriate homogeneous list or fixed-shape tuple type based on how the input is consumed. That different correction addresses: An engineer assumes a tuple and a list are interchangeable without considering fixed per-position element types. It does not establish that the Evergreen Development issue has been corrected: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. The relevant measured outcome is: Each environment's state list contains only its own intended resource addresses.

D:

The next authorized run acquires the lock without a competing state modification. This evidence would validate a DIFFERENT correction: Investigate the active lock holder and underlying backend health instead of bypassing normal locking. That different correction addresses: A Terraform job fails to acquire a state lock and its operator reaches immediately for -lock=false to continue in production. It does not establish that the Evergreen Development issue has been corrected: A team wants separate isolated states for training and production in a local backend but runs both with the same unseparated state file. The relevant measured outcome is: Each environment's state list contains only its own intended resource addresses.

Question 577

At Bluewater IT Services, the Terraform review finds this specific problem: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. How should the Terraform engineer correct this specific failure?

  1. Protect local state as potentially sensitive and restrict access and backups rather than distributing it freely.
  2. Set a supported Terraform version in workspace settings and validate the configuration on a controlled speculative run.
  3. Apply separate backend IAM, encryption, audit and least-privilege controls appropriate to the storage service.
  4. Interpret plan action symbols and the resource-specific reasons for changes before approval.

Explanation

Correct Answer

A:

Protect local state as potentially sensitive and restrict access and backups rather than distributing it freely. This is targeted to the observed Terraform issue: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. At Bluewater IT Services, the acceptance criterion is not merely a valid plan; the team should verify: Local state is excluded from email and public repositories while approved backup recovery succeeds.

Incorrect Answers

B:

Set a supported Terraform version in workspace settings and validate the configuration on a controlled speculative run. This would be suitable for a DIFFERENT Terraform problem: A platform upgrades the Terraform CLI version for its HCP Terraform workspace without validating version compatibility or plan behavior. It does not directly resolve the Bluewater IT Services failure: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. The required acceptance evidence instead is: Local state is excluded from email and public repositories while approved backup recovery succeeds.

C:

Apply separate backend IAM, encryption, audit and least-privilege controls appropriate to the storage service. This would be suitable for a DIFFERENT Terraform problem: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. It does not directly resolve the Bluewater IT Services failure: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. The required acceptance evidence instead is: Local state is excluded from email and public repositories while approved backup recovery succeeds.

D:

Interpret plan action symbols and the resource-specific reasons for changes before approval. This would be suitable for a DIFFERENT Terraform problem: An engineer reads the plan's plus and minus indicators as simple text decoration and misses resource destruction. It does not directly resolve the Bluewater IT Services failure: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. The required acceptance evidence instead is: Local state is excluded from email and public repositories while approved backup recovery succeeds.

Question 578

After corrective work at Bluewater IT Services, a reviewer requests measurable proof for: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. Which verification outcome is the strongest evidence of the required correction?

  1. A deliberately removed resource is identified as a destroy action in the review record.
  2. Local state is excluded from email and public repositories while approved backup recovery succeeds.
  3. The run uses the documented version and passes its provider/module compatibility checks.
  4. Authorized runners can manage state while an unauthorized identity fails a read or write access test.

Explanation

Correct Answer

B:

Local state is excluded from email and public repositories while approved backup recovery succeeds. This directly verifies the corrective action: Protect local state as potentially sensitive and restrict access and backups rather than distributing it freely. The measured result specifically addresses the failure at Bluewater IT Services: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output.

Incorrect Answers

A:

A deliberately removed resource is identified as a destroy action in the review record. This evidence would validate a DIFFERENT correction: Interpret plan action symbols and the resource-specific reasons for changes before approval. That different correction addresses: An engineer reads the plan's plus and minus indicators as simple text decoration and misses resource destruction. It does not establish that the Bluewater IT Services issue has been corrected: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. The relevant measured outcome is: Local state is excluded from email and public repositories while approved backup recovery succeeds.

C:

The run uses the documented version and passes its provider/module compatibility checks. This evidence would validate a DIFFERENT correction: Set a supported Terraform version in workspace settings and validate the configuration on a controlled speculative run. That different correction addresses: A platform upgrades the Terraform CLI version for its HCP Terraform workspace without validating version compatibility or plan behavior. It does not establish that the Bluewater IT Services issue has been corrected: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. The relevant measured outcome is: Local state is excluded from email and public repositories while approved backup recovery succeeds.

D:

Authorized runners can manage state while an unauthorized identity fails a read or write access test. This evidence would validate a DIFFERENT correction: Apply separate backend IAM, encryption, audit and least-privilege controls appropriate to the storage service. That different correction addresses: Developers assume storing state remotely automatically makes every team member authorized to read and modify it. It does not establish that the Bluewater IT Services issue has been corrected: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. The relevant measured outcome is: Local state is excluded from email and public repositories while approved backup recovery succeeds.

Question 579

The infrastructure engineers at Mariner Infrastructure Group document the following failure during a change review: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. What is the most appropriate corrective action for this Terraform scenario?

  1. Build a reusable child module for the shared networking pattern and invoke it with documented application inputs.
  2. Verify the selected backend's documented locking support and add an execution serialization control if necessary.
  3. Protect local state as potentially sensitive and restrict access and backups rather than distributing it freely.
  4. Disable verbose logging after troubleshooting and use the least verbose level that answers the incident question.

Explanation

Correct Answer

C:

Protect local state as potentially sensitive and restrict access and backups rather than distributing it freely. This is targeted to the observed Terraform issue: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. At Mariner Infrastructure Group, the acceptance criterion is not merely a valid plan; the team should verify: Local state is excluded from email and public repositories while approved backup recovery succeeds.

Incorrect Answers

A:

Build a reusable child module for the shared networking pattern and invoke it with documented application inputs. This would be suitable for a DIFFERENT Terraform problem: A service team duplicates a networking subnet and routing configuration across five applications. It does not directly resolve the Mariner Infrastructure Group failure: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. The required acceptance evidence instead is: Local state is excluded from email and public repositories while approved backup recovery succeeds.

B:

Verify the selected backend's documented locking support and add an execution serialization control if necessary. This would be suitable for a DIFFERENT Terraform problem: A repository uses a remote backend that does not implement locking, but a team claims every remote backend automatically prevents concurrent applies. It does not directly resolve the Mariner Infrastructure Group failure: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. The required acceptance evidence instead is: Local state is excluded from email and public repositories while approved backup recovery succeeds.

D:

Disable verbose logging after troubleshooting and use the least verbose level that answers the incident question. This would be suitable for a DIFFERENT Terraform problem: A team leaves TF_LOG=TRACE enabled for every production run and creates large, potentially sensitive logs. It does not directly resolve the Mariner Infrastructure Group failure: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. The required acceptance evidence instead is: Local state is excluded from email and public repositories while approved backup recovery succeeds.

Question 580

The reliability team at Mariner Infrastructure Group is closing an incident described as follows: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. Which controlled check would validate the remediation?

  1. A simulated pair of runs does not perform simultaneous unsafe state writes.
  2. The applications use the same reviewed module interface while each plan creates its own correctly parameterized resources.
  3. Routine runs no longer produce trace output and incident-specific logging remains available when explicitly enabled.
  4. Local state is excluded from email and public repositories while approved backup recovery succeeds.

Explanation

Correct Answer

D:

Local state is excluded from email and public repositories while approved backup recovery succeeds. This directly verifies the corrective action: Protect local state as potentially sensitive and restrict access and backups rather than distributing it freely. The measured result specifically addresses the failure at Mariner Infrastructure Group: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output.

Incorrect Answers

A:

A simulated pair of runs does not perform simultaneous unsafe state writes. This evidence would validate a DIFFERENT correction: Verify the selected backend's documented locking support and add an execution serialization control if necessary. That different correction addresses: A repository uses a remote backend that does not implement locking, but a team claims every remote backend automatically prevents concurrent applies. It does not establish that the Mariner Infrastructure Group issue has been corrected: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. The relevant measured outcome is: Local state is excluded from email and public repositories while approved backup recovery succeeds.

B:

The applications use the same reviewed module interface while each plan creates its own correctly parameterized resources. This evidence would validate a DIFFERENT correction: Build a reusable child module for the shared networking pattern and invoke it with documented application inputs. That different correction addresses: A service team duplicates a networking subnet and routing configuration across five applications. It does not establish that the Mariner Infrastructure Group issue has been corrected: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. The relevant measured outcome is: Local state is excluded from email and public repositories while approved backup recovery succeeds.

C:

Routine runs no longer produce trace output and incident-specific logging remains available when explicitly enabled. This evidence would validate a DIFFERENT correction: Disable verbose logging after troubleshooting and use the least verbose level that answers the incident question. That different correction addresses: A team leaves TF_LOG=TRACE enabled for every production run and creates large, potentially sensitive logs. It does not establish that the Mariner Infrastructure Group issue has been corrected: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. The relevant measured outcome is: Local state is excluded from email and public repositories while approved backup recovery succeeds.