AP Music is not an easy class at all. Having said that, it will help you to have a background in piano. The class is something you would definitely want to either take, if your school offers it, or to study intensively online. If you do spend 3 years studying music theory intensively (meaning not only rhythm, but figured bass, chord analyzing, dictation, sight singing, etc.), then you should be well prepared for the test. Good luck!