Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Associate Cloud Engineer practice bank has an additional 2,014 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
An organization is enabling Data Access audit logs for a high-throughput Google Cloud database service to satisfy security auditing requirements for human user access. An automated backend application uses a dedicated service account to execute thousands of read queries every minute. Logging all of these automated queries would generate an unsustainable volume of logs and significantly increase storage costs.
How should the cloud engineer configure audit logging to capture user access while preventing the service account from generating log entries?
Data Access audit log exemptions are configuration rules defined within Identity and Access Management (IAM) audit policies that explicitly suppress the generation of Data Access audit logs for specified principals, such as users, groups, or service accounts. Unlike Admin Activity audit logs, which are always written and cannot be disabled, Data Access audit logs are disabled by default for most services because high-volume workloads can generate vast amounts of log data, leading to substantial ingestion and storage expenses.

DATA_READ, DATA_WRITE, ADMIN_READ).Configuring principal-based exemptions via the Audit Logs interface is Google Cloud's recommended practice for managing high-throughput service account traffic. Rather than generating millions of log entries only to drop them later during ingestion, audit configuration exemptions stop log creation at the source, preventing unnecessary billing and resource overhead.
The Logs Writer role (roles/logging.logWriter) provides permissions for a principal or service to write custom application log entries directly to Cloud Logging via the logging.logEntries.write API. It is commonly assigned to virtual machine service accounts, Google Kubernetes Engine nodes, or containerized applications pushing custom runtime logs.
roles/logging.logWriter for an audit log to be produced.DATA_READ or DATA_WRITE audit records when the service account executes queries.The service account were running custom application code on Compute Engine that actively pushed duplicate or unnecessary debug logs to Cloud Logging via an SDK, and you wanted to prevent the application from writing those custom log streams.
Log Router exclusion filters are rules configured on Cloud Logging sinks (such as the default _Default log sink) that prevent matching log entries from being ingested into log storage buckets. When logs arrive at the Log Router, the filter evaluates incoming entries against defined query expressions and discards matching entries before they are retained.
The requirement were to ingest audit logs temporarily for troubleshooting, or to drop log entries based on complex payload fields (such as specific HTTP status codes, query text, or resource labels) that cannot be configured through IAM principal-based exemptions.
Admin Activity audit logs record API calls and administrative operations that modify resource configuration or metadata, such as creating, deleting, or updating cloud infrastructure or modifying IAM access control policies. They form the foundational security baseline for auditing administrative actions across Google Cloud.
DATA_READ), not Admin Activity._Required log bucket free of charge and do not contribute to billable log volume or storage expenses._Required log bucket.This configuration is never correct under any circumstances because Google Cloud does not provide an option to disable Admin Activity audit logs for any service.
Cloud Audit Logs distinguish between control-plane actions (Admin Activity) and data-plane operations (Data Access). While Data Access logs can be customized, enabled, or suppressed using principal exemptions to control costs, Admin Activity logs are permanently active.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated