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 50

Question 490

Evergreen Development requires independent evidence before signing off this Terraform correction: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. Which observation best confirms that the proposed correction worked?

  1. Validation accepts the expression and the output contains the intended one or many instance IDs.
  2. The failure can be diagnosed from redacted logs and no plaintext credential appears in the support ticket.
  3. The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.
  4. Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.

Explanation

Correct Answer

D:

Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder. This directly verifies the corrective action: Use the documented Git-based module source syntax with an appropriate immutable reference. The measured result specifically addresses the failure at Evergreen Development: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically.

Incorrect Answers

A:

Validation accepts the expression and the output contains the intended one or many instance IDs. This evidence would validate a DIFFERENT correction: Use the correct counted-resource index or an expression over instances when referencing their attributes. That different correction addresses: A list of indexed resources uses count but a caller references the whole group as if it were a single unindexed object. It does not establish that the Evergreen Development issue has been corrected: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. The relevant measured outcome is: Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.

B:

The failure can be diagnosed from redacted logs and no plaintext credential appears in the support ticket. This evidence would validate a DIFFERENT correction: Use controlled Terraform log settings and documented provider diagnostic methods without exposing credentials. That different correction addresses: An engineer attempts to debug a provider authentication issue by printing private keys directly in application code instead of using Terraform diagnostics. It does not establish that the Evergreen Development issue has been corrected: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. The relevant measured outcome is: Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.

C:

The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys. This evidence would validate a DIFFERENT correction: Pass root variable values into child module arguments rather than relying on tfvars propagation. That different correction addresses: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. It does not establish that the Evergreen Development issue has been corrected: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. The relevant measured outcome is: Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.

Question 491

A Terraform maintainer supporting Oakridge DevOps investigates this scenario: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. Which proposed fix addresses the reported root cause?

  1. Use the documented Git-based module source syntax with an appropriate immutable reference.
  2. Configure supported HCP Terraform policy enforcement, with appropriate evaluation and required approvals.
  3. Use the supported terraform init -migrate-state workflow with backups and explicit destination checks.
  4. Use the default for ordinary cases and override the input only for documented exceptional environments.

Explanation

Correct Answer

A:

Use the documented Git-based module source syntax with an appropriate immutable reference. This is targeted to the observed Terraform issue: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. At Oakridge DevOps, the acceptance criterion is not merely a valid plan; the team should verify: Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.

Incorrect Answers

B:

Configure supported HCP Terraform policy enforcement, with appropriate evaluation and required approvals. This would be suitable for a DIFFERENT Terraform problem: A compliance group wants to prevent Terraform plans from exposing public storage but the team only documents that policy in a wiki. It does not directly resolve the Oakridge DevOps failure: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. The required acceptance evidence instead is: Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.

C:

Use the supported terraform init -migrate-state workflow with backups and explicit destination checks. This would be suitable for a DIFFERENT Terraform problem: An engineer switches a working directory from local state to a remote backend and forgets to migrate its existing resource bindings. It does not directly resolve the Oakridge DevOps failure: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. The required acceptance evidence instead is: Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.

D:

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 Oakridge DevOps failure: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. The required acceptance evidence instead is: Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.

Question 492

A controlled test for Oakridge DevOps focuses on the original failure: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. What result would demonstrate that the identified problem is actually resolved?

  1. A deliberately noncompliant speculative plan is blocked or flagged according to the chosen policy enforcement mode.
  2. Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.
  3. The new backend contains the original resource addresses and an unchanged plan proposes no duplicates.
  4. A call omitting the optional input plans successfully with the declared default.

Explanation

Correct Answer

B:

Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder. This directly verifies the corrective action: Use the documented Git-based module source syntax with an appropriate immutable reference. The measured result specifically addresses the failure at Oakridge DevOps: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically.

Incorrect Answers

A:

A deliberately noncompliant speculative plan is blocked or flagged according to the chosen policy enforcement mode. This evidence would validate a DIFFERENT correction: Configure supported HCP Terraform policy enforcement, with appropriate evaluation and required approvals. That different correction addresses: A compliance group wants to prevent Terraform plans from exposing public storage but the team only documents that policy in a wiki. It does not establish that the Oakridge DevOps issue has been corrected: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. The relevant measured outcome is: Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.

C:

The new backend contains the original resource addresses and an unchanged plan proposes no duplicates. This evidence would validate a DIFFERENT correction: Use the supported terraform init -migrate-state workflow with backups and explicit destination checks. That different correction addresses: An engineer switches a working directory from local state to a remote backend and forgets to migrate its existing resource bindings. It does not establish that the Oakridge DevOps issue has been corrected: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. The relevant measured outcome is: Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.

