Terraform Associate 004 Practice Test

Terraform Associate 004 Practice Test practice questions, page 7 of 7, with answer review and explanations.

Question 31

Which command must you run before you run a plan or apply for the first time?

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

Question 32

As a developer, you want to ensure your plugins are up-to-date with the latest versions. Which Terraform command should you use?

  1. terraform apply -upgrade
  2. terraform providers -upgrade
  3. terraform init -upgrade
  4. terraform refresh -upgrade

Question 33

What does terraform apply change after you approve the execution plan? (Choose two.)

  1. The state file
  2. The cloud infrastructure
  3. The execution plan
  4. The Terraform code
  5. The .terraform directory