Google Cloud Professional Cloud Architect — Question 127
Your company wants you to build a highly reliable web application with a few public APIs as the backend. You don't expect a lot of user traffic, but traffic could spike occasionally. You want to leverage Cloud Load Balancing, and the solution must be cost-effective for users. What should you do?
Answer options
- A. Store static content such as HTML and images in Cloud CDN. Host the APIs on App Engine and store the user data in Cloud SQL.
- B. Store static content such as HTML and images in a Cloud Storage bucket. Host the APIs on a zonal Google Kubernetes Engine cluster with worker nodes in multiple zones, and save the user data in Cloud Spanner.
- C. Store static content such as HTML and images in Cloud CDN. Use Cloud Run to host the APIs and save the user data in Cloud SQL.
- D. Store static content such as HTML and images in a Cloud Storage bucket. Use Cloud Functions to host the APIs and save the user data in Firestore.
Correct answer: D
Explanation
The correct answer is D because using Cloud Functions is a serverless model that scales automatically with traffic, making it cost-effective for occasional spikes. Storing static content in a Cloud Storage bucket is economical and efficient for serving HTML and images. The other options either involve more complex setups or services that are not as suited for low-traffic environments.