CLOUD-NETWORK practice question 2 of 30

You recently configured Google Cloud Armor security policies to manage traffic to your application. You discover that Google Cloud Armor is incorrectly blocking some traffic to your application. You need to identity the web application firewall (WAF) rule that is incorrectly blocking traffic. What should you do?

Full set: 233 questions
Answer options
A: Enable firewall logs, and view the logs in Firewall Insights.
B: Enable HTTP(S) Load Balancing logging with sampling rate equal to 1, and view the logs in Cloud Logging. Correct answer
C: Enable VPC Flow Logs, and view the logs in Cloud Logging.
D: Enable Google Cloud Armor audit logs, and view the logs on the Activity page in the Google Cloud Console.
Correct Answer:
B. Enable HTTP(S) Load Balancing logging with sampling rate equal to 1, and view the logs in Cloud Logging.
Explanation

Google Cloud Armor security policy actions are logged through the logging service of the associated backend, which is typically an HTTP(S) Load Balancer. To troubleshoot and identify the specific rule blocking traffic, you must enable logging for the load balancer's backend service or backend bucket. By setting the sampling rate to 1 (100%), you ensure all requests are logged. You can then query these logs in Cloud Logging and inspect the jsonPayload.enforcedSecurityPolicy field, which contains the name of the matched policy and the outcome (e.g., "DENY"), directly identifying the problematic rule.

Why Incorrect

A. Firewall Insights is a tool for analyzing VPC Firewall Rules, not Google Cloud Armor security policies.
C. VPC Flow Logs operate at L3/L4 and lack the L7 visibility needed to inspect HTTP requests or identify which WAF rule was triggered.
D. Google Cloud Armor audit logs record administrative changes (e.g., policy creation/updates), not the evaluation of individual traffic requests against those policies.

References

- Google Cloud Documentation, "Google Cloud Armor security policy logging". (https://cloud.google.com/armor/docs/security-policy-logging). This document states, "Google Cloud Armor writes logs for requests that are allowed or denied by security policies to Cloud Logging... To view Google Cloud Armor logs, you must enable logging for the backend service of an external HTTP(S) load balancer".

- Google Cloud Documentation, "HTTP(S) Load Balancing logging and monitoring". (https://cloud.google.com/load-balancing/docs/https/logging-monitoring). This page details the log fields, including enforcedSecurityPolicy, which is populated with Cloud Armor rule details. It also explains how to configure the logging sampling rate.

Scroll to Top