Courseiva
Google Cloud Products and ServiceshardMultiple SelectObjective-mapped

Cloud Digital Leader Google Cloud Products and Services Practice Question

A company has a multi-regional deployment of a web application on Compute Engine. They want to improve latency for users worldwide and reduce load on the origin servers. They also need to protect against SQL injection and cross-site scripting attacks. Which TWO Google Cloud services should they implement?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Cloud Armor

Cloud CDN caches content at edge locations to improve latency and reduce origin load. Cloud Armor provides WAF capabilities to protect against application attacks like SQL injection and XSS. Cloud Load Balancing distributes traffic but doesn't cache. Cloud DNS is for DNS resolution. Cloud NAT is for outbound internet.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Cloud DNS

    Why it's wrong here

    Cloud DNS is a managed authoritative DNS service that translates human-readable domain names into IP addresses. It operates at the DNS layer and is entirely unaware of HTTP request content, so it cannot inspect for SQL injection or XSS patterns. While DNS can influence traffic routing via latency-based policies, it neither caches web content nor enforces security rules, making it irrelevant to the attack described.

  • Cloud Armor

    Why this is correct

    Cloud Armor is Google Cloud's web application firewall (WAF) that provides configurable security policies for HTTP(S) load balancing. It includes pre-configured rules from the ModSecurity Core Rule Set to block SQL injection, cross-site scripting, and other OWASP Top 10 threats. Cloud Armor also supports IP allow/deny lists, geo-based access controls, and rate limiting, making it the precise service to protect a web application from the stated attacks.

  • Cloud NAT

    Why it's wrong here

    Cloud NAT provides outbound internet connectivity to private VM instances that lack external IP addresses, while blocking unsolicited inbound connections. It operates at the network layer and has no visibility into application-layer payloads, so it cannot identify malicious HTTP requests like SQLi or XSS. Additionally, Cloud NAT does not cache any content, so it serves a completely different purpose than a WAF or CDN.

  • Cloud CDN

    Why this is correct

    Cloud CDN uses Google's global edge network to cache static and dynamic content closer to users, reducing latency and backend load. While it can improve performance and help absorb some volumetric DDoS attacks, its core function is content caching, not security inspection. Cloud CDN cannot examine incoming request bodies for SQL injection or XSS signatures, as that requires a dedicated WAF service like Cloud Armor.

  • Cloud Load Balancing

    Why it's wrong here

    Cloud Load Balancing distributes incoming traffic across multiple backends to achieve scalability and high availability, supporting both L3/L4 and L7 (HTTP/S) modes. However, its role is traffic routing, not security enforcement; it does not inspect request payloads for malicious patterns. Load balancing also does not cache content, so it fails to address either the performance or the WAF security requirements of the scenario.

Visual reference

Inside (Private) PC-A 10.0.0.1 PC-B 10.0.0.2 NAT Router Outside (Public) 203.0.113.1 Inside Global Server PAT: many private IPs share one public IP via unique port numbers

About these practice questions

Courseiva writes every GCDL question from scratch — 829 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This GCDL practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the GCDL exam.