At which values of is the function y = sec theta undefined?

Given:
[tex]\sec \theta=\infty[/tex]To find the value of the angle:
It can be written as,
[tex]\begin{gathered} \sec \theta=\infty \\ \frac{1}{\cos \theta}=\infty \\ \cos \theta=0 \\ \theta=\cos ^{-1}(0) \\ \theta=\frac{\pi}{2},\frac{3\pi}{2},\frac{5\pi}{2}\ldots\text{.} \end{gathered}[/tex]Thus, the answer is,
[tex]odd\text{ multiples of }\frac{\pi}{2}[/tex]Hence, the correct option is D.