|
| 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. |
0 commit comments