Medium1 markMultiple Choice
Domain 5.3: Viewing audit logsDomain 5.3Audit LogsLog RouterBigQuery

GCP ACE · Question 50 · Domain 5.3: Viewing audit logs

Your compliance department requires that all Admin Activity audit logs be retained for 5 years. By default, Cloud Logging only retains these logs for 400 days. You need to set up a solution to meet the compliance requirement while allowing the security team to perform complex SQL analysis on the historical logs.

Which TWO actions should you take? (Select TWO)

Answer options:

A.

Create a Log Sink (Log Router) in Cloud Logging.

B.

Increase the retention period in Cloud Logging to 5 years.

C.

Set the destination of the Log Sink to a BigQuery dataset.

D.

Set the destination of the Log Sink to a Cloud Storage bucket.

E.

Export the logs manually using the gcloud logging read command every month.

How to approach this question

Identify the mechanism for exporting logs and the best destination for SQL analysis.

Full Answer

Create a Log Sink (Log Router) in Cloud Logging., Set the destination of the Log Sink to a BigQuery dataset.
To retain logs beyond their default retention period and enable advanced analytics, you must create a Log Router Sink. The sink continuously exports matching logs to a destination. Because the requirement specifies 'complex SQL analysis', BigQuery is the correct destination. (Cloud Storage would be cheaper for pure retention, but lacks the SQL capability).

Common mistakes

Choosing Cloud Storage when SQL analysis is explicitly required.

Practice the full GCP Associate Cloud Engineer Practice Exam 4

50 questions · hints · full answers · grading

More questions from this exam