Question 417 of 1,000
Plan and manage database infrastructureeasyMultiple SelectObjective-mapped

Migrating MongoDB to a Managed Google Cloud Service

This PCDE practice question tests your understanding of plan and manage database infrastructure. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. A key principle to apply: mongoDB aggregation pipeline. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company is planning to migrate a self-managed MongoDB database to a fully managed Google Cloud service. They need to maintain high availability and support complex queries with aggregation pipelines. Which TWO services should they consider?

Quick Answer

The answer is MongoDB Atlas on Google Cloud and Cloud SQL for PostgreSQL with JSON data type. MongoDB Atlas provides native support for aggregation pipelines and high availability through automated replica sets and failover, making it the most direct path when migrating MongoDB to a managed Google Cloud service without changing the database engine. Cloud SQL for PostgreSQL with the JSON data type is the second option because it supports complex queries via JSON functions and can serve as an alternative if the organization prefers a relational model while still handling semi-structured data. On the Google Professional Cloud Database Engineer exam, this question tests your understanding of managed database options and the trade-offs between native migration and schema transformation. A common trap is choosing Cloud Bigtable or Firestore, which lack aggregation pipeline support or are optimized for different workloads. Remember the memory tip: “Atlas for native, Postgres for JSON—keep the pipe or flip the stone.”

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

MongoDB Atlas on Google Cloud

MongoDB Atlas on Google Cloud is a fully managed MongoDB service that provides native support for MongoDB's aggregation pipeline and high availability through replica sets and automated failover. Cloud SQL for PostgreSQL with JSON data type is a relational database that offers advanced JSON functions (e.g., jsonb_path_query) and can emulate many aggregation pipeline operations, making it a viable option for complex queries while still being fully managed. The other options lack native aggregation pipeline support: Cloud Spanner is a relational database with strong consistency but limited JSON support; Cloud Firestore is a document database with simpler queries; Cloud Bigtable is a wide-column store without aggregation pipeline capabilities.

Key principle: MongoDB aggregation pipeline

Answer analysis

Option-by-option breakdown

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

  • MongoDB Atlas on Google Cloud

    Why this is correct

    MongoDB Atlas on Google Cloud is a fully managed MongoDB service that directly supports aggregation pipelines and provides high availability through replica sets and automated failover.

    Related concept

    MongoDB aggregation pipeline

  • Cloud Spanner

    Why it's wrong here

    Cloud Spanner is a globally distributed relational database with strong consistency, but it lacks native support for MongoDB's aggregation pipeline and has limited JSON querying capabilities.

  • Cloud Firestore

    Why it's wrong here

    Cloud Firestore is a NoSQL document database with simple queries and does not support complex aggregation pipelines like MongoDB.

  • Cloud Bigtable

    Why it's wrong here

    Cloud Bigtable is a wide-column NoSQL database designed for analytical workloads but does not support aggregation pipelines.

  • Cloud SQL for PostgreSQL with JSON data type

    Why this is correct

    Cloud SQL for PostgreSQL with JSON data type can handle complex queries and aggregation-like operations using JSON functions, and it provides high availability with managed failover, making it a suitable alternative.

    Related concept

    MongoDB aggregation pipeline

Common exam traps

Common exam trap: answer the scenario, not the keyword

A common trap is to assume that only MongoDB-native services support aggregation pipelines, but Cloud SQL for PostgreSQL with JSON provides powerful JSON querying that can handle many complex aggregations. Candidates may incorrectly eliminate PostgreSQL due to its relational nature, overlook its JSON capabilities, or mistakenly choose Firestore or Bigtable.

Detailed technical explanation

How to think about this question

MongoDB's aggregation pipeline processes documents through a series of stages (e.g., $match, $group, $sort) within the database engine, enabling complex transformations and analytics. MongoDB Atlas on Google Cloud runs on dedicated GCP infrastructure with automated backups, point-in-time recovery, and multi-zone replica sets for high availability, while Cloud SQL for PostgreSQL with the JSON data type can mimic some document-like storage but lacks the native aggregation pipeline operators (e.g., $unwind, $lookup) and requires complex SQL/JSON functions to approximate the same functionality.

KKey Concepts to Remember

  • MongoDB aggregation pipeline
  • PostgreSQL JSON functions
  • High availability
  • Fully managed service

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

MongoDB aggregation pipeline

Real-world example

How this comes up in practice

An e-commerce site experiences heavy traffic on Black Friday and near-zero traffic during off-peak weeks. Rather than provisioning permanent large VMs, the team uses auto-scaling groups that add capacity automatically under load and reduce it overnight. Questions like this test whether you understand elasticity, availability zones, and cloud compute scaling patterns.

What to study next

Got this wrong? Here's your next step.

Review mongoDB aggregation pipeline, then practise related PCDE questions on the same topic to reinforce the concept.

Related practice questions

Related PCDE practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Building and Implementing CI/CD Pipelines for a Service practice questions

Practise PCDE questions linked to Building and Implementing CI/CD Pipelines for a Service.

Bootstrapping a Google Cloud Organisation for DevOps practice questions

Practise PCDE questions linked to Bootstrapping a Google Cloud Organisation for DevOps.

Applying Site Reliability Engineering Practices to a Service practice questions

Practise PCDE questions linked to Applying Site Reliability Engineering Practices to a Service.

Implementing Service Monitoring Strategies practice questions

Practise PCDE questions linked to Implementing Service Monitoring Strategies.

Optimising Service Performance practice questions

Practise PCDE questions linked to Optimising Service Performance.

Plan and manage database infrastructure practice questions

Practise PCDE questions linked to Plan and manage database infrastructure.

Define data structures and implement SQL for Business Intelligence practice questions

Practise PCDE questions linked to Define data structures and implement SQL for Business Intelligence.

Design and implement database schemas practice questions

Practise PCDE questions linked to Design and implement database schemas.

Monitor and optimize database performance practice questions

Practise PCDE questions linked to Monitor and optimize database performance.

PCDE fundamentals practice questions

Practise PCDE questions linked to PCDE fundamentals.

PCDE scenario practice questions

Practise PCDE questions linked to PCDE scenario.

PCDE troubleshooting practice questions

Practise PCDE questions linked to PCDE troubleshooting.

Practice this exam

Start a free PCDE practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this PCDE question test?

Plan and manage database infrastructure — This question tests Plan and manage database infrastructure — MongoDB aggregation pipeline.

What is the correct answer to this question?

The correct answer is: MongoDB Atlas on Google Cloud — MongoDB Atlas on Google Cloud is a fully managed MongoDB service that provides native support for MongoDB's aggregation pipeline and high availability through replica sets and automated failover. Cloud SQL for PostgreSQL with JSON data type is a relational database that offers advanced JSON functions (e.g., jsonb_path_query) and can emulate many aggregation pipeline operations, making it a viable option for complex queries while still being fully managed. The other options lack native aggregation pipeline support: Cloud Spanner is a relational database with strong consistency but limited JSON support; Cloud Firestore is a document database with simpler queries; Cloud Bigtable is a wide-column store without aggregation pipeline capabilities.

What should I do if I get this PCDE question wrong?

Review mongoDB aggregation pipeline, then practise related PCDE questions on the same topic to reinforce the concept.

What is the key concept behind this question?

MongoDB aggregation pipeline

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More PCDE practice questions

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.