Courseiva
Google Cloud Products and ServiceshardMultiple ChoiceObjective-mapped

Cloud Digital Leader Google Cloud Products and Services Practice Question

An engineer is troubleshooting a Cloud SQL instance that is running out of memory. They want to reduce memory usage without changing the machine type. Which action would help?

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

Reduce the max_connections flag

Enabling automatic storage increase helps with disk space but not memory. Reducing max_connections limits concurrent connections, saving memory. Adding a read replica shares read load but doesn't reduce memory per instance. Switching to MyISAM is not possible in Cloud SQL for InnoDB-based MySQL.

Answer analysis

Option-by-option breakdown

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

  • Reduce the max_connections flag

    Why this is correct

    Lowering `max_connections` caps the number of concurrent client sessions, and each session reserves per-thread memory for sort buffers, join buffers, and temporary tables. Reducing this flag therefore directly bounds the aggregate connection-level memory consumption on the instance, preventing memory exhaustion and out-of-memory restarts. It is the correct remediation because the symptom is memory pressure, not disk capacity or query routing.

  • Enable automatic storage increase

    Why it's wrong here

    Enabling automatic storage increase only expands the persistent disk volume when the instance approaches its capacity limit, which addresses disk space depletion but does nothing to reduce memory usage. RAM exhaustion is a separate resource constraint; the flag does not alter buffer pool sizing, connection overhead, or any memory allocation. Thus it would leave the troubleshooting unchanged.

  • Add a read replica

    Why it's wrong here

    A read replica is used to redirect SELECT queries to a separate instance, reducing CPU and I/O load on the primary, but it does not remove the per-connection memory buffers already allocated on the primary. Writes still go to the source, and each existing session still holds memory; the replica itself also consumes its own RAM. This offloads read traffic, not memory pressure.

  • Switch from InnoDB to MyISAM

    Why it's wrong here

    MyISAM does not support row-level locking or crash recovery, and Cloud SQL does not allow you to migrate tables to that engine as a supported configuration. More importantly, the memory problem is caused by connection thread buffers, not by the storage engine's access method, so changing engines would not reduce RAM usage. It also sacrifices transactional integrity without addressing the root cause.

About these practice questions

This GCDL question is part of Courseiva's 829-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 GCDL 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 GCDL exam.