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?
Choose an answer
Tap an option to check your answer.
Correct answer: 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..
Why this is the answer
The correct answer leverages serverless services, which are ideal for cost-effectiveness with infrequent or spiky traffic. Cloud Storage is a highly available and cost-effective solution for static content. Cloud Functions provides a fully managed, pay-per-execution environment for APIs, scaling automatically from zero to handle spikes without incurring costs when idle. Firestore is a serverless NoSQL database that scales automatically and is cost-effective for variable usage patterns. Storing static content in Cloud CDN (option 1 and 3) is good for performance but adds cost for a low-traffic application. App Engine (option 1) can be cost-effective but might be overkill for "a few public APIs." Google Kubernetes Engine (option 2) is generally more complex and expensive to manage for a low-traffic application, even with zonal redundancy. Cloud Spanner (option 2) is a highly scalable relational database, but its cost might be excessive for an application not expecting high traffic. Cloud Run (option 3) is a good serverless option, but Cloud Functions is even more granular for simple APIs.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed