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 43

Question 420

A controlled test for Mariner Infrastructure Group focuses on the original failure: A configuration needs a per-environment local constant reused across several resources but duplicates the entire calculation in every block. Which controlled check would validate the remediation?

  1. The module's resources resolve the caller-approved account and no unexpected credentials are used.
  2. The state list and inspected resource ID match the intended new address without unplanned object deletion.
  3. A planned replacement shows the chosen replacement sequence rather than claiming depends_on alters lifecycle order.
  4. A changed environment input updates all calculated uses consistently without repeated expressions.

Explanation

Correct Answer

D:

A changed environment input updates all calculated uses consistently without repeated expressions. This directly verifies the corrective action: Define a local value derived from variables and reference local.<name> from the resources. The measured result specifically addresses the failure at Mariner Infrastructure Group: A configuration needs a per-environment local constant reused across several resources but duplicates the entire calculation in every block.

Incorrect Answers

A:

The module's resources resolve the caller-approved account and no unexpected credentials are used. This evidence would validate a DIFFERENT correction: Pass provider configurations from the caller and avoid nested provider configuration in reusable child modules where possible. That different correction addresses: An application module quietly configures an independent provider account, conflicting with the root's deployment credentials. It does not establish that the Mariner Infrastructure Group issue has been corrected: A configuration needs a per-environment local constant reused across several resources but duplicates the entire calculation in every block. The relevant measured outcome is: A changed environment input updates all calculated uses consistently without repeated expressions.

B:

The state list and inspected resource ID match the intended new address without unplanned object deletion. This evidence would validate a DIFFERENT correction: Correct the mapping using supported state move/removal and import tooling after taking backups. That different correction addresses: An engineer imports a shared resource to the wrong address and then manually edits terraform.tfstate with a text editor. It does not establish that the Mariner Infrastructure Group issue has been corrected: A configuration needs a per-environment local constant reused across several resources but duplicates the entire calculation in every block. The relevant measured outcome is: A changed environment input updates all calculated uses consistently without repeated expressions.

C:

A planned replacement shows the chosen replacement sequence rather than claiming depends_on alters lifecycle order. This evidence would validate a DIFFERENT correction: Separate ordering controls from lifecycle replacement behavior and verify whether create_before_destroy is valid for the provider. That different correction addresses: A resource is being replaced because a required argument changed, but a reviewer assumes depends_on alone forces zero-downtime recreation. It does not establish that the Mariner Infrastructure Group issue has been corrected: A configuration needs a per-environment local constant reused across several resources but duplicates the entire calculation in every block. The relevant measured outcome is: A changed environment input updates all calculated uses consistently without repeated expressions.

Question 421

A Terraform maintainer supporting Eastfield Technology Partners investigates this scenario: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. Which engineering change most directly resolves this issue?

  1. Load credentials through an authorized secret-management integration such as Vault and avoid committing or echoing values.
  2. Use an explicit depends_on when no usable data reference expresses the real dependency.
  3. Limit destroy expectations to objects tracked in the active state and manage other infrastructure separately.
  4. Refresh state through a normal or refresh-only plan and evaluate the resulting drift before applying any configuration change.

Explanation

Correct Answer

B:

Use an explicit depends_on when no usable data reference expresses the real dependency. This is targeted to the observed Terraform issue: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. At Eastfield Technology Partners, the acceptance criterion is not merely a valid plan; the team should verify: The dependency graph orders the instance after the access policy during the controlled plan/apply.

Incorrect Answers

A:

Load credentials through an authorized secret-management integration such as Vault and avoid committing or echoing values. This would be suitable for a DIFFERENT Terraform problem: A team exposes production credentials in a committed Terraform configuration and claims using Vault is unnecessary because outputs are marked sensitive. It does not directly resolve the Eastfield Technology Partners failure: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. The required acceptance evidence instead is: The dependency graph orders the instance after the access policy during the controlled plan/apply.

C:

Limit destroy expectations to objects tracked in the active state and manage other infrastructure separately. This would be suitable for a DIFFERENT Terraform problem: A maintainer expects terraform destroy to delete arbitrary infrastructure in the account that Terraform has never managed. It does not directly resolve the Eastfield Technology Partners failure: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. The required acceptance evidence instead is: The dependency graph orders the instance after the access policy during the controlled plan/apply.

D:

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 Eastfield Technology Partners failure: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. The required acceptance evidence instead is: The dependency graph orders the instance after the access policy during the controlled plan/apply.

Question 422

A controlled test for Eastfield Technology Partners focuses on the original failure: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. What acceptance evidence is most relevant to this reported issue?

  1. The plan reports the observed difference and the operator records an intentional corrective decision.
  2. Repository and log scans find no hardcoded secret while an authorized run retrieves the needed credential.
  3. The dependency graph orders the instance after the access policy during the controlled plan/apply.
  4. The destruction plan lists only managed resources and leaves unrelated untracked assets intact.

Explanation

Correct Answer

C:

The dependency graph orders the instance after the access policy during the controlled plan/apply. This directly verifies the corrective action: Use an explicit depends_on when no usable data reference expresses the real dependency. The measured result specifically addresses the failure at Eastfield Technology Partners: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists.

Incorrect Answers

A:

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 Eastfield Technology Partners issue has been corrected: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. The relevant measured outcome is: The dependency graph orders the instance after the access policy during the controlled plan/apply.

B:

Repository and log scans find no hardcoded secret while an authorized run retrieves the needed credential. This evidence would validate a DIFFERENT correction: Load credentials through an authorized secret-management integration such as Vault and avoid committing or echoing values. That different correction addresses: A team exposes production credentials in a committed Terraform configuration and claims using Vault is unnecessary because outputs are marked sensitive. It does not establish that the Eastfield Technology Partners issue has been corrected: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. The relevant measured outcome is: The dependency graph orders the instance after the access policy during the controlled plan/apply.

D:

The destruction plan lists only managed resources and leaves unrelated untracked assets intact. This evidence would validate a DIFFERENT correction: Limit destroy expectations to objects tracked in the active state and manage other infrastructure separately. That different correction addresses: A maintainer expects terraform destroy to delete arbitrary infrastructure in the account that Terraform has never managed. It does not establish that the Eastfield Technology Partners issue has been corrected: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. The relevant measured outcome is: The dependency graph orders the instance after the access policy during the controlled plan/apply.

Question 423

A proposed infrastructure change for Crestline Digital Operations must address the following observed failure: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. How should the Terraform engineer correct this specific failure?

  1. Describe the intended network and related resources as Terraform configuration managed through a reviewed version-control workflow.
  2. Distinguish syntactic/schema validation from plan and apply, and run the appropriate workflow stage.
  3. Transform the collection into a map keyed by a stable unique identifier before using for_each.
  4. Use an explicit depends_on when no usable data reference expresses the real dependency.

Explanation

Correct Answer

D:

Use an explicit depends_on when no usable data reference expresses the real dependency. This is targeted to the observed Terraform issue: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. At Crestline Digital Operations, the acceptance criterion is not merely a valid plan; the team should verify: The dependency graph orders the instance after the access policy during the controlled plan/apply.

Incorrect Answers

A:

Describe the intended network and related resources as Terraform configuration managed through a reviewed version-control workflow. This would be suitable for a DIFFERENT Terraform problem: A small platform team provisions virtual networks through undocumented web-console clicks, so nobody can explain what the next environment should contain. It does not directly resolve the Crestline Digital Operations failure: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. The required acceptance evidence instead is: The dependency graph orders the instance after the access policy during the controlled plan/apply.

B:

