Skip to content

Part 0 Cumulative Quiz: Environment & Strategy

Lab Progress 0/2 completed

Time Limit: 10 minutes (simulating exam pressure)

Passing Score: 80% (8/10 questions)

This quiz tests your mastery of:

  • CKAD exam structure and domains
  • Developer workflow optimization
  • kubectl shortcuts and aliases
  • Exam strategy

  1. Try each question without looking at answers
  2. Time yourself—speed matters for CKAD
  3. Check answers after completing all questions

[30 seconds]

What is the largest weighted domain on the CKAD exam, and what percentage is it worth?

Answer

Application Environment, Configuration and Security at 25%.

This includes ConfigMaps, Secrets, ServiceAccounts, resource requirements, SecurityContexts, and CRDs.


[30 seconds]

Name the three multi-container pod patterns you must know for CKAD.

Answer
  1. Init containers - Run before main containers, must complete successfully
  2. Sidecar - Run alongside main container for the pod’s lifetime
  3. Ambassador - Proxy connections to external services

[1 minute]

Write the single command to create a Job named process-data using busybox that echoes “Processing complete”.

Answer
Terminal window
k create job process-data --image=busybox -- echo "Processing complete"

[1 minute]

Write the command to generate a deployment YAML file for web-app with nginx image and 3 replicas, without actually creating it.

Answer
Terminal window
k create deploy web-app --image=nginx --replicas=3 --dry-run=client -o yaml > web-app.yaml

Key elements:

  • --dry-run=client prevents creation
  • -o yaml outputs YAML format

[30 seconds]

Your application needs to wait for a database service to be available before starting. Which multi-container pattern should you use?

Answer

Init container

Init containers run before the main container starts and must complete successfully. They’re perfect for:

  • Waiting for dependencies
  • Downloading/generating config
  • Running database migrations

[30 seconds]

Write the command to switch to a context named ckad-cluster and set the default namespace to dev.

Answer
Terminal window
k config use-context ckad-cluster
k config set-context --current --namespace=dev

Or combine:

Terminal window
k config use-context ckad-cluster && k config set-context --current --namespace=dev

[30 seconds]

What are the three probe types in Kubernetes, and what happens when each fails?

Answer
  1. Liveness probe - Container is restarted when it fails
  2. Readiness probe - Pod is removed from Service endpoints when it fails
  3. Startup probe - Container is killed and restarts when it fails (during startup)

[1 minute]

Write the command to extract just the image names from all containers in a pod named multi-app.

Answer
Terminal window
k get pod multi-app -o jsonpath='{.spec.containers[*].image}'

Or for one per line:

Terminal window
k get pod multi-app -o jsonpath='{range .spec.containers[*]}{.image}{"\n"}{end}'

[30 seconds]

What cron schedule expression runs a job at 2:30 AM every day?

Answer
30 2 * * *

Format: minute hour day-of-month month day-of-week

  • 30 = minute 30
  • 2 = hour 2 (2 AM)
    • = every day of month
    • = every month
    • = every day of week

[30 seconds]

In the three-pass exam strategy, what types of tasks should you tackle in Pass 1?

Answer

Quick wins - tasks that take 1-3 minutes:

  • Create pod/deployment/service (imperative commands)
  • Add labels, annotations
  • Expose a deployment
  • Simple ConfigMap/Secret creation

Secure easy points first before tackling complex questions.


Questions CorrectScoreStatus
10/10100%Excellent - Ready to proceed
8-9/1080-90%Good - Minor review needed
6-7/1060-70%Review weak areas
<6/10<60%Revisit Part 0 modules

If you scored less than 80%, review these areas:

  • Missed Q1-2: Review Module 0.1 domain breakdown and patterns
  • Missed Q3-4: Practice imperative commands and —dry-run pattern
  • Missed Q5-7: Review probe types and multi-container patterns
  • Missed Q8: Practice JSONPath queries in Module 0.2
  • Missed Q9: Memorize cron schedule format
  • Missed Q10: Understand exam time management strategy

Part 1: Application Design and Build - Container images, Jobs, multi-container pods, and volumes.