Question 262 of 506
Architecting low-code ML solutionsmediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is Pub/Sub → Dataflow → Natural Language API → BigQuery, as this architecture provides the scalable, ordered ingestion and real-time processing required for streaming sentiment analysis on Google Cloud. Pub/Sub reliably ingests the high-velocity social media stream, Dataflow applies windowing and deduplication with exactly-once semantics, the Natural Language API performs the sentiment extraction, and BigQuery stores the results for immediate querying. On the Google Professional Machine Learning Engineer exam, this question tests your understanding of decoupling ingestion from processing and storage in a streaming ML pipeline—a common scenario where candidates mistakenly insert Cloud Storage or skip Dataflow’s stateful processing. The trap is thinking you can use Cloud Functions for real-time analysis, but Dataflow’s auto-scaling and exactly-once guarantees are essential for unbounded data. Remember the mnemonic: “Publish, Process, Parse, Persist” to recall the four services in order.

PMLE Architecting low-code ML solutions Practice Question

This PMLE practice question tests your understanding of architecting low-code ml solutions. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. 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 needs to perform sentiment analysis on streaming social media data. Which architecture should they use?

Question 1mediummultiple choice
Full question →

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

Pub/Sub → Dataflow → Natural Language API → BigQuery

Option D is correct because streaming social media data requires a scalable, ordered ingestion pipeline. Pub/Sub ingests the stream, Dataflow processes it in real-time (e.g., windowing, deduplication), the Natural Language API performs sentiment analysis, and BigQuery stores results for querying. This decouples ingestion from processing and storage, enabling exactly-once semantics and auto-scaling.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Dataflow → Pub/Sub → Natural Language API → BigQuery

    Why it's wrong here

    Dataflow should consume from Pub/Sub, not produce to it.

  • Pub/Sub → Cloud Functions → Natural Language API → Cloud Storage

    Why it's wrong here

    Cloud Functions are not ideal for high-throughput streaming and Cloud Storage is not a queryable database.

  • Cloud Functions → Pub/Sub → Natural Language API → BigQuery

    Why it's wrong here

    Cloud Functions as a source is not typical; Pub/Sub should be the ingestion point.

  • Pub/Sub → Dataflow → Natural Language API → BigQuery

    Why this is correct

    This is the recommended architecture for streaming analytics.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the misconception that Cloud Functions can replace Dataflow for streaming pipelines, but Cloud Functions lacks stream processing primitives (e.g., windowing, state management) and has a 9-minute timeout, making it unsuitable for continuous sentiment analysis.

Detailed technical explanation

How to think about this question

Under the hood, Pub/Sub provides at-least-once delivery with configurable acknowledgment deadlines, while Dataflow's streaming engine uses consistent snapshots to achieve exactly-once processing even with late-arriving data. The Natural Language API's `analyzeSentiment` method returns a `score` (-1.0 to 1.0) and `magnitude`, which BigQuery's `STRUCT` type can store natively for efficient querying. In a real-world scenario, this architecture handles 10,000+ messages/second with auto-scaling, whereas Cloud Functions would throttle under load.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

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

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related PMLE practice-question pages

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

Practice this exam

Start a free PMLE 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 PMLE question test?

Architecting low-code ML solutions — This question tests Architecting low-code ML solutions — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Pub/Sub → Dataflow → Natural Language API → BigQuery — Option D is correct because streaming social media data requires a scalable, ordered ingestion pipeline. Pub/Sub ingests the stream, Dataflow processes it in real-time (e.g., windowing, deduplication), the Natural Language API performs sentiment analysis, and BigQuery stores results for querying. This decouples ingestion from processing and storage, enabling exactly-once semantics and auto-scaling.

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

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

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

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 PMLE 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 PMLE exam.