Google Cloud Professional Machine Learning Engineer — Question 241
You trained a model packaged it with a custom Docker container for serving, and deployed it to Vertex AI Model Registry. When you submit a batch prediction job, it fails with this error: "Error model server never became ready. Please validate that your model file or container configuration are valid. " There are no additional errors in the logs. What should you do?
Answer options
- A. Add a logging configuration to your application to emit logs to Cloud Logging
- B. Change the HTTP port in your model’s configuration to the default value of 8080
- C. Change the healthRoute value in your model’s configuration to /healthcheck
- D. Pull the Docker image locally, and use the docker run command to launch it locally. Use the docker logs command to explore the error logs
Correct answer: D
Explanation
The correct answer is D because running the Docker image locally allows you to troubleshoot the model server directly and view any logs that can provide insights into the issue. Options A, B, and C do not address the immediate need to identify why the model server is not becoming ready; they involve configurations that may not solve the underlying problem.