You host large files on an Apache server in Compute Engine and want an email when that server's egress network costs exceed $100 for the current month as measured by Google Cloud. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Export billing data to BigQuery. Create a Cloud Function that queries BigQuery to sum the server's egress costs for the current month and emails if > $100; schedule it hourly with Cloud Scheduler..
Why this is the answer
The correct solution involves exporting billing data to BigQuery, as this provides detailed cost breakdowns, including egress network costs. A Cloud Function can then query this data to sum the specific server's egress costs for the current month. If the sum exceeds $100, the function can send an email notification. Cloud Scheduler ensures this check runs regularly (e.g., hourly). Project and billing account budget alerts are too broad; they monitor overall project or billing account costs, not specific resource costs like egress from a single server. Exporting Apache logs to Cloud Logging and parsing them in BigQuery is incorrect because Apache logs contain access information, not billing information or egress cost data. You cannot derive exact egress costs from access logs.
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