
Answer-first summary for fast verification
Answer: Deploy the container on Cloud Run (fully managed), and set the minimum number of instances to zero.
The correct option is B. Cloud Run (fully managed) can scale the number of instances to zero, which means that no server instances will be running and incurring costs when the application is not in use. This ensures that there are no costs outside of business hours. Options C and D are incorrect because the App Engine flexible environment cannot scale down to zero instances; it requires at least one instance running, thereby incurring costs continuously. Option A is also incorrect because Cloud Run for Anthos runs on a GKE cluster, which would add extra costs as GKE clusters cannot scale down to zero.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
As part of your responsibilities, you have developed a containerized web application intended to serve your internal colleagues during business hours. To ensure efficient budget management, you need to make sure that the application does not incur any costs outside its active usage hours. Bearing in mind that you have recently created a new Google Cloud project and are ready to deploy the application, what steps should you take to achieve this goal?
A
Deploy the container on Cloud Run for Anthos, and set the minimum number of instances to zero.
B
Deploy the container on Cloud Run (fully managed), and set the minimum number of instances to zero.
C
Deploy the container on App Engine flexible environment with autoscaling, and set the value min_instances to zero in the app.yaml.
D
Deploy the container on App Engine flexible environment with manual scaling, and set the value instances to zero in the app.yaml.
No comments yet.