D:

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 Oakridge DevOps issue has been corrected: An engineer confuses a Git module source with a local path and expects Terraform to download the Git repository automatically. The relevant measured outcome is: Initialization retrieves the intended repository revision rather than interpreting it as a missing local folder.

Question 493

A Terraform maintainer supporting Mariner Infrastructure Group investigates this scenario: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. What is the most appropriate corrective action for this Terraform scenario?

  1. Apply separate backend IAM, encryption, audit and least-privilege controls appropriate to the storage service.
  2. Declare or generate suitable resource configuration using the supported import workflow, then review required attributes.
  3. Consume the networking module's output from the app module input rather than hardcoding a remote ID.
  4. Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL.

Explanation

Correct Answer

D:

Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL. This is targeted to the observed Terraform issue: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. At Mariner Infrastructure Group, the acceptance criterion is not merely a valid plan; the team should verify: An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.

Incorrect Answers

A:

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 Mariner Infrastructure Group failure: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. The required acceptance evidence instead is: An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.

B:

Declare or generate suitable resource configuration using the supported import workflow, then review required attributes. This would be suitable for a DIFFERENT Terraform problem: A consultant attempts terraform import for an object that has no resource configuration and expects full valid HCL to be generated automatically. It does not directly resolve the Mariner Infrastructure Group failure: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. The required acceptance evidence instead is: An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.

C:

Consume the networking module's output from the app module input rather than hardcoding a remote ID. This would be suitable for a DIFFERENT Terraform problem: A root module needs a VPC ID created by a networking module but copies an ID from another workspace. It does not directly resolve the Mariner Infrastructure Group failure: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. The required acceptance evidence instead is: An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.

Question 494

A controlled test for Mariner Infrastructure Group focuses on the original failure: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. Which controlled check would validate the remediation?

  1. An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.
  2. Authorized runners can manage state while an unauthorized identity fails a read or write access test.
  3. The application resources depend on the newly produced network output and plan with the correct VPC ID.
  4. The imported object has matching managed configuration and no unexplained destructive plan is produced.

Explanation

Correct Answer

A:

An authorized fresh init retrieves the module while a read-only unauthorized identity cannot. This directly verifies the corrective action: Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL. The measured result specifically addresses the failure at Mariner Infrastructure Group: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport.

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 Mariner Infrastructure Group issue has been corrected: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. The relevant measured outcome is: An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.

C:

The application resources depend on the newly produced network output and plan with the correct VPC ID. This evidence would validate a DIFFERENT correction: Consume the networking module's output from the app module input rather than hardcoding a remote ID. That different correction addresses: A root module needs a VPC ID created by a networking module but copies an ID from another workspace. It does not establish that the Mariner Infrastructure Group issue has been corrected: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. The relevant measured outcome is: An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.

D:

The imported object has matching managed configuration and no unexplained destructive plan is produced. This evidence would validate a DIFFERENT correction: Declare or generate suitable resource configuration using the supported import workflow, then review required attributes. That different correction addresses: A consultant attempts terraform import for an object that has no resource configuration and expects full valid HCL to be generated automatically. It does not establish that the Mariner Infrastructure Group issue has been corrected: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. The relevant measured outcome is: An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.

Question 495

A proposed infrastructure change for Eastbridge Operations must address the following observed failure: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. Which action would best restore the intended infrastructure-as-code workflow?

  1. Use modules for meaningful reusable abstractions rather than creating needless one-resource layers.
  2. Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL.
  3. Install and configure the relevant provider that exposes the target platform's resource types.
  4. Initialize dependencies separately, then use terraform validate to find configuration errors.

Explanation

Correct Answer

B:

Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL. This is targeted to the observed Terraform issue: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. At Eastbridge Operations, the acceptance criterion is not merely a valid plan; the team should verify: An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.

Incorrect Answers

A:

Use modules for meaningful reusable abstractions rather than creating needless one-resource layers. This would be suitable for a DIFFERENT Terraform problem: A team converts every single resource into a separate module and finds simple changes require many nested interfaces. It does not directly resolve the Eastbridge Operations failure: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. The required acceptance evidence instead is: An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.

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 Eastbridge Operations failure: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. The required acceptance evidence instead is: An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.

D:

Initialize dependencies separately, then use terraform validate to find configuration errors. This would be suitable for a DIFFERENT Terraform problem: A developer assumes terraform init will automatically fix invalid HCL expressions inside resource definitions. It does not directly resolve the Eastbridge Operations failure: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. The required acceptance evidence instead is: An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.

Question 496

