nerdexam
MicrosoftMicrosoft

DP-100 · Question #301

DP-100 Question #301: Real Exam Question with Answer & Explanation

Sign in or unlock DP-100 to reveal the answer and full explanation for question #301. The question stem and answer options stay visible for context.

Train and deploy models

Question

You have a Jupyter Notebook that contains Python code that is used to train a model. You must create a Python script for the production deployment. The solution must minimize code maintenance. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

Options

  • ARefactor the Jupyter Notebook code into functions
  • BSave each function to a separate Python file
  • CDefine a main() function in the Python script
  • DRemove all comments and functions from the Python script

Unlock DP-100 to see the answer

You've previewed enough free DP-100 questions. Unlock DP-100 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Production deployment#Code refactoring#Code organization#Python scripting best practices
Full DP-100 PracticeBrowse All DP-100 Questions