Commute from DUB

Hello,

I’m traveling for work for the first time to Ireland. I will land at DUB on Sunday morning at 6:00am. I will have 1 luggage and 1 carry-on. What’s the best way to reach Galway?

So far I see 2 options.

1- Take bus from DUB airport. No advance purchase necessary. 2- Take train ride to the main station (sorry forgot the station name) and then take Galway train. Advance purchase may be required.

I want to take train but thought to check here what the locals recommend.

Thank you all.