Courseiva
Optimizing service performanceeasyMultiple ChoiceObjective-mapped

PCDOE Optimizing service performance Practice Question

A Cloud Run service is experiencing increased cold start latency. The service is written in Python and uses several large dependencies. Which action would most effectively reduce cold start latency?

⚠ Common exam trap

Google Cloud often tests the misconception that increasing CPU or memory directly reduces cold start latency, when in fact cold starts are primarily caused by initialization overhead (dependency loading, runtime startup) that is not mitigated by resource scaling.

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

Set a minimum number of instances to keep containers warm.

Setting a minimum number of instances ensures that the Cloud Run service always has a pool of warm containers ready to serve requests, eliminating the cold start penalty. Cold starts in Python are particularly severe due to the time required to import large dependencies (e.g., NumPy, TensorFlow) and initialize the runtime. By keeping containers alive, you bypass the entire initialization phase, directly addressing the root cause of increased latency.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Set concurrency to 1 to ensure each request gets a dedicated container.

    Why it's wrong here

    Concurrency does not affect cold start delay.

  • Increase the CPU allocation to 4 vCPUs.

    Why it's wrong here

    More CPU does not reduce cold start; dependencies still need to load.

  • Set a minimum number of instances to keep containers warm.

    Why this is correct

    Min instances eliminate cold start by keeping containers ready.

  • Increase memory to 2 GiB.

    Why it's wrong here

    Memory helps but does not eliminate cold start.

About these practice questions

Courseiva writes every PCDOE question from scratch — 486 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PCDOE 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 PCDOE exam.