DevOps Interview Questions: Top 34 Questions and Answers for 2024
1. What is a statefile?A statefile is a file used by Terraform to keep track of the infrastructure it manages. It stores the current state of your infrastructure and is essential for tracking resource changes, enabling Terraform to determine what needs to be updated, created, or deleted.2. Where do you store the statefile?Locally in the working directory as terraform.tfstate by default.Remotely using a backend like AWS S3, Azure Blob Storage, or Terraform Cloud for collaboration and...