associate-cloud-engineer question 138 discussion

View all Associate Cloud Engineer here
back to google forum

Question 138

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. What should you do?

  • A. Set up a budget alert on the project with an amount of 100 dollars, a threshold of 100%, and notification type of “email.”
  • B. Set up a budget alert on the billing account with an amount of 100 dollars, a threshold of 100%, and notification type of email.
  • C. 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.
  • D. Use the Cloud Logging Agent to export the Apache web server logs to Cloud Logging. Create a Cloud Function that uses BigQuery to parse the HTTP response log data in Cloud Logging for the current month and sends an email if the size of all HTTP responses, multiplied by current Google Cloud egress prices, totals over 100 dollars. Schedule the Cloud Function using Cloud Scheduler to run hourly.
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
0 / 1000
bowarr
1 month ago

the correct answer is C because - Options A & B set up budget alerts but they apply to the entire project or billing account, not just the Apache web server. These won’t give a precise measure of the server’s individual network costs.