Prepare and test your skills
Prepare and test your skills
Free sample question, answered and explained below. The Associate Data Practitioner practice bank has 1,156 more like it. Try 10 free: instant score, no account.
A data engineer is troubleshooting an automated batch pipeline that failed unexpectedly during execution. The engineer needs to examine the pipeline's log entries in Google Cloud to isolate the root cause efficiently.
The engineer has the following requirements:
ERROR or higherconnection_timeout in the message payloadWhich approach should the engineer use in Cloud Logging to accomplish this?
Exporting logs to Cloud Storage involves creating a Log Sink in the Log Router that periodically writes batches of log records into Cloud Storage objects for long-term archiving, compliance retention, or offline processing.
The organization needed to retain pipeline logs for seven years to satisfy financial audit requirements at minimal long-term storage cost.
The Logs Explorer is the primary interface in Cloud Logging designed for viewing, searching, and analyzing log data across Google Cloud resources. The Query Editor within Logs Explorer provides a dedicated workspace where engineers write structured queries using the Logging query language (LQL) to filter massive volumes of log records rapidly.
ERROR or adding a severity >= ERROR clause filters out lower-priority entries (such as INFO or NOTICE), retrieving only critical issues and failures.jsonPayload.message:"connection_timeout" isolates entries containing the exact failure string.timestamp clauses limits the search scope to the specific two-hour incident interval.AND, OR, NOT) for precise matching.Using the Logs Explorer query editor directly within Cloud Logging is the fastest, non-destructive, and most precise method for incident investigation. It avoids modifying system routing configurations, requires no external exports, and provides real-time filtering directly against indexed log entries.
Regional logs buckets in Cloud Logging allow organizations to specify the geographic location where log data is stored. This capability is primarily used to fulfill compliance, regulatory, and data residency requirements by keeping log data within a defined region.
WARNING, NOTICE, or INFO logs.The scenario stated that the organization must meet strict legal data sovereignty requirements ensuring that pipeline logs never leave a specific geographical boundary.
Log Router exclusion filters are project-level configurations that prevent specific log entries from being ingested or stored in Cloud Logging buckets (such as _Default). Their primary purpose is cost management by discarding high-volume, low-value logs before they are written to storage.
The goal was to reduce monthly Cloud Logging storage costs by permanently ignoring high-frequency DEBUG messages generated by development environments.
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