Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Professional Cloud Network Engineer practice bank has an additional 2,437 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
Your organization operates an e-commerce web application behind a global external Application Load Balancer protected by Google Cloud Armor. Automated scrapers are targeting the /login.html page, while legitimate users occasionally generate short bursts from shared corporate NAT gateways.
You must configure Cloud Armor to meet the following requirements:
Which configuration should you implement?
rate-based-ban rule on /login.html with --enforce-on-key=IP, --rate-limit-threshold-count=50, --rate-limit-threshold-interval-sec=60, and --ban-duration-sec=600 (omitting --ban-threshold-count), setting --exceed-action=redirect and --exceed-redirect-type=google-recaptcha. Add a higher-priority rule matching HTTP-HEADER=X-Recaptcha-Token to limit exemption cookie reuse.rate-based-ban and X-Recaptcha-Token doWhen configured without ban_threshold_count, a rate-based-ban rule immediately triggers a full ban as soon as a client exceeds the primary rate_limit_threshold_count. Meanwhile, X-Recaptcha-Token is the HTTP request header used to carry reCAPTCHA action-tokens, not challenge-page exemption cookies.
--ban-threshold-count=300 and --ban-threshold-interval-sec=300 means any corporate NAT gateway that briefly sends 51 requests in a single minute is immediately banned for the remainder of the interval plus 600 seconds (10 minutes), rather than simply being throttled.GOOGLE_RECAPTCHA redirect challenge issues an exemption cookie stored in HTTP-COOKIE under the name recaptcha-ca-e, not in the X-Recaptcha-Token header. As a result, a rate-limiting rule keyed on HTTP-HEADER=X-Recaptcha-Token will fail to track or cap reuse of the exemption cookie.ban_threshold_count, every request from the offending IP receives the exceed_action for the entire ban_duration_sec after a single threshold violation.X-Recaptcha-Token applies to frontend JavaScript or mobile SDK integrations using score-based action-tokens, whereas manual challenge pages rely on browser-attached recaptcha-ca-e cookies.HTTP-COOKIE=recaptcha-ca-e leaves the application exposed to bots solving one CAPTCHA and reusing that cookie indefinitely.X-Recaptcha-Token header rather than manual redirect challenge pages.rate-based-ban rule on /login.html with --enforce-on-key=ALL, --rate-limit-threshold-count=50, --rate-limit-threshold-interval-sec=60, --ban-threshold-count=300, --ban-threshold-interval-sec=300, --ban-duration-sec=600, --exceed-action=redirect, and --exceed-redirect-type=google-recaptcha. Add a rate-limiting rule using --enforce-on-key-configs=HTTP-COOKIE=recaptcha-ca-e at a lower priority than the rate-based-ban rule.--enforce-on-key=ALL and lower-priority rule ordering doSetting --enforce-on-key=ALL applies a single shared rate-limit counter across all clients globally matching the rule expression rather than tracking each client individually. Placing a rule at a lower priority (a higher numerical priority value) causes it to be evaluated only if earlier rules do not terminate evaluation.
--enforce-on-key=ALL, all users accessing /login.html share a single 50 requests/minute budget and 300 requests/5-minute ban counter. A single scraper hitting /login.html would exhaust the global threshold and trigger a 10-minute redirect ban affecting every legitimate shopper in that region.rate-based-ban rule enforces conform_action=allow. When the IP-based rule has higher priority (lower numerical value), any request from an IP currently under 50 requests/minute is immediately allowed and exits policy evaluation, never reaching the lower-priority recaptcha-ca-e rule.0 is highest) and stops as soon as a rule triggers allow, deny, or redirect.ALL aggregates traffic across all source IPs within each Google Cloud backend region, making it unsuitable for per-client rate limiting.HTTP-COOKIE=recaptcha-ca-e must be placed at a higher priority than fallback IP rate-limiting or redirect rules./login.html endpoint (using ALL) rather than per client IP, and placed the recaptcha-ca-e cookie rule at a higher priority (lower number) so it is evaluated first.rate-based-ban rule on /login.html with --enforce-on-key=IP, --rate-limit-threshold-count=50, --rate-limit-threshold-interval-sec=60, --ban-threshold-count=300, --ban-threshold-interval-sec=300, --ban-duration-sec=600, --exceed-action=redirect, and --exceed-redirect-type=google-recaptcha. Add a higher-priority rate-limiting rule for requests presenting a valid exemption cookie using --enforce-on-key-configs=HTTP-COOKIE=recaptcha-ca-e to cap cookie reuse.rate-based-ban with ban_threshold_count and reCAPTCHA redirect isA Google Cloud Armor rate-based-ban rule enforces dual-stage volumetric protection by combining a baseline rate threshold (rate_limit_threshold_count) with an optional secondary ban threshold (ban_threshold_count). When paired with a GOOGLE_RECAPTCHA redirect exceed action and a complementary rate-limiting rule on the recaptcha-ca-e exemption cookie, it dynamically challenges abusive traffic while preventing bots from replaying a single solved challenge cookie.
50 req/min per IP): Setting --enforce-on-key=IP isolates counters to individual client IP addresses. Configuring --rate-limit-threshold-count=50 over --rate-limit-threshold-interval-sec=60 permits up to 50 requests per minute and throttles brief spikes without immediately triggering a ban.300 req/5 min for 10 minutes): Adding --ban-threshold-count=300 and --ban-threshold-interval-sec=300 tracks total incoming requests before throttling. Only clients crossing 300 requests in 300 seconds are banned for --ban-duration-sec=600 (10 minutes) beyond the interval.--exceed-action=redirect with --exceed-redirect-type=google-recaptcha redirects excess or banned browser requests on /login.html to a reCAPTCHA interstitial page. Placing a higher-priority rule keyed on HTTP-COOKIE=recaptcha-ca-e evaluates valid exemption cookies first, capping reuse before the IP-based rule's conform_action=allow stops rule evaluation.recaptcha-ca-e cookie can authorize, stopping automated replay attacks.60, 300, and 600 seconds).Unlike a standalone throttle rule (which cannot enforce bans) or a rate-based-ban rule without ban_threshold_count (which bans clients on a single spike), this two-threshold design balances availability for shared NAT users with strict enforcement against persistent bots. Evaluating the recaptcha-ca-e cookie rate limit at a higher priority ensures cookie abuse cannot be bypassed by lower-priority allow actions.
throttle rule on /login.html with --enforce-on-key=IP, --rate-limit-threshold-count=50, --rate-limit-threshold-interval-sec=60, --ban-threshold-count=300, --ban-threshold-interval-sec=300, and --ban-duration-sec=600. Set --exceed-action=redirect, --exceed-redirect-type=external-302, and --exceed-redirect-target to a custom challenge URL, and add a rate-limiting rule on HTTP-COOKIE=recaptcha-ca-t.throttle, external-302, and recaptcha-ca-t doA Cloud Armor throttle rule caps request rates to a configured maximum without enforcing multi-minute bans. An external-302 redirect returns a standard HTTP 302 response pointing to an external URL, and recaptcha-ca-t is the cookie name assigned to reCAPTCHA session-tokens.
throttle rules do not support --ban-threshold-count, --ban-threshold-interval-sec, or --ban-duration-sec. Those parameters are exclusively valid on rate-based-ban rules, so a throttle rule cannot temporarily ban persistent offenders for 10 minutes.--exceed-redirect-type=external-302 redirects users away to an external URL instead of invoking Cloud Armor's managed google-recaptcha interstitial assessment, which automatically embeds reCAPTCHA JavaScript and issues the Cloud Armor exemption cookie.HTTP-COOKIE=recaptcha-ca-t tracks session-tokens injected for continuous frictionless scoring, whereas challenge-page redirects issue the recaptcha-ca-e exemption cookie.throttle allows approximately the threshold volume of requests through while applying the exceed_action only to the excess portion within each interval.external-302: External redirects transfer control to another endpoint and do not integrate with Cloud Armor's inline exemption cookie validation.throttle rules can be updated to rate-based-ban rules later, but rate-based-ban rules cannot be converted back to throttle.302, and separately rate-limit reCAPTCHA session-tokens stored in recaptcha-ca-t.Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated