HashiCorp Certified: Terraform Associate — Question 61

When running the command terraform taint against a managed resource you want to force recreation upon, Terraform will immediately destroy and recreate the resource.

Answer options

Correct answer: B

Explanation

The correct answer is B because the terraform taint command marks a resource for recreation, but it does not immediately destroy and recreate it. Instead, the resource will be recreated during the next apply operation. Option A is incorrect as it implies immediate action, which is not how Terraform handles tainting.