Script Valley
Kubernetes: From Containers to Clusters
Containers and the Kubernetes Foundation/Assessment

Practice & Assessment

Test your understanding of Containers and the Kubernetes Foundation

Multiple Choice Questions

5
1

Which Kubernetes component stores all cluster state and must be backed up to recover a cluster?

2

You run `kubectl apply -f app.yaml` without specifying a namespace. Where does the resource get created?

3

What is the key difference between Kubernetes labels and annotations?

4

Which component on a worker node is responsible for actually starting and stopping containers based on instructions from the control plane?

5

A developer says 'I want 3 replicas of my app always running.' This is an example of which management style?

Coding Challenges

1
1

Label and Select Pods Across Namespaces

Create two namespaces: 'team-alpha' and 'team-beta'. Deploy an nginx Pod in each namespace with labels app=nginx and team=alpha (or team=beta respectively). Then write kubectl commands to: (1) list all pods across both namespaces, (2) list only pods with label app=nginx cluster-wide, (3) add the label tier=frontend to both pods using a single set-based selector command. Expected output: all commands execute without error and return the correct pods. Time estimate: 20 minutes.

Easy

Mini Project

1

Multi-Namespace Application Scaffold

Set up a local kind cluster with three namespaces: dev, staging, and prod. In each namespace, deploy a single nginx Pod with labels including environment (matching the namespace name), app=web, and tier=frontend. Add annotations to each Pod recording a mock deployment timestamp and deployer name. Write a single kubectl command that lists all pods across all three namespaces. Document the cluster architecture in a file called CLUSTER.md explaining which namespace is for what, what labels mean, and why you would not use the default namespace in production.

Easy