HashiCorp Terraform Associate 004 (HashiCorp Certified: Terraform Associate (004)) Practice Test 99

Question 980

A Terraform rollout has two separate requirements: first, read or generate temporary data for an operation without tracking it in state; second, reduce exposure of potentially sensitive values in Terraform state. Which assignment of mechanisms correctly handles both responsibilities?

  1. First use Sensitive variable flag; then use Secure remote state storage.
  2. First use Ephemeral resource block; then use Secret rotation and state boundary.
  3. First use Ephemeral resource block; then use Secure remote state storage.
  4. First use Secret rotation and state boundary; then use Sensitive variable flag.
  5. First use Secure remote state storage; then use Ephemeral resource block.

Explanation

Correct Answer

C:

The first requirement, to read or generate temporary data for an operation without tracking it in state, is handled by Ephemeral resource block: An ephemeral block uses provider-defined temporary resources for supported runtime-only inputs. The second requirement, to reduce exposure of potentially sensitive values in Terraform state, is handled by Secure remote state storage: An access-controlled remote backend with encryption protects stored snapshots and collaboration. Each of these mechanisms has a distinct responsibility.

Incorrect Answers

A:

For the requested tasks to read or generate temporary data for an operation without tracking it in state and reduce exposure of potentially sensitive values in Terraform state, the first candidate Sensitive variable flag addresses redact secret values from normal Terraform CLI displays; the second candidate Secure remote state storage addresses reduce exposure of potentially sensitive values in Terraform state. This mapping fails because the first mechanism primarily supports the task to redact secret values from normal Terraform CLI displays; the actual requirements are read or generate temporary data for an operation without tracking it in state first and reduce exposure of potentially sensitive values in Terraform state second.

B:

For the requested tasks to read or generate temporary data for an operation without tracking it in state and reduce exposure of potentially sensitive values in Terraform state, the first candidate Ephemeral resource block addresses read or generate temporary data for an operation without tracking it in state; the second candidate Secret rotation and state boundary addresses choose an ephemeral or write-only route when a credential must not persist. This mapping fails because the second mechanism primarily supports the task to choose an ephemeral or write-only route when a credential must not persist; the actual requirements are read or generate temporary data for an operation without tracking it in state first and reduce exposure of potentially sensitive values in Terraform state second.

D:

For the requested tasks to read or generate temporary data for an operation without tracking it in state and reduce exposure of potentially sensitive values in Terraform state, the first candidate Secret rotation and state boundary addresses choose an ephemeral or write-only route when a credential must not persist; the second candidate Sensitive variable flag addresses redact secret values from normal Terraform CLI displays. This mapping fails because the first mechanism primarily supports the task to choose an ephemeral or write-only route when a credential must not persist and the second mechanism primarily supports the task to redact secret values from normal Terraform CLI displays; the actual requirements are read or generate temporary data for an operation without tracking it in state first and reduce exposure of potentially sensitive values in Terraform state second.

E:

For the requested tasks to read or generate temporary data for an operation without tracking it in state and reduce exposure of potentially sensitive values in Terraform state, the first candidate Secure remote state storage addresses reduce exposure of potentially sensitive values in Terraform state; the second candidate Ephemeral resource block addresses read or generate temporary data for an operation without tracking it in state. This mapping fails because the first mechanism primarily supports the task to reduce exposure of potentially sensitive values in Terraform state and the second mechanism primarily supports the task to read or generate temporary data for an operation without tracking it in state; the actual requirements are read or generate temporary data for an operation without tracking it in state first and reduce exposure of potentially sensitive values in Terraform state second.

Question 981

The rollout owner asks whether Targeted destruction caution is sufficient to limit a destructive operation to a selected object only when necessary. Which limitation specifically concerns that mechanism?

  1. Provider delete behavior and retention policies differ by object type.
  2. It does not normally destroy unrelated objects absent from that state.
  3. Identical Terraform files can manage different objects when their states differ.
  4. Deleting configuration without an appropriate state transition generally triggers destruction.
  5. Targeting can bypass parts of the normal complete dependency reconciliation.

Explanation

Correct Answer

E:

For Targeted destruction caution in the task to limit a destructive operation to a selected object only when necessary, the important caution is: Targeting can bypass parts of the normal complete dependency reconciliation. The reason this matters is its actual behavior: terraform destroy -target=ADDRESS restricts action scope for exceptional situations.

Incorrect Answers

A:

