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 16 Question 106 Discussion

Actual exam question for The SecOps Group's CAP exam
Question #: 106
Topic #: 16
[All CAP Questions]

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?

Show Suggested Answer Hide Answer
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.'


Contribute your Thoughts:

0/2000 characters
Catalina
18 days ago
Totally agree, C is spot on!
upvoted 0 times
...
Antonio
23 days ago
It's mainly for defining services and networks.
upvoted 0 times
...
Aleshia
1 month ago
I don’t recall it having anything to do with load balancers or firewalls, so I’m pretty sure option D is incorrect.
upvoted 0 times
...
Berry
1 month ago
I’m a bit confused because I thought it might contain some sensitive data like user sessions, but that seems more related to logs than the docker-compose file itself.
upvoted 0 times
...
Tora
2 months ago
I think I saw a practice question that mentioned the docker-compose.yml file detailing networks and volumes. So, I’m leaning towards option C.
upvoted 0 times
...
Yoko
2 months ago
I remember that the docker-compose.yml file is crucial for defining services and their configurations, but I’m not entirely sure about the specifics.
upvoted 0 times
...

Save Cancel