Let $C$ be a smooth, projective, geometrically irreducible curve, of genus $g$, over a finite field $\mathbb{F}_q$. By the Weil conjectures, the zeta function has the shape $$ Z_C(t)=\frac{P(t)}{(1-t)(1-qt)} $$ with $P \in 1+t\mathbb{Z}[t]$ a polynomial of degree $2g$ satisfying the functional equation and such that $|\alpha|=q^{-1/2}$ for all complex $\alpha$ such that $P(\alpha)=0$.
Now consider the "inverse problem", that is, take a polynomial $P$ with all the above properties. Does there exist a curve $C$ such that $P$ is the numerator of $Z_C$? My guess is that the answer is either no for some trivial reason that I don't see or it is not known.