Free DCA Exam Braindumps (page: 10)

Page 10 of 42

You have just executed'docker swarm leave' on anode. What command can be run on the same node to confirm it has left the cluster?

  1. docker node ls
  2. docker system info
  3. docker system status
  4. docker system status

Answer(s): B



What is the recommended way to configure the daemon flags and environment variables for your Docker daemon in a platform independent way?

  1. Set the configuration options using the ENV variable
  2. Set the configuration options in '/etc/docker/daemon.json'
  3. Set the configuration DOCKER_OPTS in '/etc/default/docker'
  4. Using 'docker config' to set the configuration options.

Answer(s): B



You have deployed a service to swarm. Which command uses the Docker CLI to set the number of tasks of the services to 5? (Choose 2)

  1. 'docker service update --replicas=5<service-id>'
  2. 'docker replica update <service-id>=5'
  3. 'docker update service <service-id>=5'
  4. 'docker service replicas <service-id>=5'
  5. 'docker service scale <service-id> =5''

Answer(s): A,E



A service 'wordpress' is running using a password string to connect to a non-Dockerized database service. The password string is passed into the 'wordpress' service as a Docker secret. Per security policy, the password on the database was changed. Identity the correct sequence of steps to rotate the secret from the old password to the new password.

  1. Create a new docker secret with the new password. Trigger a rolling secret update by using the 'docker secret update' command
  2. Trigger an update to the service by using 'docker service update --secret=<new password>'
  3. Create a new docker secret with the new password. Remove the existing service using 'docker service rm'. Start anew service with the new secret using "--secret=<new password>"
  4. Create a new docker secret with a new password. Trigger a rolling update of the "wordpress" service, by using "--secret-rm" &"--secret-add" to remove the old secret and add the updated secret.

Answer(s): D



Page 10 of 42



Post your Comments and Discuss Docker DCA exam with other Community members:

Simon commented on October 24, 2024
guys waht do you think about this dump?
Anonymous
upvote