Are AP exam scores percent or percentile based?

For example, a percent based score range would mean a 5 = 80% of questions correct.

A percentile based score range would mean that if everyone did worse than me, then I would get a 5.

SAT, for example, is percentile based.

Which system does CB use for AP exams?