The basic educational qualification for any UPSC exam is an undergraduate degree from a recognized university. However, special ones like those for engineering/medical will require a BTech/MBBS, obviously!