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 52

Question 510

The reliability team at Orchard Enterprise Platforms is closing an incident described as follows: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. Which observation best confirms that the proposed correction worked?

  1. terraform validate accepts an appropriately typed input and rejects the incompatible fixture.
  2. terraform init configures the backend and later plans load state from the intended remote location.
  3. Access tests show each team can act only on its authorized workspaces.
  4. The resulting configuration remains readable and a simple resource change can be reviewed without excessive module hopping.

Explanation

Correct Answer

A:

terraform validate accepts an appropriately typed input and rejects the incompatible fixture. This directly verifies the corrective action: Align the passed value with the child module's declared input type or update the module contract explicitly. The measured result specifically addresses the failure at Orchard Enterprise Platforms: A caller supplies a variable with the right name but the child module declares a different type and rejects the value.

Incorrect Answers

B:

terraform init configures the backend and later plans load state from the intended remote location. This evidence would validate a DIFFERENT correction: Declare the supported backend configuration in the terraform block and initialize the backend separately from providers. That different correction addresses: A team wants to store state in a remote service but mistakenly places the backend configuration inside an ordinary provider resource block. It does not establish that the Orchard Enterprise Platforms issue has been corrected: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. The relevant measured outcome is: terraform validate accepts an appropriately typed input and rejects the incompatible fixture.

C:

Access tests show each team can act only on its authorized workspaces. This evidence would validate a DIFFERENT correction: Use HCP Terraform teams and scoped workspace or project permissions under least privilege. That different correction addresses: Several product teams share one HCP Terraform organization, but an administrator grants every team full organization-level access. It does not establish that the Orchard Enterprise Platforms issue has been corrected: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. The relevant measured outcome is: terraform validate accepts an appropriately typed input and rejects the incompatible fixture.

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 Orchard Enterprise Platforms issue has been corrected: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. The relevant measured outcome is: terraform validate accepts an appropriately typed input and rejects the incompatible fixture.

Question 511

Stonebrook Software is preparing a controlled Terraform update after identifying this fault: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. Which proposed fix addresses the reported root cause?

  1. Use the documented lock-timeout behavior or release scheduling instead of disabling locking.
  2. Align the passed value with the child module's declared input type or update the module contract explicitly.
  3. Correct the relative module source path and initialize the configuration to load the existing local module.
  4. Apply an appropriate prevent_destroy lifecycle rule and complementary access/governance controls for the protected resource.

Explanation

Correct Answer

B:

Align the passed value with the child module's declared input type or update the module contract explicitly. This is targeted to the observed Terraform issue: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. At Stonebrook Software, the acceptance criterion is not merely a valid plan; the team should verify: terraform validate accepts an appropriately typed input and rejects the incompatible fixture.

Incorrect Answers

A:

Use the documented lock-timeout behavior or release scheduling instead of disabling locking. This would be suitable for a DIFFERENT Terraform problem: A long plan times out waiting for the state lock while another maintenance run legitimately holds it. It does not directly resolve the Stonebrook Software failure: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. The required acceptance evidence instead is: terraform validate accepts an appropriately typed input and rejects the incompatible fixture.

C:

Correct the relative module source path and initialize the configuration to load the existing local module. This would be suitable for a DIFFERENT Terraform problem: A module declaration points to a local relative folder, but the folder has been renamed and initialization cannot find it. It does not directly resolve the Stonebrook Software failure: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. The required acceptance evidence instead is: terraform validate accepts an appropriately typed input and rejects the incompatible fixture.

D:

Apply an appropriate prevent_destroy lifecycle rule and complementary access/governance controls for the protected resource. This would be suitable for a DIFFERENT Terraform problem: A production database must not be destroyed accidentally and an operator assumes a standard plan approval alone prevents every destroy. It does not directly resolve the Stonebrook Software failure: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. The required acceptance evidence instead is: terraform validate accepts an appropriately typed input and rejects the incompatible fixture.

Question 512

