You can take the online course as many times as necessary until you successfully pass the course. When you sign up and pay the $22 fee, you will be eligible to take the test twice. If you fail both times, you will have to pay the $22 fee again and be given 2 more opportunities to pass the course.