Research Questions Auto Lock
References:
- https://docs.docker.com/engine/swarm/swarm_manager_locking/
- https://docs.docker.com/engine/swarm/swarm_manager_locking/#unlock-a-swarm
- https://docs.docker.com/engine/reference/commandline/swarm_update/
- https://docs.docker.com/engine/reference/commandline/service_create/
- https://docs.docker.com/engine/reference/commandline/service/#child-commands
- https://docs.docker.com/engine/swarm/key-concepts/#services-and-tasks
- https://docs.docker.com/engine/reference/commandline/service_ls/
- https://docs.docker.com/engine/reference/commandline/service_ps/
Quiz Summary
0 of 41 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 41 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
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- Current
- Review / Skip
- Answered
- Correct
- Incorrect
-
Question 1 of 41
1. Question
The RAFT logs are stored in memory on the manager nodes.
CorrectIncorrect -
Question 2 of 41
2. Question
The RAFT logs are stored on disk and not protected.
CorrectIncorrect -
Question 3 of 41
3. Question
The default behaviour requires you to unlock the swarm when a new node joins the swarm cluster.
CorrectIncorrect -
Question 4 of 41
4. Question
After restarting the docker service and trying to run docker service ls, you get an error “Error response from daemon: Swarm is encrypted and needs to be unlocked before it can be used. How can you solve this error?
CorrectIncorrect -
Question 5 of 41
5. Question
Which command can be used to return the current key which is used inside the cluster ?
CorrectIncorrect -
Question 6 of 41
6. Question
Which command can be used to enable auto lock on an existing swarm?
CorrectIncorrect -
Question 7 of 41
7. Question
…. are one or more instances of a single application that runs across the Swarm Cluster.
CorrectIncorrect -
Question 8 of 41
8. Question
Which command can be used to run an instance on swarm?
CorrectIncorrect -
Question 9 of 41
9. Question
What is the command to run 3 instances of httpd on a swarm cluster?
CorrectIncorrect -
Question 10 of 41
10. Question
What component is responsible for creating tasks in swarm?
CorrectIncorrect -
Question 11 of 41
11. Question
What component is responsible for instructing a worker to run a task?
CorrectIncorrect -
Question 12 of 41
12. Question
The …. assigns tasks to nodes in swarm.
CorrectIncorrect -
Question 13 of 41
13. Question
The …. is used to allocate IP addresses to tasks in swarm.
CorrectIncorrect -
Question 14 of 41
14. Question
Create a swarm service
webapp
with imagehttpd
and expose port 8080 on host to port 80 in container.CorrectIncorrect -
Question 15 of 41
15. Question
Which command can be used to list the running service inside the swarm?
CorrectIncorrect -
Question 16 of 41
16. Question
Which command can be used to list the tasks that are running as part of a specified service?
CorrectIncorrect -
Question 17 of 41
17. Question
List more details about each service with a human readable format.
CorrectIncorrect -
Question 18 of 41
18. Question
Which command can be used to get the logs of a swarm service?
CorrectIncorrect -
Question 19 of 41
19. Question
Delete a
webapp
service from your cluster.CorrectIncorrect -
Question 20 of 41
20. Question
How many replicas does a service created with the command –
'docker service create webapp'
have?CorrectIncorrect -
Question 21 of 41
21. Question
Which command can be used to increase the number of replicas from 2 to 4 of
webapp
? Select the all right answer.CorrectIncorrect -
Question 22 of 41
22. Question
The
webapp:v1
had some bugs and we fixed them inwebapp:v2
. We want to applywebapp:v2
towebapp
service. Select the right answer.CorrectIncorrect -
Question 23 of 41
23. Question
An image update operation in a swarm service happens all at once by default.
CorrectIncorrect -
Question 24 of 41
24. Question
Which option of the docker service command can be used to update 4 replicas of
mywebapp
service at a time?CorrectIncorrect -
Question 25 of 41
25. Question
If at any time during an update a task returns FAILED, the default behaviour of the scheduler is to rollback the changes unless specified otherwise.
CorrectIncorrect -
Question 26 of 41
26. Question
What option may be used to change the default behaviour of a failed task during an update in swarm?
CorrectIncorrect -
Question 27 of 41
27. Question
What are the actions which can be used with <code>–update-failure-action</code> ?
CorrectIncorrect -
Question 28 of 41
28. Question
After an update we realized that something is wrong with the new version and we want to revert back to the old version. How can we achieve that?
CorrectIncorrect -
Question 29 of 41
29. Question
The default type of a service in docker swarm is global.
CorrectIncorrect -
Question 30 of 41
30. Question
With a global service, you can specify a minimum number of replicas for the service.
CorrectIncorrect -
Question 31 of 41
31. Question
A global service will always deploy exactly one instance of the application on all the nodes in the cluster.
CorrectIncorrect -
Question 32 of 41
32. Question
With a global service if a node is removed from the cluster, then that instance is removed as well and is rescheduled on another available node.
CorrectIncorrect -
Question 33 of 41
33. Question
Create a replicated service
webapp
with 2 replicas. Select the all right answer.CorrectIncorrect -
Question 34 of 41
34. Question
Deploy exactly one instance of the application on all the nodes in the cluster.
CorrectIncorrect -
Question 35 of 41
35. Question
How to get the service type of
webapp
service? Select the all right answer.CorrectIncorrect -
Question 36 of 41
36. Question
You are required to deploy an agent of splunk on all nodes in the swarm cluster to monitor the health of the nodes and gather logs. What is the best approach to achieve this?
CorrectIncorrect -
Question 37 of 41
37. Question
By default, when we create a service, the tasks may be assigned to any of these nodes without any additional considerations as long as they have sufficient hardware resources.
CorrectIncorrect -
Question 38 of 41
38. Question
If you specify multiple placement constraints, the service only deploys onto nodes where they are all met.
CorrectIncorrect -
Question 39 of 41
39. Question
Which option can be used to control the workload placements with the help of labels and constraints?
CorrectIncorrect -
Question 40 of 41
40. Question
What is the command to deploy a service named
webapp
on a node which has a'type=cpu-optimized'
label.CorrectIncorrect -
Question 41 of 41
41. Question
What is the command to apply <code>’disk=ssd'</code> label to <code>worker1</code> in a swarm cluster.
CorrectIncorrect