|
| 1 | +questions: |
| 2 | + - uuid: a3c7e1b4-9f2d-4e8a-b5c6-1d3f7a9e2b04 |
| 3 | + question: Which command updates the image of an existing Docker Swarm service named "web" to nginx:1.25? |
| 4 | + answers: |
| 5 | + - { value: 'docker service update --image nginx:1.25 web', correct: true } |
| 6 | + - { value: 'docker service create --image nginx:1.25 web', correct: false } |
| 7 | + - { value: 'docker service scale --image nginx:1.25 web', correct: false } |
| 8 | + - { value: 'docker update --image nginx:1.25 web', correct: false } |
| 9 | + help: 'https://docs.docker.com/reference/cli/docker/service/update/' |
| 10 | + |
| 11 | + - uuid: b8d4f2a5-6e3c-4b9d-a1f7-2c8e5d0a3b16 |
| 12 | + question: What does the --update-delay flag control during a service update? |
| 13 | + answers: |
| 14 | + - { value: 'The time to wait before starting the update', correct: false } |
| 15 | + - { value: 'The time to wait between updating each group of tasks', correct: true } |
| 16 | + - { value: 'The maximum time a single task update can take', correct: false } |
| 17 | + - { value: 'The time to wait before rolling back on failure', correct: false } |
| 18 | + help: 'https://docs.docker.com/engine/swarm/services/#configure-a-services-update-behavior' |
| 19 | + |
| 20 | + - uuid: c9e5a3b6-7f4d-4c0e-b2a8-3d9f6e1b4c27 |
| 21 | + question: What does --update-parallelism 3 mean when updating a service? |
| 22 | + answers: |
| 23 | + - { value: 'Three services are updated at the same time', correct: false } |
| 24 | + - { value: 'The update runs on three nodes simultaneously', correct: false } |
| 25 | + - { value: 'Three tasks are updated at a time during the rolling update', correct: true } |
| 26 | + - { value: 'The update retries three times on failure', correct: false } |
| 27 | + help: 'https://docs.docker.com/engine/swarm/services/#configure-a-services-update-behavior' |
| 28 | + |
| 29 | + - uuid: 39b5ce22-cbe0-465e-a39a-551f9775a62c |
| 30 | + question: What is the default value for --update-failure-action in Docker Swarm? |
| 31 | + answers: |
| 32 | + - { value: 'rollback', correct: false } |
| 33 | + - { value: 'continue', correct: false } |
| 34 | + - { value: 'pause', correct: true } |
| 35 | + - { value: 'stop', correct: false } |
| 36 | + help: 'https://docs.docker.com/engine/swarm/services/#configure-a-services-update-behavior' |
| 37 | + |
| 38 | + - uuid: 216987ff-de4a-44e0-a854-38d136f311e9 |
| 39 | + question: Which command manually triggers a rollback of a Docker Swarm service? |
| 40 | + answers: |
| 41 | + - { value: 'docker service revert myservice', correct: false } |
| 42 | + - { value: 'docker service update --undo myservice', correct: false } |
| 43 | + - { value: 'docker service rollback myservice', correct: true } |
| 44 | + - { value: 'docker service update --previous myservice', correct: false } |
| 45 | + help: 'https://docs.docker.com/reference/cli/docker/service/rollback/' |
| 46 | + |
| 47 | + - uuid: 42faf48b-afa1-46cd-b294-27d1b86f26ae |
| 48 | + question: What does the --update-order start-first option do during a service update? |
| 49 | + answers: |
| 50 | + - { value: 'It starts the new task before stopping the old task', correct: true } |
| 51 | + - { value: 'It stops the old task before starting the new task', correct: false } |
| 52 | + - { value: 'It starts the update on the first node in the cluster', correct: false } |
| 53 | + - { value: 'It prioritizes manager nodes during the update', correct: false } |
| 54 | + help: 'https://docs.docker.com/engine/swarm/services/#configure-a-services-update-behavior' |
| 55 | + |
| 56 | + - uuid: 9c3cb4aa-daa3-4e0a-b80b-9ae8757d2ee6 |
| 57 | + question: What is the default update order for Docker Swarm service updates? |
| 58 | + answers: |
| 59 | + - { value: 'start-first', correct: false } |
| 60 | + - { value: 'stop-first', correct: true } |
| 61 | + - { value: 'parallel', correct: false } |
| 62 | + - { value: 'round-robin', correct: false } |
| 63 | + help: 'https://docs.docker.com/engine/swarm/services/#configure-a-services-update-behavior' |
| 64 | + |
| 65 | + - uuid: 14d0f8a1-2e9c-4b5d-a7f3-8c4e1d6a9b72 |
| 66 | + question: Which flag sets the maximum time a single task has to update before it is considered failed? |
| 67 | + answers: |
| 68 | + - { value: '--update-delay', correct: false } |
| 69 | + - { value: '--update-timeout', correct: false } |
| 70 | + - { value: '--update-monitor', correct: true } |
| 71 | + - { value: '--update-max-time', correct: false } |
| 72 | + help: 'https://docs.docker.com/engine/swarm/services/#configure-a-services-update-behavior' |
| 73 | + |
| 74 | + - uuid: 25e1a9b2-3f0d-4c6e-b8a4-9d5f2e7b0c83 |
| 75 | + question: How do you configure a service so that it automatically rolls back if an update fails? |
| 76 | + answers: |
| 77 | + - { value: '--update-failure-action rollback', correct: true } |
| 78 | + - { value: '--rollback-on-failure true', correct: false } |
| 79 | + - { value: '--update-auto-rollback', correct: false } |
| 80 | + - { value: '--update-failure-action revert', correct: false } |
| 81 | + help: 'https://docs.docker.com/engine/swarm/services/#configure-a-services-update-behavior' |
| 82 | + |
| 83 | + - uuid: 372fc663-77c2-4bcf-aa95-cc365ffac6f0 |
| 84 | + question: Which flag configures the delay between task rollbacks during an automatic rollback? |
| 85 | + answers: |
| 86 | + - { value: '--update-delay', correct: false } |
| 87 | + - { value: '--rollback-delay', correct: true } |
| 88 | + - { value: '--rollback-interval', correct: false } |
| 89 | + - { value: '--rollback-wait', correct: false } |
| 90 | + help: 'https://docs.docker.com/engine/swarm/services/#roll-back-to-the-previous-version-of-a-service' |
0 commit comments