The correct option is D It is usually formed between a metal and a non-metal.
Atoms try to become stable by attaining inert gas configuration. In this process, they either lose or gain electrons or share electron pairs. Atoms form positive ions and negative ions when they lose and gain electrons respectively.
During the formation of an ionic bond, electron transfer takes place leading to the formation of ions.
A metal and a non-metal combine to form an ionic compound by complete transfer of electrons from a metal to a non-metal.