Google Cloud Professional Cloud Developer — Question 250
A governmental regulation was recently passed that affects your application. For compliance purposes, you are now required to send a duplicate of specific application logs from your application’s project to a project that is restricted to the security team. What should you do?
Answer options
- A. Create user-defined log buckets in the security team’s project. Configure a Cloud Logging sink to route your application’s logs to log buckets in the security team’s project.
- B. Create a job that copies the logs from the _Required log bucket into the security team’s log bucket in their project.
- C. Modify the _Default log bucket sink rules to reroute the logs into the security team’s log bucket.
- D. Create a job that copies the System Event logs from the _Required log bucket into the security team’s log bucket in their project.
Correct answer: A
Explanation
The correct answer is A because creating user-defined log buckets and configuring a Cloud Logging sink specifically addresses the requirement to send application logs to the security team's restricted project. Options B and D involve copying logs, which is not the most efficient or compliant method for this scenario, while option C alters existing sink rules instead of properly setting up dedicated log buckets for the security team.