0
0
MLOpsdevops~20 mins

Container registries for ML in MLOps - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Container Registry Mastery for ML
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Purpose of Container Registries in ML Workflows

Why are container registries important in machine learning workflows?

AThey store and manage container images that package ML models and dependencies for consistent deployment.
BThey provide a platform to train ML models directly inside containers.
CThey automatically generate ML model code from datasets.
DThey replace the need for version control systems like Git in ML projects.
Attempts:
2 left
💡 Hint

Think about how ML models and their environments are shared and deployed.

💻 Command Output
intermediate
2:00remaining
Docker Push Command Output for ML Model Image

What is the expected output when pushing an ML model container image named mlmodel:v1 to a Docker registry?

MLOps
docker push mlregistry.example.com/mlmodel:v1
AThe command runs silently with no output.
BThe image layers are uploaded with progress bars, ending with 'v1: digest: sha256:... size: ...' message.
CSyntax error: unexpected argument 'mlregistry.example.com/mlmodel:v1'.
DError: image mlmodel:v1 not found locally.
Attempts:
2 left
💡 Hint

Consider what happens when Docker successfully uploads an image.

Configuration
advanced
3:00remaining
Configuring Access to a Private Container Registry for ML Deployment

Which configuration snippet correctly sets up Docker to authenticate to a private container registry mlregistry.example.com using a username and password?

A
{
  "auths": {
    "mlregistry.example.com": {
      "token": "dXNlcjpwYXNzd29yZA=="
    }
  }
}
B
{
  "auths": {
    "mlregistry.example.com": {
      "username": "user",
      "password": "password"
    }
  }
}
C
{
  "credentials": {
    "mlregistry.example.com": {
      "user": "user",
      "pass": "password"
    }
  }
}
D
{
  "auths": {
    "mlregistry.example.com": {
      "auth": "dXNlcjpwYXNzd29yZA=="
    }
  }
}
Attempts:
2 left
💡 Hint

Docker config uses base64 encoded auth strings under the auth key.

Troubleshoot
advanced
2:00remaining
Diagnosing Docker Pull Failure from ML Container Registry

You run docker pull mlregistry.example.com/mlmodel:v2 and get the error: unauthorized: authentication required. What is the most likely cause?

AYou have not logged in to the private registry using <code>docker login</code>.
BThe image tag <code>v2</code> does not exist in the registry.
CYour Docker daemon is not running.
DThe Dockerfile used to build the image has syntax errors.
Attempts:
2 left
💡 Hint

Think about authentication steps before pulling from private registries.

🔀 Workflow
expert
3:00remaining
Correct Sequence for ML Model Container Deployment Using Registry

Arrange the steps in the correct order to deploy an ML model container using a container registry.

A2,1,3,4
B1,3,2,4
C1,2,3,4
D3,2,1,4
Attempts:
2 left
💡 Hint

Think about the natural flow from building to running a container.