Question 170
A Terraform rollout has two separate requirements: first, pass the generated ID of one resource into a dependent resource; second, select the exact indexed instance from count-created resources. Which assignment of mechanisms correctly handles both responsibilities?
- First use Module output reference; then use Resource address for count instance.
- First use Resource address for count instance; then use Direct attribute reference.
- First use Resource address for for_each instance; then use Module output reference.
- First use Direct attribute reference; then use Resource address for count instance.
- First use Direct attribute reference; then use Resource address for for_each instance.
Explanation
Correct Answer
D:The first requirement, to pass the generated ID of one resource into a dependent resource, is handled by Direct attribute reference: An expression such as aws_vpc.main.id links a consuming argument to an upstream resource attribute. The second requirement, to select the exact indexed instance from count-created resources, is handled by Resource address for count instance: Count-created instances use numeric indices in expressions and state addresses, such as example[1]. Each of these mechanisms has a distinct responsibility.
Incorrect Answers
A:For the requested tasks to pass the generated ID of one resource into a dependent resource and select the exact indexed instance from count-created resources, the first candidate Module output reference addresses use a value explicitly exported by a child module; the second candidate Resource address for count instance addresses select the exact indexed instance from count-created resources. This mapping fails because the first mechanism primarily supports the task to use a value explicitly exported by a child module; the actual requirements are pass the generated ID of one resource into a dependent resource first and select the exact indexed instance from count-created resources second.
B:For the requested tasks to pass the generated ID of one resource into a dependent resource and select the exact indexed instance from count-created resources, the first candidate Resource address for count instance addresses select the exact indexed instance from count-created resources; the second candidate Direct attribute reference addresses pass the generated ID of one resource into a dependent resource. This mapping fails because the first mechanism primarily supports the task to select the exact indexed instance from count-created resources and the second mechanism primarily supports the task to pass the generated ID of one resource into a dependent resource; the actual requirements are pass the generated ID of one resource into a dependent resource first and select the exact indexed instance from count-created resources second.
C:For the requested tasks to pass the generated ID of one resource into a dependent resource and select the exact indexed instance from count-created resources, the first candidate Resource address for for_each instance addresses refer to an instance selected by its map or set key; the second candidate Module output reference addresses use a value explicitly exported by a child module. This mapping fails because the first mechanism primarily supports the task to refer to an instance selected by its map or set key and the second mechanism primarily supports the task to use a value explicitly exported by a child module; the actual requirements are pass the generated ID of one resource into a dependent resource first and select the exact indexed instance from count-created resources second.
E:For the requested tasks to pass the generated ID of one resource into a dependent resource and select the exact indexed instance from count-created resources, the first candidate Direct attribute reference addresses pass the generated ID of one resource into a dependent resource; the second candidate Resource address for for_each instance addresses refer to an instance selected by its map or set key. This mapping fails because the second mechanism primarily supports the task to refer to an instance selected by its map or set key; the actual requirements are pass the generated ID of one resource into a dependent resource first and select the exact indexed instance from count-created resources second.
Question 171
The implementation must both allow independent resources to be managed concurrently within one run and follow the core workflow from configuration to deliberate execution. Which TWO mechanisms directly address these two separate requirements? Choose TWO.
- Write-plan-apply lifecycle
- Saved plan promotion
- Collaborative review before apply
- Plan refresh and graph evaluation
- Dependency-aware parallelism
Explanation
Correct Answers
A:Among the paired tasks to allow independent resources to be managed concurrently within one run and follow the core workflow from configuration to deliberate execution, Write-plan-apply lifecycle serves the requirement to follow the core workflow from configuration to deliberate execution: The core workflow involves writing configuration, initializing, planning, then applying intended changes. The other task must be covered by a separate mechanism.
E:Among the paired tasks to allow independent resources to be managed concurrently within one run and follow the core workflow from configuration to deliberate execution, Dependency-aware parallelism serves the requirement to allow independent resources to be managed concurrently within one run: Terraform uses its dependency graph to schedule actions that have no ordering relationship. The other task must be covered by a separate mechanism.
Incorrect Answers
B:The requirements are allow independent resources to be managed concurrently within one run and follow the core workflow from configuration to deliberate execution, while Saved plan promotion supports the different task to apply the reviewed plan artifact rather than recomputing from changed inputs: terraform plan -out creates a binary plan that terraform apply can execute by file name. That capability is outside the two selected responsibilities.
C:The requirements are allow independent resources to be managed concurrently within one run and follow the core workflow from configuration to deliberate execution, while Collaborative review before apply supports the different task to separate proposing infrastructure changes from authorizing them: Teams can share configuration and review a Terraform plan before a privileged apply runs. That capability is outside the two selected responsibilities.
D:The requirements are allow independent resources to be managed concurrently within one run and follow the core workflow from configuration to deliberate execution, while Plan refresh and graph evaluation supports the different task to reason about dependencies before Terraform proposes remote operations: Terraform evaluates configuration, state, and provider information to construct an action graph. That capability is outside the two selected responsibilities.
Question 172
A Terraform rollout has two separate requirements: first, avoid using workstation files as the source of truth for team deployments; second, keep a standalone project's state on its local filesystem. Which assignment of mechanisms correctly handles both responsibilities?
- First use Local backend and shared CI; then use Local backend configuration.
- First use Local backend and shared CI; then use Default local state storage.
- First use Local workspace state files; then use Default local state storage.
- First use Local backend configuration; then use Local workspace state files.
- First use Default local state storage; then use Local backend and shared CI.
Explanation
Correct Answer
B:The first requirement, to avoid using workstation files as the source of truth for team deployments, is handled by Local backend and shared CI: Local state is best suited to isolated or experimental work rather than competing team runners. The second requirement, to keep a standalone project's state on its local filesystem, is handled by Default local state storage: Without a configured remote backend, Terraform ordinarily stores state locally in terraform.tfstate. Each of these mechanisms has a distinct responsibility.
Incorrect Answers
A:For the requested tasks to avoid using workstation files as the source of truth for team deployments and keep a standalone project's state on its local filesystem, the first candidate Local backend and shared CI addresses avoid using workstation files as the source of truth for team deployments; the second candidate Local backend configuration addresses choose a particular path for a locally stored Terraform state file. This mapping fails because the second mechanism primarily supports the task to choose a particular path for a locally stored Terraform state file; the actual requirements are avoid using workstation files as the source of truth for team deployments first and keep a standalone project's state on its local filesystem second.
C:For the requested tasks to avoid using workstation files as the source of truth for team deployments and keep a standalone project's state on its local filesystem, the first candidate Local workspace state files addresses distinguish state of different local Terraform workspaces; the second candidate Default local state storage addresses keep a standalone project's state on its local filesystem. This mapping fails because the first mechanism primarily supports the task to distinguish state of different local Terraform workspaces; the actual requirements are avoid using workstation files as the source of truth for team deployments first and keep a standalone project's state on its local filesystem second.
D:For the requested tasks to avoid using workstation files as the source of truth for team deployments and keep a standalone project's state on its local filesystem, the first candidate Local backend configuration addresses choose a particular path for a locally stored Terraform state file; the second candidate Local workspace state files addresses distinguish state of different local Terraform workspaces. This mapping fails because the first mechanism primarily supports the task to choose a particular path for a locally stored Terraform state file and the second mechanism primarily supports the task to distinguish state of different local Terraform workspaces; the actual requirements are avoid using workstation files as the source of truth for team deployments first and keep a standalone project's state on its local filesystem second.
E:For the requested tasks to avoid using workstation files as the source of truth for team deployments and keep a standalone project's state on its local filesystem, the first candidate Default local state storage addresses keep a standalone project's state on its local filesystem; the second candidate Local backend and shared CI addresses avoid using workstation files as the source of truth for team deployments. This mapping fails because the first mechanism primarily supports the task to keep a standalone project's state on its local filesystem and the second mechanism primarily supports the task to avoid using workstation files as the source of truth for team deployments; the actual requirements are avoid using workstation files as the source of truth for team deployments first and keep a standalone project's state on its local filesystem second.
Question 173
A Terraform rollout has two separate requirements: first, repeat an apply without recreating already matching resources; second, preview the proposed actions before changing real resources. Which assignment of mechanisms correctly handles both responsibilities?
- First use Infrastructure as code definition; then use Infrastructure execution plan.
- First use Idempotent reconciliation; then use Infrastructure provider API.
- First use Idempotent reconciliation; then use Infrastructure execution plan.
- First use Infrastructure provider API; then use Infrastructure as code definition.
- First use Infrastructure execution plan; then use Idempotent reconciliation.
Explanation
Correct Answer
C:The first requirement, to repeat an apply without recreating already matching resources, is handled by Idempotent reconciliation: Terraform compares desired configuration with prior state and refreshed remote information and normally plans no change when they agree. The second requirement, to preview the proposed actions before changing real resources, is handled by Infrastructure execution plan: A Terraform plan calculates proposed actions from configuration, state, providers, and current observations. Each of these mechanisms has a distinct responsibility.
Incorrect Answers
A:For the requested tasks to repeat an apply without recreating already matching resources and preview the proposed actions before changing real resources, the first candidate Infrastructure as code definition addresses represent desired infrastructure in reviewable configuration files; the second candidate Infrastructure execution plan addresses preview the proposed actions before changing real resources. This mapping fails because the first mechanism primarily supports the task to represent desired infrastructure in reviewable configuration files; the actual requirements are repeat an apply without recreating already matching resources first and preview the proposed actions before changing real resources second.
B:For the requested tasks to repeat an apply without recreating already matching resources and preview the proposed actions before changing real resources, the first candidate Idempotent reconciliation addresses repeat an apply without recreating already matching resources; the second candidate Infrastructure provider API addresses translate declarative resources into operations on a platform. This mapping fails because the second mechanism primarily supports the task to translate declarative resources into operations on a platform; the actual requirements are repeat an apply without recreating already matching resources first and preview the proposed actions before changing real resources second.
D:For the requested tasks to repeat an apply without recreating already matching resources and preview the proposed actions before changing real resources, the first candidate Infrastructure provider API addresses translate declarative resources into operations on a platform; the second candidate Infrastructure as code definition addresses represent desired infrastructure in reviewable configuration files. This mapping fails because the first mechanism primarily supports the task to translate declarative resources into operations on a platform and the second mechanism primarily supports the task to represent desired infrastructure in reviewable configuration files; the actual requirements are repeat an apply without recreating already matching resources first and preview the proposed actions before changing real resources second.
E:For the requested tasks to repeat an apply without recreating already matching resources and preview the proposed actions before changing real resources, the first candidate Infrastructure execution plan addresses preview the proposed actions before changing real resources; the second candidate Idempotent reconciliation addresses repeat an apply without recreating already matching resources. This mapping fails because the first mechanism primarily supports the task to preview the proposed actions before changing real resources and the second mechanism primarily supports the task to repeat an apply without recreating already matching resources; the actual requirements are repeat an apply without recreating already matching resources first and preview the proposed actions before changing real resources second.
Question 174
The implementation must both choose an explicit compatible release of a registry module and load a reusable module from a directory in the same repository. Which TWO mechanisms directly address these two separate requirements? Choose TWO.
- Git-hosted module source
- Public registry module source
- Module source subdirectory
- Registry module version selection
- Local child module source
Explanation
Correct Answers
D:Among the paired tasks to choose an explicit compatible release of a registry module and load a reusable module from a directory in the same repository, Registry module version selection serves the requirement to choose an explicit compatible release of a registry module: The version argument on a registry module call constrains which published module release is installed. The other task must be covered by a separate mechanism.
E:Among the paired tasks to choose an explicit compatible release of a registry module and load a reusable module from a directory in the same repository, Local child module source serves the requirement to load a reusable module from a directory in the same repository: A source like ./modules/network points a module call at a local filesystem path. The other task must be covered by a separate mechanism.
Incorrect Answers
A:The requirements are choose an explicit compatible release of a registry module and load a reusable module from a directory in the same repository, while Git-hosted module source supports the different task to reference a reusable Terraform module from a VCS repository: A git:: URL can fetch a module from a Git repository using supported source syntax. That capability is outside the two selected responsibilities.
B:The requirements are choose an explicit compatible release of a registry module and load a reusable module from a directory in the same repository, while Public registry module source supports the different task to reuse a published module from the Terraform Registry: Registry source addresses identify published module packages by namespace, name, and provider. That capability is outside the two selected responsibilities.
C:The requirements are choose an explicit compatible release of a registry module and load a reusable module from a directory in the same repository, while Module source subdirectory supports the different task to select a Terraform module within a larger repository: The double-slash syntax in supported remote sources identifies a module subdirectory within the downloaded package. That capability is outside the two selected responsibilities.
Question 175
A Terraform rollout has two separate requirements: first, queue runs through an API integration instead of only direct Git events; second, isolate the state, variables, and run history for one managed infrastructure unit. Which assignment of mechanisms correctly handles both responsibilities?
- First use HCP Terraform API-driven run; then use VCS-driven HCP Terraform workflow.
- First use HCP Terraform workspace; then use HCP Terraform API-driven run.
- First use HCP Terraform API-driven run; then use HCP Terraform workspace.
- First use HCP Terraform remote execution; then use HCP Terraform workspace.
- First use VCS-driven HCP Terraform workflow; then use HCP Terraform remote execution.
Explanation
Correct Answer
C:The first requirement, to queue runs through an API integration instead of only direct Git events, is handled by HCP Terraform API-driven run: The HCP Terraform API can support workflows that upload configuration and trigger managed runs. The second requirement, to isolate the state, variables, and run history for one managed infrastructure unit, is handled by HCP Terraform workspace: An HCP Terraform workspace organizes a Terraform run context with its own state and configuration connection. Each of these mechanisms has a distinct responsibility.
Incorrect Answers
A:For the requested tasks to queue runs through an API integration instead of only direct Git events and isolate the state, variables, and run history for one managed infrastructure unit, the first candidate HCP Terraform API-driven run addresses queue runs through an API integration instead of only direct Git events; the second candidate VCS-driven HCP Terraform workflow addresses start remote plans from connected version-control updates. This mapping fails because the second mechanism primarily supports the task to start remote plans from connected version-control updates; the actual requirements are queue runs through an API integration instead of only direct Git events first and isolate the state, variables, and run history for one managed infrastructure unit second.
B:For the requested tasks to queue runs through an API integration instead of only direct Git events and isolate the state, variables, and run history for one managed infrastructure unit, the first candidate HCP Terraform workspace addresses isolate the state, variables, and run history for one managed infrastructure unit; the second candidate HCP Terraform API-driven run addresses queue runs through an API integration instead of only direct Git events. This mapping fails because the first mechanism primarily supports the task to isolate the state, variables, and run history for one managed infrastructure unit and the second mechanism primarily supports the task to queue runs through an API integration instead of only direct Git events; the actual requirements are queue runs through an API integration instead of only direct Git events first and isolate the state, variables, and run history for one managed infrastructure unit second.
D:For the requested tasks to queue runs through an API integration instead of only direct Git events and isolate the state, variables, and run history for one managed infrastructure unit, the first candidate HCP Terraform remote execution addresses execute Terraform operations in a managed remote runtime; the second candidate HCP Terraform workspace addresses isolate the state, variables, and run history for one managed infrastructure unit. This mapping fails because the first mechanism primarily supports the task to execute Terraform operations in a managed remote runtime; the actual requirements are queue runs through an API integration instead of only direct Git events first and isolate the state, variables, and run history for one managed infrastructure unit second.
E:For the requested tasks to queue runs through an API integration instead of only direct Git events and isolate the state, variables, and run history for one managed infrastructure unit, the first candidate VCS-driven HCP Terraform workflow addresses start remote plans from connected version-control updates; the second candidate HCP Terraform remote execution addresses execute Terraform operations in a managed remote runtime. This mapping fails because the first mechanism primarily supports the task to start remote plans from connected version-control updates and the second mechanism primarily supports the task to execute Terraform operations in a managed remote runtime; the actual requirements are queue runs through an API integration instead of only direct Git events first and isolate the state, variables, and run history for one managed infrastructure unit second.
Question 176
A Terraform rollout has two separate requirements: first, adopt an existing object rather than creating a new duplicate; second, use import planning support to help write resource HCL for an existing object. Which assignment of mechanisms correctly handles both responsibilities?
- First use terraform import CLI; then use Generate import configuration where supported.
- First use Import without recreation; then use Generate import configuration where supported.
- First use Generate import configuration where supported; then use Import without recreation.
- First use Import without recreation; then use Import validation follow-up.
- First use Import validation follow-up; then use terraform import CLI.
Explanation
Correct Answer
B:The first requirement, to adopt an existing object rather than creating a new duplicate, is handled by Import without recreation: Import connects an existing provider object to the Terraform state mapping. The second requirement, to use import planning support to help write resource HCL for an existing object, is handled by Generate import configuration where supported: Terraform supports generating configuration with appropriate import workflows for certain imported resources. Each of these mechanisms has a distinct responsibility.
Incorrect Answers
A:For the requested tasks to adopt an existing object rather than creating a new duplicate and use import planning support to help write resource HCL for an existing object, the first candidate terraform import CLI addresses bring a pre-existing remote object under a resource address in Terraform state; the second candidate Generate import configuration where supported addresses use import planning support to help write resource HCL for an existing object. This mapping fails because the first mechanism primarily supports the task to bring a pre-existing remote object under a resource address in Terraform state; the actual requirements are adopt an existing object rather than creating a new duplicate first and use import planning support to help write resource HCL for an existing object second.
C:For the requested tasks to adopt an existing object rather than creating a new duplicate and use import planning support to help write resource HCL for an existing object, the first candidate Generate import configuration where supported addresses use import planning support to help write resource HCL for an existing object; the second candidate Import without recreation addresses adopt an existing object rather than creating a new duplicate. This mapping fails because the first mechanism primarily supports the task to use import planning support to help write resource HCL for an existing object and the second mechanism primarily supports the task to adopt an existing object rather than creating a new duplicate; the actual requirements are adopt an existing object rather than creating a new duplicate first and use import planning support to help write resource HCL for an existing object second.
D:For the requested tasks to adopt an existing object rather than creating a new duplicate and use import planning support to help write resource HCL for an existing object, the first candidate Import without recreation addresses adopt an existing object rather than creating a new duplicate; the second candidate Import validation follow-up addresses run a plan after importing an object to check unexpected updates. This mapping fails because the second mechanism primarily supports the task to run a plan after importing an object to check unexpected updates; the actual requirements are adopt an existing object rather than creating a new duplicate first and use import planning support to help write resource HCL for an existing object second.
E:For the requested tasks to adopt an existing object rather than creating a new duplicate and use import planning support to help write resource HCL for an existing object, the first candidate Import validation follow-up addresses run a plan after importing an object to check unexpected updates; the second candidate terraform import CLI addresses bring a pre-existing remote object under a resource address in Terraform state. This mapping fails because the first mechanism primarily supports the task to run a plan after importing an object to check unexpected updates and the second mechanism primarily supports the task to bring a pre-existing remote object under a resource address in Terraform state; the actual requirements are adopt an existing object rather than creating a new duplicate first and use import planning support to help write resource HCL for an existing object second.
Question 177
The deployment owner requests a reliable way to ensure a dependent resource waits for a referenced upstream attribute. Which mechanism most directly meets this particular need?
- Module output reference
- Implicit resource dependency
- Direct attribute reference
- Self reference in provisioners
- Reference-based evaluation order
Explanation
Correct Answer
B:The task is to ensure a dependent resource waits for a referenced upstream attribute; Implicit resource dependency directly supports that requirement: Terraform infers dependencies when expressions reference other resources. Its relevant boundary is: An explicit depends_on is unnecessary for relationships already expressed through references.
Incorrect Answers
A:Module output reference is designed to use a value explicitly exported by a child module, whereas this task is to ensure a dependent resource waits for a referenced upstream attribute: The parent reads a child output through module.name.output_name rather than reaching into child internals. Against Implicit resource dependency, its limitation is: Unexported child resource attributes are not directly available to the caller.
C:Direct attribute reference is designed to pass the generated ID of one resource into a dependent resource, whereas this task is to ensure a dependent resource waits for a referenced upstream attribute: An expression such as aws_vpc.main.id links a consuming argument to an upstream resource attribute. Against Implicit resource dependency, its limitation is: Using a plain string ID loses that implicit graph dependency.
D:Self reference in provisioners is designed to refer to the current managed object in its own provisioner context, whereas this task is to ensure a dependent resource waits for a referenced upstream attribute: The self object is available in supported provisioner and connection contexts for the containing resource. Against Implicit resource dependency, its limitation is: It is not a general replacement for cross-resource references.
E:Reference-based evaluation order is designed to avoid assuming files or block order determines operations, whereas this task is to ensure a dependent resource waits for a referenced upstream attribute: Terraform's graph follows expression dependencies, not the physical line order of configuration blocks. Against Implicit resource dependency, its limitation is: References can still form invalid cycles if dependencies point back to each other.
Question 178
Before continuing an infrastructure rollout, the operator must review planned deletion before permitting an irreversible action. Which mechanism most directly meets this particular need?
- Write-plan-apply lifecycle
- Plan refresh and graph evaluation
- Collaborative review before apply
- Plan inspection checkpoint
Explanation
Correct Answer
D:The task is to review planned deletion before permitting an irreversible action; Plan inspection checkpoint directly supports that requirement: A review of change symbols and affected addresses can reveal unexpected destroy or replacement operations. Its relevant boundary is: A green validation result cannot substitute for plan review.
Incorrect Answers
A:Write-plan-apply lifecycle is designed to follow the core workflow from configuration to deliberate execution, whereas this task is to review planned deletion before permitting an irreversible action: The core workflow involves writing configuration, initializing, planning, then applying intended changes. Against Plan inspection checkpoint, its limitation is: Destroy and import are maintenance actions rather than steps in every routine run.
B:Plan refresh and graph evaluation is designed to reason about dependencies before Terraform proposes remote operations, whereas this task is to review planned deletion before permitting an irreversible action: Terraform evaluates configuration, state, and provider information to construct an action graph. Against Plan inspection checkpoint, its limitation is: The graph is not simply a sequential list ordered by file line number.
C:Collaborative review before apply is designed to separate proposing infrastructure changes from authorizing them, whereas this task is to review planned deletion before permitting an irreversible action: Teams can share configuration and review a Terraform plan before a privileged apply runs. Against Plan inspection checkpoint, its limitation is: Version control approval alone does not guarantee the exact reviewed plan is used.
Question 179
A reviewer is asked to choose a mechanism to populate or update provider checksum selections in the lock file. Which mechanism most directly meets this particular need?
- Provider version constraint
- required_providers source
- terraform providers lock
- terraform init -upgrade
Explanation
Correct Answer
C:The task is to populate or update provider checksum selections in the lock file; terraform providers lock directly supports that requirement: The providers lock command can record provider package checksums for selected target platforms. Its relevant boundary is: It is not the command that downloads and configures all root-module infrastructure.
Incorrect Answers
A:Provider version constraint is designed to restrict acceptable versions of an infrastructure provider, whereas this task is to populate or update provider checksum selections in the lock file: The version argument in required_providers expresses allowed provider versions, such as a compatible release series. Against terraform providers lock, its limitation is: The constraint is not the same as Terraform CLI required_version.
B:required_providers source is designed to identify the namespace and provider plugin that Terraform should install, whereas this task is to populate or update provider checksum selections in the lock file: The required_providers map supplies a provider source address such as hashicorp/aws for dependency resolution. Against terraform providers lock, its limitation is: A provider block configures an installed provider instance rather than declaring its source.
D:terraform init -upgrade addresses the different requirement to ask initialization to reconsider allowed provider selections: Using -upgrade during init allows newer versions satisfying the configured provider constraints to be selected; this does not by itself satisfy the requested task to populate or update provider checksum selections in the lock file. For the stated need, terraform providers lock is the more direct mechanism.
Question 180
In a reusable deployment, the primary objective is to place an isolated sandbox state file away from another lab's state. Which mechanism most directly meets this particular need?
- Custom local state path
- Local state backup
- Local backend and shared CI
- Default local state storage
Explanation
Correct Answer
A:The task is to place an isolated sandbox state file away from another lab's state; Custom local state path directly supports that requirement: A local backend path can separate state storage from another configuration's snapshot. Its relevant boundary is: State location alone does not separate permissions for remote provider resources.
Incorrect Answers
B:Local state backup is designed to retain a prior state snapshot while modifying local state, whereas this task is to place an isolated sandbox state file away from another lab's state: Local state operations commonly create backup snapshots to aid recovery from mistakes. Against Custom local state path, its limitation is: A backup does not make concurrent state modifications safe.
C:Local backend and shared CI is designed to avoid using workstation files as the source of truth for team deployments, whereas this task is to place an isolated sandbox state file away from another lab's state: Local state is best suited to isolated or experimental work rather than competing team runners. Against Custom local state path, its limitation is: Copying a state file between computers is error-prone and can leak secrets.
D:Default local state storage addresses the different requirement to keep a standalone project's state on its local filesystem: Without a configured remote backend, Terraform ordinarily stores state locally in terraform.tfstate; this does not by itself satisfy the requested task to place an isolated sandbox state file away from another lab's state. For the stated need, Custom local state path is the more direct mechanism.