My grandfather spent forty years working as ___ engine driver, and he never once missed a shift.
Explanation
A singular profession after work as takes the indefinite article, and engine begins with a vowel sound, so an is correct. Using no article at all is the usual mistake here, since many languages name occupations without one.