->
I failed my written permit test the first and I’m not sure how to retake it. Do I have to go through the same process I did the first time or do I just take everything I had already done and ask to take the test again?
->
I failed my written permit test the first and I’m not sure how to retake it. Do I have to go through the same process I did the first time or do I just take everything I had already done and ask to take the test again?

According to the California DMV website below, you have to start over if you fail the test three times. This is what it says:
Fees must be paid to (a) obtain an original license, (b) renew a license, (c) reinstate a license if it has been revoked or suspended, (d) obtain a duplicate license, (e) upgrade your license to another class or add an endorsement, and (f) resubmit an application for a license if you fail three written tests or three driving tests.
you can take the test 3 times for the fee you paid
check this website http://www.ezdrivingtest.com which has good set of questions for CA
Best wishes
Joseph