CPE credits

Hello all, I just needed some information on CPE credits for the CPA. Is it better to take CPE credits in-person or buy the courses from the AICPA? Also, do you have to take a test at the end of the courses if you buy them online? And is there any good company that offers these courses in-person? Please, any kind of help will be much appreciated. Thank you.