0
0
MLOpsdevops~20 mins

Multi-tenancy and isolation in MLOps - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Multi-tenancy Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Multi-tenancy Isolation Levels

Which isolation level best ensures that tenants cannot access each other's data in a multi-tenant MLOps platform?

AShared database with tenant-specific schemas
BShared file storage with access control lists
CShared database and shared schema with tenant ID filtering
DDedicated database per tenant
Attempts:
2 left
💡 Hint

Think about physical separation to prevent accidental or malicious data access.

💻 Command Output
intermediate
1:30remaining
Kubernetes Namespace Isolation Output

Given the command kubectl get pods -n tenant-a, what is the expected output if the namespace tenant-a exists but has no pods?

MLOps
kubectl get pods -n tenant-a
AError from server (NotFound): namespaces "tenant-a" not found
BNo resources found in tenant-a namespace.
C
NAME   READY   STATUS   RESTARTS   AGE
Dpod1 1/1 Running 0 5m
Attempts:
2 left
💡 Hint

Consider what Kubernetes shows when a namespace exists but has no pods.

Configuration
advanced
2:30remaining
Configuring Resource Quotas for Tenant Isolation

Which YAML snippet correctly sets a CPU limit of 2 cores and memory limit of 4Gi for a tenant namespace tenant-b in Kubernetes?

A
apiVersion: v1
kind: ResourceQuota
metadata:
  name: tenant-b-quota
  namespace: tenant-b
spec:
  hard:
    limits.cpu: "2"
    limits.memory: 4Gi
B
apiVersion: v1
kind: ResourceQuota
metadata:
  name: tenant-b-quota
  namespace: tenant-b
spec:
  hard:
    cpu: 2
    memory: 4Gi
C
apiVersion: v1
kind: ResourceQuota
metadata:
  name: tenant-b-quota
  namespace: tenant-b
spec:
  hard:
    cpu: "2"
    memory: 4Gi
D
apiVersion: v1
kind: ResourceQuota
metadata:
  name: tenant-b-quota
  namespace: tenant-b
spec:
  hard:
    requests.cpu: "2"
    requests.memory: 4Gi
Attempts:
2 left
💡 Hint

ResourceQuota keys for limits must be prefixed with limits.

Troubleshoot
advanced
2:00remaining
Troubleshooting Cross-Tenant Data Access

An MLOps platform uses shared storage with access control lists (ACLs) for tenant data isolation. Tenant C reports they can see files belonging to Tenant D. What is the most likely cause?

AACLs are misconfigured allowing Tenant C read access to Tenant D files
BTenant C's namespace is incorrectly labeled
CResource quotas are too high for Tenant D
DKubernetes pod security policies are too restrictive
Attempts:
2 left
💡 Hint

Focus on permissions controlling file access.

🔀 Workflow
expert
3:00remaining
Multi-tenant Deployment Workflow

Arrange the steps in the correct order to deploy isolated ML models for multiple tenants using Kubernetes namespaces and resource quotas.

A1,3,2,4
B2,1,3,4
C1,2,3,4
D1,2,4,3
Attempts:
2 left
💡 Hint

Think about setting up the environment before deploying workloads and securing communication last.