When should you use the force-unlock command?
Answer(s): C
Manually unlock the state for the defined configuration.
https://www.terraform.io/docs/cli/commands/force-unlock.html
Terraform can import modules from a number of sources `" which of the following is not a valid source?
Answer(s): A
Which of the following is available only in Terraform Enterprise or Cloud workspaces and not in Terraform CLI?
terraform validate validates the syntax of Terraform files.
The terraform validate command validates the syntax and arguments of the Terraform configuration files.
https://www.terraform.io/docs/cli/code/index.html
You have used Terraform to create an ephemeral development environment in the cloud and are now ready to destroy all the infrastructure described by yourTerraform configuration. To be safe, you would like to first see all the infrastructure that will be deleted by Terraform.Which command should you use to show all of the resources that will be deleted? (Choose two.)
Answer(s): A,D
https://www.terraform.io/docs/cli/commands/state/rm.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