The proposed warning belongs to Destroy approval safeguards, which serves the different goal to keep confirmation and review around irreversible resource deletion, rather than to Targeted destruction caution: An interactive destroy presents planned removal before approval unless automation bypasses it. The question concerns Targeted destruction caution acting to limit a destructive operation to a selected object only when necessary, not a limit of Destroy approval safeguards.

B:

The proposed warning belongs to terraform destroy, which serves the different goal to remove all resources managed by a selected configuration and state, rather than to Targeted destruction caution: terraform destroy plans and applies destruction for tracked managed objects in that workspace. The question concerns Targeted destruction caution acting to limit a destructive operation to a selected object only when necessary, not a limit of terraform destroy.

C:

The proposed warning belongs to Destroy scope and workspace selection, which serves the different goal to avoid deleting another environment by checking the active state context, rather than to Targeted destruction caution: Destroy affects managed resources bound to the selected workspace or backend state. The question concerns Targeted destruction caution acting to limit a destructive operation to a selected object only when necessary, not a limit of Destroy scope and workspace selection.

D:

The proposed warning belongs to Destroy with preserved external object, which serves the different goal to stop managing a resource while keeping its real object intact, rather than to Targeted destruction caution: A removed block with destroy=false or careful state removal can break Terraform management without deleting the object. The question concerns Targeted destruction caution acting to limit a destructive operation to a selected object only when necessary, not a limit of Destroy with preserved external object.

Question 982

Before continuing an infrastructure rollout, the operator must retrieve short-lived credentials instead of hardcoding long-term secrets. Which mechanism most directly meets this particular need?

  1. Vault dynamic credentials
  2. Sensitive variable flag
  3. Provider write-only argument
  4. Ephemeral input variable
  5. Secure remote state storage

Explanation

Correct Answer

A:

The task is to retrieve short-lived credentials instead of hardcoding long-term secrets; Vault dynamic credentials directly supports that requirement: Vault and supported integrations can issue time-limited credentials that reduce long-lived secret exposure. Its relevant boundary is: Credentials and provider configuration still require secure authentication and appropriate permissions.

Incorrect Answers

B:

Sensitive variable flag is designed to redact secret values from normal Terraform CLI displays, whereas this task is to retrieve short-lived credentials instead of hardcoding long-term secrets: sensitive=true marks an input as sensitive and propagates that sensitivity into derived expressions. Against Vault dynamic credentials, its limitation is: The underlying value can still be stored in state and plan artifacts.

C:

Provider write-only argument is designed to send a secret to a supporting resource without retaining it in Terraform state, whereas this task is to retrieve short-lived credentials instead of hardcoding long-term secrets: A write-only provider argument consumes a value during apply without persisting the argument in state or plan. Against Vault dynamic credentials, its limitation is: Provider schema support and Terraform 1.11 or later are required.

D:

Ephemeral input variable is designed to use a temporary credential without persisting its value into state or plan, whereas this task is to retrieve short-lived credentials instead of hardcoding long-term secrets: ephemeral=true on a variable keeps its value available during the operation but omits it from state and plan files. Against Vault dynamic credentials, its limitation is: Such a value can be referenced only in allowed ephemeral contexts.

E:

Secure remote state storage addresses the different requirement to reduce exposure of potentially sensitive values in Terraform state: An access-controlled remote backend with encryption protects stored snapshots and collaboration; this does not by itself satisfy the requested task to retrieve short-lived credentials instead of hardcoding long-term secrets. For the stated need, Vault dynamic credentials is the more direct mechanism.

Question 983

A Terraform rollout has two separate requirements: first, limit a destructive operation to a selected object only when necessary; second, avoid deleting another environment by checking the active state context. Which assignment of mechanisms correctly handles both responsibilities?

  1. First use Destroy plan preview; then use Destroy scope and workspace selection.
  2. First use Targeted destruction caution; then use terraform destroy.
  3. First use terraform destroy; then use Destroy plan preview.
  4. First use Targeted destruction caution; then use Destroy scope and workspace selection.
  5. First use Destroy scope and workspace selection; then use Targeted destruction caution.

Explanation

Correct Answer

D:

The first requirement, to limit a destructive operation to a selected object only when necessary, is handled by Targeted destruction caution: terraform destroy -target=ADDRESS restricts action scope for exceptional situations. The second requirement, to avoid deleting another environment by checking the active state context, is handled by Destroy scope and workspace selection: Destroy affects managed resources bound to the selected workspace or backend state. Each of these mechanisms has a distinct responsibility.

Incorrect Answers

A:

For the requested tasks to limit a destructive operation to a selected object only when necessary and avoid deleting another environment by checking the active state context, the first candidate Destroy plan preview addresses review a destruction proposal before running it; the second candidate Destroy scope and workspace selection addresses avoid deleting another environment by checking the active state context. This mapping fails because the first mechanism primarily supports the task to review a destruction proposal before running it; the actual requirements are limit a destructive operation to a selected object only when necessary first and avoid deleting another environment by checking the active state context second.

B:

For the requested tasks to limit a destructive operation to a selected object only when necessary and avoid deleting another environment by checking the active state context, the first candidate Targeted destruction caution addresses limit a destructive operation to a selected object only when necessary; the second candidate terraform destroy addresses remove all resources managed by a selected configuration and state. This mapping fails because the second mechanism primarily supports the task to remove all resources managed by a selected configuration and state; the actual requirements are limit a destructive operation to a selected object only when necessary first and avoid deleting another environment by checking the active state context second.

C:

For the requested tasks to limit a destructive operation to a selected object only when necessary and avoid deleting another environment by checking the active state context, the first candidate terraform destroy addresses remove all resources managed by a selected configuration and state; the second candidate Destroy plan preview addresses review a destruction proposal before running it. This mapping fails because the first mechanism primarily supports the task to remove all resources managed by a selected configuration and state and the second mechanism primarily supports the task to review a destruction proposal before running it; the actual requirements are limit a destructive operation to a selected object only when necessary first and avoid deleting another environment by checking the active state context second.

E:

For the requested tasks to limit a destructive operation to a selected object only when necessary and avoid deleting another environment by checking the active state context, the first candidate Destroy scope and workspace selection addresses avoid deleting another environment by checking the active state context; the second candidate Targeted destruction caution addresses limit a destructive operation to a selected object only when necessary. This mapping fails because the first mechanism primarily supports the task to avoid deleting another environment by checking the active state context and the second mechanism primarily supports the task to limit a destructive operation to a selected object only when necessary; the actual requirements are limit a destructive operation to a selected object only when necessary first and avoid deleting another environment by checking the active state context second.

Question 984

Before adopting State sensitivity to protect state files even when outputs are marked sensitive, which statement sets an accurate boundary?

  1. Editing serials manually is not a supported everyday collaboration strategy.
  2. Removing the configuration alone may plan destruction of the bound object.
  3. The sensitive flag hides display but does not guarantee data is absent from state.
  4. State is not a safe public document because it can contain sensitive values.

Explanation

Correct Answer

C:

For State sensitivity in the task to protect state files even when outputs are marked sensitive, the important caution is: The sensitive flag hides display but does not guarantee data is absent from state. The reason this matters is its actual behavior: Secrets and credentials can occur in Terraform state regardless of CLI redaction settings.

Incorrect Answers

A:

The proposed warning belongs to Terraform state serial, which serves the different goal to identify the revision of a state snapshot, rather than to State sensitivity: Terraform state snapshots contain metadata including a serial that advances as the state changes. The question concerns State sensitivity acting to protect state files even when outputs are marked sensitive, not a limit of Terraform state serial.

B:

The proposed warning belongs to State binding identity, which serves the different goal to map a Terraform resource address to its real remote object, rather than to State sensitivity: State records bindings between resource instances and provider-managed objects and holds related metadata. The question concerns State sensitivity acting to protect state files even when outputs are marked sensitive, not a limit of State binding identity.

D:

The proposed warning belongs to Computed resource attributes in state, which serves the different goal to retain IDs and other provider-returned values for future runs, rather than to State sensitivity: State captures attribute values used to compare current managed objects with desired configuration. The question concerns State sensitivity acting to protect state files even when outputs are marked sensitive, not a limit of Computed resource attributes in state.

Question 985

A configuration walkthrough identifies "Vault dynamic credentials". Which task is it principally intended to support?

  1. use a temporary credential without persisting its value into state or plan
  2. send a secret to a supporting resource without retaining it in Terraform state
  3. read or generate temporary data for an operation without tracking it in state
  4. redact secret values from normal Terraform CLI displays
  5. retrieve short-lived credentials instead of hardcoding long-term secrets

Explanation

Correct Answer

E:

The practical result of Vault dynamic credentials, used to retrieve short-lived credentials instead of hardcoding long-term secrets, is: Vault and supported integrations can issue time-limited credentials that reduce long-lived secret exposure. A qualification for this effect is: Credentials and provider configuration still require secure authentication and appropriate permissions.

Incorrect Answers

A:

That outcome applies to Ephemeral input variable, intended to use a temporary credential without persisting its value into state or plan, rather than the question's feature Vault dynamic credentials: ephemeral=true on a variable keeps its value available during the operation but omits it from state and plan files. Unlike Ephemeral input variable, Vault dynamic credentials is intended to retrieve short-lived credentials instead of hardcoding long-term secrets, not to use a temporary credential without persisting its value into state or plan.

B:

That outcome applies to Provider write-only argument, intended to send a secret to a supporting resource without retaining it in Terraform state, rather than the question's feature Vault dynamic credentials: A write-only provider argument consumes a value during apply without persisting the argument in state or plan. Unlike Provider write-only argument, Vault dynamic credentials is intended to retrieve short-lived credentials instead of hardcoding long-term secrets, not to send a secret to a supporting resource without retaining it in Terraform state.

C:

That outcome applies to Ephemeral resource block, intended to read or generate temporary data for an operation without tracking it in state, rather than the question's feature Vault dynamic credentials: An ephemeral block uses provider-defined temporary resources for supported runtime-only inputs. Unlike Ephemeral resource block, Vault dynamic credentials is intended to retrieve short-lived credentials instead of hardcoding long-term secrets, not to read or generate temporary data for an operation without tracking it in state.

D:

That outcome applies to Sensitive variable flag, intended to redact secret values from normal Terraform CLI displays, rather than the question's feature Vault dynamic credentials: sensitive=true marks an input as sensitive and propagates that sensitivity into derived expressions. Unlike Sensitive variable flag, Vault dynamic credentials is intended to retrieve short-lived credentials instead of hardcoding long-term secrets, not to redact secret values from normal Terraform CLI displays.

Question 986

For a new infrastructure repository, the team wants to keep confirmation and review around irreversible resource deletion. Which mechanism most directly meets this particular need?

  1. terraform destroy
  2. Destroy approval safeguards
  3. Specific resource removal from configuration
  4. Destroy plan preview

Explanation

Correct Answer

B:

The task is to keep confirmation and review around irreversible resource deletion; Destroy approval safeguards directly supports that requirement: An interactive destroy presents planned removal before approval unless automation bypasses it. Its relevant boundary is: Provider delete behavior and retention policies differ by object type.

Incorrect Answers

A:

terraform destroy is designed to remove all resources managed by a selected configuration and state, whereas this task is to keep confirmation and review around irreversible resource deletion: terraform destroy plans and applies destruction for tracked managed objects in that workspace. Against Destroy approval safeguards, its limitation is: It does not normally destroy unrelated objects absent from that state.

C:

Specific resource removal from configuration is designed to plan removal of a managed resource no longer declared in HCL, whereas this task is to keep confirmation and review around irreversible resource deletion: Removing a resource block normally proposes destroying its bound remote object on the next apply. Against Destroy approval safeguards, its limitation is: Use an intentional state-forgetting workflow when the object must remain.

D:

Destroy plan preview is designed to review a destruction proposal before running it, whereas this task is to keep confirmation and review around irreversible resource deletion: terraform plan -destroy produces a plan whose intended effect is to remove managed infrastructure. Against Destroy approval safeguards, its limitation is: A destroy plan itself makes no remote changes.

Question 987

The team is documenting risks of Vault dynamic credentials while planning to retrieve short-lived credentials instead of hardcoding long-term secrets. Which caveat specifically applies to that mechanism?

  1. Credentials and provider configuration still require secure authentication and appropriate permissions.
  2. Provider schema support and Terraform 1.11 or later are required.
  3. The underlying value can still be stored in state and plan artifacts.
  4. Such a value can be referenced only in allowed ephemeral contexts.

Explanation

Correct Answer

A:

For Vault dynamic credentials in the task to retrieve short-lived credentials instead of hardcoding long-term secrets, the important caution is: Credentials and provider configuration still require secure authentication and appropriate permissions. The reason this matters is its actual behavior: Vault and supported integrations can issue time-limited credentials that reduce long-lived secret exposure.

Incorrect Answers

B:

The proposed warning belongs to Provider write-only argument, which serves the different goal to send a secret to a supporting resource without retaining it in Terraform state, rather than to Vault dynamic credentials: A write-only provider argument consumes a value during apply without persisting the argument in state or plan. The question concerns Vault dynamic credentials acting to retrieve short-lived credentials instead of hardcoding long-term secrets, not a limit of Provider write-only argument.

C:

