When it comes to front doors, we have basically two kind of doors, doors which have spring bolts and doors that depend only on deadbolts or a combination of both.
A common latch type, it is a spring-loaded bolt with an angled edge. When the door is pushed closed, the angled edge of the latchbolt engages with the lip of the strike plate; a spring allows the bolt to retract. Once the door is fully closed, the bolt automatically extends into the strike plate, holding the door closed. The main advantage of having a spring bolt or latch bolt is that it automatically secures the door when we push the door closed. There is however two disadvantages, first you could potentially lock yourself outside the house and also it is quite easy for a burglar to open the door from outside.
A deadbolt cannot be moved to the open position except by rotating the lock cylinder with the key therefore makes a door more resistant to entry without the key. As secure as it is, there is a drawback to that, which requires you to lock the door with a key before you leave the house.