Question 1
Topic: PostgreSQL database architecture
Skill tested: Distinguishes PostgreSQL clusters, server instances, databases, and client connections.
A reporting team connects to two databases named `sales` and `warehouse` on the same PostgreSQL host. An administrator explains that both databases use the same PostgreSQL server process environment and share the instance's configuration and WAL stream, but ordinary SQL queries cannot join tables across them as if they were schemas. The team proposes creating a second database cluster solely to isolate the reporting workload, although no separate settings, data directory, or server lifecycle is required. Which explanation best describes the current architecture and the least disruptive design?
A PostgreSQL cluster is a database storage area managed by one server instance; it can contain multiple databases. Those databases share instance-level configuration and the cluster's WAL, but database objects are normally scoped to a database, so ordinary SQL does not directly query across databases. Schemas can provide namespace-level organization inside a database when that is sufficient. Creating another cluster is appropriate when independent data directories, configuration, lifecycle, or administrative isolation is needed, none of which the scenario requires.