On the exam, they’ll let you know which rate to use. Not directly – they won’t say, “Discount at this rate.” – but obliquely: they’ll tell you that the project has no risk (use the risk-free rate), or that the project’s risk is average for this company (use WACC), or that the project’s risk is unusual for this company (use WACC plus a spread given in the problem).