A teammate needs the same packages you used. What should you share?
- Exam domain
- Software and Environment Management6% of the exam
- Difficulty
- Easy
- In this mock
- 3 questions on this domainPractise this domain
Why the exam asks this
Software and Environment Management (6% of the exam)
Objective in the exam guide: Configuring reproducible Python environments using Conda, PIP, or Docker
Reproducible environments are named.
Why A is the answer
An environment file, such as a Conda environment.yml, with pinned versions
An environment file with pinned versions lets others recreate the same environment with Conda, pip or a Docker image.
Remember: Share pinned environment files.
How it works
Conda, pip and Docker reproduce environments; environment files are committed with the project.
In detail
- Pin versions.
- Commit environment files.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. An environment file, such as a Conda environment.yml, with pinned versionsRight
Share pinned environment files.
B. A list of package names without versionsWrongMost tempting
Without versions, installs drift.
Why it tempts: Names seem enough.
C. Your whole home directoryWrong
Home directories leak data and are not portable.
D. A verbal descriptionWrong
Descriptions are not reproducible.
Use case
An illustrative scenario, not a real incident.
Illustrative: a pinned environment.yml lets a new hire run the project on day one.
See it in different ways
flowchart LR S0["Create env"] --> S1["Pin versions"] --> S2["Export file"] --> S3["Commit to git"] --> S4["Teammate recreates"]
How to read this chart
- Read it in order: Create env, then Pin versions, then Export file, then Commit to git, then Teammate recreates.
mindmap
root(("Environments"))
n1["Conda"]
n2["environment.yml"]
n3["pip"]
n4["requirements.txt"]
n5["Docker"]
n6["Image"]How to read this chart
- The centre is "Environments".
- "Conda" covers "environment.yml".
- "pip" covers "requirements.txt".
- "Docker" covers "Image".
Learn more
- Our lesson: MLOps, time series, graphs and environments
- Practise Software and Environment Management questions in the mock exam
- Source: Managing environments (conda)
- Source: Docker documentation
- MLflow documentation
- cuGraph documentation (RAPIDS)
- Managing environments (conda)
- nvidia-smi documentation (NVIDIA)
- Git documentation