Germany built up its supply of warships and other armaments as a matter of international prestige. This is an example of what factor that led to World War I?

The factor that led to World War I in this case would be militarism.