Last-last known good configuration

At what point is the “Last Known Good Configuration” updated to the current configuration? A) Five minutes after boot B) During the next login C) During the next System Restore checkpoint D) During the next logoff E) What’s really “good?” What if the configuration is only “somewhat reasonable?”