nerdexam
Docker

DCA · Question #111

Will this command ensure that overlay traffic between service tasks is encrypted? Solution: docker network create -d overlay --secure

The correct answer is B. No. The docker network create -d overlay --secure command does not encrypt overlay traffic; instead, the --opt encrypted flag must be used with overlay networks.

Submitted by klara.se· Apr 18, 2026Networking

Question

Will this command ensure that overlay traffic between service tasks is encrypted? Solution: docker network create -d overlay --secure

Options

  • AYes
  • BNo

How the community answered

(22 responses)
  • A
    9% (2)
  • B
    91% (20)

Why each option

The `docker network create -d overlay --secure` command does not encrypt overlay traffic; instead, the `--opt encrypted` flag must be used with overlay networks.

AYes

The `--secure` flag does not enable encryption for Docker overlay networks.

BNoCorrect

The `--secure` flag is not a valid option for `docker network create` to enable encryption. To encrypt overlay traffic in Docker Swarm, the `docker network create --opt encrypted` flag must be explicitly passed when creating the overlay network.

Concept tested: Docker Swarm overlay network encryption

Source: https://docs.docker.com/network/overlay/

Topics

#Docker Networking#Overlay Networks#Network Encryption#docker network create

Community Discussion

No community discussion yet for this question.

Full DCA Practice