Google Cloud Certified Associate Cloud Engineer Practice 2025 – All-in-One Guide to Exam Success!

Question: 1 / 400

Your developers have been thoroughly logging everything that happens in the API. The API allows end users to request the data as JSON, XML, CSV, and XLS. Supporting all of these formats is taking a lot of developer effort. Management would like to start tracking which options are used over the next month. Without modifying the code, what's the fastest way to be able to report on this data at the end of the month?

Create a custom counter logging metric that uses a regex to extract the data format into a label. At the end of the month, use the metric viewer to see the group by the label.

Option B is incorrect because exporting to BigQuery and running a query at the end of the month would require modifying the code.

Option C is incorrect because editing the API code to set a custom monitoring metric would also require modifying the code.

Option D is incorrect because exporting the logs to excel and searching for different fields would be time consuming and not as efficient as using a custom counter logging metric. A custom counter logging metric allows for easy tracking and analysis of the data formats used without modifying the code.

Get further explanation with Examzify DeepDiveBeta

Create a log sink that filters for rows that mention the data format. Export that to BigQuery, and run a query at the end of the month.

Create a custom monitoring metric in code and edit the API code to set the metric each time the API is called.

Export the logs to excel, and search for the different fields.

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy