professional-cloud-data-engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
An enterprise maintains a primary Cloud SQL for PostgreSQL database in us-central1 and a cross-region read replica in europe-west1 for regional reporting and disaster recovery readiness. During heavy transaction processing periods, operations teams observe growing replication delay.
A review of Cloud Monitoring telemetry reveals:
database/replication/network_lag metric is elevated near the 25-second reporting threshold.database/postgres/replication/replica_byte_lag metric with replica_lag_type: sent_location displays a steadily accumulating byte backlog.Which configuration change should you implement on the primary database to reduce network lag and improve cross-region replication throughput?
WAL compression (wal_compression) is a PostgreSQL database configuration flag that instructs the primary database engine to compress full page images written to the Write Ahead Log (WAL) using algorithms such as lz4, zstd, or pglz before writing them to disk and transmitting them across the network.
us-central1 to europe-west1.sent_location byte backlog: Because the replica_byte_lag metric specifically tracks unsent WAL data at sent_location, reducing the physical byte volume allows the WAL sender process to transmit logs much faster over constrained bandwidth.Alternative solutions such as scaling up hardware or altering client concurrency do not fix the underlying bottleneck caused by large, uncompressed WAL streams traveling over inter-region boundaries. Enabling wal_compression strikes the best balance between available CPU resources and network transmission efficiency.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.