Place it in a public subnet and configure a route to an internet gateway.
A public subnet has a route to an internet gateway and is reachable directly from outside.
This is the opposite of the requirement to protect the database from direct access, so it is incorrect.