nerdexam
HashiCorp

TA-002-P · Question #170

You have multiple developers working on a terraform project (using terraform OSS), and have saved the terraform state in a remote S3 bucket . However ,team is intermittently experiencing inconsistenci

Sign in or unlock TA-002-P to reveal the answer and full explanation for question #170. The question stem and answer options stay visible for context.

Implement and maintain state

Question

You have multiple developers working on a terraform project (using terraform OSS), and have saved the terraform state in a remote S3 bucket . However ,team is intermittently experiencing inconsistencies in the provisioned infrastructure / failure in the code . You have traced this problem to simultaneous/concurrent runs of terraform apply command for 2/more developers . What can you do to fix this problem?

Options

  • AUse terraform workspaces feature, this will fix this problem by default , as every
  • BStructure your team in such a way that only one individual will run terraform apply ,
  • CStop using remote state , and store the developer tfstate in their own machine . Once a
  • DEnable terraform state locking for the S3 backend using DynamoDB table. This prevents

Unlock TA-002-P to see the answer

You've previewed enough free TA-002-P questions. Unlock TA-002-P for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Terraform state#Remote state#State locking#S3 backend
Full TA-002-P Practice