What is a legitimate government?

A. One in which government leaders obtain and keep powers by using force
B. One that offers the fastest solutions to a nations problems and citizen needs
C. One that is created by a union of many smaller groups that could not obtain power on their own.
D. One that is accepted by their people and other governments as the sovereign authority of a nation