nerdexam
Google

ASSOCIATE-CLOUD-ENGINEER · Question #314

After a recent security incident, your startup company wants better insight into what is happening in the Google Cloud environment. You need to monitor unexpected firewall changes and instance…

The correct answer is B. Use Cloud Logging filters to create log-based metrics for firewall and instance actions. Monitor. To gain insight into firewall changes and instance creation with a simple solution, create log-based metrics in Cloud Logging from filtered Cloud Audit Logs, and then set up alerts on these metrics.

Submitted by wei.xz· Mar 30, 2026Ensuring successful operation of a cloud solution

Question

After a recent security incident, your startup company wants better insight into what is happening in the Google Cloud environment. You need to monitor unexpected firewall changes and instance creation. Your company prefers simple solutions. What should you do?

Options

  • ACreate a log sink to forward Cloud Audit Logs filtered for firewalls and compute instances to
  • BUse Cloud Logging filters to create log-based metrics for firewall and instance actions. Monitor
  • CInstall Kibana on a compute instance. Create a log sink to forward Cloud Audit Logs filtered for
  • DTurn on Google Cloud firewall rules logging, and set up alerts for any insert, update, or delete

How the community answered

(57 responses)
  • A
    5% (3)
  • B
    79% (45)
  • C
    4% (2)
  • D
    12% (7)

Why each option

To gain insight into firewall changes and instance creation with a simple solution, create log-based metrics in Cloud Logging from filtered Cloud Audit Logs, and then set up alerts on these metrics.

ACreate a log sink to forward Cloud Audit Logs filtered for firewalls and compute instances to

While creating a log sink to forward logs is a valid step, it doesn't inherently provide "insight" or monitoring capabilities without an additional tool to process and alert on those forwarded logs, making it less simple for direct monitoring compared to log-based metrics.

BUse Cloud Logging filters to create log-based metrics for firewall and instance actions. MonitorCorrect

Cloud Logging captures Cloud Audit Logs for administrative activities like firewall changes and instance creation. Creating log-based metrics allows counting these specific events, and then Cloud Monitoring can be used to set up alerts based on thresholds of these metrics, providing a simple, integrated, and serverless monitoring solution.

CInstall Kibana on a compute instance. Create a log sink to forward Cloud Audit Logs filtered for

Installing Kibana on a Compute Engine instance introduces additional infrastructure, management overhead, and complexity, which goes against the company's preference for simple solutions.

DTurn on Google Cloud firewall rules logging, and set up alerts for any insert, update, or delete

Google Cloud firewall rules logging primarily logs traffic allowed or denied by firewall rules, not changes to the rules themselves or instance creation, so it wouldn't directly address the requirement to monitor firewall *changes* and *instance creation*.

Concept tested: Monitoring audit logs with log-based metrics

Source: https://cloud.google.com/logging/docs/logs-based-metrics/

Topics

#Cloud Audit Logs#log-based metrics#security monitoring#Cloud Logging

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice