ExamGecko
Question list
Search
Search

Question 159 - Terraform Associate 003 discussion

Report
Export

Why would you use the -replace flag for terraform apply?

A.
You want Terraform to ignore a resource on the next apply
Answers
A.
You want Terraform to ignore a resource on the next apply
B.
You want Terraform to destroy all the infrastructure in your workspace
Answers
B.
You want Terraform to destroy all the infrastructure in your workspace
C.
You want to force Terraform to destroy a resource on the next apply
Answers
C.
You want to force Terraform to destroy a resource on the next apply
D.
You want to force Terraform to destroy and recreate a resource on the next apply
Answers
D.
You want to force Terraform to destroy and recreate a resource on the next apply
Suggested answer: D

Explanation:

The -replace flag is used with the terraform apply command when there is a need to explicitly force Terraform to destroy and then recreate a specific resource during the next apply. This can be necessary in situations where a simple update is insufficient or when a resource must be re-provisioned to pick up certain changes.

asked 18/09/2024
Yusuf E
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first