Kubernetes Concepts Quiz¶
## Question 1
**The Service Type _____________ works only if your cluster is setup to work with a cloud provider.**
- [ ] ClusterIP
- [ ] NodePort
- [x] LoadBalancer
- [ ] ExternalName
---
## Question 2
**What does the READY column in the output of the kubectl get pods command indicate?**
- [ ] Total Containers in POD/Running Containers in POD
- [ ] Running Pods/Total Pods
- [x] Running Containers in POD/Total Containers in POD
- [ ] Total Pods/Running Pods
---
## Question 3
**What is a Pod?**
- [ ] A host machine where containers are deployed
- [ ] A Kubernetes primitive responsible for deploying and scheduling application containers
- [x] A group of one or more application containers that include shared volume and IP address
---
## Question 4
**What would be the result of this command: `kubectl exec -ti my_pod_name bash`**
- [ ] Get the list of Pods
- [x] Open a console on the first container inside the my_pod_name
- [ ] Show on what node the pod called my_pod_name is running
---
## Question 5
**What is a Deployment?**
- [ ] A type of container
- [ ] A type of Kubernetes host
- [x] A Deployment is responsible for managing the desired state of your applications
---
## Question 6
**What is a Kubernetes Service?**
- [ ] A co-located and co-scheduled group of one or more containers that share volume and an IP address
- [ ] A Service is responsible for creating and updating instances of your containerized applications
- [x] A Kubernetes Service is an abstraction layer which defines a logical set of Pods
---
## Question 7
**The command to create Kubernetes service is:**
- [x] kubectl expose
- [ ] kubectl set service
- [ ] kubectl run
- [ ] kubectl deploy
---
## Question 8
**What is a Label in Kubernetes?**
- [ ] A way to expose traffic
- [ ] A type of Deployment
- [x] A way to group related things using key/value pairs
---
## Question 9
**If a Deployment is exposed publicly, what happens with the network traffic during an update?**
- [ ] Is dropped
- [x] Is load-balanced only to available instances (old or new)
- [ ] Is load-balanced only to the old instances
---
## Question 10
**What kubectl command can be used to trigger a Deployment update?**
- [x] kubectl set image
- [ ] kubectl rollout undo
- [ ] kubectl rollout status
---
## Question 11
**This Deployment `spec` parameter used for Rolling Update to determine how many pod instances you allow to exist above the desired replica count configured on the Deployment:**
- [ ] maxUnavailable
- [x] maxSurge
- [ ] revisionHistoryLimit
- [ ] minReadySeconds
- [ ] replicas