To have a vertical asymptote, is the value in which the denominator is zero, therefore if vertical asymptote x=3, then the denominator must be x-3.
Then we find the root, which is the x-intercepts, let's find them:

So, the function D has the requirements