What is The Best Way to Animate a Weapon?

On a mechanical object, if you do things correctly. Yes.
Particularly if you pull the bolt back for a check.
There’s only one axis for the item to move, so it isn’t complex by any means.

Doesn’t mean animations for it are a bad idea either.

Animation blueprints should never have any code.
Look up the Fast Path documents.