Question 1
A financial services firm is adopting a cloud operating model and wants to implement Infrastructure as Code (IaC) using Terraform. The development team is distributed globally. During initial testing, developers storing the terraform.tfstate file on their local machines caused frequent overwrites and configuration drift. Which action represents the most robust and secure solution to this problem?
Answer and explanation
Correct answer: B
Using a remote backend is the standard best practice for teams using Terraform. It provides a centralized, consistent location for the state file. Crucially, features like state locking prevent multiple users from running terraform apply simultaneously, avoiding race conditions and state corruption. Enabling server-side encryption adds a critical layer of security for the sensitive information often contained in state files.