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 36

Question 350

A controlled test for Orchard Enterprise Platforms focuses on the original failure: A regional network module hardcodes its CIDR block and cannot be reused in test and production. Which observation best confirms that the proposed correction worked?

  1. Two plans use the same module code but show the appropriate CIDR for each environment.
  2. The returned object attributes correspond to the intended address and are reviewed securely.
  3. Validation accepts the expression and the output contains the intended one or many instance IDs.
  4. The reviewed plan detects the controlled manual change instead of relying solely on stale state.

Explanation

Correct Answer

A:

Two plans use the same module code but show the appropriate CIDR for each environment. This directly verifies the corrective action: Declare a typed input variable for the CIDR and supply environment-specific values to the module. The measured result specifically addresses the failure at Orchard Enterprise Platforms: A regional network module hardcodes its CIDR block and cannot be reused in test and production.

Incorrect Answers

B:

The returned object attributes correspond to the intended address and are reviewed securely. This evidence would validate a DIFFERENT correction: Use terraform state show with the exact resource address and handle displayed sensitive information appropriately. That different correction addresses: An engineer wants to inspect attributes recorded for a specific managed resource without editing state JSON directly. It does not establish that the Orchard Enterprise Platforms issue has been corrected: A regional network module hardcodes its CIDR block and cannot be reused in test and production. The relevant measured outcome is: Two plans use the same module code but show the appropriate CIDR for each environment.

C:

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 Orchard Enterprise Platforms issue has been corrected: A regional network module hardcodes its CIDR block and cannot be reused in test and production. The relevant measured outcome is: Two plans use the same module code but show the appropriate CIDR for each environment.

D:

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 Orchard Enterprise Platforms issue has been corrected: A regional network module hardcodes its CIDR block and cannot be reused in test and production. The relevant measured outcome is: Two plans use the same module code but show the appropriate CIDR for each environment.

Question 351

A proposed infrastructure change for Stonebrook Software must address the following observed failure: A regional network module hardcodes its CIDR block and cannot be reused in test and production. Which proposed fix addresses the reported root cause?

  1. Represent the created object as a managed resource and reference its attributes directly rather than querying it before creation.
  2. Declare a typed input variable for the CIDR and supply environment-specific values to the module.
  3. Refresh state through a normal or refresh-only plan and evaluate the resulting drift before applying any configuration change.
  4. Correct the relative module source path and initialize the configuration to load the existing local module.

Explanation

Correct Answer

B:

Declare a typed input variable for the CIDR and supply environment-specific values to the module. This is targeted to the observed Terraform issue: A regional network module hardcodes its CIDR block and cannot be reused in test and production. At Stonebrook Software, the acceptance criterion is not merely a valid plan; the team should verify: Two plans use the same module code but show the appropriate CIDR for each environment.

Incorrect Answers

A:

Represent the created object as a managed resource and reference its attributes directly rather than querying it before creation. This would be suitable for a DIFFERENT Terraform problem: A developer uses a data source for a new resource whose name is computed only after a separate resource is created, causing a premature lookup. It does not directly resolve the Stonebrook Software failure: A regional network module hardcodes its CIDR block and cannot be reused in test and production. The required acceptance evidence instead is: Two plans use the same module code but show the appropriate CIDR for each environment.

C:

Refresh state through a normal or refresh-only plan and evaluate the resulting drift before applying any configuration change. This would be suitable for a DIFFERENT Terraform problem: A resource is manually renamed in the cloud API, but Terraform's recorded state still contains its earlier attributes. It does not directly resolve the Stonebrook Software failure: A regional network module hardcodes its CIDR block and cannot be reused in test and production. The required acceptance evidence instead is: Two plans use the same module code but show the appropriate CIDR for each environment.

D:

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 regional network module hardcodes its CIDR block and cannot be reused in test and production. The required acceptance evidence instead is: Two plans use the same module code but show the appropriate CIDR for each environment.

Question 352

The Terraform change owner at Stonebrook Software seeks a verifiable outcome for: A regional network module hardcodes its CIDR block and cannot be reused in test and production. What result would demonstrate that the identified problem is actually resolved?

  1. The graph plans the creation and downstream reference without an early failing data-source lookup.
  2. The plan reports the observed difference and the operator records an intentional corrective decision.
  3. Two plans use the same module code but show the appropriate CIDR for each environment.
  4. terraform init finds the directory and validation resolves its variables and resources.

Explanation

Correct Answer

C:

Two plans use the same module code but show the appropriate CIDR for each environment. This directly verifies the corrective action: Declare a typed input variable for the CIDR and supply environment-specific values to the module. The measured result specifically addresses the failure at Stonebrook Software: A regional network module hardcodes its CIDR block and cannot be reused in test and production.

Incorrect Answers

A:

The graph plans the creation and downstream reference without an early failing data-source lookup. This evidence would validate a DIFFERENT correction: Represent the created object as a managed resource and reference its attributes directly rather than querying it before creation. That different correction addresses: A developer uses a data source for a new resource whose name is computed only after a separate resource is created, causing a premature lookup. It does not establish that the Stonebrook Software issue has been corrected: A regional network module hardcodes its CIDR block and cannot be reused in test and production. The relevant measured outcome is: Two plans use the same module code but show the appropriate CIDR for each environment.

B:

The plan reports the observed difference and the operator records an intentional corrective decision. This evidence would validate a DIFFERENT correction: Refresh state through a normal or refresh-only plan and evaluate the resulting drift before applying any configuration change. That different correction addresses: A resource is manually renamed in the cloud API, but Terraform's recorded state still contains its earlier attributes. It does not establish that the Stonebrook Software issue has been corrected: A regional network module hardcodes its CIDR block and cannot be reused in test and production. The relevant measured outcome is: Two plans use the same module code but show the appropriate CIDR for each environment.

D:

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 regional network module hardcodes its CIDR block and cannot be reused in test and production. The relevant measured outcome is: Two plans use the same module code but show the appropriate CIDR for each environment.

Question 353

A proposed infrastructure change for Redwood Application Group must address the following observed failure: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. What is the most appropriate corrective action for this Terraform scenario?

  1. Define an output in the child module and, if needed, forward it through a root output.
  2. Migrate state through the supported workflow before assuming the workspace owns existing resources.
  3. Represent the created object as a managed resource and reference its attributes directly rather than querying it before creation.
  4. Disable verbose logging after troubleshooting and use the least verbose level that answers the incident question.

Explanation

Correct Answer

A:

Define an output in the child module and, if needed, forward it through a root output. This is targeted to the observed Terraform issue: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. At Redwood Application Group, the acceptance criterion is not merely a valid plan; the team should verify: After apply, terraform output returns the expected endpoint from the managed resource.

Incorrect Answers

B:

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 Redwood Application Group failure: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. The required acceptance evidence instead is: After apply, terraform output returns the expected endpoint from the managed resource.

C:

Represent the created object as a managed resource and reference its attributes directly rather than querying it before creation. This would be suitable for a DIFFERENT Terraform problem: A developer uses a data source for a new resource whose name is computed only after a separate resource is created, causing a premature lookup. It does not directly resolve the Redwood Application Group failure: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. The required acceptance evidence instead is: After apply, terraform output returns the expected endpoint from the managed resource.

D:

Disable verbose logging after troubleshooting and use the least verbose level that answers the incident question. This would be suitable for a DIFFERENT Terraform problem: A team leaves TF_LOG=TRACE enabled for every production run and creates large, potentially sensitive logs. It does not directly resolve the Redwood Application Group failure: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. The required acceptance evidence instead is: After apply, terraform output returns the expected endpoint from the managed resource.

Question 354

The Terraform change owner at Redwood Application Group seeks a verifiable outcome for: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. Which controlled check would validate the remediation?

  1. Routine runs no longer produce trace output and incident-specific logging remains available when explicitly enabled.
  2. After apply, terraform output returns the expected endpoint from the managed resource.
  3. The HCP Terraform workspace shows imported state history and its next plan does not recreate all existing objects.
  4. The graph plans the creation and downstream reference without an early failing data-source lookup.

Explanation

Correct Answer

B:

After apply, terraform output returns the expected endpoint from the managed resource. This directly verifies the corrective action: Define an output in the child module and, if needed, forward it through a root output. The measured result specifically addresses the failure at Redwood Application Group: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation.

Incorrect Answers

A:

Routine runs no longer produce trace output and incident-specific logging remains available when explicitly enabled. This evidence would validate a DIFFERENT correction: Disable verbose logging after troubleshooting and use the least verbose level that answers the incident question. That different correction addresses: A team leaves TF_LOG=TRACE enabled for every production run and creates large, potentially sensitive logs. It does not establish that the Redwood Application Group issue has been corrected: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. The relevant measured outcome is: After apply, terraform output returns the expected endpoint from the managed resource.

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 Redwood Application Group issue has been corrected: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. The relevant measured outcome is: After apply, terraform output returns the expected endpoint from the managed resource.

D:

The graph plans the creation and downstream reference without an early failing data-source lookup. This evidence would validate a DIFFERENT correction: Represent the created object as a managed resource and reference its attributes directly rather than querying it before creation. That different correction addresses: A developer uses a data source for a new resource whose name is computed only after a separate resource is created, causing a premature lookup. It does not establish that the Redwood Application Group issue has been corrected: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. The relevant measured outcome is: After apply, terraform output returns the expected endpoint from the managed resource.

