Question 360
An implementation review finds that an internal platform group must plan destruction of a managed object no longer represented in the desired configuration. Which solution is defensible?
Explanation
Correct Answer
Absent desired resource definitions normally lead to managed object deletion. This meets the stated requirement to plan destruction of a managed object no longer represented in the desired configuration.
Incorrect Answers
State-only removal operation is intended to stop tracking an existing remote object that must remain alive; removing the binding is different from destroying the remote infrastructure. That is not the specific requirement to plan destruction of a managed object no longer represented in the desired configuration.
terraform destroy is intended to intentionally remove all objects that remain managed by the current configuration and state; destroy targets managed infrastructure in the active state. That is not the specific requirement to plan destruction of a managed object no longer represented in the desired configuration.
terraform apply -destroy is intended to apply the Terraform destroy planning mode on supported Terraform versions; applying destroy mode is equivalent in intent to the destroy command. That is not the specific requirement to plan destruction of a managed object no longer represented in the desired configuration.






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