Get Your CertGoogle Cloud Associate Cloud EngineerPlayCompete
‹ All Google Cloud Associate Cloud Engineer questions

GCP Associate Cloud Engineer Practice Question 15: Org Aggregated Log Sink

Google Cloud Associate Cloud Engineer · Test 2 · question 5 of 10

Cloud Logginghard

A security team must retain the Admin Activity audit logs of every current and future project in the organization in one central Cloud Storage bucket for seven years. New projects are created every week by many teams, and the security team does not want to touch each project.

What should you do?

Select one answer
Show answer and explanation

Answer:

  • B. Create an aggregated log sink at the organization level with the include-children option, with the central bucket as the destination

An aggregated sink is created on an organization (or folder) and, with --include-children, exports matching log entries from all projects below it, including projects created later. Give it an inclusion filter for the audit log names and a Cloud Storage bucket destination, and grant the sink's writer identity access to the bucket.

Option A works only until someone forgets a project, which is the manual burden the team wants to avoid. Option C is not possible because the _Required bucket has a fixed 400 day retention that cannot be changed. Option D creates a sink that exports only entries logged at the organization resource itself, not those from child projects.

Reference: Aggregated sinks

Practice Test 2 ›

Study guides for Google Cloud Associate Cloud Engineer