
Answer-first summary for fast verification
Answer: service.get_logs()
The question asks for troubleshooting a failed deployment by determining the actions performed and identifying which specific action failed. Option A (service.get_logs()) is correct because it retrieves detailed Docker engine log messages that show the sequence of deployment actions and pinpoint where the failure occurred. This is supported by the official Microsoft documentation reference provided and the community consensus with multiple confirmations from exam takers and high upvotes. Option B (service.state) only shows the current state (e.g., 'Failed') but not the detailed actions. Option C (service.serialize()) serializes the service configuration, which is unrelated to deployment actions. Option D (service.update_deployment_state()) updates the state but does not retrieve logs for troubleshooting.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You deploy a model as an Azure Machine Learning real-time web service using the provided code. The deployment fails. You need to troubleshoot the deployment failure by determining the actions performed during deployment and identifying the specific action that failed. Which code segment should you run?

A
service.get_logs()
B
service.state
C
service.serialize()
D
service.update_deployment_state()
No comments yet.