According to the UPSC guidelines, every candidate appearing for the examination is permitted four (4) attempts at the examination. The number of attempts permissible to candidates belonging to Other Backward Classes (as defined) are seven (7).
I hope my answer helps. All the very best for your future endeavors!
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile