Leading the US Defense Department is a massive job, broadly affecting Americans’ security at home and abroad and overseeing huge numbers of people and immense amounts of money.