If I understand the problem correctly, then $f(x)$ is 'exactly' positive whenever $|x|\leq 1$. Since this is a parabola (or quadratic equation) then there seems to be only one option. The x-intercepts are -1 and 1, and the parabola is downward facing. The vertex is obtained for $f(0) = -p+1$, and $f(1)= 0$, $f(-1) = 0$.
Thus $$f(1)= 2p+q -p +1 =0,$$ therefore $p+q=-1$. $$f(-1) = 2p - q - p + 1= 0,$$ therefore, $p-q=-1$.
We have two simultaneous equations.
$$p+q = -1$$
$$p-q = -1.$$
Thus, $2p = -2$, hence $p = -1$, and $q = 0$.
But then the sum $p+q = -1$.
I believe the answer should be $2$. Is there something that I misunderstood?
Of course, the step where you said "there seems to be only one option" is a massive leap that is not justified. The condition that $2px^2+qx-p+1\ge 0$ when $|x|\le 1$ allows for many values of $p$ and $q$. After all, $p=q=0$ works just as well!
Let's write $f(x)$ as $f(x)=p(2x^2-1)+qx+1\ge 0$. Now, the idea is to find a suitable $x$ where the terms multiplying $p$ and $q$ will be equal, so that, with $2x^2-1=x=c$ for some value $c$ (hopefully in $[-1,1]$), you would have $c(p+q)+1\ge 0$, and this will produce a condition on $p+q$.
So, let's solve the quadratic equation $2x^2-1=x$, i.e. $2x^2-x-1=0$. The solutions are: $x=1$ or $x=-\frac{1}{2}$ and both are in the range $[-1,1]$.
The solution $x=1$ is fruitless: it gives $c=1$ i.e. $p+q+1\ge 0$, i.e. $p+q\ge -1$, which is nice but is a lower bound for $p+q$.
With $x=-\frac{1}{2}$, however, the situation is diferent. It gives $c=-\frac{1}{2}$ and so $-\frac{1}{2}(p+q)+1\ge 0$, i.e. $-\frac{1}{2}(p+q)\ge -1$ i.e. $p+q\le 2$.
Note I could've cheated above and just said "set $x=-\frac{1}{2}$ and this directly gives you $p+q\le 2$", but this won't really tell you where that value $-\frac{1}{2}$ is coming from.
The proof would be concluded if you can find an example of $p,q$ such that $p+q=2$. This is necessary because, so far, we have found an upper bound for $p+q$, but we have not found the maximum yet.
So let's set $q=2-p$ and see if we can find $p$ so that $f(x)$ satisfies the given conditions. The function now looks like this: $f(x)=p(2x^2-1)+(2-p)x+1=p(2x^2-x-1)+2x+1=\left(x+\frac{1}{2}\right)(2p(x-1)+2)$. This is a quadratic which has a zero at $x=-\frac{1}{2}$, and it will stay non-negative if the other factor $2p(x-1)+2$ has a zero at $x=-\frac{1}{2}$. So, $2p\left(-\frac{1}{2}-1\right)+2=0$, which is true for $p=\frac{2}{3}$. This gives $q=2-p=\frac{4}{3}$.
Note Again I could've cheated and just said "try out $p=\frac{2}{3}, q=\frac{4}{3}$ but again this won't tell you where those values would be coming from.