Automation, Orchestration, and Scripting

An administrator accidentally deletes the local state file for a configuration that was already applied. The virtual machines it created are still running. The administrator then runs tofu apply with the unchanged configuration. What is the most likely result?

Show the answer

Correct answerA. It plans to create every resource again, since none are recorded

State is how OpenTofu maps configuration to real objects. With no state, it treats every resource as new and plans to create it again. It does not discover existing objects through the API; that requires tofu import.