Rubidium is an alkali metal (a Group 1A metal). Therefore, its outermost energy level only contains one single electron. For it form an ion, it can lose that electron, meaning that its new outermost level will be one lower. In that next-lowest energy level, it has a full octet of electrons.
Therefore the best answer is D.