Topic 1 Question 85
You are porting an existing Apache/MySQL/PHP application stack from a single machine to Google Kubernetes Engine. You need to determine how to containerize the application. Your approach should follow Google-recommended best practices for availability. What should you do?
Package each component in a separate container. Implement readiness and liveness probes.
Package the application in a single container. Use a process management tool to manage each component.
Package each component in a separate container. Use a script to orchestrate the launch of the components.
Package the application in a single container. Use a bash script as an entrypoint to the container, and then spawn each component as a background job.
ユーザの投票
コメント(5)
A. Package each component in a separate container. Implement readiness and liveness probes.
This is the recommended approach for containerizing an application for use on Kubernetes. By packaging each component in a separate container, you can ensure that each component is isolated and can be managed independently. You can then use readiness and liveness probes to monitor the health and availability of each component, which will help ensure the overall availability of the application.
👍 4omermahgoub2023/01/06- 正解だと思う選択肢: A
According to me "A" is the correct answer, because the best practice says "classic Apache/MySQL/PHP stack: you might be tempted to run all the components in a single container. However, the best practice is to use two or three different containers: one for Apache, one for MySQL, and potentially one for PHP if you are running PHP-FPM."
👍 3ParagSanyashiv2022/01/08 - 正解だと思う選択肢: A
A is correct
👍 2tomato1232022/08/19
シャッフルモード