S&P Global Interview Question

What do Credit Rating agencies do?