Google Cloud Associate Cloud Engineer — Question 79
You need to deploy an application, which is packaged in a container image, in a new project. The application exposes an HTTP endpoint and receives very few requests per day. You want to minimize costs. What should you do?
Answer options
- A. Deploy the container on Cloud Run.
- B. Deploy the container on Cloud Run on GKE.
- C. Deploy the container on App Engine Flexible.
- D. Deploy the container on GKE with cluster autoscaling and horizontal pod autoscaling enabled.
Correct answer: A
Explanation
The most cost-effective solution for infrequently used applications is deploying on Cloud Run, as it allows you to pay only for the resources consumed during the execution of your requests. Other options like GKE or App Engine Flexible may incur higher costs due to the need for infrastructure management or always-on instances, which are unnecessary for low-traffic applications.