Answer:
Option D.

Explanation:
using a graphing tool
Graph and determine the vertex in each case
we know that
If the equation has a maximum value at x=-2, then the x-coordinate of the vertex must be equal to -2 and the parabola open downward
case A)

The vertex is the point

case B)

The vertex is the point

case C)

The vertex is the point

case D)

The vertex is the point
-------> is the answer
see the attached figure