0
0
Kubernetesdevops~10 mins

Why resource management matters in Kubernetes - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set a CPU request for a container in a Pod spec.

Kubernetes
resources:
  requests:
    cpu: [1]
Drag options to blanks, or click blank then click option'
A500m
B1000
C1TB
D2GB
Attempts:
3 left
💡 Hint
Common Mistakes
Using memory units like '2GB' for CPU requests
Using plain numbers without units
2fill in blank
medium

Complete the code to set a memory limit for a container in a Pod spec.

Kubernetes
resources:
  limits:
    memory: [1]
Drag options to blanks, or click blank then click option'
A500m
B1000m
C256Mi
D1CPU
Attempts:
3 left
💡 Hint
Common Mistakes
Using CPU units for memory
Using plain numbers without units
3fill in blank
hard

Fix the error in the resource request value to correctly request 1 CPU core.

Kubernetes
resources:
  requests:
    cpu: [1]
Drag options to blanks, or click blank then click option'
A1Mi
B1000m
C1m
D1GB
Attempts:
3 left
💡 Hint
Common Mistakes
Using '1Mi' or '1GB' for CPU
Using '1m' which is 0.001 CPU
4fill in blank
hard

Fill both blanks to set CPU and memory limits correctly.

Kubernetes
resources:
  limits:
    cpu: [1]
    memory: [2]
Drag options to blanks, or click blank then click option'
A1
B512Mi
C1000m
D2GB
Attempts:
3 left
💡 Hint
Common Mistakes
Using '1' for CPU without units
Using '2GB' which is valid but not the correct answer here
5fill in blank
hard

Fill all three blanks to create a resource request and limit for CPU and memory.

Kubernetes
resources:
  requests:
    cpu: [1]
    memory: [2]
  limits:
    cpu: [3]
Drag options to blanks, or click blank then click option'
A250m
B128Mi
C500m
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing units between CPU and memory
Setting limits lower than requests