If $R$ is commutative ring with $1$, then $$\langle r \rangle \ \text{is prime ideal} , r\in R-\{0,1\} \Rightarrow r \text{ is irreducible} \ \text{...(#1)} $$
And $$r \text{ is irreducible }\Rightarrow \langle r \rangle \text{ is maximal among principal ideals } $$
Converse of (#1) is true only when $R$ is UFD, for example consider $$R=\mathbb Z[\sqrt {-5}] \text{ which is not UFD} \ , \ r=2 \text{ which is irreducible }$$
Observe that $2 \mid 6 = (1 + \sqrt{-5})(1 - \sqrt{-5}) $ but $2 \nmid (1 + \sqrt{-5}), (1 - \sqrt{-5})$.
Hence , $2$ is not prime.
$Z_{11}$ is field $\Rightarrow \ R=Z_{11}[X]$ is ED , and hence $R$ is PID and UFD.
So we can conclude that $\langle X-2 \rangle$ is prime and maximal.
Another way to see this is:
$\mathbb Z_{11}[X]/\langle X-2 \rangle \cong \mathbb Z_{11}$
By defining homomorphism from $\mathbb Z_{11}[X]$ to $\mathbb Z_{11}$, $f(x) \mapsto f(2)$
From here also we can conclude that $\langle X-2 \rangle$ is maximal, since $\mathbb Z_{11}[X]/\langle X-2 \rangle $ is field.