Question 990
An operator chooses the mechanism "Destroy approval safeguards" for a Terraform project. Which outcome should this choice support?
- review a destruction proposal before running it
- limit a destructive operation to a selected object only when necessary
- keep confirmation and review around irreversible resource deletion
- stop managing a resource while keeping its real object intact
- remove all resources managed by a selected configuration and state
- 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.
Question 991
In a reusable deployment, the primary objective is to reduce exposure of potentially sensitive values in Terraform state. Which mechanism most directly meets this particular need?
- Vault dynamic credentials
- Secret rotation and state boundary
- Ephemeral resource block
- Ephemeral input variable
- Secure remote state storage
- Sensitive variable flag
Explanation
Correct Answer
E:The task is to reduce exposure of potentially sensitive values in Terraform state; Secure remote state storage directly supports that requirement: An access-controlled remote backend with encryption protects stored snapshots and collaboration. Its relevant boundary is: Marking outputs sensitive is not a substitute for backend access restrictions.
Incorrect Answers
A:Vault dynamic credentials is designed to retrieve short-lived credentials instead of hardcoding long-term secrets, whereas this task is to reduce exposure of potentially sensitive values in Terraform state: Vault and supported integrations can issue time-limited credentials that reduce long-lived secret exposure. Against Secure remote state storage, its limitation is: Credentials and provider configuration still require secure authentication and appropriate permissions.
B: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 reduce exposure of potentially sensitive values in Terraform state: Terraform's ephemeral support and provider write-only arguments can avoid persisting supported temporary values. Against Secure remote state storage, its limitation is: Ordinary resource arguments marked sensitive can still end up in state.
C:Ephemeral resource block is designed to read or generate temporary data for an operation without tracking it in state, whereas this task is to reduce exposure of potentially sensitive values in Terraform state: An ephemeral block uses provider-defined temporary resources for supported runtime-only inputs. Against Secure remote state storage, its limitation is: Ephemeral resources cannot be referenced in arbitrary persistent resource arguments.
D:Ephemeral input variable is designed to use a temporary credential without persisting its value into state or plan, whereas this task is to reduce exposure of potentially sensitive values in Terraform state: ephemeral=true on a variable keeps its value available during the operation but omits it from state and plan files. Against Secure remote state storage, its limitation is: Such a value can be referenced only in allowed ephemeral contexts.
F:Sensitive variable flag is designed to redact secret values from normal Terraform CLI displays, whereas this task is to reduce exposure of potentially sensitive values in Terraform state: sensitive=true marks an input as sensitive and propagates that sensitivity into derived expressions. Against Secure remote state storage, its limitation is: The underlying value can still be stored in state and plan artifacts.
Question 992
A design uses Destroy approval safeguards to keep confirmation and review around irreversible resource deletion. Which qualification applies to the named mechanism?
- Use an intentional state-forgetting workflow when the object must remain.
- A destroy plan itself makes no remote changes.
- It does not normally destroy unrelated objects absent from that state.
- Deleting configuration without an appropriate state transition generally triggers destruction.
- Provider delete behavior and retention policies differ by object type.
Explanation
Correct Answer
E:For Destroy approval safeguards in the task to keep confirmation and review around irreversible resource deletion, the important caution is: Provider delete behavior and retention policies differ by object type. The reason this matters is its actual behavior: An interactive destroy presents planned removal before approval unless automation bypasses it.
Incorrect Answers
A:The proposed warning belongs to Specific resource removal from configuration, which serves the different goal to plan removal of a managed resource no longer declared in HCL, rather than to Destroy approval safeguards: Removing a resource block normally proposes destroying its bound remote object on the next apply. The question concerns Destroy approval safeguards acting to keep confirmation and review around irreversible resource deletion, not a limit of Specific resource removal from configuration.
B:The proposed warning belongs to Destroy plan preview, which serves the different goal to review a destruction proposal before running it, rather than to Destroy approval safeguards: terraform plan -destroy produces a plan whose intended effect is to remove managed infrastructure. The question concerns Destroy approval safeguards acting to keep confirmation and review around irreversible resource deletion, not a limit of Destroy plan preview.
C: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 Destroy approval safeguards: terraform destroy plans and applies destruction for tracked managed objects in that workspace. The question concerns Destroy approval safeguards acting to keep confirmation and review around irreversible resource deletion, not a limit of terraform destroy.
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 Destroy approval safeguards: A removed block with destroy=false or careful state removal can break Terraform management without deleting the object. The question concerns Destroy approval safeguards acting to keep confirmation and review around irreversible resource deletion, not a limit of Destroy with preserved external object.
Question 993
During a Terraform 1.12 implementation, the immediate requirement is to track repeated instances independently under count or for_each. Which mechanism most directly meets this particular need?
- State and resource addresses
- State as synchronization metadata
- Terraform state lineage
- State binding identity
Explanation
Correct Answer
A:The task is to track repeated instances independently under count or for_each; State and resource addresses directly supports that requirement: State holds individual addresses such as example[0] or example["dev"] for separate instances. Its relevant boundary is: Changing the addressing model can require a migration to preserve bindings.
Incorrect Answers
B:State as synchronization metadata is designed to support incremental reconciliation against existing remote objects, whereas this task is to track repeated instances independently under count or for_each: Terraform consults state rather than treating each run as a completely new unmanaged deployment. Against State and resource addresses, its limitation is: State still needs refresh checks to recognize external infrastructure changes.
C:Terraform state lineage is designed to distinguish snapshots belonging to different histories, whereas this task is to track repeated instances independently under count or for_each: The lineage identifies a state history and helps detect unrelated snapshots when moving or replacing state. Against State and resource addresses, its limitation is: It does not grant access to the remote backend.
D:State binding identity addresses the different requirement to map a Terraform resource address to its real remote object: State records bindings between resource instances and provider-managed objects and holds related metadata; this does not by itself satisfy the requested task to track repeated instances independently under count or for_each. For the stated need, State and resource addresses is the more direct mechanism.
Question 994
A Terraform runbook describes the mechanism "Secure remote state storage". Which responsibility should a reviewer associate with it?
- choose an ephemeral or write-only route when a credential must not persist
- redact secret values from normal Terraform CLI displays
- retrieve short-lived credentials instead of hardcoding long-term secrets
- use a temporary credential without persisting its value into state or plan
- read or generate temporary data for an operation without tracking it in state
- reduce exposure of potentially sensitive values in Terraform state
Explanation
Correct Answer
F:The practical result of Secure remote state storage, used to reduce exposure of potentially sensitive values in Terraform state, is: An access-controlled remote backend with encryption protects stored snapshots and collaboration. A qualification for this effect is: Marking outputs sensitive is not a substitute for backend access restrictions.
Incorrect Answers
A: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 Secure remote state storage: Terraform's ephemeral support and provider write-only arguments can avoid persisting supported temporary values. Unlike Secret rotation and state boundary, Secure remote state storage is intended to reduce exposure of potentially sensitive values in Terraform state, not to choose an ephemeral or write-only route when a credential must not persist.
B:That outcome applies to Sensitive variable flag, intended to redact secret values from normal Terraform CLI displays, rather than the question's feature Secure remote state storage: sensitive=true marks an input as sensitive and propagates that sensitivity into derived expressions. Unlike Sensitive variable flag, Secure remote state storage is intended to reduce exposure of potentially sensitive values in Terraform state, not to redact secret values from normal Terraform CLI displays.
C: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 Secure remote state storage: Vault and supported integrations can issue time-limited credentials that reduce long-lived secret exposure. Unlike Vault dynamic credentials, Secure remote state storage is intended to reduce exposure of potentially sensitive values in Terraform state, not to retrieve short-lived credentials instead of hardcoding long-term secrets.
D: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 Secure remote state storage: ephemeral=true on a variable keeps its value available during the operation but omits it from state and plan files. Unlike Ephemeral input variable, Secure remote state storage is intended to reduce exposure of potentially sensitive values in Terraform state, not to use a temporary credential without persisting its value into state or plan.
E: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 Secure remote state storage: An ephemeral block uses provider-defined temporary resources for supported runtime-only inputs. Unlike Ephemeral resource block, Secure remote state storage is intended to reduce exposure of potentially sensitive values in Terraform state, not to read or generate temporary data for an operation without tracking it in state.
Question 995
The implementation must both keep confirmation and review around irreversible resource deletion and remove all resources managed by a selected configuration and state. Which TWO mechanisms directly address these two separate requirements? Choose TWO.
- Destroy approval safeguards
- Destroy with preserved external object
- Destroy plan preview
- Targeted destruction caution
- terraform destroy
Explanation
Correct Answers
A:Among the paired tasks to keep confirmation and review around irreversible resource deletion and remove all resources managed by a selected configuration and state, Destroy approval safeguards serves the requirement to keep confirmation and review around irreversible resource deletion: An interactive destroy presents planned removal before approval unless automation bypasses it. The other task must be covered by a separate mechanism.
E:Among the paired tasks to keep confirmation and review around irreversible resource deletion and remove all resources managed by a selected configuration and state, terraform destroy serves the requirement to remove all resources managed by a selected configuration and state: terraform destroy plans and applies destruction for tracked managed objects in that workspace. The other task must be covered by a separate mechanism.
Incorrect Answers
B:The requirements are keep confirmation and review around irreversible resource deletion and remove all resources managed by a selected configuration and state, while Destroy with preserved external object supports the different task to stop managing a resource while keeping its real object intact: A removed block with destroy=false or careful state removal can break Terraform management without deleting the object. That capability is outside the two selected responsibilities.
C:The requirements are keep confirmation and review around irreversible resource deletion and remove all resources managed by a selected configuration and state, while Destroy plan preview supports the different task to review a destruction proposal before running it: terraform plan -destroy produces a plan whose intended effect is to remove managed infrastructure. That capability is outside the two selected responsibilities.
D:The requested tasks are to keep confirmation and review around irreversible resource deletion; remove all resources managed by a selected configuration and state, but Targeted destruction caution primarily addresses the different goal to limit a destructive operation to a selected object only when necessary: terraform destroy -target=ADDRESS restricts action scope for exceptional situations; therefore it is not one of the mechanisms selected for the stated requirements.
Question 996
Before adopting Secure remote state storage to reduce exposure of potentially sensitive values in Terraform state, which statement sets an accurate boundary?
- Marking outputs sensitive is not a substitute for backend access restrictions.
- Credentials and provider configuration still require secure authentication and appropriate permissions.
- The underlying value can still be stored in state and plan artifacts.
- Ordinary resource arguments marked sensitive can still end up in state.
- Ephemeral resources cannot be referenced in arbitrary persistent resource arguments.
Explanation
Correct Answer
A:For Secure remote state storage in the task to reduce exposure of potentially sensitive values in Terraform state, the important caution is: Marking outputs sensitive is not a substitute for backend access restrictions. The reason this matters is its actual behavior: An access-controlled remote backend with encryption protects stored snapshots and collaboration.
Incorrect Answers
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 Secure remote state storage: Vault and supported integrations can issue time-limited credentials that reduce long-lived secret exposure. The question concerns Secure remote state storage acting to reduce exposure of potentially sensitive values in Terraform state, not a limit of Vault dynamic credentials.
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 Secure remote state storage: sensitive=true marks an input as sensitive and propagates that sensitivity into derived expressions. The question concerns Secure remote state storage acting to reduce exposure of potentially sensitive values in Terraform state, not a limit of Sensitive variable flag.
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 Secure remote state storage: Terraform's ephemeral support and provider write-only arguments can avoid persisting supported temporary values. The question concerns Secure remote state storage acting to reduce exposure of potentially sensitive values in Terraform state, not a limit of Secret rotation and state boundary.
E:The proposed warning belongs to Ephemeral resource block, which serves the different goal to read or generate temporary data for an operation without tracking it in state, rather than to Secure remote state storage: An ephemeral block uses provider-defined temporary resources for supported runtime-only inputs. The question concerns Secure remote state storage acting to reduce exposure of potentially sensitive values in Terraform state, not a limit of Ephemeral resource block.
Question 997
A team reviews the use of State and resource addresses in Terraform 1.12. Which purpose matches its actual behavior?
- track repeated instances independently under count or for_each
- distinguish snapshots belonging to different histories
- protect state files even when outputs are marked sensitive
- support incremental reconciliation against existing remote objects
Explanation
Correct Answer
A:The practical result of State and resource addresses, used to track repeated instances independently under count or for_each, is: State holds individual addresses such as example[0] or example["dev"] for separate instances. A qualification for this effect is: Changing the addressing model can require a migration to preserve bindings.
Incorrect Answers
B:That outcome applies to Terraform state lineage, intended to distinguish snapshots belonging to different histories, rather than the question's feature State and resource addresses: The lineage identifies a state history and helps detect unrelated snapshots when moving or replacing state. Unlike Terraform state lineage, State and resource addresses is intended to track repeated instances independently under count or for_each, not to distinguish snapshots belonging to different histories.
C:That outcome applies to State sensitivity, intended to protect state files even when outputs are marked sensitive, rather than the question's feature State and resource addresses: Secrets and credentials can occur in Terraform state regardless of CLI redaction settings. Unlike State sensitivity, State and resource addresses is intended to track repeated instances independently under count or for_each, not to protect state files even when outputs are marked sensitive.
D:That outcome applies to State as synchronization metadata, intended to support incremental reconciliation against existing remote objects, rather than the question's feature State and resource addresses: Terraform consults state rather than treating each run as a completely new unmanaged deployment. Unlike State as synchronization metadata, State and resource addresses is intended to track repeated instances independently under count or for_each, not to support incremental reconciliation against existing remote objects.
Question 998
A Terraform rollout has two separate requirements: first, reduce exposure of potentially sensitive values in Terraform state; second, redact secret values from normal Terraform CLI displays. Which assignment of mechanisms correctly handles both responsibilities?
- First use Secure remote state storage; then use Sensitive variable flag.
- First use Secure remote state storage; then use Ephemeral input variable.
- First use Sensitive variable flag; then use Secure remote state storage.
- First use Provider write-only argument; then use Sensitive variable flag.
- First use Ephemeral input variable; then use Provider write-only argument.
Explanation
Correct Answer
A:The first 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. The second requirement, to redact secret values from normal Terraform CLI displays, is handled by Sensitive variable flag: sensitive=true marks an input as sensitive and propagates that sensitivity into derived expressions. Each of these mechanisms has a distinct responsibility.
Incorrect Answers
B:For the requested tasks to reduce exposure of potentially sensitive values in Terraform state and redact secret values from normal Terraform CLI displays, the first candidate Secure remote state storage addresses reduce exposure of potentially sensitive values in Terraform state; the second candidate Ephemeral input variable addresses use a temporary credential without persisting its value into state or plan. This mapping fails because the second mechanism primarily supports the task to use a temporary credential without persisting its value into state or plan; the actual requirements are reduce exposure of potentially sensitive values in Terraform state first and redact secret values from normal Terraform CLI displays second.
C:For the requested tasks to reduce exposure of potentially sensitive values in Terraform state and redact secret values from normal Terraform CLI displays, 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 and the second mechanism primarily supports the task to reduce exposure of potentially sensitive values in Terraform state; the actual requirements are reduce exposure of potentially sensitive values in Terraform state first and redact secret values from normal Terraform CLI displays second.
D:For the requested tasks to reduce exposure of potentially sensitive values in Terraform state and redact secret values from normal Terraform CLI displays, the first candidate Provider write-only argument addresses send a secret to a supporting resource without retaining it in Terraform state; 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 send a secret to a supporting resource without retaining it in Terraform state; the actual requirements are reduce exposure of potentially sensitive values in Terraform state first and redact secret values from normal Terraform CLI displays second.
E:For the requested tasks to reduce exposure of potentially sensitive values in Terraform state and redact secret values from normal Terraform CLI displays, the first candidate Ephemeral input variable addresses use a temporary credential without persisting its value into state or plan; the second candidate Provider write-only argument addresses send a secret to a supporting resource without retaining it in Terraform state. This mapping fails because the first mechanism primarily supports the task to use a temporary credential without persisting its value into state or plan and the second mechanism primarily supports the task to send a secret to a supporting resource without retaining it in Terraform state; the actual requirements are reduce exposure of potentially sensitive values in Terraform state first and redact secret values from normal Terraform CLI displays second.
Question 999
A configuration review identifies the need to avoid deleting another environment by checking the active state context. Which mechanism most directly meets this particular need?
- Destroy approval safeguards
- Destroy with preserved external object
- Destroy scope and workspace selection
- terraform destroy
Explanation
Correct Answer
C:The task is to avoid deleting another environment by checking the active state context; Destroy scope and workspace selection directly supports that requirement: Destroy affects managed resources bound to the selected workspace or backend state. Its relevant boundary is: Identical Terraform files can manage different objects when their states differ.
Incorrect Answers
A:Destroy approval safeguards is designed to keep confirmation and review around irreversible resource deletion, whereas this task is to avoid deleting another environment by checking the active state context: An interactive destroy presents planned removal before approval unless automation bypasses it. Against Destroy scope and workspace selection, its limitation is: Provider delete behavior and retention policies differ by object type.
B:Destroy with preserved external object is designed to stop managing a resource while keeping its real object intact, whereas this task is to avoid deleting another environment by checking the active state context: A removed block with destroy=false or careful state removal can break Terraform management without deleting the object. Against Destroy scope and workspace selection, its limitation is: Deleting configuration without an appropriate state transition generally triggers destruction.
D:terraform destroy addresses the different requirement to remove all resources managed by a selected configuration and state: terraform destroy plans and applies destruction for tracked managed objects in that workspace; this does not by itself satisfy the requested task to avoid deleting another environment by checking the active state context. For the stated need, Destroy scope and workspace selection is the more direct mechanism.
Question 1000
A Terraform operator is specifically tasked to choose an ephemeral or write-only route when a credential must not persist. Which mechanism most directly meets this particular need?
- Sensitive variable flag
- Secret rotation and state boundary
- Provider write-only argument
- Ephemeral input variable
Explanation
Correct Answer
B:The task is to choose an ephemeral or write-only route when a credential must not persist; Secret rotation and state boundary directly supports that requirement: Terraform's ephemeral support and provider write-only arguments can avoid persisting supported temporary values. Its relevant boundary is: Ordinary resource arguments marked sensitive can still end up in state.
Incorrect Answers
A:Sensitive variable flag is designed to redact secret values from normal Terraform CLI displays, whereas this task is to choose an ephemeral or write-only route when a credential must not persist: sensitive=true marks an input as sensitive and propagates that sensitivity into derived expressions. Against Secret rotation and state boundary, 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 choose an ephemeral or write-only route when a credential must not persist: A write-only provider argument consumes a value during apply without persisting the argument in state or plan. Against Secret rotation and state boundary, 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 choose an ephemeral or write-only route when a credential must not persist: ephemeral=true on a variable keeps its value available during the operation but omits it from state and plan files. Against Secret rotation and state boundary, its limitation is: Such a value can be referenced only in allowed ephemeral contexts.