Question 560
A Terraform associate evaluates: A workspace's root configuration is updated to a new approved remote state location. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The observed situation is: A workspace's root configuration is updated to a new approved remote state location. The acceptance evidence is: An existing resource remains bound after backend migration and the remote backend contains the intended state snapshot. It verifies the corrective approach (Define the supported remote backend within a terraform block, reinitialize, and migrate or reconfigure state deliberately with a backup.) and controls the risk: Changing only backend text without init and migration risks disconnected state or unintended resource recreation. Checking an unrelated Terraform setting would not prove the stated requirement was met.
The case says: A workspace's root configuration is updated to a new approved remote state location. The directly relevant Terraform response is: Define the supported remote backend within a terraform block, reinitialize, and migrate or reconfigure state deliberately with a backup. This addresses the related failure mode: Changing only backend text without init and migration risks disconnected state or unintended resource recreation. Validate the result by checking: An existing resource remains bound after backend migration and the remote backend contains the intended state snapshot. The selection matches this objective, rather than a different Terraform administration task.
Incorrect Answers
Supply backend authentication by approved environment or credential mechanisms and do not combine a cloud block and a backend block in one root configuration. This belongs to Backend credentials and HCP cloud block exclusivity (official objective 6c). Its separate risk is that hardcoded backend access tokens can persist in.terraform metadata and saved plans, and cloud and backend blocks conflict. The question instead tests Remote backend configuration and migration; that other safeguard alone does not verify it.
The plan reports a deliberate manual attribute change and reviewers decide whether to restore code intent or update configuration. This addresses Detect and review out-of-band drift (official objective 6d). The separate hazard is that assuming configuration and infrastructure remain identical can hide unapproved console edits. It does not by itself satisfy the case-specific requirement for Remote backend configuration and migration.
Local state stored only on one laptop is hard for a team to coordinate and can be lost or leaked. This does not provide the required Remote backend configuration and migration action-and-evidence pair.