Courseiva

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

A Cloud SQL for MySQL instance has a read replica in a different region. The team wants to monitor replication lag and receive alerts if lag exceeds 60 seconds. Which two steps should they take? (Choose TWO.)

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

Create a Cloud Monitoring alerting policy with a condition on 'cloudsql.googleapis.com/database/replication/replica_lag' with threshold >60s.

The replication_lag metric is available in Cloud Monitoring. An alerting policy based on this metric with a threshold of 60 seconds will trigger notifications when lag exceeds that value.

Answer analysis

Option-by-option breakdown

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

  • Create a Cloud Monitoring alerting policy with a condition on 'cloudsql.googleapis.com/database/replication/replica_lag' with threshold >60s.

    Why this is correct

    This is the correct metric and threshold for alerting on lag.

  • Configure a Cloud Function to query the replica status every minute.

    Why it's wrong here

    Custom solutions are not necessary; Cloud Monitoring provides built-in alerting.

  • Set up a Cloud Scheduler job to run a query on the replica to check lag.

    Why it's wrong here

    Overly complex and not recommended.

  • Promote the replica to standalone if lag exceeds 60 seconds.

    Why it's wrong here

    Automated promotion is not a monitoring step; it's a recovery action.

  • Enable the 'replication_lag' metric in Cloud SQL monitoring.

    Why this is correct

    This metric is available by default once a replica is created.

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.