The initial production (Augmented) contains '$' as it's look ahead. i.e.
S' -> . S, $
Now, this lookahead is carried out to every production, since all are derivation of 'S' and hence,
S->a is being one of that, has \$ as it's one of the lookahead. Rather in this question, as there's only 'S', all has '$' in their lookaheads.
And since, opt B don't have $, it won't be correct answer.