The correct option is D Mg
Lithium (Li), sodium (Na), potassium (K) and caesium (Cs) contain one valence electron each and belong to group 1, while magnesium (Mg) contains two valence electrons and belongs to group 2 of the periodic table.
Hence, the correct answer is option (d).