Ответ:

Translation of the question: Джерри уже много лет служит в армии.

in is correct because it describes being a member of the army over a period of time. “Been to the army” does not express this meaning.

Jerry has been in the army for years. (Джерри уже много лет служит в армии.)