How did early humans survive their harsh environments?

AThey built homes out of stone.
BThey built homes out of wood.
CThey built walls around their homes for protection.
DThey lived in caves and rock shelters.