Stonebrook Software requires independent evidence before signing off this Terraform correction: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. What result would demonstrate that the identified problem is actually resolved?

  1. terraform init finds the directory and validation resolves its variables and resources.
  2. A proposed deletion is rejected by Terraform while the rule remains in the resource configuration.
  3. terraform validate accepts an appropriately typed input and rejects the incompatible fixture.
  4. The second job waits or exits according to policy and never corrupts the first job's state write.

Explanation

Correct Answer

C:

terraform validate accepts an appropriately typed input and rejects the incompatible fixture. This directly verifies the corrective action: Align the passed value with the child module's declared input type or update the module contract explicitly. The measured result specifically addresses the failure at Stonebrook Software: A caller supplies a variable with the right name but the child module declares a different type and rejects the value.

Incorrect Answers

A:

terraform init finds the directory and validation resolves its variables and resources. This evidence would validate a DIFFERENT correction: Correct the relative module source path and initialize the configuration to load the existing local module. That different correction addresses: A module declaration points to a local relative folder, but the folder has been renamed and initialization cannot find it. It does not establish that the Stonebrook Software issue has been corrected: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. The relevant measured outcome is: terraform validate accepts an appropriately typed input and rejects the incompatible fixture.

B:

A proposed deletion is rejected by Terraform while the rule remains in the resource configuration. This evidence would validate a DIFFERENT correction: Apply an appropriate prevent_destroy lifecycle rule and complementary access/governance controls for the protected resource. That different correction addresses: A production database must not be destroyed accidentally and an operator assumes a standard plan approval alone prevents every destroy. It does not establish that the Stonebrook Software issue has been corrected: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. The relevant measured outcome is: terraform validate accepts an appropriately typed input and rejects the incompatible fixture.

D:

The second job waits or exits according to policy and never corrupts the first job's state write. This evidence would validate a DIFFERENT correction: Use the documented lock-timeout behavior or release scheduling instead of disabling locking. That different correction addresses: A long plan times out waiting for the state lock while another maintenance run legitimately holds it. It does not establish that the Stonebrook Software issue has been corrected: A caller supplies a variable with the right name but the child module declares a different type and rejects the value. The relevant measured outcome is: terraform validate accepts an appropriately typed input and rejects the incompatible fixture.

Question 513

Redwood Application Group is preparing a controlled Terraform update after identifying this fault: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. What is the most appropriate corrective action for this Terraform scenario?

  1. Use the default for ordinary cases and override the input only for documented exceptional environments.
  2. Interpret plan action symbols and the resource-specific reasons for changes before approval.
  3. Use version constraints for registry modules and use the source ref mechanism for generic Git module versioning.
  4. Apply separate backend IAM, encryption, audit and least-privilege controls appropriate to the storage service.

Explanation

Correct Answer

A:

Use the default for ordinary cases and override the input only for documented exceptional environments. This is targeted to the observed Terraform issue: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. At Redwood Application Group, the acceptance criterion is not merely a valid plan; the team should verify: A call omitting the optional input plans successfully with the declared default.

Incorrect Answers

B:

Interpret plan action symbols and the resource-specific reasons for changes before approval. This would be suitable for a DIFFERENT Terraform problem: An engineer reads the plan's plus and minus indicators as simple text decoration and misses resource destruction. It does not directly resolve the Redwood Application Group failure: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. The required acceptance evidence instead is: A call omitting the optional input plans successfully with the declared default.

C:

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 Redwood Application Group failure: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. The required acceptance evidence instead is: A call omitting the optional input plans successfully with the declared default.

D:

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 Redwood Application Group failure: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. The required acceptance evidence instead is: A call omitting the optional input plans successfully with the declared default.

Question 514

Redwood Application Group requires independent evidence before signing off this Terraform correction: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. Which controlled check would validate the remediation?

  1. Authorized runners can manage state while an unauthorized identity fails a read or write access test.
  2. A call omitting the optional input plans successfully with the declared default.
  3. A deliberately removed resource is identified as a destroy action in the review record.
  4. The module source resolves with the appropriate versioning syntax and init completes.

Explanation

Correct Answer

B:

A call omitting the optional input plans successfully with the declared default. This directly verifies the corrective action: Use the default for ordinary cases and override the input only for documented exceptional environments. The measured result specifically addresses the failure at Redwood Application Group: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call.

Incorrect Answers

A:

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 Redwood Application Group issue has been corrected: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. The relevant measured outcome is: A call omitting the optional input plans successfully with the declared default.

C:

A deliberately removed resource is identified as a destroy action in the review record. This evidence would validate a DIFFERENT correction: Interpret plan action symbols and the resource-specific reasons for changes before approval. That different correction addresses: An engineer reads the plan's plus and minus indicators as simple text decoration and misses resource destruction. It does not establish that the Redwood Application Group issue has been corrected: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. The relevant measured outcome is: A call omitting the optional input plans successfully with the declared default.

D:

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 Redwood Application Group issue has been corrected: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. The relevant measured outcome is: A call omitting the optional input plans successfully with the declared default.

Question 515

A Terraform maintainer supporting Crescent Infrastructure Team investigates this scenario: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. Which action would best restore the intended infrastructure-as-code workflow?

  1. Protect local state as potentially sensitive and restrict access and backups rather than distributing it freely.
  2. Build a reusable child module for the shared networking pattern and invoke it with documented application inputs.
  3. Use the default for ordinary cases and override the input only for documented exceptional environments.
  4. Migrate state through the supported workflow before assuming the workspace owns existing resources.

Explanation

Correct Answer

C:

Use the default for ordinary cases and override the input only for documented exceptional environments. This is targeted to the observed Terraform issue: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. At Crescent Infrastructure Team, the acceptance criterion is not merely a valid plan; the team should verify: A call omitting the optional input plans successfully with the declared default.

Incorrect Answers

A:

Protect local state as potentially sensitive and restrict access and backups rather than distributing it freely. This would be suitable for a DIFFERENT Terraform problem: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. It does not directly resolve the Crescent Infrastructure Team failure: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. The required acceptance evidence instead is: A call omitting the optional input plans successfully with the declared default.

B:

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 Crescent Infrastructure Team failure: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. The required acceptance evidence instead is: A call omitting the optional input plans successfully with the declared default.

D:

Migrate state through the supported workflow before assuming the workspace owns existing resources. This would be suitable for a DIFFERENT Terraform problem: An engineer thinks a new HCP Terraform workspace automatically manages every resource in an existing local state file. It does not directly resolve the Crescent Infrastructure Team failure: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. The required acceptance evidence instead is: A call omitting the optional input plans successfully with the declared default.

Question 516

A controlled test for Crescent Infrastructure Team focuses on the original failure: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. Which observation best confirms that the proposed correction worked?

  1. Local state is excluded from email and public repositories while approved backup recovery succeeds.
  2. The applications use the same reviewed module interface while each plan creates its own correctly parameterized resources.
  3. The HCP Terraform workspace shows imported state history and its next plan does not recreate all existing objects.
  4. A call omitting the optional input plans successfully with the declared default.

Explanation

Correct Answer

D:

A call omitting the optional input plans successfully with the declared default. This directly verifies the corrective action: Use the default for ordinary cases and override the input only for documented exceptional environments. The measured result specifically addresses the failure at Crescent Infrastructure Team: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call.

Incorrect Answers

A:

Local state is excluded from email and public repositories while approved backup recovery succeeds. This evidence would validate a DIFFERENT correction: Protect local state as potentially sensitive and restrict access and backups rather than distributing it freely. That different correction addresses: A security reviewer sees a local terraform.tfstate file and treats it as safe to email because no passwords were intentionally output. It does not establish that the Crescent Infrastructure Team issue has been corrected: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. The relevant measured outcome is: A call omitting the optional input plans successfully with the declared default.

B:

The applications use the same reviewed module interface while each plan creates its own correctly parameterized resources. This evidence would validate a DIFFERENT correction: Build a reusable child module for the shared networking pattern and invoke it with documented application inputs. That different correction addresses: A service team duplicates a networking subnet and routing configuration across five applications. It does not establish that the Crescent Infrastructure Team issue has been corrected: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. The relevant measured outcome is: A call omitting the optional input plans successfully with the declared default.

C:

The HCP Terraform workspace shows imported state history and its next plan does not recreate all existing objects. This evidence would validate a DIFFERENT correction: Migrate state through the supported workflow before assuming the workspace owns existing resources. That different correction addresses: An engineer thinks a new HCP Terraform workspace automatically manages every resource in an existing local state file. It does not establish that the Crescent Infrastructure Team issue has been corrected: A module's input has a default but the consuming team assumes it must always pass an explicit value in every call. The relevant measured outcome is: A call omitting the optional input plans successfully with the declared default.

Question 517

A Terraform maintainer supporting Horizon Platform Team investigates this scenario: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. How should the Terraform engineer correct this specific failure?

  1. Use the published module source syntax and a supported version constraint for the registry module.
  2. Pass root variable values into child module arguments rather than relying on tfvars propagation.
  3. Use a provider for API interactions and use modules to group reusable Terraform configuration.
  4. Make both branches return compatible types and keep the condition a Boolean expression.

Explanation

Correct Answer

B:

Pass root variable values into child module arguments rather than relying on tfvars propagation. This is targeted to the observed Terraform issue: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. At Horizon Platform Team, the acceptance criterion is not merely a valid plan; the team should verify: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.

Incorrect Answers

A:

Use the published module source syntax and a supported version constraint for the registry module. This would be suitable for a DIFFERENT Terraform problem: A team tries to install a remote Terraform Registry module without specifying a valid registry source address. It does not directly resolve the Horizon Platform Team failure: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The required acceptance evidence instead is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.

C:

Use a provider for API interactions and use modules to group reusable Terraform configuration. This would be suitable for a DIFFERENT Terraform problem: An operator confuses provider plugins with Terraform modules and looks for an installable module to supply API resource schemas. It does not directly resolve the Horizon Platform Team failure: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The required acceptance evidence instead is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.

D:

Make both branches return compatible types and keep the condition a Boolean expression. This would be suitable for a DIFFERENT Terraform problem: An operator uses a conditional expression with incompatible branch value types and receives a configuration type error. It does not directly resolve the Horizon Platform Team failure: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The required acceptance evidence instead is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.

Question 518

A controlled test for Horizon Platform Team focuses on the original failure: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. Which verification outcome is the strongest evidence of the required correction?

  1. Init resolves the intended published module version and records it in the installed module manifest.
  2. Initialization downloads the plugin while module references expand into configuration that consumes its resource types.
  3. The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.
  4. terraform validate succeeds and both condition paths evaluate to the expected type.

Explanation

Correct Answer

C:

The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys. This directly verifies the corrective action: Pass root variable values into child module arguments rather than relying on tfvars propagation. The measured result specifically addresses the failure at Horizon Platform Team: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically.

Incorrect Answers

A:

Init resolves the intended published module version and records it in the installed module manifest. This evidence would validate a DIFFERENT correction: Use the published module source syntax and a supported version constraint for the registry module. That different correction addresses: A team tries to install a remote Terraform Registry module without specifying a valid registry source address. It does not establish that the Horizon Platform Team issue has been corrected: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The relevant measured outcome is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.

B:

Initialization downloads the plugin while module references expand into configuration that consumes its resource types. This evidence would validate a DIFFERENT correction: Use a provider for API interactions and use modules to group reusable Terraform configuration. That different correction addresses: An operator confuses provider plugins with Terraform modules and looks for an installable module to supply API resource schemas. It does not establish that the Horizon Platform Team issue has been corrected: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The relevant measured outcome is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.

D:

