nerdexam
Google

PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #49

Your company has a Google Cloud resource hierarchy with folders for production, test, and development. Your cyber security team needs to review your company's Google Cloud security posture to…

The correct answer is C. Create an aggregated log sink associated with the production folder that uses a Pub/Sub topic as. To centralize logs from all projects into your production folder for near-real-time analysis and alerting, you should create an aggregated log sink associated with the production folder that uses a Pub/Sub topic as its destination.

Submitted by fatima_kr· Apr 18, 2026Implementing service monitoring strategies

Question

Your company has a Google Cloud resource hierarchy with folders for production, test, and development. Your cyber security team needs to review your company's Google Cloud security posture to accelerate security issue identification and resolution. You need to centralize the logs generated by Google Cloud services from all projects only inside your production folder to allow for alerting and near-real time analysis. What should you do?

Options

  • AEnable the Workflows API and route all the logs to Cloud Logging.
  • BCreate a central Cloud Monitoring workspace and attach all related projects.
  • CCreate an aggregated log sink associated with the production folder that uses a Pub/Sub topic as
  • DCreate an aggregated log sink associated with the production folder that uses a Cloud Logging

How the community answered

(24 responses)
  • A
    8% (2)
  • B
    4% (1)
  • C
    83% (20)
  • D
    4% (1)

Why each option

To centralize logs from all projects into your production folder for near-real-time analysis and alerting, you should create an aggregated log sink associated with the production folder that uses a Pub/Sub topic as its destination.

AEnable the Workflows API and route all the logs to Cloud Logging.

Enabling the Workflows API is for orchestrating tasks and does not directly handle log centralization; logs are already routed to Cloud Logging by default.

BCreate a central Cloud Monitoring workspace and attach all related projects.

Cloud Monitoring workspaces are used for metrics and dashboards across projects, not for centralizing raw log data for export and detailed analysis.

CCreate an aggregated log sink associated with the production folder that uses a Pub/Sub topic asCorrect

An aggregated log sink created at the production folder level can collect logs from all projects within that folder, automatically including future projects, and export them to a specified destination. Using a Pub/Sub topic as the destination for the log sink allows for real-time streaming of log entries, which is ideal for immediate processing, alerting, and near-real-time analysis by security tools or Cloud Functions.

DCreate an aggregated log sink associated with the production folder that uses a Cloud Logging

While an aggregated log sink associated with the production folder is appropriate, using a Cloud Logging bucket as the destination is primarily for long-term storage and archival, which is less optimal for 'near-real time analysis' and 'alerting' compared to a Pub/Sub topic.

Concept tested: Cloud Logging aggregated sinks and Pub/Sub for real-time log export

Source: https://cloud.google.com/logging/docs/export/aggregated_sinks

Topics

#Cloud Logging#Aggregated Sinks#Pub/Sub#Centralized Logging

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Practice