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

Question 970

A Terraform rollout has two separate requirements: first, support incremental reconciliation against existing remote objects; second, track repeated instances independently under count or for_each. Which assignment of mechanisms correctly handles both responsibilities?

  1. First use State as synchronization metadata; then use State and resource addresses.
  2. First use State binding identity; then use Computed resource attributes in state.
  3. First use State and resource addresses; then use State as synchronization metadata.
  4. First use Computed resource attributes in state; then use State and resource addresses.
  5. First use State as synchronization metadata; then use State binding identity.

Explanation

Correct Answer

A:

The first requirement, to support incremental reconciliation against existing remote objects, is handled by State as synchronization metadata: Terraform consults state rather than treating each run as a completely new unmanaged deployment. The second requirement, to track repeated instances independently under count or for_each, is handled by State and resource addresses: State holds individual addresses such as example[0] or example["dev"] for separate instances. Each of these mechanisms has a distinct responsibility.

Incorrect Answers

B:

For the requested tasks to support incremental reconciliation against existing remote objects and track repeated instances independently under count or for_each, the first candidate State binding identity addresses map a Terraform resource address to its real remote object; the second candidate Computed resource attributes in state addresses retain IDs and other provider-returned values for future runs. 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 retain IDs and other provider-returned values for future runs; the actual requirements are support incremental reconciliation against existing remote objects first and track repeated instances independently under count or for_each second.

C:

For the requested tasks to support incremental reconciliation against existing remote objects and track repeated instances independently under count or for_each, the first candidate State and resource addresses addresses track repeated instances independently under count or for_each; the second candidate State as synchronization metadata addresses support incremental reconciliation against existing remote objects. This mapping fails because the first mechanism primarily supports the task to track repeated instances independently under count or for_each and the second mechanism primarily supports the task to support incremental reconciliation against existing remote objects; the actual requirements are support incremental reconciliation against existing remote objects first and track repeated instances independently under count or for_each second.

D:

For the requested tasks to support incremental reconciliation against existing remote objects and track repeated instances independently under count or for_each, the first candidate Computed resource attributes in state addresses retain IDs and other provider-returned values for future runs; the second candidate State and resource addresses addresses track repeated instances independently under count or for_each. This mapping fails because the first mechanism primarily supports the task to retain IDs and other provider-returned values for future runs; the actual requirements are support incremental reconciliation against existing remote objects first and track repeated instances independently under count or for_each second.

E:

For the requested tasks to support incremental reconciliation against existing remote objects and track repeated instances independently under count or for_each, the first candidate State as synchronization metadata addresses support incremental reconciliation against existing remote objects; the second candidate State binding identity addresses map a Terraform resource address to its real remote object. This mapping fails because the second mechanism primarily supports the task to map a Terraform resource address to its real remote object; the actual requirements are support incremental reconciliation against existing remote objects first and track repeated instances independently under count or for_each second.

Question 971

The implementation must both send a secret to a supporting resource without retaining it in Terraform state and retrieve short-lived credentials instead of hardcoding long-term secrets. Which TWO mechanisms directly address these two separate requirements? Choose TWO.

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

Explanation

Correct Answers

B:

Among the paired tasks to send a secret to a supporting resource without retaining it in Terraform state and retrieve short-lived credentials instead of hardcoding long-term secrets, Provider write-only argument serves the requirement 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. The other task must be covered by a separate mechanism.

E:

Among the paired tasks to send a secret to a supporting resource without retaining it in Terraform state and retrieve short-lived credentials instead of hardcoding long-term secrets, Vault dynamic credentials serves the requirement 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. The other task must be covered by a separate mechanism.

Incorrect Answers

A:

The requirements are send a secret to a supporting resource without retaining it in Terraform state and retrieve short-lived credentials instead of hardcoding long-term secrets, while Sensitive variable flag supports the different task to redact secret values from normal Terraform CLI displays: sensitive=true marks an input as sensitive and propagates that sensitivity into derived expressions. That capability is outside the two selected responsibilities.

C:

The requirements are send a secret to a supporting resource without retaining it in Terraform state and retrieve short-lived credentials instead of hardcoding long-term secrets, while Ephemeral resource block supports the different task to read or generate temporary data for an operation without tracking it in state: An ephemeral block uses provider-defined temporary resources for supported runtime-only inputs. That capability is outside the two selected responsibilities.

D:

The requested tasks are to send a secret to a supporting resource without retaining it in Terraform state; retrieve short-lived credentials instead of hardcoding long-term secrets, but Secure remote state storage primarily addresses the different goal to reduce exposure of potentially sensitive values in Terraform state: An access-controlled remote backend with encryption protects stored snapshots and collaboration; therefore it is not one of the mechanisms selected for the stated requirements.

Question 972

A Terraform rollout has two separate requirements: first, stop managing a resource while keeping its real object intact; second, keep confirmation and review around irreversible resource deletion. Which assignment of mechanisms correctly handles both responsibilities?

  1. First use Destroy with preserved external object; then use Destroy scope and workspace selection.
  2. First use Destroy with preserved external object; then use Destroy approval safeguards.
  3. First use Destroy approval safeguards; then use Destroy with preserved external object.
  4. First use Destroy scope and workspace selection; then use terraform destroy.
  5. First use terraform destroy; then use Destroy approval safeguards.

Explanation

Correct Answer

B:

The first requirement, to stop managing a resource while keeping its real object intact, is handled by Destroy with preserved external object: A removed block with destroy=false or careful state removal can break Terraform management without deleting the object. The second requirement, to keep confirmation and review around irreversible resource deletion, is handled by Destroy approval safeguards: An interactive destroy presents planned removal before approval unless automation bypasses it. Each of these mechanisms has a distinct responsibility.

Incorrect Answers

A:

For the requested tasks to stop managing a resource while keeping its real object intact and keep confirmation and review around irreversible resource deletion, the first candidate Destroy with preserved external object addresses stop managing a resource while keeping its real object intact; the second candidate Destroy scope and workspace selection addresses avoid deleting another environment by checking the active state context. This mapping fails because the second mechanism primarily supports the task to avoid deleting another environment by checking the active state context; the actual requirements are stop managing a resource while keeping its real object intact first and keep confirmation and review around irreversible resource deletion second.

C:

For the requested tasks to stop managing a resource while keeping its real object intact and keep confirmation and review around irreversible resource deletion, the first candidate Destroy approval safeguards addresses keep confirmation and review around irreversible resource deletion; the second candidate Destroy with preserved external object addresses stop managing a resource while keeping its real object intact. This mapping fails because the first mechanism primarily supports the task to keep confirmation and review around irreversible resource deletion and the second mechanism primarily supports the task to stop managing a resource while keeping its real object intact; the actual requirements are stop managing a resource while keeping its real object intact first and keep confirmation and review around irreversible resource deletion second.

D:

For the requested tasks to stop managing a resource while keeping its real object intact and keep confirmation and review around irreversible resource deletion, the first candidate Destroy scope and workspace selection addresses avoid deleting another environment by checking the active state context; the second candidate terraform destroy addresses remove all resources managed by a selected configuration and state. 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 remove all resources managed by a selected configuration and state; the actual requirements are stop managing a resource while keeping its real object intact first and keep confirmation and review around irreversible resource deletion second.

E:

For the requested tasks to stop managing a resource while keeping its real object intact and keep confirmation and review around irreversible resource deletion, the first candidate terraform destroy addresses remove all resources managed by a selected configuration and state; the second candidate Destroy approval safeguards addresses keep confirmation and review around irreversible resource deletion. This mapping fails because the first mechanism primarily supports the task to remove all resources managed by a selected configuration and state; the actual requirements are stop managing a resource while keeping its real object intact first and keep confirmation and review around irreversible resource deletion second.

Question 973

A configuration review identifies the need to read or generate temporary data for an operation without tracking it in state. Which mechanism most directly meets this particular need?

  1. Vault dynamic credentials
  2. Secure remote state storage
  3. Ephemeral resource block
  4. Secret rotation and state boundary
  5. Sensitive variable flag

Explanation

Correct Answer

C:

The task is to read or generate temporary data for an operation without tracking it in state; Ephemeral resource block directly supports that requirement: An ephemeral block uses provider-defined temporary resources for supported runtime-only inputs. Its relevant boundary is: Ephemeral resources cannot be referenced in arbitrary persistent resource arguments.

Incorrect Answers

A:

Vault dynamic credentials is designed to retrieve short-lived credentials instead of hardcoding long-term secrets, whereas this task is to read or generate temporary data for an operation without tracking it in state: Vault and supported integrations can issue time-limited credentials that reduce long-lived secret exposure. Against Ephemeral resource block, its limitation is: Credentials and provider configuration still require secure authentication and appropriate permissions.

