HashiCorp Terraform Associate Exam (page: 5)
HashiCorp Certified: Terraform Associate
Updated on: 25-Dec-2025

You have recently started a new job at a retailer as an engineer. As part of this new role, you have been tasked with evaluating multiple outages that occurred during peak shopping time during the holiday season. Your investigation found that the team is manually deploying new compute instances and configuring each compute instance manually. This has led to inconsistent configuration between each compute instance.
How would you solve this using infrastructure as code?

  1. Implement a ticketing workflow that makes engineers submit a ticket before manually provisioning and configuring a resource
  2. Implement a checklist that engineers can follow when configuring compute instances
  3. Replace the compute instance type with a larger version to reduce the number of required deployments
  4. Implement a provisioning pipeline that deploys infrastructure configurations committed to your version control system following code reviews

Answer(s): D



terraform init initializes a sample main.tf file in the current directory.

  1. True
  2. False

Answer(s): B



Which two steps are required to provision new infrastructure in the Terraform workflow? (Choose two.)

  1. Destroy
  2. Apply
  3. Import
  4. Init
  5. Validate

Answer(s): B,D

Explanation:


Reference:

https://www.terraform.io/guides/core-workflow.html



Why would you use the terraform taint command?

  1. When you want to force Terraform to destroy a resource on the next apply
  2. When you want to force Terraform to destroy and recreate a resource on the next apply
  3. When you want Terraform to ignore a resource on the next apply
  4. When you want Terraform to destroy all the infrastructure in your workspace

Answer(s): B

Explanation:

The terraform taint command manually marks a Terraform-managed resource as tainted, forcing it to be destroyed and recreated on the next apply.


Reference:

https://www.terraform.io/docs/cli/commands/taint.html



Terraform requires the Go runtime as a prerequisite for installation.

  1. True
  2. False

Answer(s): B

Explanation:


Reference:

https://www.terraform.io/docs/extend/guides/v1-upgrade-guide.html



Viewing Page 5 of 71



Share your comments for HashiCorp Terraform Associate exam with other users:

DN 9/4/2023 11:19:00 PM

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.
Anonymous


YK 12/11/2023 1:10:00 AM

good one nice
JAPAN


Mn8300 11/9/2023 8:53:00 AM

nice questions
Anonymous