The following (paraphrased) question is a homework exercise for a course on elliptic curves:
Let $p\not\equiv1\pmod{12}$ be a prime number and let $q=p^k$. Show that there exists an elliptic curve $E$ such that $\#E(\Bbb{F}_{q^2})=(q+1)^2$.
This is not very difficult to show. If $k$ is odd, for $p\equiv2\pmod3$ the curve given by $y^2-y=x^3$ will do, and for $p\equiv3\pmod4$ the curve given by $y^2=x^3-x$ will do. For $k$ even, their quadratic twists will do. The case $p\equiv1\pmod{12}$ seems to be more difficult; I don't have a proof. Luckily this is not part of my homework. But my question is, also not part of the homework, can we change the order of the quantifiers? That is to say:
Does there exist an elliptic curve $E$ such that $\#E(\Bbb{F}_{q^2})=(q+1)^2$ for all prime powers $q$?
Or more modestly, for all prime powers $q=p^k$ with $p\not\equiv1\pmod{12}$? Unfortunately the two curves above are not isomorphic. Otherwise I don't have much of a clue of where to look for such a curve, or whether it even exists. Any idea is very welcome.
Let's say we're talking about an elliptic curve $E$ over $\mathbb Q$. Let $\alpha_p$ and $\beta_p$ be the Frobenius eigenvalues at a prime $p$ of good reduction (so $X^2 - a_p X + p = (X - \alpha_p)(X-\beta_p)$).
Then $$| E(\mathbb F_{p^2}) | = p^2 + 1 - \alpha_p^2 - \beta_p^2 = (1+p)^2 - (\alpha_p + \beta_p)^2 = (1 + p)^2 - a_p^2.$$ So you are asking if we can have $a_p = 0$ for all primes of good reduction.
The answer is no.
If $E$ has CM (as in your two examples), then $a_p = 0$ for a density $1/2$ set of primes.
If $E$ does not have CM, then $a_p = 0$ for a density $0$ set of primes. (The precise distribution of the values of $a_p$ as $p$ varies is the subject of the Sato--Tate conjecture, which is now a theorem of many people.)