B:

Secure remote state storage is designed to reduce exposure of potentially sensitive values in Terraform state, whereas this task is to read or generate temporary data for an operation without tracking it in state: An access-controlled remote backend with encryption protects stored snapshots and collaboration. Against Ephemeral resource block, its limitation is: Marking outputs sensitive is not a substitute for backend access restrictions.

D:

Secret rotation and state boundary is designed to choose an ephemeral or write-only route when a credential must not persist, whereas this task is to read or generate temporary data for an operation without tracking it in state: Terraform's ephemeral support and provider write-only arguments can avoid persisting supported temporary values. Against Ephemeral resource block, its limitation is: Ordinary resource arguments marked sensitive can still end up in state.

E:

Sensitive variable flag is designed to redact secret values from normal Terraform CLI displays, whereas this task is to read or generate temporary data for an operation without tracking it in state: sensitive=true marks an input as sensitive and propagates that sensitivity into derived expressions. Against Ephemeral resource block, its limitation is: The underlying value can still be stored in state and plan artifacts.

Question 974

An engineer must update an existing Terraform workflow to limit a destructive operation to a selected object only when necessary. Which mechanism most directly meets this particular need?

  1. Destroy scope and workspace selection
  2. Destroy with preserved external object
  3. Targeted destruction caution
  4. Destroy approval safeguards

Explanation

Correct Answer

C:

The task is to limit a destructive operation to a selected object only when necessary; Targeted destruction caution directly supports that requirement: terraform destroy -target=ADDRESS restricts action scope for exceptional situations. Its relevant boundary is: Targeting can bypass parts of the normal complete dependency reconciliation.

Incorrect Answers

A:

Destroy scope and workspace selection is designed to avoid deleting another environment by checking the active state context, whereas this task is to limit a destructive operation to a selected object only when necessary: Destroy affects managed resources bound to the selected workspace or backend state. Against Targeted destruction caution, its limitation is: Identical Terraform files can manage different objects when their states differ.

B:

Destroy with preserved external object is designed to stop managing a resource while keeping its real object intact, whereas this task is to limit a destructive operation to a selected object only when necessary: A removed block with destroy=false or careful state removal can break Terraform management without deleting the object. Against Targeted destruction caution, its limitation is: Deleting configuration without an appropriate state transition generally triggers destruction.

D:

Destroy approval safeguards is designed to keep confirmation and review around irreversible resource deletion, whereas this task is to limit a destructive operation to a selected object only when necessary: An interactive destroy presents planned removal before approval unless automation bypasses it. Against Targeted destruction caution, its limitation is: Provider delete behavior and retention policies differ by object type.

Question 975

A platform engineering group needs to protect state files even when outputs are marked sensitive. Which mechanism most directly meets this particular need?

  1. Computed resource attributes in state
  2. State sensitivity
  3. Terraform state serial
  4. State binding identity

Explanation

Correct Answer

B:

The task is to protect state files even when outputs are marked sensitive; State sensitivity directly supports that requirement: Secrets and credentials can occur in Terraform state regardless of CLI redaction settings. Its relevant boundary is: The sensitive flag hides display but does not guarantee data is absent from state.

Incorrect Answers

A:

Computed resource attributes in state is designed to retain IDs and other provider-returned values for future runs, whereas this task is to protect state files even when outputs are marked sensitive: State captures attribute values used to compare current managed objects with desired configuration. Against State sensitivity, its limitation is: State is not a safe public document because it can contain sensitive values.

C:

Terraform state serial is designed to identify the revision of a state snapshot, whereas this task is to protect state files even when outputs are marked sensitive: Terraform state snapshots contain metadata including a serial that advances as the state changes. Against State sensitivity, its limitation is: Editing serials manually is not a supported everyday collaboration strategy.

D:

State binding identity is designed to map a Terraform resource address to its real remote object, whereas this task is to protect state files even when outputs are marked sensitive: State records bindings between resource instances and provider-managed objects and holds related metadata. Against State sensitivity, its limitation is: Removing the configuration alone may plan destruction of the bound object.

Question 976

A team reviews the use of Ephemeral resource block in Terraform 1.12. Which purpose matches its actual behavior?

  1. redact secret values from normal Terraform CLI displays
  2. choose an ephemeral or write-only route when a credential must not persist
  3. reduce exposure of potentially sensitive values in Terraform state
  4. read or generate temporary data for an operation without tracking it in state
  5. retrieve short-lived credentials instead of hardcoding long-term secrets

Explanation

Correct Answer

D:

The practical result of Ephemeral resource block, used to read or generate temporary data for an operation without tracking it in state, is: An ephemeral block uses provider-defined temporary resources for supported runtime-only inputs. A qualification for this effect is: Ephemeral resources cannot be referenced in arbitrary persistent resource arguments.

Incorrect Answers

A:

That outcome applies to Sensitive variable flag, intended to redact secret values from normal Terraform CLI displays, rather than the question's feature Ephemeral resource block: sensitive=true marks an input as sensitive and propagates that sensitivity into derived expressions. Unlike Sensitive variable flag, Ephemeral resource block is intended to read or generate temporary data for an operation without tracking it in state, not to redact secret values from normal Terraform CLI displays.

B:

That outcome applies to Secret rotation and state boundary, intended to choose an ephemeral or write-only route when a credential must not persist, rather than the question's feature Ephemeral resource block: Terraform's ephemeral support and provider write-only arguments can avoid persisting supported temporary values. Unlike Secret rotation and state boundary, Ephemeral resource block is intended to read or generate temporary data for an operation without tracking it in state, not to choose an ephemeral or write-only route when a credential must not persist.

C:

That outcome applies to Secure remote state storage, intended to reduce exposure of potentially sensitive values in Terraform state, rather than the question's feature Ephemeral resource block: An access-controlled remote backend with encryption protects stored snapshots and collaboration. Unlike Secure remote state storage, Ephemeral resource block is intended to read or generate temporary data for an operation without tracking it in state, not to reduce exposure of potentially sensitive values in Terraform state.

E:

That outcome applies to Vault dynamic credentials, intended to retrieve short-lived credentials instead of hardcoding long-term secrets, rather than the question's feature Ephemeral resource block: Vault and supported integrations can issue time-limited credentials that reduce long-lived secret exposure. Unlike Vault dynamic credentials, Ephemeral resource block is intended to read or generate temporary data for an operation without tracking it in state, not to retrieve short-lived credentials instead of hardcoding long-term secrets.

Question 977

A colleague recommends the Terraform concept "Targeted destruction caution". Which use case best matches it?

  1. keep confirmation and review around irreversible resource deletion
  2. avoid deleting another environment by checking the active state context
  3. remove all resources managed by a selected configuration and state
  4. stop managing a resource while keeping its real object intact
  5. limit a destructive operation to a selected object only when necessary

Explanation

Correct Answer

E:

The practical result of Targeted destruction caution, used to limit a destructive operation to a selected object only when necessary, is: terraform destroy -target=ADDRESS restricts action scope for exceptional situations. A qualification for this effect is: Targeting can bypass parts of the normal complete dependency reconciliation.

Incorrect Answers

A:

That outcome applies to Destroy approval safeguards, intended to keep confirmation and review around irreversible resource deletion, rather than the question's feature Targeted destruction caution: An interactive destroy presents planned removal before approval unless automation bypasses it. Unlike Destroy approval safeguards, Targeted destruction caution is intended to limit a destructive operation to a selected object only when necessary, not to keep confirmation and review around irreversible resource deletion.

B:

That outcome applies to Destroy scope and workspace selection, intended to avoid deleting another environment by checking the active state context, rather than the question's feature Targeted destruction caution: Destroy affects managed resources bound to the selected workspace or backend state. Unlike Destroy scope and workspace selection, Targeted destruction caution is intended to limit a destructive operation to a selected object only when necessary, not to avoid deleting another environment by checking the active state context.

C:

That outcome applies to terraform destroy, intended to remove all resources managed by a selected configuration and state, rather than the question's feature Targeted destruction caution: terraform destroy plans and applies destruction for tracked managed objects in that workspace. Unlike terraform destroy, Targeted destruction caution is intended to limit a destructive operation to a selected object only when necessary, not to remove all resources managed by a selected configuration and state.

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 Targeted destruction caution: A removed block with destroy=false or careful state removal can break Terraform management without deleting the object. Unlike Destroy with preserved external object, Targeted destruction caution is intended to limit a destructive operation to a selected object only when necessary, not to stop managing a resource while keeping its real object intact.

Question 978

