Google Data Engineer Pub Sub Streaming Architecture Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 15, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. How does Pub/Sub handle messages published to a topic with no active subscriptions?

Explanation

Pub/Sub can retain messages at the topic level for the configured retention period, even when no subscriptions are active. If a subscription is created while those messages are still retained, it can access them; after the retention period expires, they are deleted.

Submit
Please wait...
About This Quiz
Google Data Engineer Pub Sub Streaming Architecture Quiz - Quiz

This quiz assesses your understanding of Google Cloud Pub\/Sub and streaming data architecture patterns. You'll evaluate message delivery semantics, topic and subscription management, integrations with Dataflow and BigQuery, and best practices for building scalable real-time pipelines. Ideal for professionals preparing for the Google Cloud Professional Data Engineer certification.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. In Pub/Sub, how are streaming data pipelines typically connected to BigQuery for real-time analytics?

Explanation

Dataflow commonly reads streaming messages from Pub/Sub, transforms or enriches them, and writes the results to BigQuery. This provides a scalable pipeline for processing events continuously and preparing them for real-time analytics.

Submit

3. What is the primary use case for Pub/Sub's snapshot feature in a streaming pipeline?

Explanation

A Pub/Sub snapshot preserves a subscription’s acknowledgment state at a particular point in time. A streaming pipeline can later seek the subscription to that snapshot, restoring its prior position and allowing messages to be reprocessed as needed. This is useful for recovery or replay without backing up topic data or creating topic replicas.

Submit

4. True or False: Pub/Sub supports message ordering guarantees when using message ordering keys.

Explanation

True. When message ordering is enabled, Pub/Sub preserves the order of messages that share the same ordering key. Messages with different keys can be delivered independently, so ordering is guaranteed per key rather than across the entire topic.

Submit

5. Which metric is most important to monitor for Pub/Sub subscription health?

Explanation

The oldest unacked message age shows how long the subscription’s messages have been waiting for acknowledgment. A rising value can indicate that subscribers are falling behind or not processing messages, helping identify delivery backlogs and potential delays.

Submit

6. In a Pub/Sub streaming architecture, what is the role of a dead-letter topic?

Explanation

A dead-letter topic captures messages that cannot be successfully processed, often after repeated delivery attempts. This keeps problematic messages from blocking normal processing and allows them to be inspected, corrected, or retried later.

Submit

7. True or False: Pub/Sub automatically scales subscriptions based on message throughput.

Explanation

Google Cloud Pub/Sub is a fully managed service that adjusts its capacity to handle changing message volumes. As throughput rises or falls, it scales the resources used to deliver messages to subscriptions, so users generally don’t need to provision subscription capacity manually. Subscriber applications may still need to scale to keep up with incoming messages.

Submit

8. Which Pub/Sub configuration parameter controls how long a message remains unacknowledged before redelivery?

Explanation

The ack deadline sets the time a subscriber has to acknowledge a message after receiving it. If the deadline expires without an acknowledgment, Pub/Sub may redeliver the message to a subscriber.

Submit

9. What is a key advantage of using Dataflow with Pub/Sub for streaming pipelines?

Explanation

Dataflow provides exactly-once processing for streaming pipelines by tracking progress and coordinating updates as data moves through the pipeline. If a worker fails and processing resumes, Dataflow can avoid applying the same record’s effects more than once. This helps produce consistent results when consuming messages from Pub/Sub, even when retries occur.

Submit

10. True or False: Push subscriptions in Pub/Sub require the subscriber to maintain an open connection.

Explanation

Push subscriptions deliver messages by sending HTTPS requests from Pub/Sub to a configured endpoint. The subscriber does not need to keep a connection open; its endpoint must be reachable to receive requests. This differs from pull subscriptions, where the subscriber requests messages from Pub/Sub.

Submit

11. What is the default message delivery guarantee offered by Google Cloud Pub/Sub?

Explanation

Google Cloud Pub/Sub provides at-least-once delivery by default, meaning a message is delivered one or more times until it is acknowledged. Because retries can cause duplicates, subscribers should be designed to handle repeated messages safely.

Submit

12. Which feature allows you to filter messages in Pub/Sub before they are delivered to subscribers?

Explanation

Subscription filters let subscribers receive only messages that match specified attributes, reducing unwanted deliveries. The filtering is configured on the subscription, so publishers can send messages normally while each subscriber receives only the messages relevant to it.

Submit

13. True or False: Pub/Sub guarantees message ordering across all subscribers of a topic.

Explanation

Pub/Sub does not guarantee that every subscriber receives messages in the same order. By default, messages may be delivered out of order, and different subscribers can observe different sequences. Ordering can be enabled for messages with the same ordering key, but this does not provide a general ordering guarantee across all subscribers.

Submit

14. In a streaming architecture, what is the primary benefit of using Pub/Sub as a decoupling layer?

Explanation

Pub/Sub allows producers to publish messages without knowing which consumers will receive them, while consumers can subscribe independently. This separation lets each side evolve, scale, or change without requiring direct changes to the other, improving flexibility and making the streaming architecture easier to maintain.

Submit

15. Which subscription type in Pub/Sub requires the subscriber to explicitly request messages?

Explanation

With a pull subscription, the subscriber client explicitly requests messages from Pub/Sub and processes those returned. This differs from a push subscription, where Pub/Sub sends messages to a configured endpoint.

Submit

16. True or False: Pub/Sub topics can only have one active subscription at a time.

Explanation

A Pub/Sub topic can have multiple active subscriptions. Each subscription receives its own copy of messages published to the topic, allowing different applications or services to process the same messages independently. Each subscription also maintains its own delivery and acknowledgment state.

Submit

17. What is the maximum retention period for messages in a Pub/Sub topic?

Explanation

Pub/Sub retains messages in a topic for up to 7 days, allowing subscribers time to receive and process them. After that period, messages expire and are removed, even if they have not been delivered. This retention window helps support recovery from temporary processing delays without keeping topic messages indefinitely.

Submit

18. Which Google Cloud service is commonly paired with Pub/Sub for processing streaming data in real-time?

Explanation

Dataflow is commonly paired with Pub/Sub to process streaming messages in real time. Pub/Sub ingests and distributes event data, while Dataflow runs scalable pipelines that transform, filter, aggregate, or enrich those events as they arrive. The processed results can then be sent to storage systems or other services for further use.

Submit

19. In Pub/Sub, what happens when a subscriber fails to acknowledge a message within the ack deadline?

Explanation

If a subscriber does not acknowledge a message before its acknowledgment deadline expires, Pub/Sub considers the delivery unsuccessful and makes the message available for delivery again. It may be sent to the same subscriber or another subscriber on the subscription.

Submit

20. Which Pub/Sub feature allows multiple subscribers to receive the same message independently?

Explanation

With message fanout, a topic delivers a separate copy of each published message to every attached subscription. Each subscriber processes its own copy independently, so acknowledgment or delivery progress in one subscription does not affect the others. This lets multiple applications consume the same event for different purposes without competing for a single message.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
How does Pub/Sub handle messages published to a topic with no active...
In Pub/Sub, how are streaming data pipelines typically connected to...
What is the primary use case for Pub/Sub's snapshot feature in a...
True or False: Pub/Sub supports message ordering guarantees when using...
Which metric is most important to monitor for Pub/Sub subscription...
In a Pub/Sub streaming architecture, what is the role of a dead-letter...
True or False: Pub/Sub automatically scales subscriptions based on...
Which Pub/Sub configuration parameter controls how long a message...
What is a key advantage of using Dataflow with Pub/Sub for streaming...
True or False: Push subscriptions in Pub/Sub require the subscriber to...
What is the default message delivery guarantee offered by Google Cloud...
Which feature allows you to filter messages in Pub/Sub before they are...
True or False: Pub/Sub guarantees message ordering across all...
In a streaming architecture, what is the primary benefit of using...
Which subscription type in Pub/Sub requires the subscriber to...
True or False: Pub/Sub topics can only have one active subscription at...
What is the maximum retention period for messages in a Pub/Sub topic?
Which Google Cloud service is commonly paired with Pub/Sub for...
In Pub/Sub, what happens when a subscriber fails to acknowledge a...
Which Pub/Sub feature allows multiple subscribers to receive the same...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!