Google Cloud Associate Cloud Engineer — Question 142

You have developed a containerized web application that will serve internal colleagues during business hours. You want to ensure that no costs are incurred outside of the hours the application is used. You have just created a new Google Cloud project and want to deploy the application. What should you do?

Answer options

Correct answer: B

Explanation

The correct answer is B because deploying on Cloud Run (fully managed) allows you to set the minimum instances to zero, ensuring no charges occur when the application is not in use. Option A is incorrect as Cloud Run for Anthos does not offer the same cost-saving feature of setting minimum instances to zero. Options C and D involve App Engine, which does not support setting min_instances or instances to zero in a way that would prevent costs during idle times.