
CompTIALinux+
Domain 2Objective 6
Containers XK0-006 Practice Questions (Page 1)
Part of the Services and User Management domain, which accounts for 20% of the XK0-006 exam. CompTIA does not publish an official question count, but from its 90-minute exam (~35–60 total, ~7–12 in this domain), expect 1–2 from this objective — we provide 22 practice questions to prepare you well beyond it. (estimate)
22questions here
5free pages
5concepts
20%of the exam
Questions 1–5
- 1
A company runs a web application in a Docker container and a database in another container. The web application needs to communicate with the database using the hostname 'db', but the two containers are currently on different networks and cannot reach each other. The administrator wants to enable communication between the two containers without exposing the database to the host network. What should the administrator do?
Select an answer first - 2
Which command is used to start a new container from an existing image in both Docker and Podman?
Select an answer first - 3
A company runs a multi-tier application in Docker containers: a frontend container, a backend API container, and a database container. The frontend needs to communicate with the backend, and the backend needs to communicate with the database. The database should not be accessible from the frontend. The administrator wants to use Docker networks to enforce this isolation. Which network configuration should the administrator use?
Select an answer first - 4
Which Docker command connects a running container to an existing network?
Select an answer first - 5
An administrator needs to create a Docker network that allows containers to communicate with each other using their container names, but also ensures that the network is isolated from the host network. The administrator wants to use a network driver that provides this functionality. Which network driver should the administrator use?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by CompTIA. “XK0-006” is a trademark of its owner, used for identification only.