30 DCA Questions #2: Continue Your Training
certificationintermediate

30 DCA Questions #2: Continue Your Training

Second set of 30 questions to prepare for the Docker Certified Associate exam. Interactive DOMC format, new questions and advanced pitfalls.

Antoine C
13 min read
#docker#certification#dca#quiz#domc#questions#practice#docker certified associate

Finished 30 DCA Questions #1? Perfect, here's the sequel!

This second set of 30 questions covers more advanced aspects of the 6 exam domains. Same DOMC format: one option at a time, YES or NO, no going back.

Prepare for DCA Exam with DOMC Quizzes
200+ questions in the exact DOMC format used in the official exam. Timer, detailed scoring, and complete explanations.

Orchestration (25% of the exam)#

Advanced questions on Docker Swarm: rolling updates, constraints, labels and error handling.

25% de l'examen5 questions
Quiz : Orchestration
Format DOMC identique à l'examen. Une option à la fois, OUI ou NON.

Additional Questions - Orchestration#

Q6: How do you limit a service to one replica per node?

Use global mode instead of replicated:

bash
docker service create --mode global --name monitoring prometheus

In global mode, Swarm deploys exactly one task on each node that matches the constraints.

Q7: What's the difference between docker service update --force and docker service rollback?

  • --force redeploys the current configuration (useful for refreshing containers)
  • rollback restores the previous configuration (undoes recent changes)

Q8: How do you view logs from all replicas of a service?

bash
docker service logs myservice
# Or with timestamps and following new logs
docker service logs -f --timestamps myservice

Images & Registry (20% of the exam)#

Advanced questions on Dockerfiles, build cache, and registries.

20% de l'examen4 questions
Quiz : Images & Registry
Format DOMC identique à l'examen. Une option à la fois, OUI ou NON.
Common pitfall: COPY vs ADD

Always use COPY unless you need automatic tar extraction. ADD can have unexpected behaviors (URL download, extraction). COPY is more explicit and predictable.

Additional Questions - Images#

Q5: How do you build an image for a different architecture?

bash
# Build for ARM64 from x86
docker buildx build --platform linux/arm64 -t myimage:arm64 .
Ready to Try This Yourself?
Practice these Docker concepts in a real environment with hands-on scenarios.

Q6: Which command removes unused images?

bash
docker image prune        # Dangling images (without tag)
docker image prune -a     # All images not used by a container

Installation & Configuration (15% of the exam)#

Questions about logging drivers, daemon and backups.

15% de l'examen3 questions
Quiz : Installation & Configuration
Format DOMC identique à l'examen. Une option à la fois, OUI ou NON.

Additional Questions - Configuration#

Q4: How do you change Docker's storage directory?

In /etc/docker/daemon.json:

json
{
  "data-root": "/mnt/docker-data"
}

Then restart Docker. Don't forget to migrate existing data!

Q5: How do you limit default container resources?

json
{
  "default-ulimits": {
    "nofile": { "Name": "nofile", "Hard": 64000, "Soft": 64000 }
  }
}

Networking (15% of the exam)#

Advanced questions about overlay networks, DNS and troubleshooting.

15% de l'examen3 questions
Quiz : Networking
Format DOMC identique à l'examen. Une option à la fois, OUI ou NON.

Additional Questions - Networking#

Q4: How do you debug network issues between containers?

bash
# Check connectivity
docker exec container1 ping container2

# Inspect network configuration
docker inspect --format='{{json .NetworkSettings.Networks}}' container1

# View network endpoints
docker network inspect mynetwork
Put Theory Into Practice
Apply what you've learned with interactive Docker scenarios and real environments.

Q5: Why can't a container resolve another container's name?

Possible causes:

  • Containers aren't on the same network
  • Docker internal DNS is disabled (host network)
  • Target container doesn't have an exposed service

Security (15% of the exam)#

Advanced questions about secrets, capabilities and best practices.

15% de l'examen3 questions
Quiz : Security
Format DOMC identique à l'examen. Une option à la fois, OUI ou NON.
Security pitfall: --privileged

Never use --privileged in production unless absolutely necessary. This flag disables all security protections. Prefer adding only necessary capabilities with --cap-add.

Additional Question - Security#

Q4: How do you scan an image for vulnerabilities?

bash
# With Docker Scout (built-in)
docker scout cves myimage:v1

# With Trivy (popular external tool)
trivy image myimage:v1

Storage (10% of the exam)#

Advanced questions about volumes and persistence strategies.

10% de l'examen2 questions
Quiz : Storage
Format DOMC identique à l'examen. Une option à la fois, OUI ou NON.

Additional Questions - Storage#

Q3: What's the difference between -v and --mount?

Aspect-v / --volume--mount
SyntaxCompact: -v src:dst:optsExplicit: --mount type=...,source=...,target=...
Non-existent bind mountCreates the folderError
RecommendationLegacyPreferred for clarity

Q4: How do you share a volume between multiple Swarm services?

yaml
# In docker-compose.yml
volumes:
  shared-data:
    driver: local

services:
  app1:
    volumes:
      - shared-data:/data
  app2:
    volumes:
      - shared-data:/data

Note: For true distributed sharing, use an external volume driver (NFS, GlusterFS, etc.).


Summary#

You've just completed 30 DCA Questions #2! With the 30 questions from the first article, you've now seen 60 questions covering all exam domains.

Key Points from This Set#

  1. Advanced orchestration: rollback, failure-action, constraints with labels
  2. Images: exec vs shell form for ENTRYPOINT, buildx for multi-arch
  3. Networking: Swarm ports (2377, 7946, 4789), host vs ingress mode
  4. Security: docker trust sign, --cap-drop ALL

Next Steps#

  1. Review 30 DCA Questions #1 if you haven't already
  2. Practice the commands in a real Docker environment
  3. Check out our article Preparing for DCA in 6 Weeks for a structured plan
Prepare for DCA Exam with DOMC Quizzes
200+ questions in the exact DOMC format used in the official exam. Timer, detailed scoring, and complete explanations.

Good preparation, and good luck on your DCA exam!

30 DCA Questions #2: Continue Your Training