Courseiva
mediumMultiple Choice

Google PCA Practice Question: An e-commerce company uses Cloud SQL for MySQL…

An e-commerce company uses Cloud SQL for MySQL for their transactional database. During a recent load test, the database experienced high latency under write-heavy workloads. The team needs to improve write performance without changing the application. Which action is most effective?

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

✓

Increase the machine type of the primary instance

Cloud SQL for MySQL supports read replicas for read scalability, but for write-heavy workloads you need a larger machine type (scale up) or use memory optimized. Adding read replicas does not help writes. Enabling binary logging adds overhead. Vertically scaling (increasing vCPUs and RAM) directly improves write throughput. Using Cloud Spanner would require application changes.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Enable binary logging to improve write performance

    Why it's wrong here

    Binary logging records changes for replication and point-in-time recovery, adding write overhead rather than reducing it. It is tempting because it is a write-related setting, but it is enabled to support replicas or backups, not to improve transactional write throughput.

  • ✓

    Increase the machine type of the primary instance

    Why this is correct

    Increasing the primary instance's machine type adds vCPUs and memory, raising write throughput and InnoDB buffer pool capacity so dirty pages flush less often. This directly relieves the write-heavy latency bottleneck while requiring no application changes, satisfying the stem's constraint of improving write performance transparently.

  • ✗

    Migrate to Cloud Spanner

    Why it's wrong here

    Cloud Spanner requires schema and application changes to exploit its distributed architecture, so it fails the no-application-change constraint; Cloud SQL already offers the needed write throughput. Spanner suits globally distributed, horizontally scaling transactional workloads needing strong consistency across regions, not a single-region MySQL latency fix.

  • ✗

    Add multiple read replicas

    Why it's wrong here

    Read replicas serve read traffic only; writes still go to the primary instance, so write-heavy latency is unchanged. They are tempting because they scale read throughput well, and would be correct if the workload were read-heavy rather than dominated by writes.

About these practice questions

One of 807 original PCA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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 PCA 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 PCA exam.