0
0
MLOpsdevops~20 mins

Why scaling requires different strategies in MLOps - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Scaling Mastery in MLOps
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why horizontal scaling differs from vertical scaling

Which statement best explains why horizontal scaling requires different strategies than vertical scaling in machine learning operations?

AHorizontal scaling adds more machines, so it needs coordination between them, while vertical scaling upgrades a single machine's resources.
BVertical scaling is cheaper and faster than horizontal scaling, so it always uses the same strategy.
CHorizontal scaling only works with cloud services, while vertical scaling is for on-premises only.
DVertical scaling duplicates data across machines, while horizontal scaling increases CPU speed.
Attempts:
2 left
💡 Hint

Think about how adding more machines versus upgrading one machine affects system design.

💻 Command Output
intermediate
1:30remaining
Output of Kubernetes pod scaling command

What is the output of this command when scaling a deployment named 'ml-model' to 3 replicas?

MLOps
kubectl scale deployment ml-model --replicas=3
Adeployment.apps/ml-model scaled
BError from server (NotFound): deployments.apps "ml-model" not found
Cdeployment.apps/ml-model created
DNo resources found in default namespace.
Attempts:
2 left
💡 Hint

Scaling a deployment changes the number of pods, not creating or deleting the deployment.

🔀 Workflow
advanced
3:00remaining
Order the steps to implement auto-scaling for a machine learning service

Put these steps in the correct order to set up auto-scaling for a machine learning model deployment.

A3,2,1,4
B3,1,2,4
C1,3,2,4
D1,2,3,4
Attempts:
2 left
💡 Hint

Think about deploying first, then monitoring and configuring scaling.

Troubleshoot
advanced
2:30remaining
Troubleshooting failed scaling in Kubernetes

You tried to scale a deployment but the pods remain at the old count. Which issue is most likely causing this?

AThe deployment YAML file is missing the container image.
BThe pods are stuck in CrashLoopBackOff due to code errors.
CThe Kubernetes cluster is offline.
DThe deployment has a resource quota limiting pod count.
Attempts:
2 left
💡 Hint

Think about cluster limits that prevent scaling.

Best Practice
expert
3:00remaining
Best practice for scaling stateful machine learning services

Which approach is best when scaling a stateful machine learning service that stores user session data?

AStore session data only in pod memory to improve speed.
BScale pods freely without session management, relying on pod restarts.
CUse sticky sessions with a load balancer to keep users on the same pod.
DDisable scaling to avoid data loss.
Attempts:
2 left
💡 Hint

Think about how to keep user data consistent when scaling.