Courseiva
Why Cloud Technology Can Transform BusinesshardMultiple ChoiceObjective-mapped

Cloud Digital Leader Why Cloud Technology Can Transform Business Practice Question

A company uses a legacy on-premises database and wants to migrate to Google Cloud with minimal changes to application code. They need a fully managed relational database that supports MySQL compatibility and automatic failover. Which service should they choose?

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

Cloud SQL for MySQL

Cloud SQL for MySQL is a fully managed relational database with MySQL compatibility, automatic failover, and minimal code changes. Cloud Spanner is globally distributed and requires schema changes, Bigtable is NoSQL, and Firestore is document-based.

Answer analysis

Option-by-option breakdown

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

  • Firestore

    Why it's wrong here

    Firestore is a schemaless document database that stores data as nested documents and collections, not as tables with rows and columns. It lacks support for SQL, joins, foreign keys, and other relational integrity constraints, so a legacy relational schema cannot be directly migrated. The application would need to be rewritten to use Firestore's NoSQL query API and to model denormalized data, which is far from a minimal-effort migration.

  • Cloud Spanner

    Why it's wrong here

    Cloud Spanner is a fully managed, horizontally scalable relational database, but it uses a non-MySQL SQL dialect and does not support the MySQL wire protocol or MySQL-specific features like stored procedures and triggers. Existing application code using MySQL drivers and ORMs would need to be reworked to use Spanner's client libraries and GoogleSQL or PostgreSQL interface, which is a significant change. Additionally, Spanner's distributed transaction semantics and primary-key requirements may force schema alterations, making it inappropriate for a quick lift-and-shift.

  • Cloud Bigtable

    Why it's wrong here

    Cloud Bigtable is a wide-column NoSQL database optimized for high-throughput, low-latency time-series and key-value workloads; it does not support SQL, multi-table joins, or ACID transactions beyond single-row operations. A legacy relational database with normalized tables, foreign keys, and complex queries cannot be migrated as-is — the schema would have to be flattened and denormalized, and every data access path rebuilt. This would require substantial application redesign and is the opposite of a minimal-change migration path.

  • Cloud SQL for MySQL

    Why this is correct

    Cloud SQL for MySQL is a fully managed service that is tightly compatible with the MySQL wire protocol, SQL dialect, and client tools, so existing schemas, queries, stored procedures, and application code can be reused with almost no modification. It provides automatic failover to a synchronous standby replica, managed backups, and read replicas, meeting high-availability needs without changing the database engine. This makes it the natural choice for migrating a legacy on-premises MySQL database with minimal code changes and low operational overhead.

About these practice questions

Courseiva writes every GCDL question from scratch — 829 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.