Bird
0
0

If a Cloud Task fails to execute, what happens by default?

medium📝 service behavior Q5 of 15
GCP - Cloud Pub/Sub
If a Cloud Task fails to execute, what happens by default?
AThe task is sent to Pub/Sub for retry
BThe task is discarded immediately
CThe task is retried based on retry configuration
DThe task triggers an alert but is not retried
Step-by-Step Solution
Solution:
  1. Step 1: Understand Cloud Tasks retry behavior

    Cloud Tasks retries failed tasks automatically according to retry settings.
  2. Step 2: Eliminate other options

    Tasks are not discarded immediately, nor sent to Pub/Sub, nor only alert without retry.
  3. Final Answer:

    Task is retried based on retry configuration -> Option C
  4. Quick Check:

    Cloud Tasks retries failed tasks automatically [OK]
Quick Trick: Cloud Tasks retries failed tasks by default [OK]
Common Mistakes:
  • Assuming immediate discard on failure
  • Thinking Pub/Sub handles retries for Cloud Tasks

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes