Irreducibility of $f(x)=x^4+3x^3-9x^2+7x+27$

If you take the polynomial modulo 2 you get $x^4+x^3+x^2+x+1$. It doesn't have a root, so if it is decomposable, it is a product of two irreducible polynomials of degree 2. The only polynomial of degree 2 which doesn't have a root is $x^2+x+1$ and its square is $x^4+x^2+1$. It follows that your polynomial is irreducible modulo $2$ and therefore irreducible in over $\mathbb{Z}$.


Over $\mathbb{F}_3$ your polynomial splits as $x(x+1)^3$, no luck.

Over $\mathbb{F}_5$ your polynomial splits as $(x+1)(x^3+x^2+2)$. That is enough to state that your polynomial is irreducible over $\mathbb{Q}$, since we know in advance that it has no rational root.

You may also notice that $p(x)=x^4 + 3 x^3 - 9 x^2 + 7 x + 27$ takes prime values for any $x\in\{-20,-17,-14,-5,-2,1,4,10,13\}$, but no reducible polynomial over $\mathbb{Q}$ with degree $4$ can take nine prime values at nine different points.


Echoing the answer by Prometheus note that modulo $2$ the reduced polynomial is $\Phi_5$, which is irreducible modulo $2$, since $2$ has order $4$ in $\Bbb Z_5^\times$: $2^2=4,2^3=8,2^4=16=1$. In general the $n$-th cyclotomic polynomial $\Phi_n$ is irreducible in $\Bbb F_q[X]$ iff $q$ has order $\varphi(n)$ in $\Bbb Z_n^\times$.