01. A production openGauss database contains 300 tables. An analytics team needs copies of two of them, orders and customers, kept current in a separate openGauss instance. In that instance the team also creates its own tables and writes summary results.
Which approach meets both needs?
a) A physical streaming standby of production, with the team's own tables and results created on that standby
b) Logical replication, using a publication on the source and a matching subscription on the target
c) A cascaded standby fed by the existing standby, so the analytics copy puts no extra load on production
d) A synchronous standby that replicates only the two tables, so the analytics copy does not lag
02. Table products is defined as (id INT PRIMARY KEY, sku VARCHAR(20) UNIQUE, qty INT CHECK (qty > 0)) and holds one row, (1, NULL, 5). Each statement below is run on its own against that one-row table.
Which two statements succeed? (Choose two.)
a) INSERT INTO products VALUES (2, NULL, 3);
b) INSERT INTO products VALUES (NULL, 'C1', 4);
c) INSERT INTO products VALUES (4, 'D2', 0);
d) INSERT INTO products VALUES (3, 'B7', NULL);
e) INSERT INTO products VALUES (1, 'E5', 2);
03. A company runs a very large openGauss database and wants to add compute nodes to handle more queries. Keeping a separate full copy of the data on every new node would cost too much storage and take too long to build.
Which openGauss approach fits this goal?
a) Adding standbys to a primary/standby deployment
b) Adding cascaded standbys behind a standby
c) Resource pooling over shared storage
d) Moving to a single larger server
04. An openGauss primary has exactly one standby, listed in synchronous_standby_names, with most_available_sync left at off. The standby server then crashes during business hours.
What do applications connected to the primary observe until the standby returns?
a) Reads keep working but each commit of a write transaction waits, as no standby can confirm it
b) Commits succeed as before, because the primary switches itself to asynchronous replication
c) The primary shuts down to protect consistency, and all reads and writes fail until it is restarted
d) Commits succeed but are rolled back later, when the returning standby finds it missed their log
05. A DBA is preparing a schema change and a large UPDATE on a production database.
Which two practices reduce the risk of the operation? (Choose two.)
a) Relying on the standby instead of taking a backup
b) Scheduling the work in an agreed maintenance window
c) Running the statements in a test environment first
d) Running the UPDATE in autocommit mode so it finishes faster
06. A nightly report on openGauss sorts about 2 GB of rows, and its plan shows the sort spilling to temporary files on disk. Doubling the shared buffer size and restarting did not change the spill. While the report runs, about 200 application sessions are also active, each running its own sorts and hash joins. The server has enough free memory for one session to use about 2 GB more, but not for 200 sessions each taking that much.
Which change should the DBA make?
a) Raise the work memory for the whole instance, since sorts use per-operation work memory
b) Double the shared buffers again, since the sort needs more of the table cached before it can stay in memory
c) Force a checkpoint before the report starts, since a new shared buffer size takes effect only after one
d) Raise the work memory in the report's own session only, since sorts use per-operation work memory
07. A DBA added a correct host entry for the 10.1.2.0/24 subnet to pg_hba.conf and reloaded the configuration. Clients in that subnet still cannot reach the server: the connection is refused before any password is requested. The server is listening only on its local loopback address.
What must the DBA do?
a) Reload the configuration again with gs_ctl reload
b) Grant the client users the CONNECT privilege on the database
c) Add the server's address to listen_addresses and restart
d) Change the entry's method to trust so no password is needed
08. At 14:05 an operator mistakenly drops an important table on a GaussDB primary/standby instance. The last full backup was taken at 02:00, and log backups are enabled.
Which recovery approach returns the data to its state at 14:04?
a) Restoring only the 02:00 full backup onto the instance
b) Point-in-time recovery using the full and log backups
c) Promoting the standby to primary
d) Re-creating the table from its CREATE TABLE definition
09. Large table customers has one B-tree index on these columns, created with CREATE INDEX idx_name ON customers (last_name, first_name);. Each name value matches only a few rows, and there is no expression index.
Which two queries can use idx_name to go straight to the matching entries instead of reading the whole table or index? (Choose two.)
a) SELECT * FROM customers WHERE first_name = 'Wei';
b) SELECT * FROM customers WHERE upper(last_name) = 'LI' AND first_name = 'Wei';
c) SELECT * FROM customers WHERE last_name = 'Li' AND first_name = 'Wei';
d) SELECT * FROM customers WHERE last_name = 'Li' OR first_name = 'Wei';
e) SELECT * FROM customers WHERE upper(first_name) = 'WEI' AND last_name = 'Li';
10. A table has the constraint CHECK (balance >= 0). An UPDATE inside a transaction would make one balance negative, so openGauss rejects the statement and the table never holds a negative balance.
Which ACID property does this behavior demonstrate?
a) Atomicity
b) Isolation
c) Durability
d) Consistency