Courseiva

PCDE Practice Question: Manage a solution that can span multiple database technologies

A DevOps engineer needs to monitor Cloud SQL for MySQL replication lag on a read replica to ensure data freshness. Which Cloud Monitoring metric should they create an alert on?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

cloudsql.googleapis.com/database/replication/lag

The metric 'replication_lag' in Cloud SQL measures the seconds behind the primary. Cloud SQL for MySQL uses 'seconds_behind_master' internally, but the exposed metric is 'replication_lag'.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • cloudsql.googleapis.com/database/replication/lag

    Why this is correct

    Correct. The metric for replication lag in Cloud SQL is 'replication_lag'.

  • cloudsql.googleapis.com/database/replica/state

    Why it's wrong here

    This metric shows the replica state (e.g., running/stopped), not lag.

  • cloudsql.googleapis.com/database/postgresql/replication/lag

    Why it's wrong here

    This metric is for PostgreSQL, not MySQL.

  • cloudsql.googleapis.com/database/mysql/replication/seconds_behind_master

    Why it's wrong here

    This is not the correct metric name; the metric is 'replication_lag'.

About these practice questions

This PCDE question is part of Courseiva's 1,446-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PCDE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCDE exam.