Free Terraform Associate Exam Braindumps (page: 22)

Page 21 of 88

What features stops multiple admins from changing the Terraform state at the same time?

  1. Version control
  2. Backend types
  3. Provider constraints
  4. State locking

Answer(s): D

Explanation:


Reference:

https://blog.gruntwork.io/how-to-manage-terraform-state-28f5697e68fa



A fellow developer on your team is asking for some help in refactoring their Terraform code. As part of their application's architecture, they are going to tear down an existing deployment managed by Terraform and deploy new. However, there is a server resource named aws_instance.ubuntu[1] they would like to keep to perform some additional analysis.
What command should be used to tell Terraform to no longer manage the resource?

  1. terraform apply rm aws_instance.ubuntu[1]
  2. terraform state rm aws_instance.ubuntu[1]
  3. terraform plan rm aws_instance.ubuntu[1]
  4. terraform delete aws_instance.ubuntu[1]

Answer(s): B

Explanation:


Reference:

https://www.terraform.io/docs/cli/commands/state/rm.html



Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.

  1. True
  2. False

Answer(s): B

Explanation:


Reference:

https://learn.hashicorp.com/tutorials/terraform/dependencies?in=terraform/0-13



A terraform apply can not _________ infrastructure.

  1. change
  2. destroy
  3. provision
  4. import

Answer(s): D






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

Terraform Associate Exam Discussions & Posts