Topic 2 Question 14
Your company publishes large files on an Apache web server that runs on a Compute Engine instance. The Apache web server is not the only application running in the project. You want to receive an email when the egress network costs for the server exceed 100 dollars for the current month as measured by Google Cloud Platform (GCP). What should you do?
Set up a budget alert on the project with an amount of 100 dollars, a threshold of 100%, and notification type of "email."
Set up a budget alert on the billing account with an amount of 100 dollars, a threshold of 100%, and notification type of "email."
Export the billing data to BigQuery. Create a Cloud Function that uses BigQuery to sum the egress network costs of the exported billing data for the Apache web server for the current month and sends an email if it is over 100 dollars. Schedule the Cloud Function using Cloud Scheduler to run hourly.
Use the Stackdriver Logging Agent to export the Apache web server logs to Stackdriver Logging. Create a Cloud Function that uses BigQuery to parse the HTTP response log data in Stackdriver for the current month and sends an email if the size of all HTTP responses, multiplied by current GCP egress prices, totals over 100 dollars. Schedule the Cloud Function using Cloud Scheduler to run hourly.
ユーザの投票
コメント(17)
C is answer
👍 13ezat2020/07/07For me it's C because the Apache web server is not the only application running in the project, so the budget alert is not suitable because it is related to all applications and not only the network traffic as needed.
👍 12Mikebonsi702020/07/08My mental map: Requirement is: You want to receive an EMAIL WHEN the EGRESS NETWORK COST for the server EXEED 100 DOLLARS... Platform (GCP). What should you do? Option A: If you set up a budget alert on the project with an amount of 100 dollars, a threshold of 100%, and notification type of "email.", you will receive the mail notification when PROJECT COST (all concepts) EXEED 100 U$S, not only EGRESS NETWORK COST. Option B is more generic than A: At this case, you will receive the mail notification when any PROJECTS COST (all concepts, all projects) EXEED 100 U$S, not only EGRESS NETWORK COST in designed project. Option C: I agree, it is not a very orthodox solution, but it would work ... What do you think? Option D: WTF???!!!!! This solution isn't compliance with KISS framework (KISS = Keep It Simple Stupid) XDDDDDDD
👍 9Ale19732020/09/08
シャッフルモード