Terraform Associate Practice Test

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.

  1. True
  2. False

Question 67

How can terraform plan aid in the development process?

  1. Validates your expectations against the execution plan without permanently modifying state
  2. Initializes your working directory containing your Terraform configuration files
  3. Formats your Terraform configuration files
  4. 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?

  1. terraform import
  2. terraform workspace
  3. terraform state
  4. terraform init

Question 69

What is the name assigned by Terraform to reference this resource?

  1. compute_instance
  2. main
  3. google
  4. 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?

  1. Pass variables to Terraform with a ג€"var flag
  2. Copy the sensitive variables into your Terraform code
  3. Store the sensitive variables in a secure_vars.tf file
  4. Store the sensitive variables as plain text in a source code repository