Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 203 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 203
Topic #: 1
[All Terraform Associate Questions]

You decide to move a Terraform state file to Amazon S3 from another location. You write the code below into a file called backend.tf.



Which command will migrate your current state file to the new S3 remote backend?

  • A. terraform state
  • B. terraform init
  • C. terraform refresh
  • D. terraform push
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
enklau
4 months ago
terraform init -migrate-state
upvoted 2 times
...
Darshan07
8 months, 4 weeks ago
Selected Answer: B
I will go with B
upvoted 1 times
...
gekkehenk
1 year, 10 months ago
Selected Answer: B
Answer is correct, terraform init migrates the state.
upvoted 3 times
...
ArizonaClassics
1 year, 10 months ago
I will go for B
upvoted 1 times
...
nakikoo
1 year, 10 months ago
A. terraform state just state your .tf B. Terraform init synch with backend C. Refresh, refreshes config D. Push, not sure
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...