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.
An enterprise organization is designing an automated pipeline to route audit logs from multiple production projects to a centralized Cloud Storage bucket in a dedicated security project. The exported logs must be encrypted at rest using Customer-Managed Encryption Keys (CMEK) and protected against data exfiltration using VPC Service Controls.
Which set of actions should the security engineer take to implement this pipeline following the principle of least privilege?
This solution implements a defense-in-depth security model for log export pipelines by combining least-privilege IAM roles, Customer-Managed Encryption Keys (CMEK), and VPC Service Controls (VPC SC) perimeters to safeguard telemetry egress paths.
writerIdentity). Granting only roles/storage.objectCreator on the destination bucket allows the Log Router to upload exported log objects without granting read, list, or overwrite capabilities over existing audit records.service-PROJECT_NUMBER@gs-project-accounts.iam.gserviceaccount.com) to encrypt and decrypt objects, requiring the roles/cloudkms.cryptoKeyEncrypterDecrypter role granted specifically to this service agent.storage.googleapis.com and cloudkms.googleapis.com ensures that log data cannot be exfiltrated to unauthorized cloud projects or external destinations.roles/storage.objectCreator prevents compromised sinks from altering or deleting historical logs.This approach adheres strictly to Google Cloud security best practices by granting the exact minimal permissions required for both the Log Router sink writer identity and the Cloud Storage CMEK service agent, while eliminating unauthorized perimeter egress.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.