Deploying Containerized Applications on Google Cloud | Minimizing Costs

Minimizing Costs: Deploying Containerized Applications on Google Cloud

Question

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?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B.

The most cost-effective solution for deploying a container image that receives very few requests per day would be to use Cloud Run. Cloud Run is a serverless container platform that allows developers to deploy their containerized applications quickly and easily without worrying about the underlying infrastructure.

Option A: Deploy the container on Cloud Run Cloud Run is a fully managed serverless platform that automatically scales up and down based on incoming traffic. You only pay for the exact amount of resources used to process requests, so you can avoid paying for idle resources. Since the application receives very few requests per day, this is the most cost-effective solution.

Option B: Deploy the container on Cloud Run on GKE Cloud Run on GKE is a serverless platform that runs on top of Google Kubernetes Engine (GKE). While this option provides more control over the underlying infrastructure and enables the use of Kubernetes features such as horizontal pod autoscaling, it is not necessary for an application that receives very few requests per day. This option may add additional costs due to the overhead of managing a Kubernetes cluster.

Option C: Deploy the container on App Engine Flexible App Engine Flexible is a fully managed platform that allows developers to deploy their applications on a flexible environment with access to custom runtimes and the ability to customize virtual machine instances. However, since the application receives very few requests per day, the costs of running and maintaining a virtual machine instance for this purpose may outweigh the benefits.

Option D: Deploy the container on GKE with cluster autoscaling and horizontal pod autoscaling enabled Deploying the container on GKE with cluster autoscaling and horizontal pod autoscaling enabled provides a more customizable and scalable solution, but it may not be necessary for an application that receives very few requests per day. Additionally, managing a Kubernetes cluster requires more resources, which can add additional costs.

In summary, the most cost-effective solution for deploying an application packaged in a container image that receives very few requests per day is to deploy the container on Cloud Run (Option A).