0
0
MLOpsdevops~20 mins

Compute resource management in MLOps - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Compute Resource Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Output of Kubernetes resource request command
What is the output of the following command when run on a pod named ml-training-pod in Kubernetes?

kubectl get pod ml-training-pod -o jsonpath='{.spec.containers[0].resources.requests}'
A{"cpu":"500m","memory":"1Gi"}
B{"cpu":"1","memory":"512Mi"}
CError: resource requests not found
D{"cpu":"100m","memory":"256Mi"}
Attempts:
2 left
💡 Hint
Resource requests define the minimum compute resources a container needs.
🧠 Conceptual
intermediate
2:00remaining
Understanding GPU resource allocation in MLOps
In an MLOps pipeline, why is it important to specify GPU resource limits for training jobs?
ATo allow the training job to run without any CPU resource limits
BTo prevent a training job from using more GPU memory than allocated, avoiding interference with other jobs
CTo increase the training speed by automatically adding more GPUs when needed
DTo disable GPU usage and force training on CPU only
Attempts:
2 left
💡 Hint
Think about resource sharing in a multi-tenant environment.
🔀 Workflow
advanced
3:00remaining
Order the steps to configure autoscaling for compute resources in a Kubernetes cluster
Arrange the following steps in the correct order to enable autoscaling of pods based on CPU usage in Kubernetes.
A1,3,2,4
B3,1,2,4
C1,2,3,4
D3,2,1,4
Attempts:
2 left
💡 Hint
Metrics collection must be ready before autoscaler can use metrics.
Troubleshoot
advanced
2:00remaining
Identify the cause of pod scheduling failure due to resource constraints
A pod in Kubernetes fails to schedule with the message: 0/5 nodes are available: 5 Insufficient cpu. What is the most likely cause?
AThe pod's node selector does not match any node labels.
BThe pod's container image is too large to download on nodes.
CThe pod lacks a resource limit for memory.
DThe pod requests more CPU than any node currently has available.
Attempts:
2 left
💡 Hint
Focus on the error message about CPU availability.
Best Practice
expert
2:30remaining
Best practice for managing compute resources in multi-tenant MLOps environments
Which practice best ensures fair and efficient compute resource usage among multiple teams running ML workloads on shared infrastructure?
ADisable resource requests and limits to maximize scheduling flexibility.
BAllow all teams to request unlimited resources and rely on manual monitoring.
CImplement resource quotas and limit ranges per namespace to control resource consumption.
DUse a single shared namespace without resource restrictions for simplicity.
Attempts:
2 left
💡 Hint
Think about automated controls to prevent resource hogging.