Question 355

During repository review at Crescent Infrastructure Team, the platform team reports: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. Which action would best restore the intended infrastructure-as-code workflow?

  1. Declare or generate suitable resource configuration using the supported import workflow, then review required attributes.
  2. Confirm that no active writer remains before using the backend's supported lock recovery procedure.
  3. Define an output in the child module and, if needed, forward it through a root output.
  4. Distinguish the Terraform configuration address from the provider's remote ID and use the appropriate reference in each context.

Explanation

Correct Answer

C:

Define an output in the child module and, if needed, forward it through a root output. This is targeted to the observed Terraform issue: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. At Crescent Infrastructure Team, the acceptance criterion is not merely a valid plan; the team should verify: After apply, terraform output returns the expected endpoint from the managed resource.

Incorrect Answers

A:

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 Crescent Infrastructure Team failure: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. The required acceptance evidence instead is: After apply, terraform output returns the expected endpoint from the managed resource.

B:

Confirm that no active writer remains before using the backend's supported lock recovery procedure. This would be suitable for a DIFFERENT Terraform problem: A failed run leaves an apparently stale lock, but engineers cannot tell whether another apply is still active. It does not directly resolve the Crescent Infrastructure Team failure: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. The required acceptance evidence instead is: After apply, terraform output returns the expected endpoint from the managed resource.

D:

Distinguish the Terraform configuration address from the provider's remote ID and use the appropriate reference in each context. This would be suitable for a DIFFERENT Terraform problem: A team changes resource addresses during refactoring and mistakes the Terraform address for a remote cloud object identifier. It does not directly resolve the Crescent Infrastructure Team failure: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. The required acceptance evidence instead is: After apply, terraform output returns the expected endpoint from the managed resource.

Question 356

An acceptance reviewer at Crescent Infrastructure Team must validate the fix for: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. Which observation best confirms that the proposed correction worked?

  1. State inspection resolves the configuration address to its stored remote identifier without conflating the two values.
  2. The lock is cleared only after verifying the prior process is gone and a subsequent plan obtains exclusive access.
  3. The imported object has matching managed configuration and no unexplained destructive plan is produced.
  4. After apply, terraform output returns the expected endpoint from the managed resource.

Explanation

Correct Answer

D:

After apply, terraform output returns the expected endpoint from the managed resource. This directly verifies the corrective action: Define an output in the child module and, if needed, forward it through a root output. The measured result specifically addresses the failure at Crescent Infrastructure Team: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation.

Incorrect Answers

A:

State inspection resolves the configuration address to its stored remote identifier without conflating the two values. This evidence would validate a DIFFERENT correction: Distinguish the Terraform configuration address from the provider's remote ID and use the appropriate reference in each context. That different correction addresses: A team changes resource addresses during refactoring and mistakes the Terraform address for a remote cloud object identifier. It does not establish that the Crescent Infrastructure Team issue has been corrected: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. The relevant measured outcome is: After apply, terraform output returns the expected endpoint from the managed resource.

B:

The lock is cleared only after verifying the prior process is gone and a subsequent plan obtains exclusive access. This evidence would validate a DIFFERENT correction: Confirm that no active writer remains before using the backend's supported lock recovery procedure. That different correction addresses: A failed run leaves an apparently stale lock, but engineers cannot tell whether another apply is still active. It does not establish that the Crescent Infrastructure Team issue has been corrected: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. The relevant measured outcome is: After apply, terraform output returns the expected endpoint from the managed resource.

C:

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 Crescent Infrastructure Team issue has been corrected: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. The relevant measured outcome is: After apply, terraform output returns the expected endpoint from the managed resource.

Question 357

During repository review at Horizon Platform Team, the platform team reports: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. How should the Terraform engineer correct this specific failure?

  1. Use a map(string) or suitable object keyed by environment name to preserve explicit associations.
  2. Keep variables as supplied configuration inputs and use resource attributes or outputs for computed results.
  3. Use the documented lock-timeout behavior or release scheduling instead of disabling locking.
  4. Check provider-supported resource arguments and version support, and use a documented alternate interface rather than inventing arguments.

Explanation

Correct Answer

B:

Keep variables as supplied configuration inputs and use resource attributes or outputs for computed results. This is targeted to the observed Terraform issue: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. At Horizon Platform Team, the acceptance criterion is not merely a valid plan; the team should verify: The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.

Incorrect Answers

A:

