In the deploy-code strategy, what happens in the production environment?
- Exam domain
- MLOps44% of the exam
- Difficulty
- Medium
- In this mock
- 22 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Describe and implement the architecture components of model lifecycle pipelines used to manage environment transitions in the deploy code strategy.
Lifecycle architecture for deploy code is named.
Why A is the answer
Prod retrains on prod data, validates and deploys
With deploy code, the same reviewed code runs in each environment. Production trains, validates and deploys using production data.
Remember: Prod retrains from promoted code.
How it works
Deploy code promotes code and rebuilds models per environment.
In detail
- Code moves; models are built per environment.
- Prod trains, validates, deploys.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Prod retrains on prod data, validates and deploysRight
Prod retrains from promoted code.
B. Only dashboards run in prodWrong
Prod runs the ML pipelines.
C. Nothing is trained; a model copied from dev is served as-is without any validation in productionWrongMost tempting
That describes deploy model with no checks.
Why it tempts: It describes the other strategy.
D. Developers edit code directly in prod notebooksWrong
Prod code changes go through Git and CI.
Use case
An illustrative scenario, not a real incident.
Illustrative: merging to the release branch deploys the training job to prod, which retrains weekly.
See it in different ways
flowchart LR S0["Dev build and unit test"] --> S1["Staging integration test"] --> S2["Prod train, validate, deploy"] --> S3["Monitor"]
How to read this chart
- Read it in order: Dev build and unit test, then Staging integration test, then Prod train, validate, deploy, then Monitor.
sequenceDiagram participant P0 as Developer participant P1 as Git and CI participant P2 as Prod workspace P0->>P1: pull request P1->>P2: deploy jobs P2->>P2: train, validate, deploy
How to read this chart
- 1. Developer sends "pull request" to Git and CI.
- 2. Git and CI sends "deploy jobs" to Prod workspace.
- 3. Prod workspace sends "train, validate, deploy" to Prod workspace.