
Answer-first summary for fast verification
Answer: Deploy the service by using Spot VMs.
Given the requirements, the most cost-effective solution would be to use Spot VMs (option D). Spot VMs are preemptible and can be terminated by Google Cloud at any time, but they are significantly cheaper than standard VMs. This fits well with the service's ability to resume processing photos in the event of a failure, as it implies the service is designed to handle interruptions. Cloud Run (option A) and GKE (option C) are container-based solutions, which are not suitable as per the question's constraints. Standard VMs with a 3-year committed use discount (option B) could be cost-effective but require a long-term commitment and are more expensive than Spot VMs in the short term. Since there is no SLO for processing time, the potential interruptions of Spot VMs are acceptable, making them the most cost-effective choice.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
You are designing the backend infrastructure for a free photo processing application with the following requirements:
• Uses Cloud Storage for both raw and processed photos • Must support resuming photo processing after failures • Cannot be containerized • No SLO exists for processing time • Requires the most cost-effective solution
What is the optimal approach to run this service?
A
Deploy the service by using Cloud Run.
B
Deploy the service by using standard VMs with a 3-year committed use discount.
C
Deploy the service by using GKE.
D
Deploy the service by using Spot VMs.