The correct option is D Good luck! Do your best.
Since the occasion is that of an exam, the appropriate reaction would be to wish for the success of the examinee. Hence, Option D, which wishes prosperous luck, is correct. The rest of the options do not adhere to this etiquette, hence incorrect.