How many times can I take the PA pre-license course final exam?

You can take the pre-license course final exam as many times as needed until you pass.
This applies to both the 30-hour Real Estate Fundamentals course and the 45-hour Real Estate Practice course.