nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #261

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…

The correct answer is A. Create user-defined log buckets in the security team's project. Configure a Cloud Logging sink to. The correct approach is to create user-defined log buckets in the security team's project and configure a Cloud Logging sink (log router) in your application's project to export a copy of the specific logs to that destination. Log sinks duplicate logs to a destination without…

Monitoring, logging, and debugging applications

Question

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?

Options

  • ACreate user-defined log buckets in the security team's project. Configure a Cloud Logging sink to
  • BCreate a job that copies the logs from the _Required log bucket into the security team's log
  • CModify the _Default log bucket sink rules to reroute the logs into the security team's log bucket.
  • DCreate a job that copies the System Event logs from the _Required log bucket into the security

How the community answered

(24 responses)
  • A
    75% (18)
  • B
    4% (1)
  • C
    8% (2)
  • D
    13% (3)

Explanation

The correct approach is to create user-defined log buckets in the security team's project and configure a Cloud Logging sink (log router) in your application's project to export a copy of the specific logs to that destination. Log sinks duplicate logs to a destination without removing them from the source project, satisfying the 'duplicate' requirement. Choice B manually copies from the _Required bucket, which is not automated or scalable. Choice C modifies the _Default sink, which would reroute (not duplicate) logs and could break normal logging. Choice D also copies manually and only targets System Event logs, which is too narrow and not automated.

Topics

#Cloud Logging#Log Sinks#Log Buckets#Cross-Project Logging

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice