Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

The SecOps Group CAP Exam - Topic 12 Question 110 Discussion

Posted by Billye on Jun 18, 2026 at 10:30 PM

While performing a security audit of a web application, you discovered an exposed docker-compose.yml file. What is the significance of this file and what data can be found in it?

Suggested Answer: C

A docker-compose.yml file is a YAML-formatted configuration file used with Docker Compose, a tool for defining and running multi-container Docker applications. Its primary significance lies in orchestrating the deployment of Docker containers by specifying services (e.g., web server, database), networks (e.g., internal communication), and volumes (e.g., persistent storage). An exposed docker-compose.yml file poses a security risk because it may reveal sensitive configuration details, such as service names, ports, environment variables (e.g., database credentials), and network settings, which attackers could exploit to target the application.

Option A ('The docker-compose.yml file is a YAML file that contains the application source code'): Incorrect, as this file defines configuration and orchestration, not source code.

Option B ('The docker-compose.yml file is a YAML file that contains the server logs and user session information...'): Incorrect, as logs and session data are stored elsewhere (e.g., in container logs or databases), not in docker-compose.yml.

Option C ('The docker-compose.yml file is a YAML file that is used to define the services, networks, and volumes...'): Correct, as it accurately describes the file's purpose and content, including configuration and dependencies, which are critical for Docker applications.

Option D ('The docker-compose.yml file is a YAML file that contains the configuration of load balancers and firewalls'): Incorrect, as it focuses only on load balancers and firewalls, which are specific components and not the primary focus of the file.

The correct answer is C, aligning with the CAP syllabus under 'Container Security' and 'Configuration Management.'


Get Premium CAP Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
BR
Brandon 2 months ago
I feel like A is misleading. The source code isn’t in that file.
KI
Kimbery 2 months ago
Yeah, C makes sense. It’s crucial for container management.
YE
Yesenia 2 months ago
I think option C is correct. It defines services and networks for Docker apps.
KR
Krystal 2 months ago
I thought it had more than just config stuff, interesting!
SY
Sylvie 2 months ago
A and B are way off, come on!
FA
Fallon 2 months ago
Wait, does it really contain sensitive info? Sounds risky!
VE
Veda 3 months ago
Totally agree, C is the right answer.
LA
Laurel 3 months ago
It's all about defining services and networks!
GL
Glennis 3 months ago
I thought the docker-compose.yml file might include sensitive data, but I can't recall if it has user session info. I guess C is still the safest bet.
TR
Trina 3 months ago
I feel like I've seen similar questions before, and they emphasized that this file is crucial for managing Docker applications. C seems to fit best.
BR
Brinda 3 months ago
I'm not entirely sure, but I think the file doesn't contain source code or logs. It’s more about the setup of containers, right?
LA
Lashaunda 4 months ago
I remember studying that the docker-compose.yml file defines services and their configurations, so I think option C is correct.
0/2000 characters

Save Cancel