Skip to content

Commit bd3679c

Browse files
authored
Merge pull request #199 from layer5io/add-id
Add sample quiz
2 parents e49633f + ec8ef3b commit bd3679c

File tree

3 files changed

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

3 files changed

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