S&P Global interview question

What do Credit Rating agencies do?