When stopped behind another vehicle, you should:

You should stay well behind the vehicle in front of you, even when you are both stopped. This will give you room to escape if the vehicle backs up unexpectedly or if another vehicle approaches too quickly from behind.
DMV Writen Test