HashiCorp Terraform Associate 004 Practice Test 10
Question 90
When reviewing a reusable Terraform HCL configuration before deployment, the following condition occurs: A shared Terraform module accepts CIDR strings and a malformed network input reaches provisioning before anyone notices it violates approved addressing conventions. The engineer must respect declared resource contracts and data security boundaries. Which TWO complementary choices identify the cause and implement the appropriate fix? Select TWO.
- Inspect variable input expectations and whether an explicit validation condition can reject invalid strings early.
- Review input and output sensitivity declarations and inspect what the plan or output commands will display.
- Use a lifecycle precondition with a precise boolean condition and actionable error message on the resource.
- Add an explicit depends_on reference to the necessary policy attachment where an ordinary attribute reference cannot express the relationship.
- Add a variable validation block with an appropriate condition and useful error_message for unacceptable CIDR input.
Explanation
Correct Answers
A:Inspect variable input expectations and whether an explicit validation condition can reject invalid strings early. Custom variable validation enforces module input contracts before incorrect values reach resource creation. A justified correction is: Add a variable validation block with an appropriate condition and useful error_message for unacceptable CIDR input. This forms one element of the required two-step diagnosis and correction.
E:Add a variable validation block with an appropriate condition and useful error_message for unacceptable CIDR input. Custom variable validation enforces module input contracts before incorrect values reach resource creation. Confirm the cause with: Inspect variable input expectations and whether an explicit validation condition can reject invalid strings early. A concrete acceptance test is: An invalid subnet input fails with a clear Terraform validation error while authorized values continue to plan. This forms one element of the required two-step diagnosis and correction.
Incorrect Answers
B:Review input and output sensitivity declarations and inspect what the plan or output commands will display. This relates to sensitive output display behavior rather than the matching diagnosis-and-remediation pair required here. Check: Inspect variable input expectations and whether an explicit validation condition can reject invalid strings early. Then change: Add a variable validation block with an appropriate condition and useful error_message for unacceptable CIDR input.
C:Use a lifecycle precondition with a precise boolean condition and actionable error message on the resource. This relates to resource precondition for unsafe configuration rather than the matching diagnosis-and-remediation pair required here. Check: Inspect variable input expectations and whether an explicit validation condition can reject invalid strings early. Then change: Add a variable validation block with an appropriate condition and useful error_message for unacceptable CIDR input.
D:Add an explicit depends_on reference to the necessary policy attachment where an ordinary attribute reference cannot express the relationship. This relates to explicit depends_on for behavior-only dependencies rather than the matching diagnosis-and-remediation pair required here. Check: Inspect variable input expectations and whether an explicit validation condition can reject invalid strings early. Then change: Add a variable validation block with an appropriate condition and useful error_message for unacceptable CIDR input.
Question 91
During a controlled module integration test for a production Terraform stack, the following condition occurs: A name-sensitive network endpoint needs replacement, but Terraform plans to remove the old endpoint first and an application would become unavailable. The desired fix must avoid unrelated resource changes. Select TWO: the decisive first check and the change that directly addresses the problem.
- Expose the required network identifier with an output in the child module and reference module.network.<output_name> from the root.
- Inspect the provider's replacement behavior, uniqueness constraints, and whether old and new instances can coexist.
- Inspect the variable declaration, resource schema, and stored state behavior for that password input.
- Add an explicit depends_on reference to the necessary policy attachment where an ordinary attribute reference cannot express the relationship.
- Use lifecycle create_before_destroy when the platform allows coexistence and design unique names or a controlled cutover if required.
Explanation
Correct Answers
B:Inspect the provider's replacement behavior, uniqueness constraints, and whether old and new instances can coexist. create_before_destroy changes replacement ordering but cannot override remote API uniqueness rules or capacity limits. A justified correction is: Use lifecycle create_before_destroy when the platform allows coexistence and design unique names or a controlled cutover if required. This forms one element of the required two-step diagnosis and correction.
E:Use lifecycle create_before_destroy when the platform allows coexistence and design unique names or a controlled cutover if required. create_before_destroy changes replacement ordering but cannot override remote API uniqueness rules or capacity limits. Confirm the cause with: Inspect the provider's replacement behavior, uniqueness constraints, and whether old and new instances can coexist. A concrete acceptance test is: The replacement can come online and pass health checks before the former endpoint is destroyed when provider constraints permit. This forms one element of the required two-step diagnosis and correction.
Incorrect Answers
A:Expose the required network identifier with an output in the child module and reference module.network.<output_name> from the root. This relates to module output references across composition rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the provider's replacement behavior, uniqueness constraints, and whether old and new instances can coexist. Then change: Use lifecycle create_before_destroy when the platform allows coexistence and design unique names or a controlled cutover if required.
C:Inspect the variable declaration, resource schema, and stored state behavior for that password input. This relates to sensitive variable does not erase state secrets rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the provider's replacement behavior, uniqueness constraints, and whether old and new instances can coexist. Then change: Use lifecycle create_before_destroy when the platform allows coexistence and design unique names or a controlled cutover if required.
D:Add an explicit depends_on reference to the necessary policy attachment where an ordinary attribute reference cannot express the relationship. This relates to explicit depends_on for behavior-only dependencies rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the provider's replacement behavior, uniqueness constraints, and whether old and new instances can coexist. Then change: Use lifecycle create_before_destroy when the platform allows coexistence and design unique names or a controlled cutover if required.
Question 92
As the deployment team prepares a reviewed Terraform CLI change, the following condition occurs: A CI pipeline generates a plan for review but later runs terraform apply without supplying the saved plan, allowing freshly computed changes that were not approved. The change must preserve the distinction between previewing and modifying infrastructure. Select TWO: the decisive first check and the change that directly addresses the problem.
- Generate a versioned saved plan and apply the reviewed binary plan file within the approved run context, protecting its sensitive content.
- Check whether configuration was written, providers initialized, execution plan inspected, and the apply decision approved in the intended order.
- Use a dedicated isolated workspace/state and inspect terraform plan -destroy before removing its tracked infrastructure.
- Inspect whether the approved artifact was produced by terraform plan -out and whether apply consumes exactly that plan artifact.
- Review and approve a safe migration or redesign the configuration when replacement is unacceptable, rather than blindly applying.
Explanation
Correct Answers
A:Generate a versioned saved plan and apply the reviewed binary plan file within the approved run context, protecting its sensitive content. An applied saved plan preserves the planned decisions at creation time; plan artifacts can hold secrets and require restricted storage. Confirm the cause with: Inspect whether the approved artifact was produced by terraform plan -out and whether apply consumes exactly that plan artifact. A concrete acceptance test is: The apply executes the selected reviewed plan instead of silently producing a new unreviewed plan from changed inputs. This forms one element of the required two-step diagnosis and correction.
D:Inspect whether the approved artifact was produced by terraform plan -out and whether apply consumes exactly that plan artifact. An applied saved plan preserves the planned decisions at creation time; plan artifacts can hold secrets and require restricted storage. A justified correction is: Generate a versioned saved plan and apply the reviewed binary plan file within the approved run context, protecting its sensitive content. This forms one element of the required two-step diagnosis and correction.
Incorrect Answers
B:Check whether configuration was written, providers initialized, execution plan inspected, and the apply decision approved in the intended order. This relates to core write plan apply workflow order rather than the matching diagnosis-and-remediation pair required here. Check: Inspect whether the approved artifact was produced by terraform plan -out and whether apply consumes exactly that plan artifact. Then change: Generate a versioned saved plan and apply the reviewed binary plan file within the approved run context, protecting its sensitive content.
C:Use a dedicated isolated workspace/state and inspect terraform plan -destroy before removing its tracked infrastructure. This relates to terraform destroy is managed-scope deletion rather than the matching diagnosis-and-remediation pair required here. Check: Inspect whether the approved artifact was produced by terraform plan -out and whether apply consumes exactly that plan artifact. Then change: Generate a versioned saved plan and apply the reviewed binary plan file within the approved run context, protecting its sensitive content.
E:Review and approve a safe migration or redesign the configuration when replacement is unacceptable, rather than blindly applying. This relates to plan distinguishes replacement from in-place update rather than the matching diagnosis-and-remediation pair required here. Check: Inspect whether the approved artifact was produced by terraform plan -out and whether apply consumes exactly that plan artifact. Then change: Generate a versioned saved plan and apply the reviewed binary plan file within the approved run context, protecting its sensitive content.
Question 93
When maintaining Terraform modules used by several application teams, the following condition occurs: A child Terraform module refers directly to var.environment declared only in its parent, causing a missing-variable diagnostic. The module interface must remain stable and reviewable. Which TWO options together provide the relevant diagnosis and its targeted remediation? Select TWO.
- Use a valid registry module address when controlling versions with the module version argument, or pin an appropriate Git ref in a VCS source URL.
- Inspect the child module's variable declarations and the arguments passed by its calling module block.
- Compare the upgraded module's documented input/output contract to root references before approving the module version change.
- Add the intended child output declaration and access it through module.network.<output_name> in the caller.
- Declare an input variable in the child module and pass the parent's value explicitly as a module argument.
Explanation
Correct Answers
B:Inspect the child module's variable declarations and the arguments passed by its calling module block. Input variables are scoped to their modules and must cross a module boundary through an explicit interface. A justified correction is: Declare an input variable in the child module and pass the parent's value explicitly as a module argument. This forms one element of the required two-step diagnosis and correction.
E:Declare an input variable in the child module and pass the parent's value explicitly as a module argument. Input variables are scoped to their modules and must cross a module boundary through an explicit interface. Confirm the cause with: Inspect the child module's variable declarations and the arguments passed by its calling module block. A concrete acceptance test is: The child module receives the intended environment value without accessing variables declared only in its caller. This forms one element of the required two-step diagnosis and correction.
Incorrect Answers
A:Use a valid registry module address when controlling versions with the module version argument, or pin an appropriate Git ref in a VCS source URL. This relates to registry module source naming contract rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the child module's variable declarations and the arguments passed by its calling module block. Then change: Declare an input variable in the child module and pass the parent's value explicitly as a module argument.
C:Compare the upgraded module's documented input/output contract to root references before approving the module version change. This relates to module upgrade plan review with changed outputs rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the child module's variable declarations and the arguments passed by its calling module block. Then change: Declare an input variable in the child module and pass the parent's value explicitly as a module argument.
D:Add the intended child output declaration and access it through module.network.<output_name> in the caller. This relates to child output exposure to calling module rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the child module's variable declarations and the arguments passed by its calling module block. Then change: Declare an input variable in the child module and pass the parent's value explicitly as a module argument.
Question 94
When maintaining Terraform modules used by several application teams, the following condition occurs: A monorepo contains many Terraform modules, but a root module downloads the entire Git repository as though its desired network child module lives at repository root. The module interface must remain stable and reviewable. Which TWO complementary choices identify the cause and implement the appropriate fix? Select TWO.
- Pin the Git module source to a reviewed immutable commit or controlled tag and update it through an explicit change review.
- Use the supported Git module source form with the correct double-slash subdirectory and pinned revision ref.
- Inspect the parent composition and whether the network child provides an output representing the created subnet.
- Inspect the Git source URL, requested revision ref, and the actual module subdirectory layout.
- Set the source to an accurate local relative module path and initialize or validate from the correct root directory.
Explanation
Correct Answers
B:Use the supported Git module source form with the correct double-slash subdirectory and pinned revision ref. Terraform module source addresses can include a package subdirectory; the path after double slash identifies the module inside it. Confirm the cause with: Inspect the Git source URL, requested revision ref, and the actual module subdirectory layout. A concrete acceptance test is: Initialization selects the network module code from the intended repository path and revision rather than unrelated root files. This forms one element of the required two-step diagnosis and correction.
D:Inspect the Git source URL, requested revision ref, and the actual module subdirectory layout. Terraform module source addresses can include a package subdirectory; the path after double slash identifies the module inside it. A justified correction is: Use the supported Git module source form with the correct double-slash subdirectory and pinned revision ref. This forms one element of the required two-step diagnosis and correction.
Incorrect Answers
A:Pin the Git module source to a reviewed immutable commit or controlled tag and update it through an explicit change review. This relates to git module ref pin rather than floating main branch rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the Git source URL, requested revision ref, and the actual module subdirectory layout. Then change: Use the supported Git module source form with the correct double-slash subdirectory and pinned revision ref.
C:Inspect the parent composition and whether the network child provides an output representing the created subnet. This relates to module outputs coordinate dependencies instead of duplicate data rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the Git source URL, requested revision ref, and the actual module subdirectory layout. Then change: Use the supported Git module source form with the correct double-slash subdirectory and pinned revision ref.
E:Set the source to an accurate local relative module path and initialize or validate from the correct root directory. This relates to local child module source path resolution rather than the matching diagnosis-and-remediation pair required here. Check: Inspect the Git source URL, requested revision ref, and the actual module subdirectory layout. Then change: Use the supported Git module source form with the correct double-slash subdirectory and pinned revision ref.
Question 95
During an operational review of a Terraform state backend, the following condition occurs: A team configures remote object storage for state and assumes every backend automatically provides the same distributed locking guarantees. The team must preserve managed-object identity and safe collaboration. What targeted engineering response should the team implement?
- Select the intended workspace before planning and check the corresponding workspace-specific state directory.
- Use one supported state integration for the root; choose the cloud block when adopting HCP Terraform's integrated workflow.
- Use terraform force-unlock only after confirming the lock is stale and specifying its correct lock ID.
- Select a backend with supported state-locking capabilities and configure its required access controls appropriately.
Explanation
Correct Answer
D:Select a backend with supported state-locking capabilities and configure its required access controls appropriately. Remote storage and robust state locking are related but distinct backend capabilities; locking depends on backend implementation. Confirm the cause with: Check the selected backend's documentation for locking support and the actual concurrent-apply behavior. A concrete acceptance test is: Concurrent runs against the same state are serialized according to the backend's supported locking contract.
Incorrect Answers
A:Select the intended workspace before planning and check the corresponding workspace-specific state directory. This could address local workspace state separation, but it does not correct the indicated backend-specific state locking support mechanism. The relevant fix is: Select a backend with supported state-locking capabilities and configure its required access controls appropriately.
B:Use one supported state integration for the root; choose the cloud block when adopting HCP Terraform's integrated workflow. This could address hcp cloud integration versus remote backend, but it does not correct the indicated backend-specific state locking support mechanism. The relevant fix is: Select a backend with supported state-locking capabilities and configure its required access controls appropriately.
C:Use terraform force-unlock only after confirming the lock is stale and specifying its correct lock ID. This could address force unlock requires stale-lock verification, but it does not correct the indicated backend-specific state locking support mechanism. The relevant fix is: Select a backend with supported state-locking capabilities and configure its required access controls appropriately.
Question 96
During an operational review of a Terraform state backend, the following condition occurs: A team assumes a default Terraform directory automatically stores state in a centralized shared service, but every engineer sees their own terraform.tfstate file. The team must preserve managed-object identity and safe collaboration. Which Terraform configuration or workflow change most directly corrects the described issue?
- Configure a suitable remote backend for shared operations or explicitly isolate disposable local state with restricted permissions.
- Declare a supported backend block with a reviewed storage location, then initialize and migrate state under controlled conditions.
- Select the intended workspace before planning and check the corresponding workspace-specific state directory.
- Use terraform force-unlock only after confirming the lock is stale and specifying its correct lock ID.
Explanation
Correct Answer
A:Configure a suitable remote backend for shared operations or explicitly isolate disposable local state with restricted permissions. The local backend persists state on the executing filesystem; it does not provide shared remote coordination by default. Confirm the cause with: Inspect the backend configuration and state file location on each workstation to identify local state behavior. A concrete acceptance test is: Authorized team members reference one intended remote snapshot rather than maintaining conflicting independent local files.
Incorrect Answers
B:Declare a supported backend block with a reviewed storage location, then initialize and migrate state under controlled conditions. This could address remote backend block configuration, but it does not correct the indicated local backend path and exposure mechanism. The relevant fix is: Configure a suitable remote backend for shared operations or explicitly isolate disposable local state with restricted permissions.
C:Select the intended workspace before planning and check the corresponding workspace-specific state directory. This could address local workspace state separation, but it does not correct the indicated local backend path and exposure mechanism. The relevant fix is: Configure a suitable remote backend for shared operations or explicitly isolate disposable local state with restricted permissions.
D:Use terraform force-unlock only after confirming the lock is stale and specifying its correct lock ID. This could address force unlock requires stale-lock verification, but it does not correct the indicated local backend path and exposure mechanism. The relevant fix is: Configure a suitable remote backend for shared operations or explicitly isolate disposable local state with restricted permissions.
Question 97
During a governed HCP Terraform workspace rollout, the following condition occurs: A platform administrator copies the same nonsecret provider region and organization policy values into 20 workspaces, and copies drift apart after an update. The organization must retain auditable authorization for runs and state. Which proposed remediation solves this failure without masking its cause?
- Attach supported Sentinel or OPA policies to the appropriate HCP Terraform workspaces with a suitable mandatory enforcement level.
- Create a controlled HCP Terraform variable set scoped to the intended workspaces and remove conflicting duplicated values.
- Organize related workspaces into appropriate HCP projects and apply reviewed permissions and conventions for each group.
- Configure an authorized VCS-driven workspace with the appropriate repository and branch and review the plan/apply settings.
Explanation
Correct Answer
B:Create a controlled HCP Terraform variable set scoped to the intended workspaces and remove conflicting duplicated values. HCP variable sets centralize common workspace variables; explicit assignment scope prevents accidental cross-project changes. Confirm the cause with: Inspect which settings are truly shared and whether variable sets are already assigned at the correct project or workspace scope. A concrete acceptance test is: A shared setting update reaches exactly the approved workspaces while unrelated projects retain independent configuration.
Incorrect Answers
A:Attach supported Sentinel or OPA policies to the appropriate HCP Terraform workspaces with a suitable mandatory enforcement level. This could address hcp terraform policy enforcement governance, but it does not correct the indicated hcp workspace variable sets share scoped configuration mechanism. The relevant fix is: Create a controlled HCP Terraform variable set scoped to the intended workspaces and remove conflicting duplicated values.
C:Organize related workspaces into appropriate HCP projects and apply reviewed permissions and conventions for each group. This could address hcp projects group workspaces by ownership, but it does not correct the indicated hcp workspace variable sets share scoped configuration mechanism. The relevant fix is: Create a controlled HCP Terraform variable set scoped to the intended workspaces and remove conflicting duplicated values.
D:Configure an authorized VCS-driven workspace with the appropriate repository and branch and review the plan/apply settings. This could address vcs-driven hcp terraform run on approved changes, but it does not correct the indicated hcp workspace variable sets share scoped configuration mechanism. The relevant fix is: Create a controlled HCP Terraform variable set scoped to the intended workspaces and remove conflicting duplicated values.
Question 98
During a cross-platform infrastructure standardization exercise, the following condition occurs: Two automation systems both change the same cloud storage policy, and repeated Terraform applies continuously undo the other controller's modifications. The decision must preserve ownership and minimize undocumented changes. What should the engineer inspect FIRST to distinguish this issue from unrelated failures?
- Inspect provider source requirements, authentication scopes, and whether the on-premises and hosted platforms expose different APIs.
- Identify which attributes Terraform declares and which external system writes to the same managed object between runs.
- Compare the runbook's procedural steps with a version-controlled declarative inventory of desired resources and their attributes.
- Compare repeated environment requirements against current configuration differences and find parameters that should vary intentionally.
Explanation
Correct Answer
B:Identify which attributes Terraform declares and which external system writes to the same managed object between runs. Declarative reconciliation requires a clear ownership contract; competing controllers can create perpetual drift. A justified correction is: Assign authoritative ownership to one control plane or explicitly divide attribute responsibility using supported lifecycle practices.
Incorrect Answers
A:Inspect provider source requirements, authentication scopes, and whether the on-premises and hosted platforms expose different APIs. This inspects hybrid cloud workflow with distinct provider credentials rather than the reported terraform resource ownership boundary issue. The decisive investigation is: Identify which attributes Terraform declares and which external system writes to the same managed object between runs.
C:Compare the runbook's procedural steps with a version-controlled declarative inventory of desired resources and their attributes. This inspects declarative desired state versus imperative console runbook rather than the reported terraform resource ownership boundary issue. The decisive investigation is: Identify which attributes Terraform declares and which external system writes to the same managed object between runs.
D:Compare repeated environment requirements against current configuration differences and find parameters that should vary intentionally. This inspects reusable environment definitions and reduced configuration drift rather than the reported terraform resource ownership boundary issue. The decisive investigation is: Identify which attributes Terraform declares and which external system writes to the same managed object between runs.
Question 99
As an infrastructure team integrates an existing repository with HCP Terraform, the following condition occurs: An HCP Terraform organization gives all users organization-wide apply privileges for convenience, despite only a small release team needing production access. The workflow must apply least privilege and preserve workspace isolation. What targeted engineering response should the team implement?
- Connect the configuration to the appropriate HCP Terraform workspace and select a governed remote execution workflow.
- Define the supported cloud integration block with the intended organization and workspace selection, then initialize and authenticate.
- Attach supported Sentinel or OPA policies to the appropriate HCP Terraform workspaces with a suitable mandatory enforcement level.
- Grant scoped team access with read or plan permissions as appropriate, reserving apply and administration for authorized groups.
Explanation
Correct Answer
D:Grant scoped team access with read or plan permissions as appropriate, reserving apply and administration for authorized groups. Workspace team permissions separate collaboration from privileged operations and support auditable Terraform governance. Confirm the cause with: Review organization and workspace team roles, run permissions and audit records for sensitive environments. A concrete acceptance test is: Contributors can collaborate on plans while unauthorized accounts cannot approve or apply production infrastructure changes.
Incorrect Answers
A:Connect the configuration to the appropriate HCP Terraform workspace and select a governed remote execution workflow. This could address hcp terraform remote execution and state hosting, but it does not correct the indicated hcp terraform team permissions and audit trail mechanism. The relevant fix is: Grant scoped team access with read or plan permissions as appropriate, reserving apply and administration for authorized groups.
B:Define the supported cloud integration block with the intended organization and workspace selection, then initialize and authenticate. This could address terraform cloud block hcp workspace integration, but it does not correct the indicated hcp terraform team permissions and audit trail mechanism. The relevant fix is: Grant scoped team access with read or plan permissions as appropriate, reserving apply and administration for authorized groups.
C:Attach supported Sentinel or OPA policies to the appropriate HCP Terraform workspaces with a suitable mandatory enforcement level. This could address hcp terraform policy enforcement governance, but it does not correct the indicated hcp terraform team permissions and audit trail mechanism. The relevant fix is: Grant scoped team access with read or plan permissions as appropriate, reserving apply and administration for authorized groups.
Question 100
During an isolated staging rehearsal of the Terraform workflow, the following condition occurs: A CI pipeline generates a plan for review but later runs terraform apply without supplying the saved plan, allowing freshly computed changes that were not approved. The operator must obtain auditable evidence before touching production resources. Which diagnostic check provides the strongest evidence for the underlying problem?
- Inspect the module source declaration and initialization logs for the missing module download.
- Inspect the bucket's resource address and distinguish removing state ownership from destroying remote infrastructure.
- Inspect whether the approved artifact was produced by terraform plan -out and whether apply consumes exactly that plan artifact.
- Read the terraform plan action symbols and provider explanation for forces replacement before scheduling apply.
Explanation
Correct Answer
C:Inspect whether the approved artifact was produced by terraform plan -out and whether apply consumes exactly that plan artifact. An applied saved plan preserves the planned decisions at creation time; plan artifacts can hold secrets and require restricted storage. A justified correction is: Generate a versioned saved plan and apply the reviewed binary plan file within the approved run context, protecting its sensitive content.
Incorrect Answers
A:Inspect the module source declaration and initialization logs for the missing module download. This inspects module installation during initial setup rather than the reported saved execution plan for controlled deployment issue. The decisive investigation is: Inspect whether the approved artifact was produced by terraform plan -out and whether apply consumes exactly that plan artifact.
B:Inspect the bucket's resource address and distinguish removing state ownership from destroying remote infrastructure. This inspects selective cleanup without destroying retained object rather than the reported saved execution plan for controlled deployment issue. The decisive investigation is: Inspect whether the approved artifact was produced by terraform plan -out and whether apply consumes exactly that plan artifact.
D:Read the terraform plan action symbols and provider explanation for forces replacement before scheduling apply. This inspects plan distinguishes replacement from in-place update rather than the reported saved execution plan for controlled deployment issue. The decisive investigation is: Inspect whether the approved artifact was produced by terraform plan -out and whether apply consumes exactly that plan artifact.