Implementing DevOps Solutions and Practices Using Cisco Platforms (DEVOPS) — Question 92
A three-tier web application must be moved to containers. A webserver is already in place, and the middleware container can talk to a central database server. The hostname of the database server is known, but the name of the middleware server must be provided to the webserver.
In which file should the name of the middleware server be configured?
Answer options
- A. Docker Service discovery daemon
- B. Docker Swarm
- C. Docker Compose
- D. Dynamic Host Configuration Protocol
Correct answer: C
Explanation
The correct answer is C, Docker Compose, because it is used to define and run multi-container Docker applications, allowing you to specify the middleware server's name in the configuration. Options A and B are related to service discovery and orchestration but do not provide a way to configure server names directly. Option D is not relevant as it pertains to network configuration rather than container orchestration.