A change proposal relies on Ephemeral resource block for the task to read or generate temporary data for an operation without tracking it in state. Which limitation specifically applies to it?

  1. Marking outputs sensitive is not a substitute for backend access restrictions.
  2. Credentials and provider configuration still require secure authentication and appropriate permissions.
  3. Ephemeral resources cannot be referenced in arbitrary persistent resource arguments.
  4. Ordinary resource arguments marked sensitive can still end up in state.

Explanation

Correct Answer

C:

For Ephemeral resource block in the task to read or generate temporary data for an operation without tracking it in state, the important caution is: Ephemeral resources cannot be referenced in arbitrary persistent resource arguments. The reason this matters is its actual behavior: An ephemeral block uses provider-defined temporary resources for supported runtime-only inputs.

Incorrect Answers

A:

The proposed warning belongs to Secure remote state storage, which serves the different goal to reduce exposure of potentially sensitive values in Terraform state, rather than to Ephemeral resource block: An access-controlled remote backend with encryption protects stored snapshots and collaboration. The question concerns Ephemeral resource block acting to read or generate temporary data for an operation without tracking it in state, not a limit of Secure remote state storage.

B:

The proposed warning belongs to Vault dynamic credentials, which serves the different goal to retrieve short-lived credentials instead of hardcoding long-term secrets, rather than to Ephemeral resource block: Vault and supported integrations can issue time-limited credentials that reduce long-lived secret exposure. The question concerns Ephemeral resource block acting to read or generate temporary data for an operation without tracking it in state, not a limit of Vault dynamic credentials.

D:

The proposed warning belongs to Secret rotation and state boundary, which serves the different goal to choose an ephemeral or write-only route when a credential must not persist, rather than to Ephemeral resource block: Terraform's ephemeral support and provider write-only arguments can avoid persisting supported temporary values. The question concerns Ephemeral resource block acting to read or generate temporary data for an operation without tracking it in state, not a limit of Secret rotation and state boundary.

Question 979

An operator chooses the mechanism "State sensitivity" for a Terraform project. Which outcome should this choice support?

  1. identify the revision of a state snapshot
  2. distinguish snapshots belonging to different histories
  3. retain IDs and other provider-returned values for future runs
  4. protect state files even when outputs are marked sensitive
  5. map a Terraform resource address to its real remote object
  6. support incremental reconciliation against existing remote objects

Explanation

Correct Answer

D:

The practical result of State sensitivity, used to protect state files even when outputs are marked sensitive, is: Secrets and credentials can occur in Terraform state regardless of CLI redaction settings. A qualification for this effect is: The sensitive flag hides display but does not guarantee data is absent from state.

Incorrect Answers

A:

That outcome applies to Terraform state serial, intended to identify the revision of a state snapshot, rather than the question's feature State sensitivity: Terraform state snapshots contain metadata including a serial that advances as the state changes. Unlike Terraform state serial, State sensitivity is intended to protect state files even when outputs are marked sensitive, not to identify the revision of a state snapshot.

B:

That outcome applies to Terraform state lineage, intended to distinguish snapshots belonging to different histories, rather than the question's feature State sensitivity: The lineage identifies a state history and helps detect unrelated snapshots when moving or replacing state. Unlike Terraform state lineage, State sensitivity is intended to protect state files even when outputs are marked sensitive, not to distinguish snapshots belonging to different histories.

C:

That outcome applies to Computed resource attributes in state, intended to retain IDs and other provider-returned values for future runs, rather than the question's feature State sensitivity: State captures attribute values used to compare current managed objects with desired configuration. Unlike Computed resource attributes in state, State sensitivity is intended to protect state files even when outputs are marked sensitive, not to retain IDs and other provider-returned values for future runs.

E:

That outcome applies to State binding identity, intended to map a Terraform resource address to its real remote object, rather than the question's feature State sensitivity: State records bindings between resource instances and provider-managed objects and holds related metadata. Unlike State binding identity, State sensitivity is intended to protect state files even when outputs are marked sensitive, not to map a Terraform resource address to its real remote object.

F:

That outcome applies to State as synchronization metadata, intended to support incremental reconciliation against existing remote objects, rather than the question's feature State sensitivity: Terraform consults state rather than treating each run as a completely new unmanaged deployment. Unlike State as synchronization metadata, State sensitivity is intended to protect state files even when outputs are marked sensitive, not to support incremental reconciliation against existing remote objects.

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.

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