Is this noetherian $k$-scheme the spectrum of an artinian ring? I have a $k$-scheme $X$ satisfying the following properties:

*

*X is noetherian.

*The underlying topological space of $X$ is a finite.

*Every point in the underlyiing space is closed.

Question 1: I was wondering if $X$ can be written as the spectrum of an artinian ring. Indeed, if $U=Spec(A')$ is an open affine subset in $X$, then $A'$ is noetherian by (1) and every prime ideal in $A'$ is maximal by (3), i.e. $A'$ is artinian. Is there a way to pass from the local to the global and say that $A$ is artinian?
Question 2: More generally, if a $k$-scheme is noetherian and of dimension zero, then is it the spectrum of an artinian ring?
 A: Disclaimer: I'm quite new to schemes so I might be making a silly mistake somewhere, but I think the answer to both questions is yes.
For Question 1 note that, by (2) and (3), the topology on $X$ is discrete, and hence in particular every point of $X$ is open. Since every open subset of $X$ has a cover by affine subschemes, in particular every singleton subset of $X$ is an open affine subscheme. So if the underlying points of $X$ are $p_1,\dots,p_n$, then the sets $U_i=\{p_i\}$ give an open cover of $X$ by affine subschemes; say $U_i$ is the spectrum of a ring $A_i$. By your observations each $A_i$ is local artinian. Moreover, since the $U_i$ are pairwise disjoint, by the sheaf property we have $\mathcal{O}_X(\bigcup_{i\in I}U_i)\cong\prod_{i\in I}A_i$ for every $I\subseteq[n]$, with the restriction maps being projections. So $X$ has the same underlying topological space and structure sheaf as $\operatorname{Spec}(A_1\times\dots\times A_n)$, ie is isomorphic to $\operatorname{Spec}(A_1\times\dots\times A_n)$. But $A_1\times\dots\times A_n$ is a product of artinian rings and hence artinian.
For Question 2 note first that $0$-dimensionality is inherited by subspaces. In particular, every open affine subscheme of $X$ has dimension $0$, and so by noetherianity every open affine subscheme of $X$ is the spectrum of an artinian ring. But every artinian ring is a product of finitely many local artinian rings, so that the spectrum of any artinian ring has the discrete topology, and hence $X$ has the discrete topology too. In particular, every point of $X$ is closed, and since $X$ is quasi-compact the underlying space of $X$ must be finite. So we are in the situation of Question 1 and hence done.

Fact: Let $X$ be a scheme and $U\subseteq X$ an open subset. Then $U$ (as a locally ringed space equipped with the restriction $\mathcal{O}_X|_{U}$) is a scheme.
Proof: Let $p\in U$ be a point. Since $X$ is a scheme, there is an open affine subscheme $V\subseteq X$ with $p\in V$; say $V\cong\operatorname{Spec}(B)$. Now $U\cap V$ is an open subset of $V$, and $p\in U\cap V$, so there is a basic open subset $W\cong D(b)$ of $V$, where $b\in B$, such that $p\in W\subseteq U\cap V$. But now $W$ is affine (it is isomorphic to $\operatorname{Spec}(B_b)$), and is an open neighborhood of $p$ in $U$. Since $p$ was arbitrary we conclude that $U$ is a scheme. $\blacksquare$
