
Answer-first summary for fast verification
Answer: Begin by creating a logging exclusion filter for the logs you want to exclude, followed by setting up a log sink for the logs you intend to export.
The correct approach is to first create a logging exclusion filter for the logs you want to exclude, which prevents them from being ingested into Cloud Logging, thereby saving on storage costs and reducing log noise. Subsequently, create a log sink for the logs you wish to export, enabling their routing to destinations like Cloud Storage, BigQuery, or Pub/Sub for long-term storage or analysis. This sequence ensures that only the intended logs are excluded from ingestion and that the desired logs are properly exported for further analysis.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
As a DevOps Engineer optimizing logging in a Google Cloud Platform (GCP) project, you need to exclude specific logs from Cloud Logging and export others to an external storage service for long-term analysis. What is the correct sequence of actions to achieve these objectives?
A
First, create a log sink for the logs you wish to export, then establish a logging exclusion filter for the logs you want to exclude.
B
Begin by creating a logging exclusion filter for the logs you want to exclude, followed by setting up a log sink for the logs you intend to export.
C
Initiate by creating a logging exclusion filter for the logs you plan to export, then proceed to create a log sink for the logs you wish to exclude.
D
Start by creating a log sink for the logs you aim to exclude, then create a logging exclusion filter for the logs you want to export.
No comments yet.