The correct option is D Be(OH)2
Be(OH)2 is amphoteric in nature whereas Ba(OH)2, Sr(OH)2 and Ca(OH)2 are basic in nature. The amphoteric nature of Be is due to its smaller size and high ionisation energy.
Be(OH)2 react with both acid as well base.
Be(OH)2+2OH−→[Be(OH)4]2−
Be(OH)2+2HCl+2H2O→[Be(OH2)4]Cl2