That depends on your academic preparation, workload and application plans.
Students preparing for Class 10 boards should consider whether an AP examination would interfere with their school studies. There is no general requirement to take AP Exams in Class 10.
If you plan to apply to universities that value AP scores, you can identify relevant subjects early and schedule examinations for a more manageable academic year.
The priority should be a balanced academic profile, not taking AP Exams as early as possible.