Professional Cloud Security Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
An enterprise hosts an e-commerce platform behind an external Application Load Balancer with an attached Google Cloud Armor security policy. The security engineering team has the following access and threat protection requirements for a backend service:
198.51.100.0/24 to access administrative endpoints matching request.path.matches('/admin/.*') without being blocked by general WAF inspection./admin/.*.sqli-v33-stable) and Cross-Site Scripting (xss-v33-stable), denying matched exploits.How should the Cloud Armor security policy rules and priorities be configured to enforce these requirements correctly?
Google Cloud Armor security policies are edge enforcement controls attached to backend services on external Application Load Balancers. They evaluate incoming HTTP(S) requests using priority-based rule evaluation where integer values range from 0 to 2147483646 (with the mandatory default rule fixed at 2147483647). Rules are evaluated in ascending numerical order (lowest priority number evaluated first). When a rule's match condition evaluates to true, Cloud Armor immediately executes the configured action (allow, deny, or throttle) and stops processing further rules.
inIpRange(origin.ip, '198.51.100.0/24') and the L7 path expression request.path.matches('/admin/.*') is explicitly granted an allow action. Because rule evaluation terminates upon the first match, authorized administrative traffic bypasses downstream WAF evaluations.request.path.matches('/admin/.*') is intercepted and denied (HTTP 403/404), ensuring unauthorized clients cannot access administrative endpoints.evaluatePreconfiguredExpr('sqli-v33-stable') || evaluatePreconfiguredExpr('xss-v33-stable')). Malicious payloads are blocked.Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.