Question 150
Before continuing an infrastructure rollout, the operator must avoid using workstation files as the source of truth for team deployments. Which mechanism most directly meets this particular need?
Explanation
Correct Answer
The task is to avoid using workstation files as the source of truth for team deployments; Local backend and shared CI directly supports that requirement: Local state is best suited to isolated or experimental work rather than competing team runners. Its relevant boundary is: Copying a state file between computers is error-prone and can leak secrets.
Incorrect Answers
Local workspace state files is designed to distinguish state of different local Terraform workspaces, whereas this task is to avoid using workstation files as the source of truth for team deployments: Non-default local workspace state snapshots can be kept in a terraform.tfstate.d structure. Against Local backend and shared CI, its limitation is: Separate workspace state does not change the configuration code automatically.
Local backend configuration is designed to choose a particular path for a locally stored Terraform state file, whereas this task is to avoid using workstation files as the source of truth for team deployments: The local backend supports a path setting to change where state is written. Against Local backend and shared CI, its limitation is: A custom local path still resides on the operator's filesystem.
Default local state storage is designed to keep a standalone project's state on its local filesystem, whereas this task is to avoid using workstation files as the source of truth for team deployments: Without a configured remote backend, Terraform ordinarily stores state locally in terraform.tfstate. Against Local backend and shared CI, its limitation is: A local file does not provide multi-user remote collaboration guarantees.