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.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
An enterprise runs microservices on Google Kubernetes Engine (GKE) and utilizes Cloud Bigtable for real-time transactions. The environment generates 25 TB of application logs and a large volume of Data Access audit logs each month.
The DevOps team must meet the following observability and budget requirements:
Which strategy should the DevOps team implement to achieve these goals?
Route all application logs to a Cloud Storage bucket with Autoclass enabled, and run a scheduled Cloud Run job every 24 hours to import the log batch into BigQuery.
Create a Log Router sink to stream logs directly to a partitioned BigQuery table with a 90-day partition expiration, set an exclusion filter on the sink for service accounts, and keep the Cloud Logging bucket retention at 30 days.
Exempt the application service accounts in the project's Data Access audit configuration, upgrade a user-defined log bucket to use Log Analytics with a 90-day retention period, and create a linked BigQuery dataset.
Configure field-level access controls on the log bucket to mask PII, extend the default log bucket retention to 90 days, and configure a Log Analytics linked dataset in BigQuery.
Route all application logs to a Cloud Storage bucket with Autoclass enabled, and run a scheduled Cloud Run job every 24 hours to import the log batch into BigQuery.
Create a Log Router sink to stream logs directly to a partitioned BigQuery table with a 90-day partition expiration, set an exclusion filter on the sink for service accounts, and keep the Cloud Logging bucket retention at 30 days.
Exempt the application service accounts in the project's Data Access audit configuration, upgrade a user-defined log bucket to use Log Analytics with a 90-day retention period, and create a linked BigQuery dataset.
This solution combines audit configuration exemptions, custom log bucket retention, and Log Analytics linked datasets to establish a cost-optimized, queryable log lifecycle.
DATA_READ and DATA_WRITE logs from being generated at the source, preventing unnecessary data transfer and ingestion fees.LogEntry records with relational tables in BigQuery.Alternative approaches that rely on export sinks duplicate log records into both Cloud Logging buckets and BigQuery storage tables, doubling ingestion and storage expenses. Leveraging Log Analytics linked datasets provides full BigQuery analytical capabilities on a single copy of log data.
Configure field-level access controls on the log bucket to mask PII, extend the default log bucket retention to 90 days, and configure a Log Analytics linked dataset in BigQuery.