0
0
Kubernetesdevops~20 mins

What is Kubernetes - Practice Questions & Exercises

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Kubernetes Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the primary purpose of Kubernetes?

Kubernetes is a popular tool in DevOps. What is its main job?

AIt is a tool for designing user interfaces.
BIt is a programming language used to write cloud apps.
CIt manages and runs containers across many computers automatically.
DIt is a database system for storing app data.
Attempts:
2 left
💡 Hint

Think about how apps run in many small parts called containers.

💻 Command Output
intermediate
2:00remaining
What does the command 'kubectl get pods' show?

When you run kubectl get pods, what information do you get?

AA list of running containers (pods) in the current Kubernetes cluster.
BThe current version of Kubernetes installed.
CThe logs of a specific container.
DThe configuration files of the cluster.
Attempts:
2 left
💡 Hint

Pods are the smallest units that run containers in Kubernetes.

🔀 Workflow
advanced
3:00remaining
Order the steps to deploy an app on Kubernetes

Put these steps in the correct order to deploy an app on Kubernetes.

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

Think about writing config first, then applying it, checking status, and finally exposing.

Troubleshoot
advanced
2:00remaining
What error occurs if a pod's container image is not found?

You deploy a pod but it never starts. The image name is wrong. What error will Kubernetes show?

APodEvicted
BImagePullBackOff
CCrashLoopBackOff
DNodeNotReady
Attempts:
2 left
💡 Hint

Think about errors related to pulling container images.

Best Practice
expert
2:30remaining
Which practice helps ensure high availability in Kubernetes?

To keep your app always running even if some pods fail, what should you do?

ADeploy pods only on one node to simplify management.
BUse a single pod with a large resource limit.
CManually restart pods when they fail.
DRun multiple replicas of your pods using a Deployment.
Attempts:
2 left
💡 Hint

Think about spreading risk by having copies of your app running.