terraform validate succeeds and both condition paths evaluate to the expected type. This evidence would validate a DIFFERENT correction: Make both branches return compatible types and keep the condition a Boolean expression. That different correction addresses: An operator uses a conditional expression with incompatible branch value types and receives a configuration type error. It does not establish that the Horizon Platform Team issue has been corrected: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The relevant measured outcome is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.

Question 519

A proposed infrastructure change for Northgate IT Platforms must address the following observed failure: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. What is the most appropriate corrective action for this Terraform scenario?

  1. Use a normal refreshed plan when current remote drift must be evaluated and review the resulting differences.
  2. Correct the relative module source path and initialize the configuration to load the existing local module.
  3. Use an appropriate documented replacement action such as terraform apply -replace with review.
  4. Pass root variable values into child module arguments rather than relying on tfvars propagation.

Explanation

Correct Answer

D:

Pass root variable values into child module arguments rather than relying on tfvars propagation. This is targeted to the observed Terraform issue: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. At Northgate IT Platforms, the acceptance criterion is not merely a valid plan; the team should verify: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.

Incorrect Answers

A:

Use a normal refreshed plan when current remote drift must be evaluated and review the resulting differences. This would be suitable for a DIFFERENT Terraform problem: A developer tries to prove there is no drift by using terraform plan -refresh=false in a system with known manual changes. It does not directly resolve the Northgate IT Platforms failure: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The required acceptance evidence instead is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.

B:

Correct the relative module source path and initialize the configuration to load the existing local module. This would be suitable for a DIFFERENT Terraform problem: A module declaration points to a local relative folder, but the folder has been renamed and initialization cannot find it. It does not directly resolve the Northgate IT Platforms failure: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The required acceptance evidence instead is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.

C:

Use an appropriate documented replacement action such as terraform apply -replace with review. This would be suitable for a DIFFERENT Terraform problem: An application needs an isolated replacement of a damaged object, but the operator tries to edit its serialized state to mark it broken. It does not directly resolve the Northgate IT Platforms failure: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The required acceptance evidence instead is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.

Question 520

The Terraform change owner at Northgate IT Platforms seeks a verifiable outcome for: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. Which controlled check would validate the remediation?

  1. The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.
  2. The reviewed plan detects the controlled manual change instead of relying solely on stale state.
  3. terraform init finds the directory and validation resolves its variables and resources.
  4. The plan clearly shows replacement of the intended resource address while other resources remain unchanged.

Explanation

Correct Answer

A:

The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys. This directly verifies the corrective action: Pass root variable values into child module arguments rather than relying on tfvars propagation. The measured result specifically addresses the failure at Northgate IT Platforms: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically.

Incorrect Answers

B:

The reviewed plan detects the controlled manual change instead of relying solely on stale state. This evidence would validate a DIFFERENT correction: Use a normal refreshed plan when current remote drift must be evaluated and review the resulting differences. That different correction addresses: A developer tries to prove there is no drift by using terraform plan -refresh=false in a system with known manual changes. It does not establish that the Northgate IT Platforms issue has been corrected: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The relevant measured outcome is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.

C:

terraform init finds the directory and validation resolves its variables and resources. This evidence would validate a DIFFERENT correction: Correct the relative module source path and initialize the configuration to load the existing local module. That different correction addresses: A module declaration points to a local relative folder, but the folder has been renamed and initialization cannot find it. It does not establish that the Northgate IT Platforms issue has been corrected: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The relevant measured outcome is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.

D:

The plan clearly shows replacement of the intended resource address while other resources remain unchanged. This evidence would validate a DIFFERENT correction: Use an appropriate documented replacement action such as terraform apply -replace with review. That different correction addresses: An application needs an isolated replacement of a damaged object, but the operator tries to edit its serialized state to mark it broken. It does not establish that the Northgate IT Platforms issue has been corrected: A team uses root-only terraform.tfvars keys and expects them to populate private child variables with the same names automatically. The relevant measured outcome is: The child module's planned resources reflect the explicitly wired input and are unaffected by undeclared root keys.