Question 400
An enterprise infrastructure group must permit an external controller to change a resource tag without Terraform planning to revert it. Which Terraform feature or operation best meets this precise requirement?
Explanation
Correct Answer
Ignore_changes delegates selected postcreation attributes to another controller. This meets the stated requirement to permit an external controller to change a resource tag without Terraform planning to revert it.
Incorrect Answers
prevent_destroy lifecycle rule is intended to stop an accidental plan from deleting a critical configured database; prevent_destroy rejects destructive changes while its configuration remains present. That is not the specific requirement to permit an external controller to change a resource tag without Terraform planning to revert it.
Implicit reference dependency is intended to derive a storage object name from the resource that creates its bucket; expressions referring to managed attributes automatically add dependencies. That is not the specific requirement to permit an external controller to change a resource tag without Terraform planning to revert it.
create_before_destroy lifecycle rule is intended to provision a replacement before tearing down the existing service when supported by the platform; the lifecycle rule reverses default replacement ordering. That is not the specific requirement to permit an external controller to change a resource tag without Terraform planning to revert it.






HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests