Containerize an Apache/MySQL/PHP stack for GKE following Google best practices for availability. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Package each component in a separate container. Implement readiness and liveness probes..
Why this is the answer
Packaging each component (Apache, MySQL, PHP) in a separate container aligns with the microservices principle and Google's best practices for GKE. This allows independent scaling, updates, and fault isolation for each service, enhancing availability. Implementing readiness and liveness probes ensures that Kubernetes can accurately determine when a container is ready to receive traffic and when it needs to be restarted, respectively. This is crucial for maintaining application health and availability. Packaging the application in a single container (monolithic approach) reduces flexibility, makes scaling individual components difficult, and increases the blast radius of failures. Using a script to orchestrate component launch or a bash script as an entrypoint for background jobs within a single container are anti-patterns in a containerized environment, as they complicate resource management, logging, and health checks, undermining the benefits of containerization and GKE's orchestration capabilities.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed