Google Cloud Developer Pub Sub Event Integration 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
| Attempts: 12 | Questions: 20 | Updated: Aug 14, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. What is the maximum message size in Pub/Sub?

Explanation

Pub/Sub allows an individual message to be up to 10 MB in size. This limit applies to the message’s data and attributes combined, so larger payloads must be reduced or stored elsewhere with a reference included in the message.

Submit
Please wait...
About This Quiz
Google Cloud Developer Pub Sub Event Integration Quiz - Quiz

This quiz evaluates your understanding of Google Cloud Pub\/Sub and event-driven architecture patterns. It covers message publishing, subscription models, topic management, and integration with Cloud Functions and other GCP services. Ideal for developers preparing for the Google Cloud Professional Developer certification or building event-driven applications on GCP.

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. Which tool can you use to manage Pub/Sub resources via CLI?

Explanation

The `gcloud` command-line tool lets you manage Google Cloud Pub/Sub resources, including creating and listing topics and subscriptions, publishing messages, and configuring access. `kubectl` manages Kubernetes resources, while Terraform and the Cloud Console are alternative management options rather than the required CLI tool.

Submit

3. Pub/Sub supports exactly-once delivery semantics natively.

Explanation

Pub/Sub commonly provides at-least-once delivery, so a message may be delivered more than once if an acknowledgment is delayed, lost, or unsuccessful. Consumers should therefore use idempotent processing or deduplication. Exactly-once behavior is not generally guaranteed across the entire delivery and processing workflow, though some platforms may offer it as a specific feature.

Submit

4. What does the ack deadline parameter control in Pub/Sub?

Explanation

The ack deadline sets how long Pub/Sub waits for a subscriber to acknowledge a delivered message. If it isn’t acknowledged within that period, Pub/Sub may make the message available for redelivery.

Submit

5. Which authentication method is used for push subscriptions to call external endpoints?

Explanation

Push subscriptions can authenticate requests to an external endpoint by attaching an identity token associated with a configured service account. The endpoint validates the token to verify the caller’s identity and permissions before accepting a message. This avoids shared API keys or basic credentials and supports controlled, IAM-managed access.

Submit

6. Can you modify a subscription's delivery type after creation?

Explanation

A subscription’s delivery type is fixed when the subscription is created and cannot be changed afterward. To use a different delivery type, create a new subscription with the desired setting.

Submit

7. What is the default retention period for messages in Pub/Sub?

Explanation

Pub/Sub retains messages for up to 7 days by default, giving subscribers time to receive and acknowledge them. This retention period can be adjusted in the service’s settings, subject to the supported limits.

Submit

8. Pub/Sub message ordering is guaranteed within a single____.

Explanation

Messages that share a partition key are routed to the same ordered stream, allowing the system to preserve their sequence of delivery. Messages with different partition keys may be processed independently, so ordering is not guaranteed across them. This approach provides predictable ordering without requiring the entire messaging system to process every message sequentially.

Submit

9. Which feature allows you to filter messages before delivery to a subscription?

Explanation

Subscription filters let subscribers define attribute-based rules that determine which published messages they receive. The service checks each message against the filter policy before delivery, sending matching messages to that subscription and skipping nonmatching ones. This lets different subscribers on the same topic receive only relevant content without requiring changes to the publisher.

Submit

10. Dead-letter topics in Pub/Sub are used to store____.

Explanation

A dead-letter topic stores messages that Pub/Sub cannot successfully deliver after the configured delivery attempts. This allows them to be inspected or handled later without blocking the delivery of other messages.

Submit

11. What is the primary purpose of Google Cloud Pub/Sub?

Explanation

Google Cloud Pub/Sub enables services and applications to exchange messages asynchronously through topics and subscriptions. Publishers send messages without needing to know who will receive them, while subscribers process them independently, reducing direct dependencies and helping systems scale reliably.

Submit

12. Which GCP service can be directly triggered by Pub/Sub messages?

Explanation

Cloud Functions can be configured with a Pub/Sub topic as an event trigger. When a message is published to that topic, the function runs automatically to process it, making it well suited for event-driven tasks.

Submit

13. If a subscriber fails to acknowledge a message, what happens?

Explanation

If a subscriber does not acknowledge a message before the acknowledgment deadline, the messaging service considers delivery unsuccessful and makes the message available for redelivery. This gives the subscriber another chance to process it.

Submit

14. What is message acknowledgment in Pub/Sub?

Explanation

Message acknowledgment is a subscriber’s confirmation that it has received and processed a message. Pub/Sub uses this confirmation to mark the message as handled and avoid redelivering it. If the subscriber does not acknowledge the message, it may be delivered again.

Submit

15. A push subscription sends messages to a____.

Explanation

A push subscription delivers messages to a webhook endpoint, which receives notifications automatically when new events or data are available.

Submit

16. What does a pull subscription require the subscriber to do?

Explanation

A pull subscription requires the subscriber to initiate message delivery by requesting messages from the subscription. Pub/Sub returns available messages in response, rather than sending them automatically to an endpoint.

Submit

17. Which subscription delivery type guarantees at-least-once delivery?

Explanation

Both push and pull subscriptions provide at-least-once delivery: messages are redelivered if acknowledgment is not received within the required time. This helps prevent message loss, though it can result in duplicate deliveries, so subscribers should handle messages idempotently when possible.

Submit

18. In Pub/Sub, multiple subscribers can receive the same message from a topic.

Explanation

A Pub/Sub topic can have multiple subscriptions, and each subscription receives a copy of every message published to the topic. Subscribers using different subscriptions can therefore receive the same message independently. Within a single subscription, however, subscribers typically share the work rather than each receiving a separate copy.

Submit

19. What is a Pub/Sub topic?

Explanation

A Pub/Sub topic is a named channel to which publishers send messages. Subscribers can then receive those messages through subscriptions, enabling services to communicate asynchronously without being directly connected.

Submit

20. Which component receives and processes messages in Pub/Sub?

Explanation

A subscription connects a subscriber to a Pub/Sub topic and determines how messages are delivered for processing. It receives messages published to the topic and makes them available to the subscriber, which can acknowledge them after processing. Topics organize messages, while publishers send them; neither performs the subscription’s delivery role.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What is the maximum message size in Pub/Sub?
Which tool can you use to manage Pub/Sub resources via CLI?
Pub/Sub supports exactly-once delivery semantics natively.
What does the ack deadline parameter control in Pub/Sub?
Which authentication method is used for push subscriptions to call...
Can you modify a subscription's delivery type after creation?
What is the default retention period for messages in Pub/Sub?
Pub/Sub message ordering is guaranteed within a single____.
Which feature allows you to filter messages before delivery to a...
Dead-letter topics in Pub/Sub are used to store____.
What is the primary purpose of Google Cloud Pub/Sub?
Which GCP service can be directly triggered by Pub/Sub messages?
If a subscriber fails to acknowledge a message, what happens?
What is message acknowledgment in Pub/Sub?
A push subscription sends messages to a____.
What does a pull subscription require the subscriber to do?
Which subscription delivery type guarantees at-least-once delivery?
In Pub/Sub, multiple subscribers can receive the same message from a...
What is a Pub/Sub topic?
Which component receives and processes messages in Pub/Sub?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!