The proposed warning belongs to Sensitive variable flag, which serves the different goal to redact secret values from normal Terraform CLI displays, rather than to Vault dynamic credentials: sensitive=true marks an input as sensitive and propagates that sensitivity into derived expressions. The question concerns Vault dynamic credentials acting to retrieve short-lived credentials instead of hardcoding long-term secrets, not a limit of Sensitive variable flag.

D:

The proposed warning belongs to Ephemeral input variable, which serves the different goal to use a temporary credential without persisting its value into state or plan, rather than to Vault dynamic credentials: ephemeral=true on a variable keeps its value available during the operation but omits it from state and plan files. The question concerns Vault dynamic credentials acting to retrieve short-lived credentials instead of hardcoding long-term secrets, not a limit of Ephemeral input variable.

Question 988

A Terraform rollout has two separate requirements: first, protect state files even when outputs are marked sensitive; second, map a Terraform resource address to its real remote object. Which assignment of mechanisms correctly handles both responsibilities?

  1. First use Computed resource attributes in state; then use Terraform state serial.
  2. First use Terraform state serial; then use State binding identity.
  3. First use State binding identity; then use State sensitivity.
  4. First use State sensitivity; then use State binding identity.
  5. First use State sensitivity; then use Computed resource attributes in state.

Explanation

Correct Answer

D:

The first requirement, to protect state files even when outputs are marked sensitive, is handled by State sensitivity: Secrets and credentials can occur in Terraform state regardless of CLI redaction settings. The second requirement, to map a Terraform resource address to its real remote object, is handled by State binding identity: State records bindings between resource instances and provider-managed objects and holds related metadata. Each of these mechanisms has a distinct responsibility.

Incorrect Answers

A:

For the requested tasks to protect state files even when outputs are marked sensitive and map a Terraform resource address to its real remote object, the first candidate Computed resource attributes in state addresses retain IDs and other provider-returned values for future runs; the second candidate Terraform state serial addresses identify the revision of a state snapshot. This mapping fails because the first mechanism primarily supports the task to retain IDs and other provider-returned values for future runs and the second mechanism primarily supports the task to identify the revision of a state snapshot; the actual requirements are protect state files even when outputs are marked sensitive first and map a Terraform resource address to its real remote object second.

B:

For the requested tasks to protect state files even when outputs are marked sensitive and map a Terraform resource address to its real remote object, the first candidate Terraform state serial addresses identify the revision of a state snapshot; the second candidate State binding identity addresses map a Terraform resource address to its real remote object. This mapping fails because the first mechanism primarily supports the task to identify the revision of a state snapshot; the actual requirements are protect state files even when outputs are marked sensitive first and map a Terraform resource address to its real remote object second.

C:

For the requested tasks to protect state files even when outputs are marked sensitive and map a Terraform resource address to its real remote object, the first candidate State binding identity addresses map a Terraform resource address to its real remote object; the second candidate State sensitivity addresses protect state files even when outputs are marked sensitive. This mapping fails because the first mechanism primarily supports the task to map a Terraform resource address to its real remote object and the second mechanism primarily supports the task to protect state files even when outputs are marked sensitive; the actual requirements are protect state files even when outputs are marked sensitive first and map a Terraform resource address to its real remote object second.

E:

For the requested tasks to protect state files even when outputs are marked sensitive and map a Terraform resource address to its real remote object, the first candidate State sensitivity addresses protect state files even when outputs are marked sensitive; the second candidate Computed resource attributes in state addresses retain IDs and other provider-returned values for future runs. This mapping fails because the second mechanism primarily supports the task to retain IDs and other provider-returned values for future runs; the actual requirements are protect state files even when outputs are marked sensitive first and map a Terraform resource address to its real remote object second.

Question 989

A technical review has three distinct objectives: retrieve short-lived credentials instead of hardcoding long-term secrets; choose an ephemeral or write-only route when a credential must not persist; and use a temporary credential without persisting its value into state or plan. Which THREE mechanisms should the team identify for these respective needs? Choose THREE.

  1. Provider write-only argument
  2. Secret rotation and state boundary
  3. Ephemeral input variable
  4. Sensitive variable flag
  5. Vault dynamic credentials

Explanation

Correct Answers

B:

In the workflow combining retrieve short-lived credentials instead of hardcoding long-term secrets, choose an ephemeral or write-only route when a credential must not persist, and use a temporary credential without persisting its value into state or plan, Secret rotation and state boundary correctly addresses the individual goal to choose an ephemeral or write-only route when a credential must not persist: Terraform's ephemeral support and provider write-only arguments can avoid persisting supported temporary values. It is one of three separately required capabilities.

