Among the given choices, the ionic compound is D. Magnesium Chloride (MgCl2) where magnesium has a +2 charge while chloride has a -1 charge. Ionic compounds are chemical compounds comprising of ions held together by electrostatic forces named as ionic bonding.