GCP - Cloud Pub/SubA Cloud Task with maxAttempts set to 3 continues retrying beyond three attempts. Which configuration is most likely causing this behavior?AThe task payload exceeds the maximum allowed sizeBThe task's scheduleTime is set incorrectly to a past timestampCThe task's retryConfig has maxRetryDuration set to unlimited or a very high valueDThe Cloud Tasks queue is pausedCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand retry behaviormaxAttempts limits retries, but retryConfig's maxRetryDuration can override retry timing.Step 2: Identify causeIf maxRetryDuration is unlimited or very long, retries can continue beyond maxAttempts.Final Answer:The task's retryConfig has maxRetryDuration set to unlimited or a very high value -> Option CQuick Check:maxRetryDuration can extend retries beyond maxAttempts [OK]Quick Trick: Check maxRetryDuration when retries exceed maxAttempts [OK]Common Mistakes:Assuming maxAttempts alone controls retry countIgnoring retryConfig settingsConfusing paused queue with retry behavior
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