Terraform Associate Practice Test practice questions, page 6 of 15, with answer review and explanations.
Question 26
When should you use the force-unlock command?
You see a status message that you cannot acquire the lock
You have a high priority change
Automatic unlocking failed
You apply failed due to a state lock
Question 27
Terraform can import modules from a number of sources `" which of the following is not a valid source?
FTP server
GitHub repository
Local path
Terraform Module Registry
Question 28
Which of the following is available only in Terraform Enterprise or Cloud workspaces and not in Terraform CLI?
Secure variable storage
Support for multiple cloud providers
Dry runs with terraform plan
Using the workspace as a data source
Question 29
terraform validate validates the syntax of Terraform files.
True
False
Question 30
You have used Terraform to create an ephemeral development environment in the cloud and are now ready to destroy all the infrastructure described by your Terraform 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.)
Run terraform plan -destroy.
This is not possible. You can only show resources that will be created.
Run terraform state rm *.
Run terraform destroy and it will first output all the resources that will be deleted before prompting for approval.