Summer Certification Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Terraform-Associate-004 Question # 82 Topic 9 Discussion

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Terraform-Associate-004 Question # 82 Topic 9 Discussion

Terraform-Associate-004 Exam Topic 9 Question 82 Discussion:
Question #: 82
Topic #: 9

You have a saved execution plan containing desired changes for infrastructure managed by Terraform. After running the command terraform apply my.tfplan, you receive the error shown in the exhibit below.

Exhibit:

Error: Saved plan is stale

The given plan file can no longer be applied because the state was changed by another operation after the plan was created.

How can you apply the desired changes? (Choose TWO correct answers)


A.

Update the current plan file using the terraform state push command.


B.

Refresh the current state data using the -refresh-only flag.


C.

Force the apply command by adding the flag -lock=false.


D.

Generate a new execution plan file with terraform plan, and apply the new plan.


E.

Run terraform apply without the saved execution plan.


Get Premium Terraform-Associate-004 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.