Your question is very specific for your problem so you should give more context.
I'd say you have a list of questions. If they are multiple-choice the system can check if they are correct. If not, a user must do it manually.
Based on each question score, the exam result will be a pass or no pass.
if you pass, you create a certificate.
There are so many possible questions, that we can't guess it is your question.
Is it on validation? On PDF creation? On email sending? On linking at user profile?