Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
An enterprise organization is experiencing surging Cloud Logging ingestion costs across multiple production Google Cloud projects. An analysis of log volume via Cloud Monitoring Metrics Explorer reveals two major contributors to the high ingestion bill:
kube-system and monitoring-system.You must implement a logging optimization strategy that eliminates redundant log ingestion and minimizes storage costs while preserving critical GKE workload logs, Kubernetes audit trails, and essential Dataflow troubleshooting capabilities.
What should you do to achieve this objective?
Log exclusion filters in Google Cloud Logging are rules attached to log sinks (such as the default _Default sink or user-defined aggregated sinks) that explicitly discard matching log entries from being routed to and ingested by downstream storage destinations like log buckets.
resource.type=("k8s_container" OR "k8s_pod") combined with resource.labels.namespace_name=("kube-system" OR "monitoring-system"), high-frequency system pod telemetry is dropped before ingestion into the project _Default bucket, while user application workloads running in custom namespaces continue to be ingested normally.resource.type="dataflow_step" where labels."dataflow.googleapis.com/log_type"!="system" AND labels."dataflow.googleapis.com/log_type"!="supportability" removes noisy, low-value worker thread execution output while guaranteeing that essential system lifecycle messages and supportability records needed by developers and Google support remain available in the Job details console.This approach directly stops the ingestion of non-critical, high-volume log streams at the Log Router level while precisely retaining all telemetry required for Day-2 cluster operations and pipeline diagnostics.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.