mcAfee Secure Website
23

HashiCorp Terraform Associate 004 Bundle

Exam Code: Terraform Associate 004

Exam Name HashiCorp Certified: Terraform Associate (004)

Certification Provider: HashiCorp

Corresponding Certification: Terraform Associate

Terraform Associate 004 Training Materials $44.99

Reliable & Actual Study Materials for Terraform Associate 004 Exam Success

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

  • 24
    Questions & Answers

    Terraform Associate 004 Questions & Answers

    167 Questions & Answers

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

  • 25
    Terraform Associate 004 Video Course

    Terraform Associate 004 Training Course

    118 Video Lectures

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

  • exam =30
    Study Guide

    Terraform Associate 004 Study Guide

    285 PDF Pages

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

exam =32

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

Guarantee

Satisfaction Guaranteed

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

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

Purchase Individually

  • exam =34
    Questions & Answers

    Questions & Answers

    167 Questions

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

    Training Course

    118 Video Lectures

    $39.99
  • exam =36
    Study Guide

    Study Guide

    285 PDF Pages

    $29.99

HashiCorp Terraform Associate 004 Practice Test 63

Question 620

A Terraform associate evaluates: An operator checks whether an imported resource was successfully bound to a Terraform address. Select TWO complementary responses: the appropriate action AND direct evidence it worked.

  1. Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it.
  2. The imported resource appears in state and a plan identifies any remaining configuration differences.
  3. Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely.
  4. A declared resource that matches a preexisting object is not automatically tracked unless imported or otherwise bound.
  5. The listed address matches the intended resource and show presents its recorded attributes for review.

Explanation

Correct Answers

C:

The case says: An operator checks whether an imported resource was successfully bound to a Terraform address. The directly relevant Terraform response is: Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely. This addresses the related failure mode: Guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address. Validate the result by checking: The listed address matches the intended resource and show presents its recorded attributes for review. The selection matches this objective, rather than a different Terraform administration task.

E:

The observed situation is: An operator checks whether an imported resource was successfully bound to a Terraform address. The acceptance evidence is: The listed address matches the intended resource and show presents its recorded attributes for review. It verifies the corrective approach (Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely.) and controls the risk: Guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address. Checking an unrelated Terraform setting would not prove the stated requirement was met.

Incorrect Answers

A:

Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it. This belongs to State mv versus state rm and moved blocks (official objective 7b). Its separate risk is that removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources. The question instead tests Inspect state list and show; that other safeguard alone does not verify it.

B:

The imported resource appears in state and a plan identifies any remaining configuration differences. This is relevant to CLI terraform import behavior (official objective 7a). Its distinct failure risk is that the import command updates state binding and does not automatically write a complete configuration for every resource. The present question tests Inspect state list and show, which this measure alone does not establish.

D:

A declared resource that matches a preexisting object is not automatically tracked unless imported or otherwise bound. This addresses Import block declarative adoption (official objective 7a). The separate hazard is that a declared resource that matches a preexisting object is not automatically tracked unless imported or otherwise bound. It does not by itself satisfy the case-specific requirement for Inspect state list and show.

Question 621

A Terraform engineer reports: A team renames aws_instance.old to aws_instance.app while keeping the same VM. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Use terraform import ADDRESS ID to bind an existing remote object to an existing resource configuration, then plan to reconcile attributes.
  2. Set TF_LOG together with TF_LOG_PATH to capture troubleshooting output in a protected file and remove it after authorized review.
  3. Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely.
  4. Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it.

Explanation

Correct Answer

D:

The case says: A team renames aws_instance.old to aws_instance.app while keeping the same VM. The directly relevant Terraform response is: Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it. This addresses the related failure mode: Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources. Validate the result by checking: A refactored address retains the same remote object binding and no unnecessary destroy-create action appears. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Use terraform import ADDRESS ID to bind an existing remote object to an existing resource configuration, then plan to reconcile attributes. This belongs to CLI terraform import behavior (official objective 7a). Its separate risk is that the import command updates state binding and does not automatically write a complete configuration for every resource. The question instead tests State mv versus state rm and moved blocks; that other safeguard alone does not verify it.

B:

Set TF_LOG together with TF_LOG_PATH to capture troubleshooting output in a protected file and remove it after authorized review. This is relevant to TF_LOG_PATH debug log file handling (official objective 7c). Its distinct failure risk is that logs containing resource attributes and credentials should not be committed to Git or left in public CI artifacts. The present question tests State mv versus state rm and moved blocks, which this measure alone does not establish.

C:

Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely. That addresses Inspect state list and show (official objective 7b), specifically the hazard that guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address. Here the necessary action or evidence is Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it, not that separate control.

Question 622

After a reviewed change, the team checks: A team renames aws_instance.old to aws_instance.app while keeping the same VM. Which evidence MOST directly proves the selected approach is working?

  1. A refactored address retains the same remote object binding and no unnecessary destroy-create action appears.
  2. The plan shows import for the intended object and subsequent plans recognize it as managed without recreating it.
  3. The failed operation produces relevant diagnostic output and normal logging is restored after troubleshooting.
  4. The listed address matches the intended resource and show presents its recorded attributes for review.

Explanation

Correct Answer

A:

The observed situation is: A team renames aws_instance.old to aws_instance.app while keeping the same VM. The acceptance evidence is: A refactored address retains the same remote object binding and no unnecessary destroy-create action appears. It verifies the corrective approach (Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it.) and controls the risk: Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources. Checking an unrelated Terraform setting would not prove the stated requirement was met.

Incorrect Answers

B:

The plan shows import for the intended object and subsequent plans recognize it as managed without recreating it. This is relevant to Import block declarative adoption (official objective 7a). Its distinct failure risk is that a declared resource that matches a preexisting object is not automatically tracked unless imported or otherwise bound. The present question tests State mv versus state rm and moved blocks, which this measure alone does not establish.

C:

The failed operation produces relevant diagnostic output and normal logging is restored after troubleshooting. That addresses TF_LOG for diagnostic visibility (official objective 7c), specifically the hazard that verbose Terraform logs may include sensitive configuration or provider data and can become excessively large. Here the necessary action or evidence is A refactored address retains the same remote object binding and no unnecessary destroy-create action appears, not that separate control.

D:

The listed address matches the intended resource and show presents its recorded attributes for review. This addresses Inspect state list and show (official objective 7b). The separate hazard is that guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address. It does not by itself satisfy the case-specific requirement for State mv versus state rm and moved blocks.

Question 623

A configuration review reveals: A resource must remain alive but should no longer be tracked in this Terraform state. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Set TF_LOG together with TF_LOG_PATH to capture troubleshooting output in a protected file and remove it after authorized review.
  2. Use an import block with a resource address and remote object ID plus matching resource configuration, then review plan to adopt existing infrastructure.
  3. Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely.
  4. Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it.

Explanation

Correct Answer

D:

The case says: A resource must remain alive but should no longer be tracked in this Terraform state. The directly relevant Terraform response is: Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it. This addresses the related failure mode: Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources. Validate the result by checking: A refactored address retains the same remote object binding and no unnecessary destroy-create action appears. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Set TF_LOG together with TF_LOG_PATH to capture troubleshooting output in a protected file and remove it after authorized review. This belongs to TF_LOG_PATH debug log file handling (official objective 7c). Its separate risk is that logs containing resource attributes and credentials should not be committed to Git or left in public CI artifacts. The question instead tests State mv versus state rm and moved blocks; that other safeguard alone does not verify it.

B:

Use an import block with a resource address and remote object ID plus matching resource configuration, then review plan to adopt existing infrastructure. This is relevant to Import block declarative adoption (official objective 7a). Its distinct failure risk is that a declared resource that matches a preexisting object is not automatically tracked unless imported or otherwise bound. The present question tests State mv versus state rm and moved blocks, which this measure alone does not establish.

C:

Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely. That addresses Inspect state list and show (official objective 7b), specifically the hazard that guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address. Here the necessary action or evidence is Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it, not that separate control.

Question 624

A Terraform governance audit identifies: A resource must remain alive but should no longer be tracked in this Terraform state. What risk MOST directly explains why a correction is needed?

  1. Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources.
  2. The import command updates state binding and does not automatically write a complete configuration for every resource.
  3. Verbose Terraform logs may include sensitive configuration or provider data and can become excessively large.
  4. Guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address.

Explanation

Correct Answer

A:

The reported issue (A resource must remain alive but should no longer be tracked in this Terraform state) exposes the risk: Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources. The corrective action is: Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it. Confirm with: A refactored address retains the same remote object binding and no unnecessary destroy-create action appears. The risk is specific to this configuration or operation, not an unrelated Terraform feature.

Incorrect Answers

B:

The import command updates state binding and does not automatically write a complete configuration for every resource. This is relevant to CLI terraform import behavior (official objective 7a). Its distinct failure risk is that the import command updates state binding and does not automatically write a complete configuration for every resource. The present question tests State mv versus state rm and moved blocks, which this measure alone does not establish.

C:

Verbose Terraform logs may include sensitive configuration or provider data and can become excessively large. That is the exact risk associated with TF_LOG for diagnostic visibility (official objective 7c), not the required State mv versus state rm and moved blocks outcome.

D:

Guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address. This addresses Inspect state list and show (official objective 7b). The separate hazard is that guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address. It does not by itself satisfy the case-specific requirement for State mv versus state rm and moved blocks.

Question 625

During a controlled infrastructure change, a team observes: A maintainer confuses state rm with deleting the real cloud resource. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Use terraform import ADDRESS ID to bind an existing remote object to an existing resource configuration, then plan to reconcile attributes.
  2. Set TF_LOG together with TF_LOG_PATH to capture troubleshooting output in a protected file and remove it after authorized review.
  3. Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely.
  4. Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it.

Explanation

Correct Answer

D:

The case says: A maintainer confuses state rm with deleting the real cloud resource. The directly relevant Terraform response is: Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it. This addresses the related failure mode: Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources. Validate the result by checking: A refactored address retains the same remote object binding and no unnecessary destroy-create action appears. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Use terraform import ADDRESS ID to bind an existing remote object to an existing resource configuration, then plan to reconcile attributes. This belongs to CLI terraform import behavior (official objective 7a). Its separate risk is that the import command updates state binding and does not automatically write a complete configuration for every resource. The question instead tests State mv versus state rm and moved blocks; that other safeguard alone does not verify it.

B:

Set TF_LOG together with TF_LOG_PATH to capture troubleshooting output in a protected file and remove it after authorized review. This is relevant to TF_LOG_PATH debug log file handling (official objective 7c). Its distinct failure risk is that logs containing resource attributes and credentials should not be committed to Git or left in public CI artifacts. The present question tests State mv versus state rm and moved blocks, which this measure alone does not establish.

C:

Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely. That addresses Inspect state list and show (official objective 7b), specifically the hazard that guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address. Here the necessary action or evidence is Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it, not that separate control.

Question 626

An operator wants proof regarding: A maintainer confuses state rm with deleting the real cloud resource. Which evidence MOST directly proves the selected approach is working?

  1. The plan shows import for the intended object and subsequent plans recognize it as managed without recreating it.
  2. A refactored address retains the same remote object binding and no unnecessary destroy-create action appears.
  3. The listed address matches the intended resource and show presents its recorded attributes for review.
  4. The failed operation produces relevant diagnostic output and normal logging is restored after troubleshooting.

Explanation

Correct Answer

B:

The observed situation is: A maintainer confuses state rm with deleting the real cloud resource. The acceptance evidence is: A refactored address retains the same remote object binding and no unnecessary destroy-create action appears. It verifies the corrective approach (Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it.) and controls the risk: Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources. Checking an unrelated Terraform setting would not prove the stated requirement was met.

Incorrect Answers

A:

The plan shows import for the intended object and subsequent plans recognize it as managed without recreating it. This belongs to Import block declarative adoption (official objective 7a). Its separate risk is that a declared resource that matches a preexisting object is not automatically tracked unless imported or otherwise bound. The question instead tests State mv versus state rm and moved blocks; that other safeguard alone does not verify it.

C:

The listed address matches the intended resource and show presents its recorded attributes for review. That addresses Inspect state list and show (official objective 7b), specifically the hazard that guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address. Here the necessary action or evidence is A refactored address retains the same remote object binding and no unnecessary destroy-create action appears, not that separate control.

D:

The failed operation produces relevant diagnostic output and normal logging is restored after troubleshooting. This addresses TF_LOG for diagnostic visibility (official objective 7c). The separate hazard is that verbose Terraform logs may include sensitive configuration or provider data and can become excessively large. It does not by itself satisfy the case-specific requirement for State mv versus state rm and moved blocks.

Question 627

An infrastructure deployment design calls for: A module refactor needs to preserve current infrastructure identities across address changes. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Use an import block with a resource address and remote object ID plus matching resource configuration, then review plan to adopt existing infrastructure.
  2. Set TF_LOG to an appropriate supported level such as DEBUG or TRACE only while investigating, then disable it afterward.
  3. Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it.
  4. Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely.

Explanation

Correct Answer

C:

The case says: A module refactor needs to preserve current infrastructure identities across address changes. The directly relevant Terraform response is: Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it. This addresses the related failure mode: Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources. Validate the result by checking: A refactored address retains the same remote object binding and no unnecessary destroy-create action appears. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Use an import block with a resource address and remote object ID plus matching resource configuration, then review plan to adopt existing infrastructure. This belongs to Import block declarative adoption (official objective 7a). Its separate risk is that a declared resource that matches a preexisting object is not automatically tracked unless imported or otherwise bound. The question instead tests State mv versus state rm and moved blocks; that other safeguard alone does not verify it.

B:

Set TF_LOG to an appropriate supported level such as DEBUG or TRACE only while investigating, then disable it afterward. This is relevant to TF_LOG for diagnostic visibility (official objective 7c). Its distinct failure risk is that verbose Terraform logs may include sensitive configuration or provider data and can become excessively large. The present question tests State mv versus state rm and moved blocks, which this measure alone does not establish.

D:

Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely. This addresses Inspect state list and show (official objective 7b). The separate hazard is that guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address. It does not by itself satisfy the case-specific requirement for State mv versus state rm and moved blocks.

Question 628

A production-readiness review highlights: A module refactor needs to preserve current infrastructure identities across address changes. What risk MOST directly explains why a correction is needed?

  1. Verbose Terraform logs may include sensitive configuration or provider data and can become excessively large.
  2. The import command updates state binding and does not automatically write a complete configuration for every resource.
  3. Guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address.
  4. Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources.

Explanation

Correct Answer

D:

The reported issue (A module refactor needs to preserve current infrastructure identities across address changes) exposes the risk: Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources. The corrective action is: Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it. Confirm with: A refactored address retains the same remote object binding and no unnecessary destroy-create action appears. The risk is specific to this configuration or operation, not an unrelated Terraform feature.

Incorrect Answers

A:

Verbose Terraform logs may include sensitive configuration or provider data and can become excessively large. This belongs to TF_LOG for diagnostic visibility (official objective 7c). Its separate risk is that verbose Terraform logs may include sensitive configuration or provider data and can become excessively large. The question instead tests State mv versus state rm and moved blocks; that other safeguard alone does not verify it.

B:

The import command updates state binding and does not automatically write a complete configuration for every resource. This is relevant to CLI terraform import behavior (official objective 7a). Its distinct failure risk is that the import command updates state binding and does not automatically write a complete configuration for every resource. The present question tests State mv versus state rm and moved blocks, which this measure alone does not establish.

C:

Guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address. That is the exact risk associated with Inspect state list and show (official objective 7b), not the required State mv versus state rm and moved blocks outcome.

Question 629

An operations team needs to resolve: An operator wants to choose a documented moved block instead of manually rewriting state JSON. Which action BEST addresses the specific Terraform Associate (004) requirement?

  1. Use an import block with a resource address and remote object ID plus matching resource configuration, then review plan to adopt existing infrastructure.
  2. Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely.
  3. Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it.
  4. Set TF_LOG to an appropriate supported level such as DEBUG or TRACE only while investigating, then disable it afterward.

Explanation

Correct Answer

C:

The case says: An operator wants to choose a documented moved block instead of manually rewriting state JSON. The directly relevant Terraform response is: Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it. This addresses the related failure mode: Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources. Validate the result by checking: A refactored address retains the same remote object binding and no unnecessary destroy-create action appears. The selection matches this objective, rather than a different Terraform administration task.

Incorrect Answers

A:

Use an import block with a resource address and remote object ID plus matching resource configuration, then review plan to adopt existing infrastructure. This belongs to Import block declarative adoption (official objective 7a). Its separate risk is that a declared resource that matches a preexisting object is not automatically tracked unless imported or otherwise bound. The question instead tests State mv versus state rm and moved blocks; that other safeguard alone does not verify it.

B:

Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely. This is relevant to Inspect state list and show (official objective 7b). Its distinct failure risk is that guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address. The present question tests State mv versus state rm and moved blocks, which this measure alone does not establish.

D:

Set TF_LOG to an appropriate supported level such as DEBUG or TRACE only while investigating, then disable it afterward. This addresses TF_LOG for diagnostic visibility (official objective 7c). The separate hazard is that verbose Terraform logs may include sensitive configuration or provider data and can become excessively large. It does not by itself satisfy the case-specific requirement for State mv versus state rm and moved blocks.

Question 630

A Terraform associate evaluates: An operator wants to choose a documented moved block instead of manually rewriting state JSON. Select TWO complementary responses: the appropriate action AND direct evidence it worked.

  1. A declared resource that matches a preexisting object is not automatically tracked unless imported or otherwise bound.
  2. Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it.
  3. Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely.
  4. The designated log file captures the relevant run and is stored under approved short-lived restricted access.
  5. A refactored address retains the same remote object binding and no unnecessary destroy-create action appears.

Explanation

Correct Answers

B:

The case says: An operator wants to choose a documented moved block instead of manually rewriting state JSON. The directly relevant Terraform response is: Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it. This addresses the related failure mode: Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources. Validate the result by checking: A refactored address retains the same remote object binding and no unnecessary destroy-create action appears. The selection matches this objective, rather than a different Terraform administration task.

E:

The observed situation is: An operator wants to choose a documented moved block instead of manually rewriting state JSON. The acceptance evidence is: A refactored address retains the same remote object binding and no unnecessary destroy-create action appears. It verifies the corrective approach (Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying it.) and controls the risk: Removing a binding when intending only a resource rename can cause Terraform to plan duplicate resources. Checking an unrelated Terraform setting would not prove the stated requirement was met.

Incorrect Answers

A:

A declared resource that matches a preexisting object is not automatically tracked unless imported or otherwise bound. This belongs to Import block declarative adoption (official objective 7a). Its separate risk is that a declared resource that matches a preexisting object is not automatically tracked unless imported or otherwise bound. The question instead tests State mv versus state rm and moved blocks; that other safeguard alone does not verify it.

C:

Use terraform state list to enumerate tracked addresses and terraform state show ADDRESS to inspect a specific object safely. That addresses Inspect state list and show (official objective 7b), specifically the hazard that guessing resource bindings from cloud consoles without inspecting state can target the wrong Terraform address. Here the necessary action or evidence is the paired action Use moved blocks or state mv for renames that preserve management, and state rm only when deliberately ceasing to manage an object without destroying and separate validation A refactored address retains the same remote object binding and no unnecessary destroy-create action appears, not that separate control.

D:

The designated log file captures the relevant run and is stored under approved short-lived restricted access. This addresses TF_LOG_PATH debug log file handling (official objective 7c). The separate hazard is that logs containing resource attributes and credentials should not be committed to Git or left in public CI artifacts. It does not by itself satisfy the case-specific requirement for State mv versus state rm and moved blocks.