Part 0 Cumulative Quiz: Environment & Strategy
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
Instructions
Section titled “Instructions”- Try each question without looking at answers
- Time yourself—speed matters for CKAD
- Check answers after completing all questions
Questions
Section titled “Questions”Question 1: Exam Domains
Section titled “Question 1: Exam Domains”[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.
Question 2: Multi-Container Patterns
Section titled “Question 2: Multi-Container Patterns”[30 seconds]
Name the three multi-container pod patterns you must know for CKAD.
Answer
- Init containers - Run before main containers, must complete successfully
- Sidecar - Run alongside main container for the pod’s lifetime
- Ambassador - Proxy connections to external services
Question 3: Imperative Command
Section titled “Question 3: Imperative Command”[1 minute]
Write the single command to create a Job named process-data using busybox that echoes “Processing complete”.
Answer
k create job process-data --image=busybox -- echo "Processing complete"Question 4: YAML Generation
Section titled “Question 4: YAML Generation”[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
k create deploy web-app --image=nginx --replicas=3 --dry-run=client -o yaml > web-app.yamlKey elements:
--dry-run=clientprevents creation-o yamloutputs YAML format
Question 5: Pattern Recognition
Section titled “Question 5: Pattern Recognition”[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
Question 6: Context Management
Section titled “Question 6: Context Management”[30 seconds]
Write the command to switch to a context named ckad-cluster and set the default namespace to dev.
Answer
k config use-context ckad-clusterk config set-context --current --namespace=devOr combine:
k config use-context ckad-cluster && k config set-context --current --namespace=devQuestion 7: Probe Types
Section titled “Question 7: Probe Types”[30 seconds]
What are the three probe types in Kubernetes, and what happens when each fails?
Answer
- Liveness probe - Container is restarted when it fails
- Readiness probe - Pod is removed from Service endpoints when it fails
- Startup probe - Container is killed and restarts when it fails (during startup)
Question 8: JSONPath
Section titled “Question 8: JSONPath”[1 minute]
Write the command to extract just the image names from all containers in a pod named multi-app.
Answer
k get pod multi-app -o jsonpath='{.spec.containers[*].image}'Or for one per line:
k get pod multi-app -o jsonpath='{range .spec.containers[*]}{.image}{"\n"}{end}'Question 9: CronJob Schedule
Section titled “Question 9: CronJob Schedule”[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
Question 10: Three-Pass Strategy
Section titled “Question 10: Three-Pass Strategy”[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.
Scoring
Section titled “Scoring”| Questions Correct | Score | Status |
|---|---|---|
| 10/10 | 100% | Excellent - Ready to proceed |
| 8-9/10 | 80-90% | Good - Minor review needed |
| 6-7/10 | 60-70% | Review weak areas |
| <6/10 | <60% | Revisit Part 0 modules |
Key Takeaways
Section titled “Key Takeaways”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
Next Part
Section titled “Next Part”Part 1: Application Design and Build - Container images, Jobs, multi-container pods, and volumes.