Use a map(string) or suitable object keyed by environment name to preserve explicit associations. This would be suitable for a DIFFERENT Terraform problem: A network module uses a list to represent environment-name-to-CIDR pairs and repeatedly assigns the wrong CIDR by index. It does not directly resolve the Horizon Platform Team failure: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. The required acceptance evidence instead is: The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.

C:

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 Horizon Platform Team failure: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. The required acceptance evidence instead is: The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.

D:

Check provider-supported resource arguments and version support, and use a documented alternate interface rather than inventing arguments. This would be suitable for a DIFFERENT Terraform problem: A team assumes a provider manages every setting of a remote product even when its documented schema omits a new feature. It does not directly resolve the Horizon Platform Team failure: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. The required acceptance evidence instead is: The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.

Question 358

An acceptance reviewer at Horizon Platform Team must validate the fix for: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. Which verification outcome is the strongest evidence of the required correction?

  1. terraform validate accepts only supported fields and the chosen implementation passes a controlled API behavior check.
  2. The second job waits or exits according to policy and never corrupts the first job's state write.
  3. The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.
  4. Lookup of a named environment yields its intended CIDR independently of input ordering.

Explanation

Correct Answer

C:

The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs. This directly verifies the corrective action: Keep variables as supplied configuration inputs and use resource attributes or outputs for computed results. The measured result specifically addresses the failure at Horizon Platform Team: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply.

Incorrect Answers

A:

terraform validate accepts only supported fields and the chosen implementation passes a controlled API behavior check. This evidence would validate a DIFFERENT correction: Check provider-supported resource arguments and version support, and use a documented alternate interface rather than inventing arguments. That different correction addresses: A team assumes a provider manages every setting of a remote product even when its documented schema omits a new feature. It does not establish that the Horizon Platform Team issue has been corrected: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. The relevant measured outcome is: The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.

B:

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 Horizon Platform Team issue has been corrected: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. The relevant measured outcome is: The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.

D:

Lookup of a named environment yields its intended CIDR independently of input ordering. This evidence would validate a DIFFERENT correction: Use a map(string) or suitable object keyed by environment name to preserve explicit associations. That different correction addresses: A network module uses a list to represent environment-name-to-CIDR pairs and repeatedly assigns the wrong CIDR by index. It does not establish that the Horizon Platform Team issue has been corrected: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. The relevant measured outcome is: The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.

Question 359

At Northgate IT Platforms, the Terraform review finds this specific problem: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. What is the most appropriate corrective action for this Terraform scenario?

  1. Expose the required value as a child-module output and reference module.<name>.<output> in the caller.
  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. Keep variables as supplied configuration inputs and use resource attributes or outputs for computed results.

Explanation

Correct Answer

D:

Keep variables as supplied configuration inputs and use resource attributes or outputs for computed results. This is targeted to the observed Terraform issue: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. At Northgate IT Platforms, the acceptance criterion is not merely a valid plan; the team should verify: The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.

Incorrect Answers

A:

Expose the required value as a child-module output and reference module.<name>.<output> in the caller. This would be suitable for a DIFFERENT Terraform problem: A module output is accessed using a resource address from inside the module's private implementation, breaking encapsulation. It does not directly resolve the Northgate IT Platforms failure: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. The required acceptance evidence instead is: The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.

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 Northgate IT Platforms failure: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. The required acceptance evidence instead is: The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.

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 Northgate IT Platforms failure: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. The required acceptance evidence instead is: The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.

Question 360

After corrective work at Northgate IT Platforms, a reviewer requests measurable proof for: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. Which controlled check would validate the remediation?

  1. The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.
  2. The imported object has matching managed configuration and no unexplained destructive plan is produced.
  3. The root plan resolves the documented output without reaching into a child module's internal resource names.
  4. The application resources depend on the newly produced network output and plan with the correct VPC ID.

Explanation

Correct Answer

A:

The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs. This directly verifies the corrective action: Keep variables as supplied configuration inputs and use resource attributes or outputs for computed results. The measured result specifically addresses the failure at Northgate IT Platforms: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply.

Incorrect Answers

B:

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 Northgate IT Platforms issue has been corrected: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. The relevant measured outcome is: The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.

C:

The root plan resolves the documented output without reaching into a child module's internal resource names. This evidence would validate a DIFFERENT correction: Expose the required value as a child-module output and reference module.<name>.<output> in the caller. That different correction addresses: A module output is accessed using a resource address from inside the module's private implementation, breaking encapsulation. It does not establish that the Northgate IT Platforms issue has been corrected: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. The relevant measured outcome is: The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.

D:

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 Northgate IT Platforms issue has been corrected: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. The relevant measured outcome is: The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.