Free DCA Exam Braindumps (page: 12)

Page 12 of 42

Which of the following commands starts a Redis container and configures it to always restart unless it is explicitly stopped or Docker is restarted?

  1. 'docker run -d --restart-policy unless-stopped redis'
  2. 'docker run -d --restart omit-stopped redis'
  3. 'docker run -d --restart unless-stopped redis'
  4. 'docker run -d --failure omit-stopped redis'

Answer(s): C



After creating a new service named 'http', you notice that the new service is not registering as healthy. How do you view the list of historical tasks for that service by using the command line?

  1. 'docker inspect http'
  2. 'docker service inspect http'
  3. 'docker service ps http'
  4. 'docker ps http'

Answer(s): C



Which flag for a service would allow a container to consume more than 2 GB of memory only when there is no memory contention but would also prevent a container from consuming more than 4GB of memory, in any case?

  1. --limit-memory 2GB --reserve-memory 4GB
  2. --limit-memory 4GB --reserve-memory 2GB
  3. --memory-swap 2GB --limit-memory 4GB
  4. --memory-swap 4GB --limit-memory 2GB

Answer(s): C



In Docker Trusted Registry, how would a user prevent an image, for example 'nginx:latest' from being overwritten by another user with push access to the repository?

  1. Tag the image with 'nginx:immutable'
  2. Remove push access from all other users.
  3. Use the DTR web UI to make the tag immutable.
  4. Keep a backup copy of the image on another repository.

Answer(s): C



Page 12 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