The statement that Ernest held the rank of Duke is incorrect. There is no such military rank. Dukes are hereditary titles of nobility, not military positions. Dukes outrank the other noble titles, such as marquess, earl, viscount, and baron.
Regal Riddles: The Ernest Augustus, King of Hanover Challenge