You have to take a 75 minute exam for the Foundation Level (CPUX-F) and achieve at least 28 out of 40 possible points. The exam contains 40 multiple-choice questions.
There are two ways to take an exam:
SAQ Personnel Certification is responsible for organising and evaluating the exam. The written confirmation of the result will be issued 10 to 15 working days after the exam.
For a certification, the attendance of courses is not mandatory, though recommended.
Here you can find further information on preparation.
You can find sample exams. for your individual exam preparation here.