GCP - Cloud Pub/SubGiven a Pub/Sub topic with 3 subscribers, if a message is published once, how many times will it be delivered?AOnce, to one subscriber onlyBThree times, once to each subscriberCDepends on the message sizeDOnce, to all subscribers simultaneouslyCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand Pub/Sub delivery modelPub/Sub delivers each message to every subscriber independently.Step 2: Apply to 3 subscribersEach subscriber receives the message once, so total deliveries equal number of subscribers.Final Answer:Message is delivered three times, once to each subscriber -> Option BQuick Check:Pub/Sub message per subscriber = 1 delivery each [OK]Quick Trick: Pub/Sub sends message to all subscribers individually [OK]Common Mistakes:Thinking message is sent only once totalConfusing with Cloud Tasks single delivery
Master "Cloud Pub/Sub" in GCP9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More GCP Quizzes Cloud Firestore and Bigtable - Bigtable for time-series data - Quiz 1easy Cloud Firestore and Bigtable - Firestore collections and documents - Quiz 3easy Cloud Functions - Environment variables and secrets - Quiz 5medium Cloud IAM Advanced - VPC Service Controls - Quiz 10hard Cloud IAM Advanced - IAM deny policies - Quiz 2easy Cloud Load Balancing - Why load balancing matters - Quiz 10hard Cloud Load Balancing - Why load balancing matters - Quiz 1easy Cloud Monitoring and Logging - Metrics and dashboards - Quiz 11easy Cloud Pub/Sub - Pull vs push subscriptions - Quiz 13medium Cloud Run - Custom domains - Quiz 2easy