AI Hints
Home›Kubernetes Tutorial›Quiz Time and Exams
Kubernetes · Lesson 71 of 86

Quiz Time: Running Apps

Six quick questions on production topics.

⏱ 2 min read▶ Video at 3:22:13🎓 Free
Watch this lesson in the Kubernetes courseWatch on YouTube ↗Full Kubernetes course

Here are six more questions, this time about running apps for real. Configuration, storage, health, limits, security, and scheduling. Same rules as before. Listen, pause, think, and then check your answer.

Quiz Time: Running Apps
From the video: Quiz Time: Running Apps
  • Six more questions
  • Production topics
  • Think before the answer

Config

Question 1. Which object should hold a database password? A, A ConfigMap. B, A Secret. C, A Label. D, An Annotation. Pause the video, and think. The answer is B. Secrets are for sensitive values, with their own access rules.

Quick check
Which object should hold a database password?

Storage

Question 2. What lets data survive when a pod is replaced? A, An emptyDir volume. B, A persistent volume claim. C, A container layer. D, A label. Pause the video, and think. The answer is B. A claim binds to a persistent volume, which outlives the pod.

Quick check
What lets data survive when a pod is replaced?

Probes

Question 3. What happens when a readiness probe fails? A, The container is restarted. B, The pod is removed from the service. C, The node is drained. D, The image is pulled again. Pause the video, and think. The answer is B. A pod that is not ready receives no traffic, but keeps running.

Quick check
What happens when a readiness probe fails?

Limits

Question 4. What happens when a container exceeds its memory limit? A, It is slowed down. B, It is killed, O O M killed. C, Nothing. D, It moves to another node. Pause the video, and think. The answer is B. Memory cannot be throttled, so the kernel kills the container.

Quick check
What happens when a container exceeds its memory limit?

RBAC

Question 5. What does a role binding do? A, Creates a pod. B, Gives a role to users or service accounts. C, Encrypts secrets. D, Schedules pods. Pause the video, and think. The answer is B. A role lists permissions, and the binding says who receives them.

Quick check
What does a role binding do?

Scheduling

Question 6. Which feature keeps pods away from a node, unless they have permission? A, Labels. B, Taints and tolerations. C, Probes. D, Quotas. Pause the video, and think. The answer is B. A taint repels pods, and a toleration is the pod's permission to enter.

Quick check
Which feature keeps pods away from a node, unless they have permission?

Summary

Excellent. You have answered twelve questions in total. If you got most of them right, you are well on your way. Next, practical advice, for those who want to take a Kubernetes certification exam.

Key takeaways
  • Config, storage, probes
  • Limits, RBAC, taints
  • Twelve questions done
Next up: Certification Tips — C K A, C K A D, and C K S