Skip to content

Commit 055a66e

Browse files
committed
Add sample quiz
Signed-off-by: Aabid Sofi <[email protected]>
1 parent e49633f commit 055a66e

File tree

3 files changed

+132
-1
lines changed
  • content/learning-paths/98e16360-a366-4b78-8e0a-031da07fdacb/end-to-end-kubernetes/cka-prep/cka/content

3 files changed

+132
-1
lines changed
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
---
2+
title: "Introduction to Kubernetes"
3+
id: "quiz-101-k8s"
4+
total_marks: 20
5+
passing_marks: 14
6+
questions:
7+
- id: "q1"
8+
text: "What command is used to view the status of pods in a Kubernetes cluster?"
9+
type: "mcq"
10+
marks: 2
11+
options:
12+
- id: "a"
13+
text: "kubectl list pods"
14+
- id: "b"
15+
text: "kubectl get pods"
16+
is_correct: true
17+
- id: "c"
18+
text: "kubectl show pods"
19+
- id: "d"
20+
text: "kubectl describe cluster"
21+
22+
- id: "q2"
23+
text: "Kubernetes is a container orchestration platform. (true/false)"
24+
type: "short_answer"
25+
marks: 2
26+
correct_answer: "true"
27+
28+
- id: "q3"
29+
text: "What is the default namespace in Kubernetes if none is specified?"
30+
type: "short_answer"
31+
marks: 2
32+
correct_answer: "default"
33+
34+
- id: "q4"
35+
text: "Which of the following are valid Kubernetes resource types?"
36+
type: "mcq"
37+
multiple_answers: true
38+
marks: 2
39+
options:
40+
- id: "a"
41+
text: "Pod"
42+
is_correct: true
43+
- id: "b"
44+
text: "Service"
45+
is_correct: true
46+
- id: "c"
47+
text: "Container"
48+
- id: "d"
49+
text: "Deployment"
50+
is_correct: true
51+
52+
- id: "q5"
53+
text: "Which controller ensures that the specified number of pod replicas are running at all times?"
54+
type: "mcq"
55+
marks: 2
56+
options:
57+
- id: "a"
58+
text: "Deployment"
59+
is_correct: true
60+
- id: "b"
61+
text: "Service"
62+
- id: "c"
63+
text: "Namespace"
64+
- id: "d"
65+
text: "ReplicaSet"
66+
67+
- id: "q6"
68+
text: "StatefulSets are used to manage stateless applications. (true/false)"
69+
type: "short_answer"
70+
marks: 2
71+
correct_answer: "false"
72+
73+
- id: "q7"
74+
text: "What type of Kubernetes object exposes a set of pods as a network service?"
75+
type: "mcq"
76+
marks: 2
77+
options:
78+
- id: "a"
79+
text: "Deployment"
80+
- id: "b"
81+
text: "ReplicaSet"
82+
- id: "c"
83+
text: "Service"
84+
is_correct: true
85+
- id: "d"
86+
text: "ConfigMap"
87+
88+
- id: "q8"
89+
text: "Which kubectl command is used to create resources from a configuration file?"
90+
type: "short_answer"
91+
marks: 2
92+
correct_answer: "kubectl apply -f"
93+
94+
- id: "q9"
95+
text: "Which of the following are use cases for ConfigMaps?"
96+
type: "mcq"
97+
multiple_answers: true
98+
marks: 2
99+
options:
100+
- id: "a"
101+
text: "Storing container logs"
102+
- id: "b"
103+
text: "Storing configuration data"
104+
is_correct: true
105+
- id: "c"
106+
text: "Injecting environment variables into Pods"
107+
is_correct: true
108+
- id: "d"
109+
text: "Scaling deployments"
110+
111+
- id: "q10"
112+
text: "Which type of Kubernetes volume is used to persist data even after pod restarts?"
113+
type: "mcq"
114+
marks: 2
115+
options:
116+
- id: "a"
117+
text: "emptyDir"
118+
- id: "b"
119+
text: "hostPath"
120+
- id: "c"
121+
text: "persistentVolumeClaim"
122+
is_correct: true
123+
- id: "d"
124+
text: "configMap"
125+
layout: "quiz"
126+
type: "quiz"
127+
---
128+
129+
This quiz will test your understanding of basic Kubernetes concepts, commands, and architecture.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ replace github.com/FortAwesome/Font-Awesome v4.7.0+incompatible => github.com/Fo
99

1010
require (
1111
github.com/FortAwesome/Font-Awesome v4.7.0+incompatible // indirect
12-
github.com/layer5io/academy-theme v0.1.22 // indirect
12+
github.com/layer5io/academy-theme v0.1.23 // indirect
1313
github.com/twbs/bootstrap v5.3.7+incompatible // indirect
1414
)

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3 h1:/iluJk
22
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
33
github.com/layer5io/academy-theme v0.1.22 h1:VuK76mZFlM754M2J671Of9gwiE5k+QhyCIbnCNkrT2U=
44
github.com/layer5io/academy-theme v0.1.22/go.mod h1:Dv72UWsREOvX4Zg4mJjrpoyDxdgxxpiDotxqYBXMjXo=
5+
github.com/layer5io/academy-theme v0.1.23 h1:usS0IaPSYqZ62r5SsFbQT8gk7mlRgsGBdcTpxPoXmlE=
6+
github.com/layer5io/academy-theme v0.1.23/go.mod h1:Dv72UWsREOvX4Zg4mJjrpoyDxdgxxpiDotxqYBXMjXo=
57
github.com/twbs/bootstrap v5.3.7+incompatible h1:ea1W8TOWZFkqSK2M0McpgzLiUQVru3bz8aHb0j/XtuM=
68
github.com/twbs/bootstrap v5.3.7+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

0 commit comments

Comments
 (0)