Which practice most improves the reliability of model-serving code over time?
- Exam domain
- Software Development15% of the exam
- Difficulty
- Medium
- In this mock
- 6 questions on this domainPractise this domain
Why the exam asks this
Software Development (15% of the exam)
Objective in the exam guide: Ensure adherence to best practices and maintain high standards of software quality and reliability.
Software quality is part of the associate role.
Why B is the answer
Version control, code review and automated tests in CI
Version control tracks changes, reviews catch mistakes and automated tests in CI stop regressions before release.
Remember: Version control, review and CI tests keep quality high.
How it works
Best practices include version control, code review, testing, CI and documentation.
In detail
- Version control and review.
- Automated tests in CI.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Skipping tests to release fasterWrongMost tempting
Skipping tests lets bugs through.
Why it tempts: Speed is valued, so skipping tests is tempting.
B. Version control, code review and automated tests in CIRight
Version control, review and CI tests keep quality high.
C. Keeping one copy of the code on a laptopWrong
One laptop copy can be lost.
D. Editing code directly on the production server so fixes reach users without any waitingWrong
Production edits are untracked and risky.
Use case
An illustrative scenario, not a real incident.
Illustrative: a CI test catches a change that would have broken image preprocessing in production.
See it in different ways
flowchart LR S0["Branch"] --> S1["Commit"] --> S2["Automated tests"] --> S3["Code review"] --> S4["Merge and deploy"]
How to read this chart
- Read it in order: Branch, then Commit, then Automated tests, then Code review, then Merge and deploy.
flowchart TD
Q{"Tests and review?"}
Q -->|"Both pass"| A0["Merge"]
Q -->|"Tests fail"| A1["Fix first"]
Q -->|"No review"| A2["Wait for review"]How to read this chart
- At "Tests and review?": if "Both pass", go to "Merge"; if "Tests fail", go to "Fix first"; if "No review", go to "Wait for review".
Learn more
- Our lesson: Generating images: U-Net, diffusion and CLIP
- Practise Software Development questions in the mock exam
- Source: Git documentation
- U-Net: Convolutional Networks for Biomedical Image Segmentation (arXiv)
- Denoising Diffusion Probabilistic Models (arXiv)
- Learning Transferable Visual Models From Natural Language Supervision, CLIP (arXiv)
- Git documentation