With $y=x^{1011}$, $P=y^2+y+1$, whose roots are primitive cube roots of unity (Theorem 158). So $P(x)=0$ iff $x^{1011}$ is a primitive cube root of unity.
The roots of $x^6+x^3+1$ are primitive $9$th roots $\zeta$; since $1011\equiv3\pmod9$, $\zeta^{1011}=\zeta^3$ is a primitive cube root. The other choices fail (e.g.\ for $x^2+x+1$, $x^{1011}=1$).
Let $P(x)=x^{200}+x^{100}+1$. Which of the following is NOT a factor of $P(x)$? $\textbf{(A) }x^2+x+1$\qquad $\textbf{(B) }x^2-x+1$\qquad $\textbf{(C) }x^4+x^2+1$\qquad $\textbf{(D) }x^4-x^2+1$\qquad $\textbf{(E) }x^6+x^3+1$