buying a non operational car in Cali.

If you buy it you're responsible for the back fees. A friend gave me a 2000 Ranger about 5 years ago, registration was 2 years expired. I had to pay all of it to bring the truck current and in my name.
If the vehicle is out of their system due to being inactive for a specific period of time, the fees actually go away.