What happens if I fail the CA state licensing exam?

If you did not pass the state licensing exam, you will have to apply to retake the exam and pay the $60 exam fee again.
You have two years to pass the exam from the date your exam application is received by the DRE.