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 8

Question 70

An acceptance reviewer at Bayview Systems must validate the fix for: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace. Which observation best confirms that the proposed correction worked?

  1. A separate recovery workspace produces the intended topology from a known configuration revision and documented inputs.
  2. The root accesses module.network.subnets rather than reaching into private module locals.
  3. The provider is downloaded from the specified source and schema validation succeeds.
  4. Concurrent plans or applies operate on the same current state without overwriting an intervening state update.

Explanation

Correct Answer

C:

The provider is downloaded from the specified source and schema validation succeeds. This directly verifies the corrective action: Set the canonical provider source address in required_providers and run terraform init. The measured result specifically addresses the failure at Bayview Systems: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace.

Incorrect Answers

A:

A separate recovery workspace produces the intended topology from a known configuration revision and documented inputs. This evidence would validate a DIFFERENT correction: Represent repeatable infrastructure declarations in Terraform files and retain their versions with the application release. That different correction addresses: A team cannot reproduce its disaster-recovery environment because the settings live only in an engineer's memory. It does not establish that the Bayview Systems issue has been corrected: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace. The relevant measured outcome is: The provider is downloaded from the specified source and schema validation succeeds.

B:

The root accesses module.network.subnets rather than reaching into private module locals. This evidence would validate a DIFFERENT correction: Expose the needed result as a child module output and consume the output from the caller. That different correction addresses: A child module defines a local subnet list and another module tries to read that local directly across module boundaries. It does not establish that the Bayview Systems issue has been corrected: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace. The relevant measured outcome is: The provider is downloaded from the specified source and schema validation succeeds.

D:

Concurrent plans or applies operate on the same current state without overwriting an intervening state update. This evidence would validate a DIFFERENT correction: Use an appropriately configured shared backend with state locking and controlled access. That different correction addresses: A project shares one unmanaged state file among two engineers, causing each to overwrite the other's latest changes. It does not establish that the Bayview Systems issue has been corrected: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace. The relevant measured outcome is: The provider is downloaded from the specified source and schema validation succeeds.

Question 71

At Silverline Software, the Terraform review finds this specific problem: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace. Which proposed fix addresses the reported root cause?

  1. Use an appropriately configured shared backend with state locking and controlled access.
  2. Review destination project membership, variables, and project/workspace permissions before and after moving the workspace.
  3. Reuse parameterized infrastructure configuration across environments with environment-specific input values.
  4. Set the canonical provider source address in required_providers and run terraform init.

Explanation

Correct Answer

D:

Set the canonical provider source address in required_providers and run terraform init. This is targeted to the observed Terraform issue: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace. At Silverline Software, the acceptance criterion is not merely a valid plan; the team should verify: The provider is downloaded from the specified source and schema validation succeeds.

Incorrect Answers

A:

Use an appropriately configured shared backend with state locking and controlled access. This would be suitable for a DIFFERENT Terraform problem: A project shares one unmanaged state file among two engineers, causing each to overwrite the other's latest changes. It does not directly resolve the Silverline Software failure: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace. The required acceptance evidence instead is: The provider is downloaded from the specified source and schema validation succeeds.

B:

Review destination project membership, variables, and project/workspace permissions before and after moving the workspace. This would be suitable for a DIFFERENT Terraform problem: A security team moves a workspace between HCP Terraform projects but fails to review inherited access consequences. It does not directly resolve the Silverline Software failure: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace. The required acceptance evidence instead is: The provider is downloaded from the specified source and schema validation succeeds.

C:

Reuse parameterized infrastructure configuration across environments with environment-specific input values. This would be suitable for a DIFFERENT Terraform problem: Three staging environments repeatedly differ because their networks were created with slightly different console defaults. It does not directly resolve the Silverline Software failure: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace. The required acceptance evidence instead is: The provider is downloaded from the specified source and schema validation succeeds.

Question 72

After corrective work at Silverline Software, a reviewer requests measurable proof for: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace. What result would demonstrate that the identified problem is actually resolved?

  1. The provider is downloaded from the specified source and schema validation succeeds.
  2. Concurrent plans or applies operate on the same current state without overwriting an intervening state update.
  3. Only intended teams retain access and the workspace's new project is visible in its settings.
  4. The three environment plans share the expected baseline structure while showing only documented parameter differences.

Explanation

Correct Answer

A:

The provider is downloaded from the specified source and schema validation succeeds. This directly verifies the corrective action: Set the canonical provider source address in required_providers and run terraform init. The measured result specifically addresses the failure at Silverline Software: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace.

Incorrect Answers

B:

Concurrent plans or applies operate on the same current state without overwriting an intervening state update. This evidence would validate a DIFFERENT correction: Use an appropriately configured shared backend with state locking and controlled access. That different correction addresses: A project shares one unmanaged state file among two engineers, causing each to overwrite the other's latest changes. It does not establish that the Silverline Software issue has been corrected: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace. The relevant measured outcome is: The provider is downloaded from the specified source and schema validation succeeds.

C:

Only intended teams retain access and the workspace's new project is visible in its settings. This evidence would validate a DIFFERENT correction: Review destination project membership, variables, and project/workspace permissions before and after moving the workspace. That different correction addresses: A security team moves a workspace between HCP Terraform projects but fails to review inherited access consequences. It does not establish that the Silverline Software issue has been corrected: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace. The relevant measured outcome is: The provider is downloaded from the specified source and schema validation succeeds.

D:

The three environment plans share the expected baseline structure while showing only documented parameter differences. This evidence would validate a DIFFERENT correction: Reuse parameterized infrastructure configuration across environments with environment-specific input values. That different correction addresses: Three staging environments repeatedly differ because their networks were created with slightly different console defaults. It does not establish that the Silverline Software issue has been corrected: A module depends on an external provider, but initialization cannot resolve its source because the configuration uses a guessed namespace. The relevant measured outcome is: The provider is downloaded from the specified source and schema validation succeeds.

Question 73

At Granite Software Works, the Terraform review finds this specific problem: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. What is the most appropriate corrective action for this Terraform scenario?

  1. Forward the necessary nested output through a root output while retaining encapsulation.
  2. Compare configuration, current state, and the provider's observed remote reality before trusting the state representation.
  3. Update the provider version constraint if necessary, run terraform init -upgrade, and review the changed lock-file selection.
  4. Add an explicit child output block and reference it through the module namespace from the root.

Explanation

Correct Answer

C:

Update the provider version constraint if necessary, run terraform init -upgrade, and review the changed lock-file selection. This is targeted to the observed Terraform issue: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. At Granite Software Works, the acceptance criterion is not merely a valid plan; the team should verify: The lock file records the approved newer provider version and a clean init reproduces it.

Incorrect Answers

A:

Forward the necessary nested output through a root output while retaining encapsulation. This would be suitable for a DIFFERENT Terraform problem: A nested module produces an output needed by external automation, but the root never exposes it. It does not directly resolve the Granite Software Works failure: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. The required acceptance evidence instead is: The lock file records the approved newer provider version and a clean init reproduces it.

B:

Compare configuration, current state, and the provider's observed remote reality before trusting the state representation. This would be suitable for a DIFFERENT Terraform problem: A team uses the output of an old state snapshot to infer the entire current infrastructure without refreshing remote objects. It does not directly resolve the Granite Software Works failure: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. The required acceptance evidence instead is: The lock file records the approved newer provider version and a clean init reproduces it.

D:

Add an explicit child output block and reference it through the module namespace from the root. This would be suitable for a DIFFERENT Terraform problem: A deployment consumes an output from a child module but forgets to declare the output in the module itself. It does not directly resolve the Granite Software Works failure: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. The required acceptance evidence instead is: The lock file records the approved newer provider version and a clean init reproduces it.

Question 74

After corrective work at Granite Software Works, a reviewer requests measurable proof for: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. Which controlled check would validate the remediation?

  1. Validation resolves the child output and the value appears after successful creation.
  2. After apply, automation can query the root output without inspecting child resource internals.
  3. A controlled out-of-band modification is identified by a refreshed plan rather than concealed by the saved snapshot.
  4. The lock file records the approved newer provider version and a clean init reproduces it.

Explanation

Correct Answer

D:

The lock file records the approved newer provider version and a clean init reproduces it. This directly verifies the corrective action: Update the provider version constraint if necessary, run terraform init -upgrade, and review the changed lock-file selection. The measured result specifically addresses the failure at Granite Software Works: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version.

Incorrect Answers

A:

Validation resolves the child output and the value appears after successful creation. This evidence would validate a DIFFERENT correction: Add an explicit child output block and reference it through the module namespace from the root. That different correction addresses: A deployment consumes an output from a child module but forgets to declare the output in the module itself. It does not establish that the Granite Software Works issue has been corrected: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. The relevant measured outcome is: The lock file records the approved newer provider version and a clean init reproduces it.

B:

After apply, automation can query the root output without inspecting child resource internals. This evidence would validate a DIFFERENT correction: Forward the necessary nested output through a root output while retaining encapsulation. That different correction addresses: A nested module produces an output needed by external automation, but the root never exposes it. It does not establish that the Granite Software Works issue has been corrected: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. The relevant measured outcome is: The lock file records the approved newer provider version and a clean init reproduces it.

C:

A controlled out-of-band modification is identified by a refreshed plan rather than concealed by the saved snapshot. This evidence would validate a DIFFERENT correction: Compare configuration, current state, and the provider's observed remote reality before trusting the state representation. That different correction addresses: A team uses the output of an old state snapshot to infer the entire current infrastructure without refreshing remote objects. It does not establish that the Granite Software Works issue has been corrected: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. The relevant measured outcome is: The lock file records the approved newer provider version and a clean init reproduces it.

Question 75

The infrastructure engineers at Clearwater Systems document the following failure during a change review: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. Which action would best restore the intended infrastructure-as-code workflow?

  1. Update the provider version constraint if necessary, run terraform init -upgrade, and review the changed lock-file selection.
  2. Use version constraints for registry modules and use the source ref mechanism for generic Git module versioning.
  3. Use an appropriately configured shared backend with state locking and controlled access.
  4. Transform the collection into a map keyed by a stable unique identifier before using for_each.

Explanation

Correct Answer

A:

Update the provider version constraint if necessary, run terraform init -upgrade, and review the changed lock-file selection. This is targeted to the observed Terraform issue: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. At Clearwater Systems, the acceptance criterion is not merely a valid plan; the team should verify: The lock file records the approved newer provider version and a clean init reproduces it.

Incorrect Answers

B:

Use version constraints for registry modules and use the source ref mechanism for generic Git module versioning. This would be suitable for a DIFFERENT Terraform problem: An engineer assumes the version argument works for every local or generic Git module source just as it does for Registry modules. It does not directly resolve the Clearwater Systems failure: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. The required acceptance evidence instead is: The lock file records the approved newer provider version and a clean init reproduces it.

C:

Use an appropriately configured shared backend with state locking and controlled access. This would be suitable for a DIFFERENT Terraform problem: A project shares one unmanaged state file among two engineers, causing each to overwrite the other's latest changes. It does not directly resolve the Clearwater Systems failure: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. The required acceptance evidence instead is: The lock file records the approved newer provider version and a clean init reproduces it.

D:

Transform the collection into a map keyed by a stable unique identifier before using for_each. This would be suitable for a DIFFERENT Terraform problem: A for_each expression needs stable, unique resource keys but receives a list of objects without a keyed identity. It does not directly resolve the Clearwater Systems failure: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. The required acceptance evidence instead is: The lock file records the approved newer provider version and a clean init reproduces it.

Question 76

The reliability team at Clearwater Systems is closing an incident described as follows: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. Which observation best confirms that the proposed correction worked?

  1. The module source resolves with the appropriate versioning syntax and init completes.
  2. The lock file records the approved newer provider version and a clean init reproduces it.
  3. Reordering the source objects produces no spurious address changes in the resulting plan.
  4. Concurrent plans or applies operate on the same current state without overwriting an intervening state update.

Explanation

Correct Answer

B:

The lock file records the approved newer provider version and a clean init reproduces it. This directly verifies the corrective action: Update the provider version constraint if necessary, run terraform init -upgrade, and review the changed lock-file selection. The measured result specifically addresses the failure at Clearwater Systems: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version.

Incorrect Answers

A:

The module source resolves with the appropriate versioning syntax and init completes. This evidence would validate a DIFFERENT correction: Use version constraints for registry modules and use the source ref mechanism for generic Git module versioning. That different correction addresses: An engineer assumes the version argument works for every local or generic Git module source just as it does for Registry modules. It does not establish that the Clearwater Systems issue has been corrected: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. The relevant measured outcome is: The lock file records the approved newer provider version and a clean init reproduces it.

C:

Reordering the source objects produces no spurious address changes in the resulting plan. This evidence would validate a DIFFERENT correction: Transform the collection into a map keyed by a stable unique identifier before using for_each. That different correction addresses: A for_each expression needs stable, unique resource keys but receives a list of objects without a keyed identity. It does not establish that the Clearwater Systems issue has been corrected: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. The relevant measured outcome is: The lock file records the approved newer provider version and a clean init reproduces it.

D:

Concurrent plans or applies operate on the same current state without overwriting an intervening state update. This evidence would validate a DIFFERENT correction: Use an appropriately configured shared backend with state locking and controlled access. That different correction addresses: A project shares one unmanaged state file among two engineers, causing each to overwrite the other's latest changes. It does not establish that the Clearwater Systems issue has been corrected: A security fix requires a reviewed provider upgrade, but a normal initialization keeps selecting the previously locked version. The relevant measured outcome is: The lock file records the approved newer provider version and a clean init reproduces it.

Question 77

The infrastructure engineers at Aster Managed Services document the following failure during a change review: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. How should the Terraform engineer correct this specific failure?

  1. Review destination project membership, variables, and project/workspace permissions before and after moving the workspace.
  2. Define an output in the child module and, if needed, forward it through a root output.
  3. Compare configuration, current state, and the provider's observed remote reality before trusting the state representation.
  4. Keep the .terraform.lock.hcl file under version control and use normal initialization for team installs.

Explanation

Correct Answer

D:

Keep the .terraform.lock.hcl file under version control and use normal initialization for team installs. This is targeted to the observed Terraform issue: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. At Aster Managed Services, the acceptance criterion is not merely a valid plan; the team should verify: Clean installations select the approved provider versions with expected lock-file checksums.

Incorrect Answers

A:

Review destination project membership, variables, and project/workspace permissions before and after moving the workspace. This would be suitable for a DIFFERENT Terraform problem: A security team moves a workspace between HCP Terraform projects but fails to review inherited access consequences. It does not directly resolve the Aster Managed Services failure: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The required acceptance evidence instead is: Clean installations select the approved provider versions with expected lock-file checksums.

B:

Define an output in the child module and, if needed, forward it through a root output. This would be suitable for a DIFFERENT Terraform problem: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. It does not directly resolve the Aster Managed Services failure: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The required acceptance evidence instead is: Clean installations select the approved provider versions with expected lock-file checksums.

C:

Compare configuration, current state, and the provider's observed remote reality before trusting the state representation. This would be suitable for a DIFFERENT Terraform problem: A team uses the output of an old state snapshot to infer the entire current infrastructure without refreshing remote objects. It does not directly resolve the Aster Managed Services failure: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The required acceptance evidence instead is: Clean installations select the approved provider versions with expected lock-file checksums.

Question 78

The reliability team at Aster Managed Services is closing an incident described as follows: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. Which verification outcome is the strongest evidence of the required correction?

  1. Clean installations select the approved provider versions with expected lock-file checksums.
  2. After apply, terraform output returns the expected endpoint from the managed resource.
  3. A controlled out-of-band modification is identified by a refreshed plan rather than concealed by the saved snapshot.
  4. Only intended teams retain access and the workspace's new project is visible in its settings.

Explanation

Correct Answer

A:

Clean installations select the approved provider versions with expected lock-file checksums. This directly verifies the corrective action: Keep the .terraform.lock.hcl file under version control and use normal initialization for team installs. The measured result specifically addresses the failure at Aster Managed Services: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file.

Incorrect Answers

B:

After apply, terraform output returns the expected endpoint from the managed resource. This evidence would validate a DIFFERENT correction: Define an output in the child module and, if needed, forward it through a root output. That different correction addresses: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. It does not establish that the Aster Managed Services issue has been corrected: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The relevant measured outcome is: Clean installations select the approved provider versions with expected lock-file checksums.

C:

A controlled out-of-band modification is identified by a refreshed plan rather than concealed by the saved snapshot. This evidence would validate a DIFFERENT correction: Compare configuration, current state, and the provider's observed remote reality before trusting the state representation. That different correction addresses: A team uses the output of an old state snapshot to infer the entire current infrastructure without refreshing remote objects. It does not establish that the Aster Managed Services issue has been corrected: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The relevant measured outcome is: Clean installations select the approved provider versions with expected lock-file checksums.

D:

Only intended teams retain access and the workspace's new project is visible in its settings. This evidence would validate a DIFFERENT correction: Review destination project membership, variables, and project/workspace permissions before and after moving the workspace. That different correction addresses: A security team moves a workspace between HCP Terraform projects but fails to review inherited access consequences. It does not establish that the Aster Managed Services issue has been corrected: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The relevant measured outcome is: Clean installations select the approved provider versions with expected lock-file checksums.

Question 79

Brightside Cloud Works is preparing a controlled Terraform update after identifying this fault: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. What is the most appropriate corrective action for this Terraform scenario?

  1. Use state rm only for removing Terraform management and use destroy when actual remote deletion is intended.
  2. Keep the .terraform.lock.hcl file under version control and use normal initialization for team installs.
  3. Install and configure the relevant provider that exposes the target platform's resource types.
  4. Forward the necessary nested output through a root output while retaining encapsulation.

Explanation

Correct Answer

B:

Keep the .terraform.lock.hcl file under version control and use normal initialization for team installs. This is targeted to the observed Terraform issue: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. At Brightside Cloud Works, the acceptance criterion is not merely a valid plan; the team should verify: Clean installations select the approved provider versions with expected lock-file checksums.

Incorrect Answers

A:

Use state rm only for removing Terraform management and use destroy when actual remote deletion is intended. This would be suitable for a DIFFERENT Terraform problem: A team needs to stop tracking a resource but assumes terraform state rm destroys the remote object as well. It does not directly resolve the Brightside Cloud Works failure: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The required acceptance evidence instead is: Clean installations select the approved provider versions with expected lock-file checksums.

C:

Install and configure the relevant provider that exposes the target platform's resource types. This would be suitable for a DIFFERENT Terraform problem: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. It does not directly resolve the Brightside Cloud Works failure: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The required acceptance evidence instead is: Clean installations select the approved provider versions with expected lock-file checksums.

D:

Forward the necessary nested output through a root output while retaining encapsulation. This would be suitable for a DIFFERENT Terraform problem: A nested module produces an output needed by external automation, but the root never exposes it. It does not directly resolve the Brightside Cloud Works failure: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The required acceptance evidence instead is: Clean installations select the approved provider versions with expected lock-file checksums.

Question 80

Brightside Cloud Works requires independent evidence before signing off this Terraform correction: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. Which controlled check would validate the remediation?

  1. After apply, automation can query the root output without inspecting child resource internals.
  2. terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type.
  3. Clean installations select the approved provider versions with expected lock-file checksums.
  4. After state rm, the object remains in the remote API but is absent from terraform state list.

Explanation

Correct Answer

C:

Clean installations select the approved provider versions with expected lock-file checksums. This directly verifies the corrective action: Keep the .terraform.lock.hcl file under version control and use normal initialization for team installs. The measured result specifically addresses the failure at Brightside Cloud Works: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file.

Incorrect Answers

A:

After apply, automation can query the root output without inspecting child resource internals. This evidence would validate a DIFFERENT correction: Forward the necessary nested output through a root output while retaining encapsulation. That different correction addresses: A nested module produces an output needed by external automation, but the root never exposes it. It does not establish that the Brightside Cloud Works issue has been corrected: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The relevant measured outcome is: Clean installations select the approved provider versions with expected lock-file checksums.

B:

terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type. This evidence would validate a DIFFERENT correction: Install and configure the relevant provider that exposes the target platform's resource types. That different correction addresses: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. It does not establish that the Brightside Cloud Works issue has been corrected: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The relevant measured outcome is: Clean installations select the approved provider versions with expected lock-file checksums.

D:

After state rm, the object remains in the remote API but is absent from terraform state list. This evidence would validate a DIFFERENT correction: Use state rm only for removing Terraform management and use destroy when actual remote deletion is intended. That different correction addresses: A team needs to stop tracking a resource but assumes terraform state rm destroys the remote object as well. It does not establish that the Brightside Cloud Works issue has been corrected: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The relevant measured outcome is: Clean installations select the approved provider versions with expected lock-file checksums.