The denominator is a perfect square, (x+2)2, zero only at x=−2. So x=−2 is the one excluded value.
For the numerator, (−2)3+8=0, so by the Factor Theorem x+2 is a factor of x3+8. Dividing (synthetic division on the coefficients 1,0,0,8 with root −2) gives the quotient x2−2x+4.
x2+4x+4x3+8=(x+2)2(x+2)(x2−2x+4)=x+2x2−2x+4(x=−2)
Check at x=1: the original is 99=1, and 31−2+4=33=1 agrees. The sign of the middle term matters: 31+2+4 would give 37 instead.