AP exams are typically taking after the AP course. It sounds like you are taking neither an AP Spanish Lit course nor an AP Spanish Language course. A 3rd year Spanish language course will typically not prepare a student for either AP exam.
If you want to take one, you should look at the material covered on the exam and decide which you want to self study for. I would say that reading and critically analyzing foreign language literature on your own during just a third year of the language sounds like a very tall order. Though the material for the language course would already assume 3-4 years of the language, so you’ll be studying material that you weren’t intended to be ready for.
Is there a reason you want to take language AP courses this early? Is someone recommending it?