An apparatus for a vehicle comprises a sensor device, memory storing instructions, and a controller linked to both, enabling autonomous driving of a vehicle. The apparatus stores first sensor data associated with autonomous driving in a buffer, transferring it to a storage device based on a…