Say it clearly. Keep it simple.
A verb determines which complements it needs. Fragen takes a person in accusative; antworten uses a dative recipient and often auf + accusative for the matter answered.
Spot the clue
Antworten takes a dative recipient; meinem Kollegen includes the weak noun ending.
Ich antworte meinem Kollegen auf die Frage.
Aha! See the common trap
Try thisIch antworte meinem Kollegen auf die Frage.
Do not assign a case by translating an English object word for word.
More examples, less guessing
Ich antworte meinem Kollegen auf die Frage.I answer my colleague’s question.