Google Professional Cloud DevOps Engineer exam dumps

Google Professional Cloud DevOps Engineer practice question 240 of 268

Professional Cloud DevOps Engineer. Associate level, Google Cloud. Free question with the correct answer and a full explanation.

Google Professional Cloud DevOps Engineer Question 240

Select 4Google Cloud Platform

Your team has noticed a significant increase in logging costs in your Google Cloud environment. Upon investigation, you discover that a large volume of low-priority logs from multiple Compute Engine instances is being ingested into Cloud Logging. These logs are rarely accessed and do not provide critical insights for operations. How can you optimize logging to reduce costs while retaining essential logs for analysis?

  1. A

    Create exclusion filters in Cloud Logging to discard low-priority logs from ingestion.

  2. B

    Apply a sampling rate to the logs, retaining only a percentage of the low-priority logs.

  3. C

    Delete all low-priority logs from Cloud Logging to immediately reduce storage costs.

  4. D

    Configure a custom retention period for low-priority logs, reducing how long they are stored.

  5. E

    Route low-priority logs to a lower-cost storage solution such as Cloud Storage instead of Cloud Logging.

Show answer and explanation

Correct answers: A, B, D, E

Explanation

To optimize logging costs, it is essential to use strategies like exclusion filters, sampling, custom retention periods, and alternative storage solutions. These approaches allow you to manage the volume and storage duration of logs while ensuring that critical logs remain accessible. Simply deleting logs is not recommended as it disregards potential future needs and operational insights.

  • A. Correct.

    This is correct because exclusion filters allow you to discard unnecessary logs before they are ingested into Cloud Logging, helping reduce costs.

  • B. Correct.

    This is correct because applying a sampling rate reduces the volume of logs ingested while still retaining a representative subset for analysis.

  • C. Incorrect.

    This is incorrect because deleting all low-priority logs eliminates potentially useful insights and does not align with best practices for logging optimization.

  • D. Correct.

    This is correct because configuring a custom retention period can reduce storage costs by limiting how long low-priority logs are stored.

  • E. Correct.

    This is correct because routing logs to a lower-cost storage solution like Cloud Storage can help reduce costs while retaining the logs for potential future use.

Timed practice exam

Take a Google Professional Cloud DevOps Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam