Serverless Computing for Cost-Effective Business Hour Applications

Serverless Computing

Question

You are designing an application for use only during business hours.

For the minimum viable product release, you'd like to use a managed product that automatically scales to zero so you don't incur costs when there is no activity.

Which primary compute resource should you choose?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.

The compute resource that should be chosen for an application that is only to be used during business hours and that can scale automatically to zero is Google Cloud Functions.

Google Cloud Functions is a serverless compute platform that allows developers to write small, single-purpose functions that respond to events without the need to manage the underlying infrastructure. It automatically scales to zero when there is no activity, which means that the application won't be running and incurring costs when it's not needed.

Compute Engine is a managed infrastructure as a service (IaaS) offering that provides virtual machines (VMs) that can be customized and configured as per the user's requirement. While it is highly flexible and customizable, it requires the user to manage the underlying infrastructure, including scaling up and down, which is not necessary for this use case.

Google Kubernetes Engine is a managed container orchestration platform that allows users to deploy, manage, and scale containerized applications. While it provides automatic scaling, it is designed for more complex applications and would be overkill for an application that only runs during business hours.

App Engine flexible environment is a platform as a service (PaaS) offering that allows users to deploy and run applications written in various programming languages. It provides automatic scaling, but it is not designed to scale to zero and would not be suitable for an application that is only to be used during business hours.

Therefore, for this use case, the best choice would be Google Cloud Functions.