What does it mean for a sentence to have subject-verb agreement?

A. the subject and verb both discuss the same subject.
B. the subject and verb are in the same tense.
C. the subject and verb are both in the sentence.
D. the subject and verb must have the same number.

D. the subject and verb must have the same number.