Free Terraform Associate Exam Braindumps (page: 7)

Page 6 of 113

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


Reference:

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



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


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






Post your Comments and Discuss HashiCorp Terraform Associate exam with other Community members:

Terraform Associate Discussions & Posts