<u>Answer:</u> The correct answer is Option D.
<u>Explanation:</u>
Magnesium is the 12th element of the periodic table and the valence electronic configuration for this element is: ![[Ne]3s^2](https://tex.z-dn.net/?f=%5BNe%5D3s%5E2)
This element will loose 2 electrons to attain stable electronic configuration.
By loosing 2 electrons, this element will attain a charge of +2 units.
The electronic configuration after loosing 2 electrons and forming 
 ion is 
Hence, the correct answer is Option D.