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?
Suggested Answer: A
Get Premium Professional Cloud Developer Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
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.'
26 comments · newest first
DO
Dorothea
1 month ago
I feel like A is the way to go. Probes are crucial for availability.
SH
Shawana
1 month ago
Option B seems easier, but it’s not best practice for Kubernetes.
VA
Val
2 months ago
Agreed, A allows for better scaling and health checks.
EM
Emiko
2 months ago
I think option A is the best. Separate containers are more manageable.
AV
Avery
2 months ago
I prefer A too. It aligns with microservices architecture, which is more reliable.
FR
Francesco
2 months ago
Option B seems easier, but it could lead to issues with component failures.
MI
Mindy
2 months ago
Agreed! Readiness and liveness probes are crucial for availability.
TY
Ty
2 months ago
I think option A is the best. Separate containers ensure better scalability.
DE
Dewitt
3 months ago
I prefer A too. It aligns with Kubernetes best practices.
VA
Valentine
3 months ago
Option B sounds easier, but it complicates management. Not recommended.
MA
Mari
3 months ago
Agreed! Readiness and liveness probes are crucial for availability.
WE
Weldon
3 months ago
I think option A is the best. Separate containers ensure better isolation.
LE
Leatha
3 months ago
D) is a recipe for disaster, no way!
RO
Rochell
4 months ago
C) sounds like a hassle, just stick with A).
FR
Frederica
5 months ago
Surprised that people still suggest single containers!
AL
Alesia
5 months ago
I disagree, B) seems simpler for small apps.
BO
Bok
5 months ago
A) is the way to go for best practices!
GE
Gerald
6 months ago
C) sounds interesting, but is it really reliable?
MA
Maxima
6 months ago
Definitely A), separate containers are more manageable.
KA
Kami
6 months ago
Surprised that D) is even an option, sounds risky!
FE
Fernanda
6 months ago
I disagree, B) seems simpler for small apps.
EM
Emile
6 months ago
A) is the way to go for best practices!
SH
Sharika
6 months ago
I have a vague memory of a lesson where we talked about using a single container, but it seems like that could lead to issues with availability.
GA
Gail
7 months ago
I feel like we practiced a question similar to this, and I think packaging each component separately was emphasized as a best practice.
AS
Ashley
7 months ago
I'm not entirely sure, but I think using readiness and liveness probes is crucial for ensuring the application is healthy in Kubernetes.
CL
Clorinda
7 months ago
I remember we discussed the importance of separating components into different containers for better scalability and management.