One point missed out a bit here (IMHO) is the joint density belonging to the exponential family. As $f_{\theta_{1}, \theta_{2}}(x,y)=c(\theta_1 ,\theta_2) h(x,y) \exp(\theta_1x+\theta_2y)$ and considering the curved exponential parametrization $L(X;c(\theta))=h(X)\exp\left(c(\theta)^TT(X)-A(c(\theta))\right)$ we get
$$h(X)=h(x,y),\quad c(\theta)=\begin{pmatrix} \theta_1 \\ \theta_2 \end{pmatrix},\quad T(X)=\begin{pmatrix} x \\ y \end{pmatrix},\quad A(c(\theta))=-\log c( \theta_1 , \theta_2 )$$
keep the sufficient statistic $T(X)$ in mind, we'll get back there in a second.
Consider a univariate hypothesis testing problem for $f_\theta(X)$ that belongs to the exponential family, for example $H_0:\theta\le 0,\quad H_1:\theta>0$. The Karlin–Rubin theorem tells us that the threshold test $$\varphi(x) =
\begin{cases}
1 & \text{if } x > x_0 \\
0 & \text{if } x < x_0
\end{cases}$$
with $x_0$ chosen so ${E}_{\theta_0}\varphi(X)=\alpha$ is UMP of size $\alpha$ for testing the composite hypotheses $H_0: \theta \leq \theta_0 \text{ vs. } H_1: \theta > \theta_0$. Moreover, if $c(\theta)$ is a strictly increasing function then $T(X)$ is the optimal test statistic for testing $H_0~\text{vs.}~H_1$ noted above. Optimal, in the sense that the $\alpha$-level test $\{T(X)\ge c_\alpha\}$ is UMP.
One of the major setbacks of the Karlin-Rubin theorem is that it is not generalizable for the multivariate case. However, given the form of $T(X)$, we can do a naughty trick here: We write the functions
$$L(x,c(\theta))=\sqrt{h(x,y)}\exp\left(\theta_1x-\frac{1}{2}\log c(\theta_1,\theta_2)\right) \\ L(y,c(\theta))=\sqrt{h(x,y)}\exp\left(\theta_2y-\frac{1}{2}\log c(\theta_1,\theta_2)\right)$$
so $f_{\theta_{1}, \theta_{2}}(x,y)=L(x,c(\theta))\cdot L(y,c(\theta))$. For each of the "marginal" distributions we can formulate the relevant univariate hypotheses (e.g. $H_0:\theta_1\le a,\quad H_1: \theta_1>a$) and construct a corresponding threshold test, $\varphi(x),\varphi(y)$ of level $\frac{\alpha}{2}$ (Bonferroni) and eventually we can write the "double-threshold" test:
$$\varphi(x,y)=\varphi(x)\cdot\varphi(y)=\begin{cases}
1 & \text{if } x > x_0 \text{ AND } y>y_0 \\
0 & otherwise
\end{cases}$$
As we used the Bonferroni correction, the test is UMP and is at least $\alpha$-level.