Bird
0
0

A Cloud Task with maxAttempts set to 3 continues retrying beyond three attempts. Which configuration is most likely causing this behavior?

medium📝 Debug Q7 of 15
GCP - Cloud Pub/Sub
A 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 size
BThe task's scheduleTime is set incorrectly to a past timestamp
CThe task's retryConfig has maxRetryDuration set to unlimited or a very high value
DThe Cloud Tasks queue is paused
Step-by-Step Solution
Solution:
  1. Step 1: Understand retry behavior

    maxAttempts limits retries, but retryConfig's maxRetryDuration can override retry timing.
  2. Step 2: Identify cause

    If maxRetryDuration is unlimited or very long, retries can continue beyond maxAttempts.
  3. Final Answer:

    The task's retryConfig has maxRetryDuration set to unlimited or a very high value -> Option C
  4. Quick Check:

    maxRetryDuration can extend retries beyond maxAttempts [OK]
Quick Trick: Check maxRetryDuration when retries exceed maxAttempts [OK]
Common Mistakes:
  • Assuming maxAttempts alone controls retry count
  • Ignoring retryConfig settings
  • Confusing paused queue with retry behavior

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes