🔥 40% Off Crucial Exams Memberships — Deal ends today!

4 minutes, 38 seconds remaining!

GCP Professional Cloud Security Engineer Practice Question

Your company wants to forward all Admin Activity and Data Access audit logs generated anywhere in its Google Cloud resource hierarchy (organization plus multiple folders and projects) to a centralized BigQuery dataset in a separate logging project. Several project-level engineers already maintain their own log sinks that export selected logs to Pub/Sub. You must meet the following requirements:

  • Forward every new and existing child resource's audit logs to the central dataset without requiring per-project configuration.
  • Ensure project-level sinks continue to function unchanged and are not disrupted or prevented from exporting their own copies.
  • Follow Google-recommended practices for granting permissions to the mechanism that writes into the BigQuery dataset.

Which approach should you take?

  • Create a single aggregated sink at the organization level that routes logs to a Cloud Storage bucket, then build a scheduled Dataflow job to load the objects into BigQuery.

  • Create a non-intercepting aggregated sink at the organization node with a filter resource.type=audited_resource AND log_id("cloudaudit.googleapis.com%2Factivity") OR log_id("cloudaudit.googleapis.com%2Fdata_access"); set the destination to the central BigQuery dataset and grant the sink's unique writer identity the BigQuery Data Editor role on that dataset.

  • Enable Log Router at each folder level with an intercepting aggregated sink that exports all log types to the central dataset; remove permissions from project-level sinks to avoid duplicate exports.

  • Create individual project-level log sinks in every existing project that export Admin Activity and Data Access logs to the central BigQuery dataset, and instruct the PMO to add this sink to future projects during onboarding.

GCP Professional Cloud Security Engineer
Managing operations
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot