The printer can fully recover from a complete loss of power without the need for batteries or a UPS. A special sensor detects mains voltage, and in case of an interruption, it immediately shuts down the heatbed and extruder heating, leaving enough power in the capacitors to store the position and lift the print head away from the print. In case of a very short power failure, the printer will attempt to continue printing immediately without waiting for user interaction.
When the power comes back, the printer will give you an option to continue the print. Keep in mind that during extended periods without power, the bed will cool down and the printed object can detach itself from the sheet plate. So, before resuming the process, check the following: