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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
enklau
7 months, 4 weeks ago
terraform init -migrate-state
upvoted 2 times
...
Darshan07
1 year ago
Selected Answer: B
I will go with B
upvoted 1 times
...
gekkehenk
2 years, 2 months ago
Selected Answer: B
Answer is correct, terraform init migrates the state.
upvoted 3 times
...
ArizonaClassics
2 years, 2 months ago
I will go for B
upvoted 1 times
...
nakikoo
2 years, 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago