0
0
Dockerdevops~20 mins

Docker engine and runtime - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Docker Engine Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:30remaining
Identify Docker Engine Version Output
What is the output of the command docker version --format '{{.Server.Version}}' when Docker Engine version 24.0.2 is installed?
Docker
docker version --format '{{.Server.Version}}'
A24.0.2
BClient: 24.0.2
CVersion: 24.0.2
DDocker Engine 24.0.2
Attempts:
2 left
💡 Hint
The --format option outputs only the specified field without extra text.
🧠 Conceptual
intermediate
1:30remaining
Docker Runtime Default Behavior
Which statement correctly describes the default runtime used by Docker Engine when running containers?
ADocker uses the Kata Containers runtime by default for enhanced security.
BDocker uses the runc runtime by default to create and run containers.
CDocker uses the cri-o runtime by default for container orchestration.
DDocker uses the containerd runtime by default to run containers.
Attempts:
2 left
💡 Hint
Think about the low-level runtime that Docker calls to create containers.
Troubleshoot
advanced
2:00remaining
Diagnose Docker Engine Startup Failure
A user reports that Docker Engine fails to start with the error message: failed to start daemon: Error initializing network controller: Error creating default "bridge" network: failed to allocate gateway (172.17.0.1): Address already in use. What is the most likely cause?
AAnother process is already using the default Docker bridge network IP address range.
BDocker daemon configuration file is missing the bridge network settings.
CDocker Engine version is incompatible with the host kernel version.
DThe Docker socket file has incorrect permissions.
Attempts:
2 left
💡 Hint
The error mentions 'Address already in use' for the gateway IP.
🔀 Workflow
advanced
2:30remaining
Sequence to Change Docker Runtime
What is the correct sequence of steps to change the default Docker runtime from runc to nvidia runtime on a Linux host?
A2,1,3,4
B1,3,2,4
C3,1,2,4
D1,2,3,4
Attempts:
2 left
💡 Hint
Configuration changes require daemon restart before verification.
Best Practice
expert
3:00remaining
Best Practice for Docker Engine Security Hardening
Which of the following is the best practice to minimize security risks when running Docker Engine in production?
ARun Docker Engine as root user to ensure full access to system resources.
BDisable Docker Content Trust to speed up image pulls.
CUse user namespaces to map container users to non-root host users.
DAllow all containers to run with privileged mode for compatibility.
Attempts:
2 left
💡 Hint
Think about isolating container privileges from the host system.