Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Google Cloud Certified Professional Cloud Developer · Google Cloud
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
A is best suited here.
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.
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. This option is not recommended because it does not follow best practices for containerization. By packaging the entire application in a single container, you would not be able to manage the individual components of the application independently, which could make it more difficult to ensure their availability. Additionally, using a bash script to spawn each component as a background job is not an effective way to manage and monitor the availability of the components.