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 27

Question 260

An acceptance reviewer at Mariner Infrastructure Group must validate the fix for: A plan succeeds but apply fails because runtime credentials lack permission to create one target resource. Which controlled check would validate the remediation?

  1. A deliberately misformatted fixture fails the check while a formatted one passes.
  2. terraform init configures the backend and later plans load state from the intended remote location.
  3. Routine runs no longer produce trace output and incident-specific logging remains available when explicitly enabled.
  4. The authorized apply succeeds without granting unrelated administrator permissions.

Explanation

Correct Answer

D:

The authorized apply succeeds without granting unrelated administrator permissions. This directly verifies the corrective action: Use an appropriately scoped identity and verify the supported API permissions before rerunning the reviewed operation. The measured result specifically addresses the failure at Mariner Infrastructure Group: A plan succeeds but apply fails because runtime credentials lack permission to create one target resource.

Incorrect Answers

A:

A deliberately misformatted fixture fails the check while a formatted one passes. This evidence would validate a DIFFERENT correction: Run terraform fmt -check in CI and fail when formatting changes would be required. That different correction addresses: A CI job should reject code that is not Terraform-formatted without silently modifying a pull-request checkout. It does not establish that the Mariner Infrastructure Group issue has been corrected: A plan succeeds but apply fails because runtime credentials lack permission to create one target resource. The relevant measured outcome is: The authorized apply succeeds without granting unrelated administrator permissions.

B:

terraform init configures the backend and later plans load state from the intended remote location. This evidence would validate a DIFFERENT correction: Declare the supported backend configuration in the terraform block and initialize the backend separately from providers. That different correction addresses: A team wants to store state in a remote service but mistakenly places the backend configuration inside an ordinary provider resource block. It does not establish that the Mariner Infrastructure Group issue has been corrected: A plan succeeds but apply fails because runtime credentials lack permission to create one target resource. The relevant measured outcome is: The authorized apply succeeds without granting unrelated administrator permissions.

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 plan succeeds but apply fails because runtime credentials lack permission to create one target resource. The relevant measured outcome is: The authorized apply succeeds without granting unrelated administrator permissions.

Question 261

During repository review at Eastfield Technology Partners, the platform team reports: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. Which engineering change most directly resolves this issue?

  1. Add a moved block mapping the old resource address to the new address when the object remains the same.
  2. Inspect partial state and remote outcomes after a failed apply, then replan from the current condition.
  3. Supply the approved environment's input variables to planning and record the chosen workspace/backend.
  4. Use HCP Terraform teams and scoped workspace or project permissions under least privilege.

Explanation

Correct Answer

B:

Inspect partial state and remote outcomes after a failed apply, then replan from the current condition. This is targeted to the observed Terraform issue: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. At Eastfield Technology Partners, the acceptance criterion is not merely a valid plan; the team should verify: The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

Incorrect Answers

A:

Add a moved block mapping the old resource address to the new address when the object remains the same. This would be suitable for a DIFFERENT Terraform problem: An engineer renames a Terraform resource block without recording its prior address and gets an unnecessary destroy-and-create plan. It does not directly resolve the Eastfield Technology Partners failure: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. The required acceptance evidence instead is: The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

C:

Supply the approved environment's input variables to planning and record the chosen workspace/backend. This would be suitable for a DIFFERENT Terraform problem: A deployment pipeline runs terraform plan with an old variable set and receives a plan for the wrong environment. It does not directly resolve the Eastfield Technology Partners failure: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. The required acceptance evidence instead is: The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

D:

Use HCP Terraform teams and scoped workspace or project permissions under least privilege. This would be suitable for a DIFFERENT Terraform problem: Several product teams share one HCP Terraform organization, but an administrator grants every team full organization-level access. It does not directly resolve the Eastfield Technology Partners failure: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. The required acceptance evidence instead is: The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

Question 262

An acceptance reviewer at Eastfield Technology Partners must validate the fix for: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. What acceptance evidence is most relevant to this reported issue?

  1. The reviewed plan addresses the intended environment and matches its documented variable values.
  2. Access tests show each team can act only on its authorized workspaces.
  3. The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.
  4. The plan retains the remote object identity while moving its Terraform address without destructive replacement.

Explanation

Correct Answer

C:

The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation. This directly verifies the corrective action: Inspect partial state and remote outcomes after a failed apply, then replan from the current condition. The measured result specifically addresses the failure at Eastfield Technology Partners: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log.

Incorrect Answers

A:

The reviewed plan addresses the intended environment and matches its documented variable values. This evidence would validate a DIFFERENT correction: Supply the approved environment's input variables to planning and record the chosen workspace/backend. That different correction addresses: A deployment pipeline runs terraform plan with an old variable set and receives a plan for the wrong environment. It does not establish that the Eastfield Technology Partners issue has been corrected: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. The relevant measured outcome is: The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

B:

Access tests show each team can act only on its authorized workspaces. This evidence would validate a DIFFERENT correction: Use HCP Terraform teams and scoped workspace or project permissions under least privilege. That different correction addresses: Several product teams share one HCP Terraform organization, but an administrator grants every team full organization-level access. It does not establish that the Eastfield Technology Partners issue has been corrected: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. The relevant measured outcome is: The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

D:

The plan retains the remote object identity while moving its Terraform address without destructive replacement. This evidence would validate a DIFFERENT correction: Add a moved block mapping the old resource address to the new address when the object remains the same. That different correction addresses: An engineer renames a Terraform resource block without recording its prior address and gets an unnecessary destroy-and-create plan. It does not establish that the Eastfield Technology Partners issue has been corrected: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. The relevant measured outcome is: The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

Question 263

At Crestline Digital Operations, the Terraform review finds this specific problem: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. How should the Terraform engineer correct this specific failure?

  1. Validate the module within an initialized configuration and fix variable declarations or references.
  2. Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL.
  3. Apply separate backend IAM, encryption, audit and least-privilege controls appropriate to the storage service.
  4. Inspect partial state and remote outcomes after a failed apply, then replan from the current condition.

Explanation

Correct Answer

D:

Inspect partial state and remote outcomes after a failed apply, then replan from the current condition. This is targeted to the observed Terraform issue: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. At Crestline Digital Operations, the acceptance criterion is not merely a valid plan; the team should verify: The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

Incorrect Answers

A:

Validate the module within an initialized configuration and fix variable declarations or references. This would be suitable for a DIFFERENT Terraform problem: A child module contains an undeclared variable reference but is never checked until a production deployment. It does not directly resolve the Crestline Digital Operations failure: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. The required acceptance evidence instead is: The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

B:

Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL. This would be suitable for a DIFFERENT Terraform problem: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. It does not directly resolve the Crestline Digital Operations failure: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. The required acceptance evidence instead is: The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

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 Crestline Digital Operations failure: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. The required acceptance evidence instead is: The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

Question 264

After corrective work at Crestline Digital Operations, a reviewer requests measurable proof for: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. Which verification outcome is the strongest evidence of the required correction?

  1. The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.
  2. Authorized runners can manage state while an unauthorized identity fails a read or write access test.
  3. An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.
  4. The missing variable reference is rejected by validation and a corrected module passes without apply.

Explanation

Correct Answer

A:

The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation. This directly verifies the corrective action: Inspect partial state and remote outcomes after a failed apply, then replan from the current condition. The measured result specifically addresses the failure at Crestline Digital Operations: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log.

Incorrect Answers

B:

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 Crestline Digital Operations issue has been corrected: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. The relevant measured outcome is: The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

C:

An authorized fresh init retrieves the module while a read-only unauthorized identity cannot. This evidence would validate a DIFFERENT correction: Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL. That different correction addresses: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. It does not establish that the Crestline Digital Operations issue has been corrected: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. The relevant measured outcome is: The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

D:

The missing variable reference is rejected by validation and a corrected module passes without apply. This evidence would validate a DIFFERENT correction: Validate the module within an initialized configuration and fix variable declarations or references. That different correction addresses: A child module contains an undeclared variable reference but is never checked until a production deployment. It does not establish that the Crestline Digital Operations issue has been corrected: A release script assumes an unsuccessful Terraform apply leaves no infrastructure changes and deletes the incident log. The relevant measured outcome is: The follow-up plan accounts for any already-created resources rather than attempting blind duplicate creation.

Question 265

At Stonebrook Software, the Terraform review finds this specific problem: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. Which proposed fix addresses the reported root cause?

  1. Use the default for ordinary cases and override the input only for documented exceptional environments.
  2. Use an appropriately scoped identity and verify the supported API permissions before rerunning the reviewed operation.
  3. Use an authorized terraform destroy workflow for resources still tracked in state, reviewing the destruction plan first.
  4. Investigate the active lock holder and underlying backend health instead of bypassing normal locking.

Explanation

Correct Answer

C:

Use an authorized terraform destroy workflow for resources still tracked in state, reviewing the destruction plan first. This is targeted to the observed Terraform issue: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. At Stonebrook Software, the acceptance criterion is not merely a valid plan; the team should verify: The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

Incorrect Answers

A:

Use the default for ordinary cases and override the input only for documented exceptional environments. This would be suitable for a DIFFERENT Terraform problem: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. It does not directly resolve the Stonebrook Software failure: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. The required acceptance evidence instead is: The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

B:

Use an appropriately scoped identity and verify the supported API permissions before rerunning the reviewed operation. This would be suitable for a DIFFERENT Terraform problem: A plan succeeds but apply fails because runtime credentials lack permission to create one target resource. It does not directly resolve the Stonebrook Software failure: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. The required acceptance evidence instead is: The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

D:

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 Stonebrook Software failure: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. The required acceptance evidence instead is: The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

Question 266

After corrective work at Stonebrook Software, a reviewer requests measurable proof for: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. What result would demonstrate that the identified problem is actually resolved?

  1. The next authorized run acquires the lock without a competing state modification.
  2. The authorized apply succeeds without granting unrelated administrator permissions.
  3. A call omitting the optional input plans successfully with the declared default.
  4. The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

Explanation

Correct Answer

D:

The approved plan identifies managed objects for removal and a post-run check confirms they are deleted. This directly verifies the corrective action: Use an authorized terraform destroy workflow for resources still tracked in state, reviewing the destruction plan first. The measured result specifically addresses the failure at Stonebrook Software: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear.

Incorrect Answers

A:

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 Stonebrook Software issue has been corrected: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. The relevant measured outcome is: The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

B:

The authorized apply succeeds without granting unrelated administrator permissions. This evidence would validate a DIFFERENT correction: Use an appropriately scoped identity and verify the supported API permissions before rerunning the reviewed operation. That different correction addresses: A plan succeeds but apply fails because runtime credentials lack permission to create one target resource. It does not establish that the Stonebrook Software issue has been corrected: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. The relevant measured outcome is: The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

C:

A call omitting the optional input plans successfully with the declared default. This evidence would validate a DIFFERENT correction: Use the default for ordinary cases and override the input only for documented exceptional environments. That different correction addresses: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. It does not establish that the Stonebrook Software issue has been corrected: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. The relevant measured outcome is: The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

Question 267

The infrastructure engineers at Summitline Services document the following failure during a change review: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. Which engineering change most directly resolves this issue?

  1. Use an authorized terraform destroy workflow for resources still tracked in state, reviewing the destruction plan first.
  2. Require reviewed Terraform pull requests and an explicit plan before applying access-rule updates.
  3. Run terraform fmt -check in CI and fail when formatting changes would be required.
  4. Prefer implicit dependencies through real references and reserve depends_on for hidden behavior dependencies.

Explanation

Correct Answer

A:

Use an authorized terraform destroy workflow for resources still tracked in state, reviewing the destruction plan first. This is targeted to the observed Terraform issue: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. At Summitline Services, the acceptance criterion is not merely a valid plan; the team should verify: The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

Incorrect Answers

B:

Require reviewed Terraform pull requests and an explicit plan before applying access-rule updates. This would be suitable for a DIFFERENT Terraform problem: Multiple engineers change cloud access rules directly and accidentally reverse each other's settings between releases. It does not directly resolve the Summitline Services failure: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. The required acceptance evidence instead is: The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

C:

Run terraform fmt -check in CI and fail when formatting changes would be required. This would be suitable for a DIFFERENT Terraform problem: A CI job should reject code that is not Terraform-formatted without silently modifying a pull-request checkout. It does not directly resolve the Summitline Services failure: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. The required acceptance evidence instead is: The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

D:

Prefer implicit dependencies through real references and reserve depends_on for hidden behavior dependencies. This would be suitable for a DIFFERENT Terraform problem: A dependency is already expressed by a resource attribute but a developer adds depends_on to every unrelated module, producing excessive ordering. It does not directly resolve the Summitline Services failure: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. The required acceptance evidence instead is: The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

Question 268

The reliability team at Summitline Services is closing an incident described as follows: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. What acceptance evidence is most relevant to this reported issue?

  1. Repository history identifies the change author and the approved plan reflects only the intended access-rule modification.
  2. The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.
  3. A deliberately misformatted fixture fails the check while a formatted one passes.
  4. The graph preserves required ordering while unrelated resources can still plan independently.

Explanation

Correct Answer

B:

The approved plan identifies managed objects for removal and a post-run check confirms they are deleted. This directly verifies the corrective action: Use an authorized terraform destroy workflow for resources still tracked in state, reviewing the destruction plan first. The measured result specifically addresses the failure at Summitline Services: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear.

Incorrect Answers

A:

Repository history identifies the change author and the approved plan reflects only the intended access-rule modification. This evidence would validate a DIFFERENT correction: Require reviewed Terraform pull requests and an explicit plan before applying access-rule updates. That different correction addresses: Multiple engineers change cloud access rules directly and accidentally reverse each other's settings between releases. It does not establish that the Summitline Services issue has been corrected: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. The relevant measured outcome is: The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

C:

A deliberately misformatted fixture fails the check while a formatted one passes. This evidence would validate a DIFFERENT correction: Run terraform fmt -check in CI and fail when formatting changes would be required. That different correction addresses: A CI job should reject code that is not Terraform-formatted without silently modifying a pull-request checkout. It does not establish that the Summitline Services issue has been corrected: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. The relevant measured outcome is: The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

D:

The graph preserves required ordering while unrelated resources can still plan independently. This evidence would validate a DIFFERENT correction: Prefer implicit dependencies through real references and reserve depends_on for hidden behavior dependencies. That different correction addresses: A dependency is already expressed by a resource attribute but a developer adds depends_on to every unrelated module, producing excessive ordering. It does not establish that the Summitline Services issue has been corrected: A sandbox project is scheduled for decommissioning, but an engineer deletes its HCL files and assumes the remote resources disappear. The relevant measured outcome is: The approved plan identifies managed objects for removal and a post-run check confirms they are deleted.

Question 269

The infrastructure engineers at Crescent Infrastructure Team document the following failure during a change review: A production operator runs terraform destroy from the wrong workspace and nearly removes a shared network. Which action would best restore the intended infrastructure-as-code workflow?

  1. Align the passed value with the child module's declared input type or update the module contract explicitly.
  2. Run terraform fmt and commit the canonical formatting changes before the next review.
  3. Keep resource-to-provider associations valid while migrating configuration and review state before deleting old provider settings.
  4. Verify workspace, backend, targets, and identities and require a destructive-change approval gate before destroy.

Explanation

Correct Answer

D:

Verify workspace, backend, targets, and identities and require a destructive-change approval gate before destroy. This is targeted to the observed Terraform issue: A production operator runs terraform destroy from the wrong workspace and nearly removes a shared network. At Crescent Infrastructure Team, the acceptance criterion is not merely a valid plan; the team should verify: The incorrect environment is detected before any deletion and only the intended sandbox is targeted.

Incorrect Answers

A:

Align the passed value with the child module's declared input type or update the module contract explicitly. This would be suitable for a DIFFERENT Terraform problem: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. It does not directly resolve the Crescent Infrastructure Team failure: A production operator runs terraform destroy from the wrong workspace and nearly removes a shared network. The required acceptance evidence instead is: The incorrect environment is detected before any deletion and only the intended sandbox is targeted.

B:

Run terraform fmt and commit the canonical formatting changes before the next review. This would be suitable for a DIFFERENT Terraform problem: A team shares configuration files with inconsistent indentation, making changes difficult to review. It does not directly resolve the Crescent Infrastructure Team failure: A production operator runs terraform destroy from the wrong workspace and nearly removes a shared network. The required acceptance evidence instead is: The incorrect environment is detected before any deletion and only the intended sandbox is targeted.

C:

Keep resource-to-provider associations valid while migrating configuration and review state before deleting old provider settings. This would be suitable for a DIFFERENT Terraform problem: An engineer changes a provider configuration after creation and expects Terraform state to lose all record of the managed resources. It does not directly resolve the Crescent Infrastructure Team failure: A production operator runs terraform destroy from the wrong workspace and nearly removes a shared network. The required acceptance evidence instead is: The incorrect environment is detected before any deletion and only the intended sandbox is targeted.

Question 270

The reliability team at Crescent Infrastructure Team is closing an incident described as follows: A production operator runs terraform destroy from the wrong workspace and nearly removes a shared network. Which observation best confirms that the proposed correction worked?

  1. The incorrect environment is detected before any deletion and only the intended sandbox is targeted.
  2. The plan can still resolve the provider configuration needed to refresh or remove previously managed objects.
  3. The formatting check reports no pending differences after the files have been normalized.
  4. terraform validate accepts an appropriately typed input and rejects the incompatible fixture.

Explanation

Correct Answer

A:

The incorrect environment is detected before any deletion and only the intended sandbox is targeted. This directly verifies the corrective action: Verify workspace, backend, targets, and identities and require a destructive-change approval gate before destroy. The measured result specifically addresses the failure at Crescent Infrastructure Team: A production operator runs terraform destroy from the wrong workspace and nearly removes a shared network.

Incorrect Answers

B:

The plan can still resolve the provider configuration needed to refresh or remove previously managed objects. This evidence would validate a DIFFERENT correction: Keep resource-to-provider associations valid while migrating configuration and review state before deleting old provider settings. That different correction addresses: An engineer changes a provider configuration after creation and expects Terraform state to lose all record of the managed resources. It does not establish that the Crescent Infrastructure Team issue has been corrected: A production operator runs terraform destroy from the wrong workspace and nearly removes a shared network. The relevant measured outcome is: The incorrect environment is detected before any deletion and only the intended sandbox is targeted.

C:

The formatting check reports no pending differences after the files have been normalized. This evidence would validate a DIFFERENT correction: Run terraform fmt and commit the canonical formatting changes before the next review. That different correction addresses: A team shares configuration files with inconsistent indentation, making changes difficult to review. It does not establish that the Crescent Infrastructure Team issue has been corrected: A production operator runs terraform destroy from the wrong workspace and nearly removes a shared network. The relevant measured outcome is: The incorrect environment is detected before any deletion and only the intended sandbox is targeted.

D:

terraform validate accepts an appropriately typed input and rejects the incompatible fixture. This evidence would validate a DIFFERENT correction: Align the passed value with the child module's declared input type or update the module contract explicitly. That different correction addresses: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. It does not establish that the Crescent Infrastructure Team issue has been corrected: A production operator runs terraform destroy from the wrong workspace and nearly removes a shared network. The relevant measured outcome is: The incorrect environment is detected before any deletion and only the intended sandbox is targeted.