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 web service running on a fleet of Compute Engine Linux VMs generates over 40,000 HTTP access log entries per second per instance during peak traffic. The operations team identifies two major issues:
google-fluentd) is reaching its single-core CPU limit and dropping log entries due to buffer overflow.You must design an observability architecture that achieves the following requirements:
Which solution should you implement?
This architecture combines the high-throughput Google Cloud Ops Agent with Log-based Metrics and Log Exclusion Filters using deterministic sampling in Cloud Logging.
google-fluentd agent is CPU-bounded and capped at roughly 5,500 entries per second on a single core. Upgrading to the Google Cloud Ops Agent increases throughput capacity to approximately 160,000 log entries per second on Linux, easily handling 40,000 entries per second without buffer overflows.sample(insertId, 0.90) on logs where httpRequest.status < 500 discards 90% of non-error logs before ingestion into the _Default bucket, retaining an exact 10% uniform sample.500 or higher bypass the exclusion filter entirely and are stored in full for debugging and auditing.sample() function hashes fields such as insertId to produce statistically accurate uniform sampling across distributed instances.This design leverages native Cloud Logging pipeline behavior—extracting metric data before exclusion routing—so no monitoring visibility is lost while drastically reducing storage spend and agent compute bottlenecks.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.