Skip to main content

Associate Cloud Engineer practice question · Ensuring the successful operation of a cloud solution

Compliance requires a project's Cloud Audit Logs data access logs to be kept for 2 years.

Compliance requires a project's Cloud Audit Logs data access logs to be kept for 2 years. All other logs in the project should keep the standard 30-day retention. What should the engineer configure?

  • ACreate a user-defined log bucket in the project with 730-day retention, plus a sink whose filter matches data access logs and routes them to it
  • BRaise the retention of the project's _Default log bucket to 730 days so data access logs stored there are kept for 2 years
  • CCreate a user-defined log bucket at the folder level with 730-day retention, plus a folder sink that routes data access logs to it
  • DCreate a user-defined log bucket in the project with 730-day retention and give it a description identifying it as the data access log store
Show the answer and explanation

Correct answer: A) Create a user-defined log bucket in the project with 730-day retention, plus a sink whose filter matches data access logs and routes them to it

For custom retention on just one category of logs, create a user-defined log bucket in a project with the needed retention and add a sink whose filter routes only that category to it. Changing _Default retention would affect every log stored there.

Why each option is right or wrong

  • A) Correct. User-defined log buckets can be created in projects with custom retention from 1 to 3650 days. A sink with an inclusion filter sends only the matching logs to that bucket, so other logs keep the 30-day _Default retention.
  • B) Incorrect. Retention is set per bucket. Raising it on _Default would keep every log routed to _Default for 2 years, not just the data access logs, and that breaks the 30-day requirement for the other logs.
  • C) Incorrect. User-defined log buckets can't be created in folders or organizations, only in projects. Folder-level aggregated sinks have to send logs to a bucket that lives in a project.
  • D) Incorrect. A bucket only stores the logs that a sink routes to it. Without a sink whose filter matches data access logs, the new bucket receives nothing, whatever its description says.
Exam domain
Ensuring the successful operation of a cloud solution · ~30% of Associate Cloud Engineer
Question type
Multiple choice (one answer)

Practise the full Associate Cloud Engineer exam

This question is one of a small free sample from the CertRidge Associate Cloud Engineer bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.