There are three badges on each level which can be earned. These are for completing a level, getting all the scrap, and a quick completion time. You don't have to get them all in a single run.
Checkpoints
Before tackling a dangerous obstacle a good strategy is to always 'bank' a hoard of scrap at an earlier checkpoint. To activate a checkpoint just stand on it.