PCD • Practice Test 4
Free PCD practice test — 10 questions with explanations. Set 4. No signup required.
You are deploying a Node.js application on Cloud Run. The container image is stored in Artifact Registry. After deploying with gcloud run deploy, the revision fails with 'Container failed to start. Failed to start and then listen on the port defined by the PORT environment variable.' The application listens on port 8080 by default. The Dockerfile uses EXPOSE 8080. The Cloud Run service is configured with container port 8080. You have verified that the container starts locally using docker run -p 8080:8080. What is the most likely cause of the startup failure?
Choose an answer to begin — your selection is scored in the full session.
10 questions · instant feedback and full explanations after every question.