This is the 1169th most frequent Japanese word.
当たる
"To hit, strike, touch, win, correspond, or be right (depending on context)."
The word '当たる' in this context means 'to win' or 'to hit' when referring to lotteries or prizes.
宝くじに当たるといいですね。
It would be great to win the lottery.
The word '当たる' here translates to 'be in the scope of' or 'pertains to' in the context of an exam.
この質問は試験に当たらないでしょう。
This question likely won't appear on the exam.
In this sentence, '当たる' means 'to hit' or 'contact' in the context of sunlight interacting with the skin.