0
0
Kubernetesdevops~20 mins

Why persistent storage matters in Kubernetes - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Persistent Storage Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Why is persistent storage important in Kubernetes?

Imagine you run an app in Kubernetes that needs to save user data. What happens if the app's container restarts without persistent storage?

AThe data is lost because container storage is temporary.
BThe data is saved automatically by Kubernetes.
CThe app will never restart if storage is missing.
DThe data is saved in the container image.
Attempts:
2 left
💡 Hint

Think about what happens to files inside a container when it stops.

💻 Command Output
intermediate
1:30remaining
What does this command show about persistent volumes?

Run kubectl get pv in a cluster with two persistent volumes. What output do you expect?

Kubernetes
kubectl get pv
AShows no output if no pods use volumes.
BShows all pods using persistent volumes.
CLists all persistent volumes with their status and capacity.
DDisplays storage classes only.
Attempts:
2 left
💡 Hint

Persistent Volumes are cluster resources independent of pods.

🔀 Workflow
advanced
2:00remaining
Order the steps to create and use persistent storage in Kubernetes

Put these steps in the correct order to use persistent storage in a Kubernetes app.

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

Think about how storage is first made available, then requested, then used.

Troubleshoot
advanced
2:00remaining
Why does my Pod fail to mount the PersistentVolumeClaim?

You created a PVC and a Pod that uses it, but the Pod stays in Pending state. What is the most likely cause?

ANo matching PersistentVolume is available for the PVC.
BThe Pod spec is missing the container image name.
CThe PVC is bound but the Pod has no volume mount.
DThe Kubernetes API server is down.
Attempts:
2 left
💡 Hint

Check if the PVC can find a PV that matches its request.

Best Practice
expert
2:30remaining
Which practice ensures data safety with persistent storage in Kubernetes?

To protect important data stored in Kubernetes persistent volumes, which practice is best?

AStore data only inside container writable layers.
BRegularly back up PersistentVolume data using external tools.
CRely on Kubernetes to automatically replicate PV data across nodes.
DDelete and recreate PVs frequently to refresh storage.
Attempts:
2 left
💡 Hint

Think about how to keep data safe beyond Kubernetes itself.