No rule for this one
No ending or word group predicts the article of Beruf. Learn it as a pair and say it out loud: der Beruf.
der Beruf
It's der Beruf. Beruf is masculine, plural die Berufe.
Was sind Sie von Beruf?
What's your profession?
No ending or word group predicts the article of Beruf. Learn it as a pair and say it out loud: der Beruf.