How did the assassination of Archduke Franz Ferdinand lead to World War I?

It allowed Russia to ally with Serbia and declare war on Germany.
It ended possible peace talks between Serbia and Austria-Hungary.
Bismarck's scheme of secret alliances against Serbia provoked the assassination and then the war.
Alliances forced many countries to go to war either in support of Austria-Hungary or Serbia.