A wake-up call is something that shocks you, making you realize how serious a problem is and causing you to take action.

Failing the very first assignment was a real wake-up call for her – she had to take her studies seriously from now on.