2. Which of the following is the correct way to name a model version for rollback purposes?
easy
A. model_v1.0
B. model-final
C. model_latest
D. modelbackup
Solution
Step 1: Identify clear version naming
Using a version number like 'v1.0' clearly marks the model version.
Step 2: Compare naming clarity
Names like 'model-final' or 'model_latest' are vague and do not specify version order clearly.
Final Answer:
model_v1.0 -> Option A
Quick Check:
Clear version numbers = model_v1.0 [OK]
Hint: Use clear version numbers like v1.0 for rollback [OK]
Common Mistakes:
Using vague names without version numbers
Assuming 'latest' is a fixed version
Ignoring semantic versioning
3. Given the following model versions saved: model_v1.0, model_v1.1, and model_v2.0. If model_v2.0 causes errors, what will happen if you rollback to model_v1.1?
medium
A. The system will use the stable model_v1.1 without errors.
B. The system will still use model_v2.0 causing errors.
C. The rollback will delete all previous models.
D. Rollback will upgrade model_v2.0 automatically.
Solution
Step 1: Understand rollback purpose
Rollback means switching back to a previous stable model version.
Step 2: Apply rollback to model_v1.1
Switching to model_v1.1 avoids errors caused by model_v2.0.
Final Answer:
The system will use the stable model_v1.1 without errors. -> Option A
Quick Check:
Rollback to stable version = no errors [OK]
Hint: Rollback uses previous stable model to avoid errors [OK]
Common Mistakes:
Thinking rollback deletes models
Believing rollback upgrades models
Assuming rollback keeps faulty version active
4. You tried to rollback to a previous model version but the system still uses the new faulty model. What is the most likely cause?
medium
A. Model versioning does not support rollback.
B. The previous model version was deleted.
C. The rollback command was not executed properly.
D. The new model version is always used by default.
Solution
Step 1: Check rollback execution
If rollback was not run correctly, the system stays on the faulty model.
Step 2: Verify model versions
If the previous version exists, the issue is likely the rollback command.
Final Answer:
The rollback command was not executed properly. -> Option C
Quick Check:
Failed rollback = command error [OK]
Hint: Ensure rollback command runs successfully to switch versions [OK]
Common Mistakes:
Assuming rollback deletes models
Believing new model is always forced
Thinking rollback is unsupported
5. You have three model versions: v1.0, v1.1, and v2.0. After deploying v2.0, performance dropped. You want to rollback but keep track of this failed attempt. What is the best practice?
hard
A. Overwrite v1.1 with v2.0 to keep latest only.
B. Tag v2.0 as 'failed' and deploy v1.1 again.
C. Delete v2.0 and redeploy v1.1 without tags.
D. Deploy v1.0 without tagging any versions.
Solution
Step 1: Preserve failed model version
Tagging v2.0 as 'failed' keeps record of the issue.
Step 2: Rollback safely
Deploying v1.1 again restores stable performance while tracking history.
Final Answer:
Tag v2.0 as 'failed' and deploy v1.1 again. -> Option B
Quick Check:
Tag failed + rollback stable = best practice [OK]
Hint: Tag failed versions, rollback to stable, keep history [OK]