When may you drive on the shoulder of the road?

If you pass on the right, do so only when conditions permit you to do so legally and safely. You may only drive on the shoulder of a road if an official has directed you to do so.
DMV Writen Test