Research Questions Replication Controllers and Replicasets
References:
- https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
- https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
- https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
- https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#writing-a-replicationcontroller-spec
- https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#writing-a-replicaset-manifest
- https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#get
- https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#scale
Quiz Summary
0 of 32 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 32 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 32
1. Question
The label selector is the core grouping primitive in Kubernetes. What kind of selectors are supported?
CorrectIncorrect -
Question 2 of 32
2. Question
A ReplicaSet is one of the Kubernetes controllers?
CorrectIncorrect -
Question 3 of 32
3. Question
Which statements best describe replication controllers and replica sets? Select all answers that apply.
CorrectIncorrect -
Question 4 of 32
4. Question
Which of the following commands are used to list all the ReplicaSets? Select all the answers that apply.
CorrectIncorrect -
Question 5 of 32
5. Question
What is a Label in Kubernetes?
CorrectIncorrect -
Question 6 of 32
6. Question
What is the command to list all the labels of a ReplicaSet?
CorrectIncorrect -
Question 7 of 32
7. Question
What is the command to delete a replication controller
nginx
?CorrectIncorrect -
Question 8 of 32
8. Question
What is the command to delete a ReplicaSets
triage
?CorrectIncorrect -
Question 9 of 32
9. Question
How do you scale replica sets? Select all the answers that apply.
CorrectIncorrect -
Question 10 of 32
10. Question
You are required to deploy an application in the form of containers that can easily scale up or down and supports upgrade of applications by maintaining information about different revisions. What is the recommended approach to deploying the application?
CorrectIncorrect -
Question 11 of 32
11. Question
What command would you use to create a Deployment? Select the correct answer
CorrectIncorrect -
Question 12 of 32
12. Question
What is the flag that you use along with
"kubectl create"
to scale a deployment in Kubernetes?CorrectIncorrect -
Question 13 of 32
13. Question
What is the command to get the list of deployments. Select all the answers that apply.
CorrectIncorrect -
Question 14 of 32
14. Question
What is the command to create the deployment using the deployment definition file?
CorrectIncorrect -
Question 15 of 32
15. Question
Which of the following subcommands of
kubectl
can be used to get additional details of an object?CorrectIncorrect -
Question 16 of 32
16. Question
What is the command to delete a deployment?
CorrectIncorrect -
Question 17 of 32
17. Question
Which statement best describes deployment in Kubernetes? Select all the answers that apply.
CorrectIncorrect -
Question 18 of 32
18. Question
Which of the following statements about Kubernetes deployments are correct?
CorrectIncorrect -
Question 19 of 32
19. Question
What is the command to update the deployment in Kubernetes?
Let’s update thenginx
Pods to use thenginx:1.16.1
image instead of thenginx:1.14.2
image.CorrectIncorrect -
Question 20 of 32
20. Question
Where do you configure the selector labels in the deployment YAML file?
CorrectIncorrect -
Question 21 of 32
21. Question
Where do you configure the pod images in the deployment YAML file?
CorrectIncorrect -
Question 22 of 32
22. Question
Rolling updates allows deployments to update with zero downtime ?
CorrectIncorrect -
Question 23 of 32
23. Question
What is the apiVersion for Kubernetes deployment?
CorrectIncorrect -
Question 24 of 32
24. Question
What kubectl command can be used to perform a Deployment update?
CorrectIncorrect -
Question 25 of 32
25. Question
What is the command to check the status of a deployment rollout named nginx-deploy?
CorrectIncorrect -
Question 26 of 32
26. Question
What is the command used to rollback to the previous deployment?
CorrectIncorrect -
Question 27 of 32
27. Question
What is the command used to view previous rollout revisions and configurations?
CorrectIncorrect -
Question 28 of 32
28. Question
You performed an upgrade of images on a deployment recently. You’d like to check what command was run during the last update. However the output of the rollout history command does not show the command. What may be the cause?
CorrectIncorrect -
Question 29 of 32
29. Question
Which of the following are the deployment strategy types in Kubernetes?
CorrectIncorrect -
Question 30 of 32
30. Question
Which of the following is the default deployment strategy in Kubernetes deployments?
CorrectIncorrect -
Question 31 of 32
31. Question
If
.spec.strategy.type
is set to Recreate, then all existing pods are killed before new ones are created.CorrectIncorrect -
Question 32 of 32
32. Question
If
.spec.strategy.type
is set to RollingUpdate, then all new PODs are created first and then all existing pods are killed at once.CorrectIncorrect