ExamGecko
Question list
Search
Search

Question 97 - Terraform Associate 003 discussion

Report
Export

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
Answers
A.
terraform state
B.
terraform init
Answers
B.
terraform init
C.
terraform push
Answers
C.
terraform push
D.
terraform refresh
Answers
D.
terraform refresh
Suggested answer: B

Explanation:

This command will initialize the new backend and prompt you to migrate the existing state file to the new location3. The other commands are not relevant for this task.

asked 18/09/2024
TRAORE Issa
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first