Distinguish syntactic/schema validation from plan and apply, and run the appropriate workflow stage. This would be suitable for a DIFFERENT Terraform problem: An engineer believes terraform validate also creates the declared infrastructure and announces deployment after a successful validation. It does not directly resolve the Crestline Digital Operations failure: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. The required acceptance evidence instead is: The dependency graph orders the instance after the access policy during the controlled plan/apply.

C:

Transform the collection into a map keyed by a stable unique identifier before using for_each. This would be suitable for a DIFFERENT Terraform problem: A for_each expression needs stable, unique resource keys but receives a list of objects without a keyed identity. It does not directly resolve the Crestline Digital Operations failure: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. The required acceptance evidence instead is: The dependency graph orders the instance after the access policy during the controlled plan/apply.

Question 424

The Terraform change owner at Crestline Digital Operations seeks a verifiable outcome for: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. Which verification outcome is the strongest evidence of the required correction?

  1. The dependency graph orders the instance after the access policy during the controlled plan/apply.
  2. A clean environment is planned from the checked-in configuration and produces the expected inventory without reconstructing console click history.
  3. Validation reports configuration consistency while the actual resource creation is confirmed only after apply.
  4. Reordering the source objects produces no spurious address changes in the resulting plan.

Explanation

Correct Answer

A:

The dependency graph orders the instance after the access policy during the controlled plan/apply. This directly verifies the corrective action: Use an explicit depends_on when no usable data reference expresses the real dependency. The measured result specifically addresses the failure at Crestline Digital Operations: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists.

Incorrect Answers

B:

A clean environment is planned from the checked-in configuration and produces the expected inventory without reconstructing console click history. This evidence would validate a DIFFERENT correction: Describe the intended network and related resources as Terraform configuration managed through a reviewed version-control workflow. That different correction addresses: A small platform team provisions virtual networks through undocumented web-console clicks, so nobody can explain what the next environment should contain. It does not establish that the Crestline Digital Operations issue has been corrected: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. The relevant measured outcome is: The dependency graph orders the instance after the access policy during the controlled plan/apply.

C:

Validation reports configuration consistency while the actual resource creation is confirmed only after apply. This evidence would validate a DIFFERENT correction: Distinguish syntactic/schema validation from plan and apply, and run the appropriate workflow stage. That different correction addresses: An engineer believes terraform validate also creates the declared infrastructure and announces deployment after a successful validation. It does not establish that the Crestline Digital Operations issue has been corrected: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. The relevant measured outcome is: The dependency graph orders the instance after the access policy during the controlled plan/apply.

D:

Reordering the source objects produces no spurious address changes in the resulting plan. This evidence would validate a DIFFERENT correction: Transform the collection into a map keyed by a stable unique identifier before using for_each. That different correction addresses: A for_each expression needs stable, unique resource keys but receives a list of objects without a keyed identity. It does not establish that the Crestline Digital Operations issue has been corrected: A compute instance refers to an access policy only by a literal name and Terraform may create it before the policy exists. The relevant measured outcome is: The dependency graph orders the instance after the access policy during the controlled plan/apply.

Question 425

A proposed infrastructure change for Stonebrook Software must address the following observed failure: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. Which proposed fix addresses the reported root cause?

  1. Correct the mapping using supported state move/removal and import tooling after taking backups.
  2. Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL.
  3. Consider lifecycle create_before_destroy where the provider and naming constraints permit parallel replacement.
  4. Give the bucket a single responsible resource owner and let other configurations consume a data lookup or approved outputs.

Explanation

Correct Answer

C:

Consider lifecycle create_before_destroy where the provider and naming constraints permit parallel replacement. This is targeted to the observed Terraform issue: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. At Stonebrook Software, the acceptance criterion is not merely a valid plan; the team should verify: A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

Incorrect Answers

A:

Correct the mapping using supported state move/removal and import tooling after taking backups. This would be suitable for a DIFFERENT Terraform problem: An engineer imports a shared resource to the wrong address and then manually edits terraform.tfstate with a text editor. It does not directly resolve the Stonebrook Software failure: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. The required acceptance evidence instead is: A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

B:

Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL. This would be suitable for a DIFFERENT Terraform problem: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. It does not directly resolve the Stonebrook Software failure: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. The required acceptance evidence instead is: A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

D:

Give the bucket a single responsible resource owner and let other configurations consume a data lookup or approved outputs. This would be suitable for a DIFFERENT Terraform problem: A migration design unintentionally manages the same existing bucket in two root modules and causes competing changes. It does not directly resolve the Stonebrook Software failure: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. The required acceptance evidence instead is: A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

Question 426

The Terraform change owner at Stonebrook Software seeks a verifiable outcome for: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. What result would demonstrate that the identified problem is actually resolved?

  1. Only one state contains the managed bucket address while consumers read the shared identifier without duplicate ownership.
  2. An authorized fresh init retrieves the module while a read-only unauthorized identity cannot.
  3. The state list and inspected resource ID match the intended new address without unplanned object deletion.
  4. A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

Explanation

Correct Answer

D:

A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it. This directly verifies the corrective action: Consider lifecycle create_before_destroy where the provider and naming constraints permit parallel replacement. The measured result specifically addresses the failure at Stonebrook Software: A database is replaced while an application requires the new endpoint to become available before the old instance is removed.

Incorrect Answers

A:

Only one state contains the managed bucket address while consumers read the shared identifier without duplicate ownership. This evidence would validate a DIFFERENT correction: Give the bucket a single responsible resource owner and let other configurations consume a data lookup or approved outputs. That different correction addresses: A migration design unintentionally manages the same existing bucket in two root modules and causes competing changes. It does not establish that the Stonebrook Software issue has been corrected: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. The relevant measured outcome is: A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

B:

An authorized fresh init retrieves the module while a read-only unauthorized identity cannot. This evidence would validate a DIFFERENT correction: Configure secure authenticated source access for initialization without embedding permanent credentials in the module URL. That different correction addresses: A project deploys a child module from a private repository but does not supply credentials supported by the module source transport. It does not establish that the Stonebrook Software issue has been corrected: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. The relevant measured outcome is: A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

C:

The state list and inspected resource ID match the intended new address without unplanned object deletion. This evidence would validate a DIFFERENT correction: Correct the mapping using supported state move/removal and import tooling after taking backups. That different correction addresses: An engineer imports a shared resource to the wrong address and then manually edits terraform.tfstate with a text editor. It does not establish that the Stonebrook Software issue has been corrected: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. The relevant measured outcome is: A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

Question 427

During repository review at Summitline Services, the platform team reports: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. Which engineering change most directly resolves this issue?

  1. Consider lifecycle create_before_destroy where the provider and naming constraints permit parallel replacement.
  2. Use a state mv or moved block for address refactoring when the same remote object should remain managed.
  3. Keep variables as supplied configuration inputs and use resource attributes or outputs for computed results.
  4. Pass an explicit providers mapping into the module and declare configuration_aliases where required.

Explanation

Correct Answer

A:

Consider lifecycle create_before_destroy where the provider and naming constraints permit parallel replacement. This is targeted to the observed Terraform issue: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. At Summitline Services, the acceptance criterion is not merely a valid plan; the team should verify: A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

Incorrect Answers

B:

Use a state mv or moved block for address refactoring when the same remote object should remain managed. This would be suitable for a DIFFERENT Terraform problem: A resource is renamed in configuration but a team uses state rm, then wonders why Terraform plans to create a duplicate object. It does not directly resolve the Summitline Services failure: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. The required acceptance evidence instead is: A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

C:

Keep variables as supplied configuration inputs and use resource attributes or outputs for computed results. This would be suitable for a DIFFERENT Terraform problem: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. It does not directly resolve the Summitline Services failure: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. The required acceptance evidence instead is: A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

D:

Pass an explicit providers mapping into the module and declare configuration_aliases where required. This would be suitable for a DIFFERENT Terraform problem: A child module has to create objects in a secondary account, but the caller passes only ordinary input variables and not the provider alias. It does not directly resolve the Summitline Services failure: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. The required acceptance evidence instead is: A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

Question 428

An acceptance reviewer at Summitline Services must validate the fix for: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. What acceptance evidence is most relevant to this reported issue?

  1. The state mapping moves to the new address and the plan retains the existing remote identity.
  2. A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.
  3. The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs.
  4. The module's resources resolve the intended secondary provider during validation and planning.

Explanation

Correct Answer

B:

A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it. This directly verifies the corrective action: Consider lifecycle create_before_destroy where the provider and naming constraints permit parallel replacement. The measured result specifically addresses the failure at Summitline Services: A database is replaced while an application requires the new endpoint to become available before the old instance is removed.

Incorrect Answers

A:

The state mapping moves to the new address and the plan retains the existing remote identity. This evidence would validate a DIFFERENT correction: Use a state mv or moved block for address refactoring when the same remote object should remain managed. That different correction addresses: A resource is renamed in configuration but a team uses state rm, then wonders why Terraform plans to create a duplicate object. It does not establish that the Summitline Services issue has been corrected: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. The relevant measured outcome is: A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

C:

The plan uses the supplied variable value while computed resource IDs appear only in resource attributes or outputs. This evidence would validate a DIFFERENT correction: Keep variables as supplied configuration inputs and use resource attributes or outputs for computed results. That different correction addresses: An engineer treats an input variable as mutable run-time state and expects a resource to rewrite the variable during apply. It does not establish that the Summitline Services issue has been corrected: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. The relevant measured outcome is: A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

D:

The module's resources resolve the intended secondary provider during validation and planning. This evidence would validate a DIFFERENT correction: Pass an explicit providers mapping into the module and declare configuration_aliases where required. That different correction addresses: A child module has to create objects in a secondary account, but the caller passes only ordinary input variables and not the provider alias. It does not establish that the Summitline Services issue has been corrected: A database is replaced while an application requires the new endpoint to become available before the old instance is removed. The relevant measured outcome is: A replacement plan shows the new instance scheduled before destruction of the old one and confirms naming constraints permit it.

Question 429

During repository review at Crescent Infrastructure Team, the platform team reports: A service's immutable globally unique name prevents simultaneous duplicate instances, but engineers enable create_before_destroy without checking constraints. Which action would best restore the intended infrastructure-as-code workflow?

  1. Define an output in the child module and, if needed, forward it through a root output.
  2. Pass provider configurations from the caller and avoid nested provider configuration in reusable child modules where possible.
  3. Run terraform plan and examine create/update/delete or replace actions, not just the source diff.
  4. Review name uniqueness and lifecycle tradeoffs, choosing a safe migration or downtime approach instead of assuming create_before_destroy can always work.

Explanation

Correct Answer

D:

Review name uniqueness and lifecycle tradeoffs, choosing a safe migration or downtime approach instead of assuming create_before_destroy can always work. This is targeted to the observed Terraform issue: A service's immutable globally unique name prevents simultaneous duplicate instances, but engineers enable create_before_destroy without checking constraints. At Crescent Infrastructure Team, the acceptance criterion is not merely a valid plan; the team should verify: A controlled replacement plan honors actual uniqueness constraints without failing on an unavoidable duplicate name.

Incorrect Answers

A:

Define an output in the child module and, if needed, forward it through a root output. This would be suitable for a DIFFERENT Terraform problem: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. It does not directly resolve the Crescent Infrastructure Team failure: A service's immutable globally unique name prevents simultaneous duplicate instances, but engineers enable create_before_destroy without checking constraints. The required acceptance evidence instead is: A controlled replacement plan honors actual uniqueness constraints without failing on an unavoidable duplicate name.

B:

Pass provider configurations from the caller and avoid nested provider configuration in reusable child modules where possible. This would be suitable for a DIFFERENT Terraform problem: An application module quietly configures an independent provider account, conflicting with the root's deployment credentials. It does not directly resolve the Crescent Infrastructure Team failure: A service's immutable globally unique name prevents simultaneous duplicate instances, but engineers enable create_before_destroy without checking constraints. The required acceptance evidence instead is: A controlled replacement plan honors actual uniqueness constraints without failing on an unavoidable duplicate name.

C:

Run terraform plan and examine create/update/delete or replace actions, not just the source diff. This would be suitable for a DIFFERENT Terraform problem: A proposed firewall change contains an unintended replacement, but the team reviews only changed HCL lines. It does not directly resolve the Crescent Infrastructure Team failure: A service's immutable globally unique name prevents simultaneous duplicate instances, but engineers enable create_before_destroy without checking constraints. The required acceptance evidence instead is: A controlled replacement plan honors actual uniqueness constraints without failing on an unavoidable duplicate name.

Question 430

An acceptance reviewer at Crescent Infrastructure Team must validate the fix for: A service's immutable globally unique name prevents simultaneous duplicate instances, but engineers enable create_before_destroy without checking constraints. Which observation best confirms that the proposed correction worked?

  1. A controlled replacement plan honors actual uniqueness constraints without failing on an unavoidable duplicate name.
  2. The plan highlights the specific replacement and allows reviewers to block it.
  3. After apply, terraform output returns the expected endpoint from the managed resource.
  4. The module's resources resolve the caller-approved account and no unexpected credentials are used.

Explanation

Correct Answer

A:

A controlled replacement plan honors actual uniqueness constraints without failing on an unavoidable duplicate name. This directly verifies the corrective action: Review name uniqueness and lifecycle tradeoffs, choosing a safe migration or downtime approach instead of assuming create_before_destroy can always work. The measured result specifically addresses the failure at Crescent Infrastructure Team: A service's immutable globally unique name prevents simultaneous duplicate instances, but engineers enable create_before_destroy without checking constraints.

Incorrect Answers

B:

The plan highlights the specific replacement and allows reviewers to block it. This evidence would validate a DIFFERENT correction: Run terraform plan and examine create/update/delete or replace actions, not just the source diff. That different correction addresses: A proposed firewall change contains an unintended replacement, but the team reviews only changed HCL lines. It does not establish that the Crescent Infrastructure Team issue has been corrected: A service's immutable globally unique name prevents simultaneous duplicate instances, but engineers enable create_before_destroy without checking constraints. The relevant measured outcome is: A controlled replacement plan honors actual uniqueness constraints without failing on an unavoidable duplicate name.

C:

After apply, terraform output returns the expected endpoint from the managed resource. This evidence would validate a DIFFERENT correction: Define an output in the child module and, if needed, forward it through a root output. That different correction addresses: A child module computes an application endpoint, but the root stack cannot expose it to deployment automation. It does not establish that the Crescent Infrastructure Team issue has been corrected: A service's immutable globally unique name prevents simultaneous duplicate instances, but engineers enable create_before_destroy without checking constraints. The relevant measured outcome is: A controlled replacement plan honors actual uniqueness constraints without failing on an unavoidable duplicate name.

D:

The module's resources resolve the caller-approved account and no unexpected credentials are used. This evidence would validate a DIFFERENT correction: Pass provider configurations from the caller and avoid nested provider configuration in reusable child modules where possible. That different correction addresses: An application module quietly configures an independent provider account, conflicting with the root's deployment credentials. It does not establish that the Crescent Infrastructure Team issue has been corrected: A service's immutable globally unique name prevents simultaneous duplicate instances, but engineers enable create_before_destroy without checking constraints. The relevant measured outcome is: A controlled replacement plan honors actual uniqueness constraints without failing on an unavoidable duplicate name.