An applicant has ____ to pass the HazMat recertification test before they will be required to obtain a learner’s permit.

As with any CDL test, you can take the HazMat recertification test up to three times. After a third failure, you will have to obtain a learner's permit and take the HazMat knowledge test.
DMV Writen Test