Google Cloud Associate Cloud Engineer — Question 159

For analysis purposes, you need to send all the logs from all of your Compute Engine instances to a BigQuery dataset called platform-logs. You have already installed the Cloud Logging agent on all the instances. You want to minimize cost. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because it directly creates an export of the Compute Engine logs to the specified BigQuery dataset, which is a straightforward and cost-effective approach. Option A involves unnecessary permissions and does not specify log export. Option B adds complexity with a Cloud Function and Pub/Sub, which could increase costs. Option D also introduces complexity and does not utilize the direct export feature of Cloud Logging.