The Terraform change owner at Eastbridge Operations seeks a verifiable outcome for: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. Which observation best confirms that the proposed correction worked?

  1. terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type.
  2. Init resolves plugins but invalid expressions still produce the expected validation diagnostics.
  3. An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.
  4. The resulting configuration remains readable and a simple resource change can be reviewed without excessive module hopping.

Explanation

Correct Answer

C:

An authorized fresh init retrieves the module while a read-only unauthorized identity cannot. This directly verifies the corrective action: Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL. The measured result specifically addresses the failure at Eastbridge Operations: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport.

Incorrect Answers

A:

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 Eastbridge Operations issue has been corrected: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. The relevant measured outcome is: An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.

B:

Init resolves plugins but invalid expressions still produce the expected validation diagnostics. This evidence would validate a DIFFERENT correction: Initialize dependencies separately, then use terraform validate to find configuration errors. That different correction addresses: A developer assumes terraform init will automatically fix invalid HCL expressions inside resource definitions. It does not establish that the Eastbridge Operations issue has been corrected: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. The relevant measured outcome is: An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.

D:

The resulting configuration remains readable and a simple resource change can be reviewed without excessive module hopping. This evidence would validate a DIFFERENT correction: Use modules for meaningful reusable abstractions rather than creating needless one-resource layers. That different correction addresses: A team converts every single resource into a separate module and finds simple changes require many nested interfaces. It does not establish that the Eastbridge Operations issue has been corrected: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. The relevant measured outcome is: An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.

Question 497

A proposed infrastructure change for Crestline Digital Operations must address the following observed failure: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. How should the Terraform engineer correct this specific failure?

  1. Choose a valid module source and version or ref strategy and reinitialize when source selections change.
  2. Set TF_LOG as a Terraform CLI environment setting for the diagnostic process.
  3. Generate and inspect the execution plan before authorizing an apply rather than treating apply as an opaque deployment.
  4. Build a reusable child module for the shared networking pattern and invoke it with documented application inputs.

Explanation

Correct Answer

A:

Choose a valid module source and version or ref strategy and reinitialize when source selections change. This is targeted to the observed Terraform issue: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. At Crestline Digital Operations, the acceptance criterion is not merely a valid plan; the team should verify: The installed child module's commit or version matches the explicitly approved source reference.

Incorrect Answers

B:

Set TF_LOG as a Terraform CLI environment setting for the diagnostic process. This would be suitable for a DIFFERENT Terraform problem: A platform operator confuses TF_LOG with an HCL resource argument and adds it inside an infrastructure resource block. It does not directly resolve the Crestline Digital Operations failure: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. The required acceptance evidence instead is: The installed child module's commit or version matches the explicitly approved source reference.

C:

Generate and inspect the execution plan before authorizing an apply rather than treating apply as an opaque deployment. This would be suitable for a DIFFERENT Terraform problem: A team skips the plan stage and cannot explain why its apply destroyed a gateway. It does not directly resolve the Crestline Digital Operations failure: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. The required acceptance evidence instead is: The installed child module's commit or version matches the explicitly approved source reference.

D:

Build a reusable child module for the shared networking pattern and invoke it with documented application inputs. This would be suitable for a DIFFERENT Terraform problem: A service team duplicates a networking subnet and routing configuration across five applications. It does not directly resolve the Crestline Digital Operations failure: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. The required acceptance evidence instead is: The installed child module's commit or version matches the explicitly approved source reference.

Question 498

The Terraform change owner at Crestline Digital Operations seeks a verifiable outcome for: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. Which verification outcome is the strongest evidence of the required correction?

  1. The replacement is visible to reviewers before any destructive operation begins.
  2. The installed child module's commit or version matches the explicitly approved source reference.
  3. The run emits the selected diagnostic level without changing the deployed resource configuration.
  4. The applications use the same reviewed module interface while each plan creates its own correctly parameterized resources.

Explanation

Correct Answer

B:

The installed child module's commit or version matches the explicitly approved source reference. This directly verifies the corrective action: Choose a valid module source and version or ref strategy and reinitialize when source selections change. The measured result specifically addresses the failure at Crestline Digital Operations: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit.

Incorrect Answers

A:

The replacement is visible to reviewers before any destructive operation begins. This evidence would validate a DIFFERENT correction: Generate and inspect the execution plan before authorizing an apply rather than treating apply as an opaque deployment. That different correction addresses: A team skips the plan stage and cannot explain why its apply destroyed a gateway. It does not establish that the Crestline Digital Operations issue has been corrected: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. The relevant measured outcome is: The installed child module's commit or version matches the explicitly approved source reference.

C:

