Where in your Terraform configuration do you specify a state backend?
Answer(s): A
Backends are configured with a nested backend block within the top-level terraform block.
https://www.terraform.io/docs/language/settings/backends/configuration.html
In Terraform 0.13 and above, outside of the required_providers block, Terraform configurations always refer to providers by their local names.
Outside of the required_providers block, Terraform configurations always refer to providers by their local names.
https://www.terraform.io/docs/language/providers/requirements.html
What command should you run to display all workspaces for the current configuration?
Answer(s): C
terraform workspace listThe command will list all existing workspaces.
https://www.terraform.io/docs/cli/commands/workspace/list.html
Terraform providers are always installed from the Internet.
Answer(s): B
Terraform configurations must declare which providers they require, so that Terraform can install and use them.
https://www.terraform.io/docs/language/providers/configuration.html
Which of these is the best practice to protect sensitive values in state files?
Use of remote backends and especially the availability of Terraform Cloud, there are now a variety of backends that will encrypt state at rest and will not store the state in cleartext on machines running.
https://www.terraform.io/docs/extend/best-practices/sensitive-state.html
Share your comments for HashiCorp Terraform Associate exam with other users:
question 14 - run terraform import: this is the recommended best practice for bringing manually created or destroyed resources under terraform management. you use terraform import to associate an existing resource with a terraform resource configuration. this ensures that terraform is aware of the resource, and you can subsequently manage it with terraform.
good one nice
nice questions