Comprehensive and Detailed Explanation From Exact Extract:Layer 7 attacks like XSS and SQL injection are application-level threats that require a Web Application Firewall (WAF) for protection. Google Cloud Armor provides this functionality, integrated with the load balancer.
Cloud Armor: Google Cloud's distributed denial-of-service (DDoS) and WAF service.
WAF Rules: Cloud Armor offers pre-configured OWASP Top 10 rules, which directly defend against XSS, SQL injection, and other common application vulnerabilities.
Deployment: Cloud Armor security policies are applied to a backend service that is behind an external HTTP(S) Load Balancer.
Extracts:
"Cloud Armor WAF capabilities help protect web applications from the OWASP Top 10 vulnerabilities... This includes rulesets specifically designed to detect and mitigate SQL injection (SQLi) and cross-site scripting (XSS) attacks." (Source 4.1)
"Cloud Armor security policies are implemented at the edge of the Google Cloud network, applied to the backend services of an external HTTP(S) Load Balancer." (Source 4.2)
Option A is close but incomplete; WAF rules are implemented via a security policy (Option D). Option B relies on Adaptive Protection, which is primarily for volumetric DDoS and advanced attacks, but the direct protection for known XSS/SQLi signatures comes from explicit WAF rules.