What does the word prerogative mean in the following sentence?

Because he was the guest of honor, it was his prerogative to go through the buffet line first.
A.
opportunity

B.
destiny

C.
responsibility

D.
privilege