ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 103 - Professional Cloud Developer discussion

Report
Export

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.
Answers
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.
Answers
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.
Answers
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.
Answers
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.
Suggested 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.'

asked 18/09/2024
ACHILLE CARROLL
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first