Bird
0
0

You deployed a Cloud Run service but get an error: Container failed to start. What is a likely cause?

medium📝 Debug Q14 of 15
GCP - Cloud Run
You deployed a Cloud Run service but get an error: Container failed to start. What is a likely cause?
AThe container image is too large to deploy.
BYou forgot to set the CPU limit in the deployment.
CThe container image does not have a listening port configured.
DCloud Run requires a VM instance to be created first.
Step-by-Step Solution
Solution:
  1. Step 1: Check container requirements for Cloud Run

    Cloud Run requires the container to listen on a port for incoming requests.
  2. Step 2: Evaluate other options

    CPU limits are optional, Cloud Run is serverless (no VM setup), and image size usually causes warnings, not start failure.
  3. Final Answer:

    The container image does not have a listening port configured. -> Option C
  4. Quick Check:

    Listening port missing = start failure [OK]
Quick Trick: Containers must listen on a port for Cloud Run [OK]
Common Mistakes:
  • Assuming VM setup is needed
  • Blaming CPU limits for start failure
  • Thinking image size causes start errors

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes