Stars measure your progress throughout Career Mode. The first 3 Stars are always won based on position/time/score in a Career Event. This depends on the game mode. The 4th and 5th Stars are won by completing two specific objectives per Event. These objectives are described in the Pre-race screen.