GCP - Cloud Pub/SubWhat happens to a message in Google Cloud Pub/Sub if it is not acknowledged within the retention period?AThe message is automatically acknowledged.BThe message is deleted and no longer available for delivery.CThe message is moved to a dead-letter queue.DThe message is duplicated and sent again.Check Answer
Step-by-Step SolutionSolution:Step 1: Understand message retentionMessage retention defines how long unacknowledged messages are kept before deletion.Step 2: Effect of no acknowledgment within retentionIf a message is not acknowledged before retention expires, it is deleted and lost.Final Answer:The message is deleted and no longer available for delivery. -> Option BQuick Check:Unacknowledged message + retention expired = deleted [OK]Quick Trick: Unacknowledged messages expire and get deleted after retention [OK]Common Mistakes:Thinking messages auto-acknowledge after retentionAssuming messages move to dead-letter queue automaticallyBelieving messages duplicate on retention expiry
Master "Cloud Pub/Sub" in GCP9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More GCP Quizzes Cloud Firestore and Bigtable - Firestore document model - Quiz 9hard Cloud Firestore and Bigtable - Bigtable schema design - Quiz 14medium Cloud Functions - HTTP triggered functions - Quiz 7medium Cloud Functions - Cloud Functions generations (1st vs 2nd) - Quiz 11easy Cloud Functions - Function deployment and testing - Quiz 14medium Cloud IAM Advanced - Access Context Manager - Quiz 8hard Cloud Pub/Sub - Message ordering - Quiz 10hard Cloud Pub/Sub - Pull vs push subscriptions - Quiz 13medium Cloud Pub/Sub - Topics and subscriptions - Quiz 13medium Cloud SQL and Databases - Cloud SQL pricing - Quiz 11easy