Question 188 of 500
Building and testing applicationshardMultiple ChoiceObjective-mapped

Quick Answer

The answer is that Cloud Functions 2nd gen concurrency timeout issues cause DeadlineExceeded errors when multiple requests compete for a single instance’s resources. Unlike 1st gen, which processes one request at a time, 2nd gen allows an instance to handle several concurrent invocations, sharing CPU, memory, and the HTTP timeout window. If one request hogs resources due to contention—like a blocking I/O operation or CPU-intensive task—other concurrent requests can hit the 60-minute HTTP timeout even if their own execution time is far shorter. On the Google Professional Cloud Developer exam, this scenario tests your understanding of the fundamental behavioral shift between 1st and 2nd gen: the trap is assuming the total execution time per request is the only limit, ignoring that concurrency introduces shared resource bottlenecks. A helpful memory tip is “Concurrency means contention—one slow request can timeout its neighbors.”

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.

Your organization uses Cloud Functions (1st gen) to process events from Cloud Storage. Recently, you migrated to Cloud Functions (2nd gen) to take advantage of longer timeouts and concurrency. After the migration, some invocations fail with 'DeadlineExceeded' errors even though the total execution time is below the 60-minute limit. What is the most likely cause?

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.

Question 1hardmultiple choice
Full question →

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

The function is processing multiple concurrent requests per instance, causing a single request to exceed the HTTP timeout due to contention

Option B is correct because Cloud Functions (2nd gen) supports concurrent request processing per instance. When multiple requests are handled simultaneously by the same instance, they share the instance's resources, including the HTTP timeout. If one request consumes excessive time due to contention (e.g., waiting for CPU or I/O), other concurrent requests may hit the HTTP request timeout (default 60 minutes for 2nd gen) even if their individual execution time is shorter. This is a common issue when migrating from 1st gen (which processes one request at a time) to 2nd gen with concurrency enabled.

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.

  • The function does not have enough memory allocated for the new workload

    Why it's wrong here

    Memory errors would show as 'out of memory', not DeadlineExceeded.

  • The function is processing multiple concurrent requests per instance, causing a single request to exceed the HTTP timeout due to contention

    Why this is correct

    2nd gen enables concurrency; if function code is not thread-safe or uses blocking operations, concurrent requests can cause delays.

    Clue confirmation

    The clue word "most likely" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • The function is being cold-started more frequently due to reduced min instances

    Why it's wrong here

    Cold starts increase latency but not DeadlineExceeded if timeout is sufficient.

  • The function timeout is still set to the 1st gen default of 9 minutes

    Why it's wrong here

    2nd gen supports up to 60 min, and timeout setting would be honored.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Cisco often tests the misconception that 'DeadlineExceeded' errors are always due to the function timeout setting, but here the trap is that the error arises from concurrent request contention within a single instance, not from an insufficient timeout value.

Trap categories for this question

  • Command / output trap

    Memory errors would show as 'out of memory', not DeadlineExceeded.

Detailed technical explanation

How to think about this question

Cloud Functions (2nd gen) uses an HTTP-triggered architecture with a 60-minute timeout per request, but when concurrency is enabled (via the 'concurrency' parameter), multiple requests are multiplexed onto the same instance. Under the hood, the instance's event loop handles requests sequentially within a single thread, so a long-running synchronous operation can block other requests, causing them to hit the HTTP timeout even if their own logic is fast. This is especially relevant for functions that perform heavy CPU-bound work or blocking I/O, as they do not yield the event loop. In practice, setting concurrency to 1 or using async/await patterns can mitigate this issue.

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 media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

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.

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.

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: The function is processing multiple concurrent requests per instance, causing a single request to exceed the HTTP timeout due to contention — Option B is correct because Cloud Functions (2nd gen) supports concurrent request processing per instance. When multiple requests are handled simultaneously by the same instance, they share the instance's resources, including the HTTP timeout. If one request consumes excessive time due to contention (e.g., waiting for CPU or I/O), other concurrent requests may hit the HTTP request timeout (default 60 minutes for 2nd gen) even if their individual execution time is shorter. This is a common issue when migrating from 1st gen (which processes one request at a time) to 2nd gen with concurrency enabled.

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". 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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 25, 2026

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.

Loading comments…

Sign in to join the discussion.

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.