For simplicity, all varieties in this question are quasiprojective varieties over an algebraically closed field of characteristic $0$.
The coherent cohomological dimension $cd(X)$ of a variety $X$ is the maximal dimension $n$ such that there exists a quasicoherent sheaf $\mathcal{F}$ such that $H^n(X;\mathcal{F}) \neq 0$. Since cohomology commutes with direct limits, it is enough to consider coherent $\mathcal{F}$. As an example, $X$ is affine if and only if $cd(X)=0$.
Question: Let $f\colon X \rightarrow Y$ be a surjective affine morphism. Is it the case that $cd(X) = cd(Y)$?
We have $cd(X) \leq cd(Y)$; indeed, if $\mathcal{F}$ is a quasicoherent sheaf on $X$, then since $f$ is affine the Leray spectral sequence degenerates to show that $H^n(X;\mathcal{F}) = H^n(Y;f_{\ast}(\mathcal{F}))$. Moreover, in the article
R. Hartshorne, Cohomological Dimension of Algebraic Varieties, Ann. Math. 88 (3), 1968, 403-450.
it is proven that $cd(X) = cd(Y)$ if $f$ is a surjective finite morphism.