Hopefully you’ve already taken an AP History course/test. If so, the essays shouldn’t be too much of a problem. This was my case at the time. Then, you can focus solely on learning the content. If not, definitely learn and practice writing the essays (DBQ, LEQ) as those take time to perform well on. Without a solid base of essay writing skills, you won’t be able to earn a 4/5 on the exam.