What is a key benefit of the Terraform state file?
What does this code do?
Which of the following is not a valid Terraform variable type?
This is not a valid Terraform variable type.The other options are valid variable types that can store different kinds of values2.
terraform validate confirms that your infrastructure matches the Terraform state file.
terraform validate does not confirm that your infrastructure matches the Terraform state file.It only checks whether the configuration files in a directory are syntactically valid and internally consistent3. To confirm that your infrastructure matches the Terraform state file, you need to use terraform plan or terraform apply with the -refresh-only option.
Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location. Which of the following backends would not work?
This is not a valid backend for Terraform, as it does not support locking or versioning of state files4. The other options are valid backends that can store state files in a central location.