nerdexam
HashiCorp

TA-002-P · Question #77

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 f

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

How the community answered

(37 responses)
  • A
    92% (34)
  • C
    3% (1)
  • D
    5% (2)

Why each option

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.

AAmazon S3Correct

The statement that Amazon S3 would 'not work' as a remote backend for Terraform state is contrary to general Terraform knowledge, as S3 is a highly popular and fully supported backend option. However, if this were the correct answer, it could imply a very specific, unstated constraint within the problem's context, such as the absence of an AWS account, insufficient permissions, network restrictions, or a requirement for a different type of backend that S3 does not natively provide beyond simple object storage for state.

BArtifactory

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.

CGit

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.

DTerraform Cloud

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

Source: 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 Practice