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?
A . Package each component in a separate container. Implement readiness and liveness probes.
B . Package the application in a single container. Use a process management tool to manage each component.
C . Package each component in a separate container. Use a script to orchestrate the launch of the components.
D . 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.
Answer: A
Explanation:
https://cloud.google.com/blog/products/containers-kubernetes/7-best-practices-for-building-containers
https://cloud.google.com/architecture/best-practices-for-building-containers
"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."
Latest Professional Cloud Developer Dumps Valid Version with 75 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund