- A
Increase the max retry duration to 24 hours.
A longer retry duration allows tasks to survive extended outages and eventually succeed.
- B
Set a custom retry deadline of 2 hours.
Why wrong: The retry deadline is not a Cloud Tasks parameter; retry duration is the correct setting.
- C
Use exponential backoff in the task handler instead of relying on Cloud Tasks.
Why wrong: Cloud Tasks already uses exponential backoff; implementing it manually is redundant and not the cause.
- D
Check the task queue rate limits and increase max dispatches per second.
Why wrong: Rate limits affect dispatch speed, not the retry duration or task expiry.
Quick Answer
The answer is to increase the max retry duration to 24 hours. This is correct because Cloud Tasks retry configuration for long-term failures relies on two independent limits: max retries (attempt count) and max retry duration (time window). Even if a task has not exhausted its 100 retries, it will be discarded once the 1-hour max retry duration expires, which is why orders fail when the external shipping API remains unavailable beyond that hour. On the Google Professional Cloud Developer exam, this scenario tests your understanding that retry duration acts as a hard deadline, overriding the retry count—a common trap where developers focus only on increasing retries. A key memory tip: think of max retry duration as a "time bomb" that detonates regardless of remaining attempts; always set it to cover your longest expected outage window.
PCD Building and testing applications Practice Question
This PCD practice question tests your understanding of building and testing applications. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A team uses Cloud Tasks to process orders asynchronously. Each order is enqueued after payment verification. Processing involves calling an external shipping API that occasionally returns 503 (Service Unavailable). The Cloud Tasks queue is configured with default retry parameters: max retries = 100, max retry duration = 1 hour. The team notices that some orders are never processed; they remain in the queue until the max retry duration expires and then are discarded. What is the most likely cause and solution?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"most likely"Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
Clue:
"never"Why it matters: Absolute qualifier. True only if the statement has zero exceptions — be cautious of options that seem obvious but break down in edge cases.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Increase the max retry duration to 24 hours.
The default Cloud Tasks retry parameters include a max retry duration of 1 hour. If an order repeatedly fails due to 503 errors from the external shipping API, the task will be retried up to 100 times within that hour. However, if the API remains unavailable for longer than the max retry duration, the task will be discarded even if the retry count hasn't been exhausted. Increasing the max retry duration to 24 hours gives the external API more time to recover, ensuring that orders are not prematurely discarded.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Increase the max retry duration to 24 hours.
Why this is correct
A longer retry duration allows tasks to survive extended outages and eventually succeed.
Clue confirmation
The clue words "most likely", "never" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Set a custom retry deadline of 2 hours.
Why it's wrong here
The retry deadline is not a Cloud Tasks parameter; retry duration is the correct setting.
- ✗
Use exponential backoff in the task handler instead of relying on Cloud Tasks.
Why it's wrong here
Cloud Tasks already uses exponential backoff; implementing it manually is redundant and not the cause.
- ✗
Check the task queue rate limits and increase max dispatches per second.
Why it's wrong here
Rate limits affect dispatch speed, not the retry duration or task expiry.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Cisco often tests the distinction between retry count and retry duration — candidates mistakenly think increasing the number of retries or adjusting backoff will solve the problem, but the real issue is that the default max retry duration is too short to cover extended outages.
Detailed technical explanation
How to think about this question
Cloud Tasks uses a configurable retry policy with `maxRetryDuration` (default 1 hour) and `maxAttempts` (default 100). When a task fails with a transient error like 503, the queue retries it using exponential backoff, but if the total elapsed time since the first attempt exceeds `maxRetryDuration`, the task is discarded regardless of remaining attempts. This is a common pitfall when integrating with unreliable external APIs that may have extended downtime. In production, you should set `maxRetryDuration` to a value that matches your business's acceptable delay (e.g., 24 hours) and optionally use a dead-letter queue to capture permanently failed tasks for manual inspection.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Building and testing applications — study guide chapter
Learn the concepts, then practise the questions
- →
Building and testing applications practice questions
Targeted practice on this topic area only
- →
All PCD questions
500 questions across all exam domains
- →
Google Professional Cloud Developer study guide
Full concept coverage aligned to exam objectives
- →
PCD practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related PCD practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Designing highly scalable, available, and reliable cloud-native applications practice questions
Practise PCD questions linked to Designing highly scalable, available, and reliable cloud-native applications.
Building and testing applications practice questions
Practise PCD questions linked to Building and testing applications.
Deploying applications practice questions
Practise PCD questions linked to Deploying applications.
Integrating Google Cloud services practice questions
Practise PCD questions linked to Integrating Google Cloud services.
Managing application performance monitoring practice questions
Practise PCD questions linked to Managing application performance monitoring.
PCD fundamentals practice questions
Practise PCD questions linked to PCD fundamentals.
PCD scenario practice questions
Practise PCD questions linked to PCD scenario.
PCD troubleshooting practice questions
Practise PCD questions linked to PCD troubleshooting.
Practice this exam
Start a free PCD practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this PCD question test?
Building and testing applications — This question tests Building and testing applications — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Increase the max retry duration to 24 hours. — The default Cloud Tasks retry parameters include a max retry duration of 1 hour. If an order repeatedly fails due to 503 errors from the external shipping API, the task will be retried up to 100 times within that hour. However, if the API remains unavailable for longer than the max retry duration, the task will be discarded even if the retry count hasn't been exhausted. Increasing the max retry duration to 24 hours gives the external API more time to recover, ensuring that orders are not prematurely discarded.
What should I do if I get this PCD question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "most likely", "never". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 25, 2026
This PCD practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCD exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.