which one is best online vs onsite certification exam?
Depends. Do you have a good environment to take your test in your own home or office?
Then go for online.
Are you worried your connection might drop or you prefer to go somewhere quiet and controlled where you can take your exam? Then go for onsite.
Only you can decide which is best.