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.
Question
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)- A5% (3)
- B79% (45)
- C4% (2)
- D12% (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.
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.
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.
Installing Kibana on a Compute Engine instance introduces additional infrastructure, management overhead, and complexity, which goes against the company's preference for simple solutions.
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
Community Discussion
No community discussion yet for this question.