Terraform Associate Practice Test practice questions, page 14 of 15, with answer review and explanations.
Question 66
All standard backend types support state storage, locking, and remote operations like plan, apply and destroy.
True
False
Question 67
How can terraform plan aid in the development process?
Validates your expectations against the execution plan without permanently modifying state
Initializes your working directory containing your Terraform configuration files
Formats your Terraform configuration files
Reconciles Terraform's state against deployed resources and permanently modifies state using the current status of deployed resources
Question 68
You would like to reuse the same Terraform configuration for your development and production environments with a different state file for each. Which command would you use?
terraform import
terraform workspace
terraform state
terraform init
Question 69
What is the name assigned by Terraform to reference this resource?
compute_instance
main
google
teat
Question 70
You're building a CI/CD (continuous integration/ continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?
Pass variables to Terraform with a ג€"var flag
Copy the sensitive variables into your Terraform code
Store the sensitive variables in a secure_vars.tf file
Store the sensitive variables as plain text in a source code repository