Professional Cloud Security 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
A financial enterprise requires a centralized, tamper-proof audit logging architecture across all Google Cloud projects within its organization. The compliance and security teams mandate the following technical requirements:
sec-logging-prod project.Which architecture and set of configuration steps should the security engineer implement?
Update the default _Required and _Default sinks in every project to route to a BigQuery dataset in sec-logging-prod. Grant the BigQuery Data Editor role (roles/bigquery.dataEditor) to the Organization Administrator, encrypt the BigQuery tables with CMEK, and configure table expiration set to seven years.
Create an aggregated log sink at the organization level with --include-children pointing to the storage bucket in sec-logging-prod. Grant the sink's writerIdentity the Storage Object Creator role (roles/storage.objectCreator) on the destination bucket, assign the Cloud KMS CryptoKey Encrypter/Decrypter role (roles/cloudkms.cryptoKeyEncrypterDecrypter) to the Cloud Storage service agent on the CMEK key, and enforce a 7-year locked retention policy using Bucket Lock.
Create individual project-level sinks in each child project pointing to the storage bucket in sec-logging-prod. Grant the Storage Admin role (roles/storage.admin) to the default Compute Engine service account, configure default Google-managed encryption on the destination bucket, and configure an Object Lifecycle Management rule to delete objects after seven years.
Create an organization-level aggregated sink routed to a Pub/Sub topic in sec-logging-prod. Grant the sink's writerIdentity the Pub/Sub Publisher role (roles/pubsub.publisher), enable customer-managed encryption keys on the topic, and configure a Cloud Storage subscription that uses soft delete to prevent log deletion.
Update the default _Required and _Default sinks in every project to route to a BigQuery dataset in sec-logging-prod. Grant the BigQuery Data Editor role (roles/bigquery.dataEditor) to the Organization Administrator, encrypt the BigQuery tables with CMEK, and configure table expiration set to seven years.
Create an aggregated log sink at the organization level with --include-children pointing to the storage bucket in sec-logging-prod. Grant the sink's writerIdentity the Storage Object Creator role (roles/storage.objectCreator) on the destination bucket, assign the Cloud KMS CryptoKey Encrypter/Decrypter role (roles/cloudkms.cryptoKeyEncrypterDecrypter) to the Cloud Storage service agent on the CMEK key, and enforce a 7-year locked retention policy using Bucket Lock.
This architecture establishes an aggregated log sink at the Google Cloud organization root that centrally captures and routes audit telemetry across all descendant folders and projects into a hardened, CMEK-encrypted, and WORM-compliant Cloud Storage bucket.
--include-children automatically aggregates logs across every current and future child folder and project, routing them directly to the designated Cloud Storage bucket in sec-logging-prod.roles/storage.objectCreator to the sink's unique writerIdentity service account allows Cloud Logging to write new log objects to the destination bucket without granting unnecessary read or delete capabilities.roles/cloudkms.cryptoKeyEncrypterDecrypter to the Cloud Storage service agent ensures all incoming log objects written to the bucket are encrypted using customer-controlled keys in Cloud KMS.Aggregated sinks configured at the organization root combined with locked bucket retention policies and CMEK provide an end-to-end zero-trust logging architecture that completely isolates security records from individual workload owners.
Create individual project-level sinks in each child project pointing to the storage bucket in sec-logging-prod. Grant the Storage Admin role (roles/storage.admin) to the default Compute Engine service account, configure default Google-managed encryption on the destination bucket, and configure an Object Lifecycle Management rule to delete objects after seven years.
Create an organization-level aggregated sink routed to a Pub/Sub topic in sec-logging-prod. Grant the sink's writerIdentity the Pub/Sub Publisher role (roles/pubsub.publisher), enable customer-managed encryption keys on the topic, and configure a Cloud Storage subscription that uses soft delete to prevent log deletion.