
Answer-first summary for fast verification
Answer: Transition the web application to App Engine and transfer the backend API to Cloud Run. Utilize Cloud Tasks to manage the execution of your background operation within the Cloud Run environment.
Option D is correct because it aligns with Google's recommended practices for migrating workloads to serverless solutions on Google Cloud. Migrating the web application to App Engine allows for automatic scaling and efficient resource management. Moving the backend API to Cloud Run provides a fully managed serverless environment that scales automatically, reducing operational costs. Using Cloud Tasks to run the background job on Cloud Run enables scheduled long-running background tasks without the need for managing infrastructure separately. Options A and B are incorrect as they suggest running the web application on a Cloud Storage bucket, which is not suitable for a Flask web application. Option C is incorrect because it involves using Compute Engine for the background job, which contradicts the goal of minimizing operational costs with serverless solutions.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your company is looking to migrate a legacy application to Google Cloud using a serverless solution to minimize operational costs. The application consists of a Flask web application, a backend API, and a scheduled long-running background job for ETL and reporting. What is the best approach for this migration?
A
Deploy the web application on a Cloud Storage bucket, and establish the backend API within Cloud Run. Implement Cloud Tasks to oversee the execution of your background task within the Cloud Run context.
B
Set up the web application to run from a Cloud Storage bucket, and relocate the backend API to Cloud Run. Employ Cloud Tasks to handle the execution of your background process, either on a Compute Engine instance or within the Cloud Run environment.
C
Shift the web application to App Engine while relocating the backend API to Cloud Run. Employ Cloud Tasks to execute your background task on a Compute Engine instance.
D
Transition the web application to App Engine and transfer the backend API to Cloud Run. Utilize Cloud Tasks to manage the execution of your background operation within the Cloud Run environment.