PCD Deploying applications Practice Question
During a deployment to App Engine flexible environment, the new version fails to start and the logs show 'Container failed to start: context deadline exceeded'. The previous version remains serving traffic. What is the most likely cause?
⚠ Common exam trap
The PCD exam often tests the distinction between container startup failures (timeout) and runtime failures (health check, missing env vars), so candidates mistakenly attribute the 'context deadline exceeded' error to health check misconfiguration or missing environment variables.
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 container startup time exceeds the 10-minute timeout.
The error 'context deadline exceeded' in App Engine flexible environment indicates that the container did not start within the allowed startup timeout. The default timeout for container startup in App Engine flexible is 10 minutes, and if the application takes longer (e.g., due to slow initialization, large dependency downloads, or database migrations), the platform kills the container and logs this error. The previous version continues serving because the new version failed to become healthy.
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 health check is misconfigured, causing the instance to be considered unhealthy.
Why it's wrong here
Health check failures cause instance replacement but not 'context deadline exceeded'.
- ✗
The app requires an environment variable that is not set.
Why it's wrong here
Missing env vars cause runtime errors, not a delay in startup.
- ✓
The container startup time exceeds the 10-minute timeout.
Why this is correct
App Engine flexible environment has a 10-minute startup timeout; if the container takes longer, it fails with this error.
- ✗
The Dockerfile has a syntax error that prevents the container from building.
Why it's wrong here
Build errors occur before deployment, not a startup timeout.
Go deeper
Related to this question
About these practice questions
One of 964 original PCD practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.