The run emits the selected diagnostic level without changing the deployed resource configuration. This evidence would validate a DIFFERENT correction: Set TF_LOG as a Terraform CLI environment setting for the diagnostic process. That different correction addresses: A platform operator confuses TF_LOG with an HCL resource argument and adds it inside an infrastructure resource block. It does not establish that the Crestline Digital Operations issue has been corrected: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. The relevant measured outcome is: The installed child module's commit or version matches the explicitly approved source reference.

D:

The applications use the same reviewed module interface while each plan creates its own correctly parameterized resources. This evidence would validate a DIFFERENT correction: Build a reusable child module for the shared networking pattern and invoke it with documented application inputs. That different correction addresses: A service team duplicates a networking subnet and routing configuration across five applications. It does not establish that the Crestline Digital Operations issue has been corrected: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. The relevant measured outcome is: The installed child module's commit or version matches the explicitly approved source reference.

Question 499

During repository review at Westfield Digital Systems, the platform team reports: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. What is the most appropriate corrective action for this Terraform scenario?

  1. Use modules for meaningful reusable abstractions rather than creating needless one-resource layers.
  2. Represent repeatable infrastructure declarations in Terraform files and retain their versions with the application release.
  3. Choose a valid module source and version or ref strategy and reinitialize when source selections change.
  4. Use a data block to read the existing image and reserve a resource block for objects Terraform should create or manage.

Explanation

Correct Answer

C:

Choose a valid module source and version or ref strategy and reinitialize when source selections change. This is targeted to the observed Terraform issue: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. At Westfield Digital Systems, the acceptance criterion is not merely a valid plan; the team should verify: The installed child module's commit or version matches the explicitly approved source reference.

Incorrect Answers

A:

Use modules for meaningful reusable abstractions rather than creating needless one-resource layers. This would be suitable for a DIFFERENT Terraform problem: A team converts every single resource into a separate module and finds simple changes require many nested interfaces. It does not directly resolve the Westfield Digital Systems failure: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. The required acceptance evidence instead is: The installed child module's commit or version matches the explicitly approved source reference.

B:

Represent repeatable infrastructure declarations in Terraform files and retain their versions with the application release. This would be suitable for a DIFFERENT Terraform problem: A team cannot reproduce its disaster-recovery environment because the settings live only in an engineer's memory. It does not directly resolve the Westfield Digital Systems failure: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. The required acceptance evidence instead is: The installed child module's commit or version matches the explicitly approved source reference.

D:

Use a data block to read the existing image and reserve a resource block for objects Terraform should create or manage. This would be suitable for a DIFFERENT Terraform problem: A service team declares an existing shared image as a managed resource even though it only needs to discover its identifier for new instances. It does not directly resolve the Westfield Digital Systems failure: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. The required acceptance evidence instead is: The installed child module's commit or version matches the explicitly approved source reference.

Question 500

An acceptance reviewer at Westfield Digital Systems must validate the fix for: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. Which controlled check would validate the remediation?

  1. A separate recovery workspace produces the intended topology from a known configuration revision and documented inputs.
  2. The resulting configuration remains readable and a simple resource change can be reviewed without excessive module hopping.
  3. The plan reads the discovered image without proposing to create or replace that preexisting image.
  4. The installed child module's commit or version matches the explicitly approved source reference.

Explanation

Correct Answer

D:

The installed child module's commit or version matches the explicitly approved source reference. This directly verifies the corrective action: Choose a valid module source and version or ref strategy and reinitialize when source selections change. The measured result specifically addresses the failure at Westfield Digital Systems: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit.

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 Westfield Digital Systems issue has been corrected: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. The relevant measured outcome is: The installed child module's commit or version matches the explicitly approved source reference.

B:

The resulting configuration remains readable and a simple resource change can be reviewed without excessive module hopping. This evidence would validate a DIFFERENT correction: Use modules for meaningful reusable abstractions rather than creating needless one-resource layers. That different correction addresses: A team converts every single resource into a separate module and finds simple changes require many nested interfaces. It does not establish that the Westfield Digital Systems issue has been corrected: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. The relevant measured outcome is: The installed child module's commit or version matches the explicitly approved source reference.

C:

The plan reads the discovered image without proposing to create or replace that preexisting image. This evidence would validate a DIFFERENT correction: Use a data block to read the existing image and reserve a resource block for objects Terraform should create or manage. That different correction addresses: A service team declares an existing shared image as a managed resource even though it only needs to discover its identifier for new instances. It does not establish that the Westfield Digital Systems issue has been corrected: A reviewer expects terraform get or init to install arbitrary module versions that the source reference does not permit. The relevant measured outcome is: The installed child module's commit or version matches the explicitly approved source reference.