C:

In the workflow combining retrieve short-lived credentials instead of hardcoding long-term secrets, choose an ephemeral or write-only route when a credential must not persist, and use a temporary credential without persisting its value into state or plan, Ephemeral input variable correctly addresses the individual goal to use a temporary credential without persisting its value into state or plan: ephemeral=true on a variable keeps its value available during the operation but omits it from state and plan files. It is one of three separately required capabilities.

E:

In the workflow combining retrieve short-lived credentials instead of hardcoding long-term secrets, choose an ephemeral or write-only route when a credential must not persist, and use a temporary credential without persisting its value into state or plan, Vault dynamic credentials correctly addresses the individual goal to retrieve short-lived credentials instead of hardcoding long-term secrets: Vault and supported integrations can issue time-limited credentials that reduce long-lived secret exposure. It is one of three separately required capabilities.

Incorrect Answers

A:

Compared with the three tasks to retrieve short-lived credentials instead of hardcoding long-term secrets, choose an ephemeral or write-only route when a credential must not persist, and use a temporary credential without persisting its value into state or plan, Provider write-only argument primarily supports an unrelated request to send a secret to a supporting resource without retaining it in Terraform state: A write-only provider argument consumes a value during apply without persisting the argument in state or plan. Therefore this option is not among the three specified mechanisms.

D:

Compared with the three tasks to retrieve short-lived credentials instead of hardcoding long-term secrets, choose an ephemeral or write-only route when a credential must not persist, and use a temporary credential without persisting its value into state or plan, Sensitive variable flag primarily supports an unrelated request to redact secret values from normal Terraform CLI displays: sensitive=true marks an input as sensitive and propagates that sensitivity into derived expressions. Therefore this option is not among the three specified mechanisms.

Question 990

An operator chooses the mechanism "Destroy approval safeguards" for a Terraform project. Which outcome should this choice support?

  1. review a destruction proposal before running it
  2. limit a destructive operation to a selected object only when necessary
  3. keep confirmation and review around irreversible resource deletion
  4. stop managing a resource while keeping its real object intact
  5. remove all resources managed by a selected configuration and state
  6. plan removal of a managed resource no longer declared in HCL

Explanation

Correct Answer

C:

The practical result of Destroy approval safeguards, used to keep confirmation and review around irreversible resource deletion, is: An interactive destroy presents planned removal before approval unless automation bypasses it. A qualification for this effect is: Provider delete behavior and retention policies differ by object type.

Incorrect Answers

A:

That outcome applies to Destroy plan preview, intended to review a destruction proposal before running it, rather than the question's feature Destroy approval safeguards: terraform plan -destroy produces a plan whose intended effect is to remove managed infrastructure. Unlike Destroy plan preview, Destroy approval safeguards is intended to keep confirmation and review around irreversible resource deletion, not to review a destruction proposal before running it.

B:

That outcome applies to Targeted destruction caution, intended to limit a destructive operation to a selected object only when necessary, rather than the question's feature Destroy approval safeguards: terraform destroy -target=ADDRESS restricts action scope for exceptional situations. Unlike Targeted destruction caution, Destroy approval safeguards is intended to keep confirmation and review around irreversible resource deletion, not to limit a destructive operation to a selected object only when necessary.

D:

That outcome applies to Destroy with preserved external object, intended to stop managing a resource while keeping its real object intact, rather than the question's feature Destroy approval safeguards: A removed block with destroy=false or careful state removal can break Terraform management without deleting the object. Unlike Destroy with preserved external object, Destroy approval safeguards is intended to keep confirmation and review around irreversible resource deletion, not to stop managing a resource while keeping its real object intact.

E:

That outcome applies to terraform destroy, intended to remove all resources managed by a selected configuration and state, rather than the question's feature Destroy approval safeguards: terraform destroy plans and applies destruction for tracked managed objects in that workspace. Unlike terraform destroy, Destroy approval safeguards is intended to keep confirmation and review around irreversible resource deletion, not to remove all resources managed by a selected configuration and state.

F:

That outcome applies to Specific resource removal from configuration, intended to plan removal of a managed resource no longer declared in HCL, rather than the question's feature Destroy approval safeguards: Removing a resource block normally proposes destroying its bound remote object on the next apply. Unlike Specific resource removal from configuration, Destroy approval safeguards is intended to keep confirmation and review around irreversible resource deletion, not to plan removal of a managed resource no longer declared in HCL.

HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests