nerdexam
HashiCorpHashiCorp

TA-002-P · Question #77

TA-002-P Question #77: Real Exam Question with Answer & Explanation

The correct answer is A: Amazon S3. While Amazon S3 is a widely supported remote backend for Terraform state, if it were considered "not to work" for specific migration scenarios, it could be due to external factors not explicitly mentioned, such as environment constraints or missing prerequisites.

Implement and maintain state

Question

Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to begin storing the state file in a central location. Which of the following backends would not work?

Options

  • AAmazon S3
  • BArtifactory
  • CGit
  • DTerraform Cloud

Explanation

While Amazon S3 is a widely supported remote backend for Terraform state, if it were considered "not to work" for specific migration scenarios, it could be due to external factors not explicitly mentioned, such as environment constraints or missing prerequisites.

Common mistakes.

  • B. Artifactory can function as a remote backend for Terraform state, often by using its S3-compatible object storage capabilities or by leveraging the http backend to store state files.
  • C. Git is not a remote backend for Terraform state. It is a version control system and cannot be directly configured to store and manage Terraform state files, which require specific API access for locking and consistency.
  • D. Terraform Cloud is explicitly designed as a remote backend for Terraform state, offering robust features for state management, collaboration, and remote operations.

Concept tested. Terraform remote backend compatibility

Reference. https://developer.hashicorp.com/terraform/language/settings/backends/s3

Topics

#Terraform Backends#Remote State#State Management

Community Discussion

No community discussion yet for this question.

Full TA-002-P PracticeBrowse All TA-002-P Questions