▶ MCQ Portal
Home
Medical
Neet-Ug
4
Ssc-Cgl
General_Awareness
5
Devops
Ansible
10
Aws
5
Azure
10
Docker
5
Jenkins
5
Kubernetes
5
Terraform
10
⚑ Feedback
Home
docker
Exam4
Exam4
devops / docker
• 5 questions
Question 1 of 5
What is the default network driver used when creating a Docker network?
A.
host
B.
none
C.
bridge
D.
overlay
Question 2 of 5
Which Docker network driver enables containers on different hosts to communicate (used in Swarm)?
A.
bridge
B.
host
C.
overlay
D.
macvlan
Question 3 of 5
What happens when two containers are placed on the same Docker user-defined network?
A.
They cannot communicate without explicit port publishing
B.
They can communicate using each other's container name as a hostname
C.
They automatically share the same IP address
D.
They require an external load balancer to route traffic
Question 4 of 5
What does Docker host network mode do?
A.
Creates an isolated network namespace for the container
B.
Removes the network isolation so the container shares the host's network stack
C.
Prevents the container from accessing any network
D.
Enables overlay networking across multiple hosts
Question 5 of 5
Which docker run flag maps container port 8080 to host port 80?
A.
-p 80:8080
B.
-p 8080:80
C.
--expose 80:8080
D.
--port 80-8080
← Back
Submit Answers ✓