↑ ↓ to move, Enter to open, Esc to close

    GCP-PCNEProfessional Cloud Network Engineer

    Switch exam

    Microsoft Azure

    aws Amazon Web Services

    Google Cloud

    ServiceNow

    Databricks

    Cisco

    Salesforce

    All exams and search

    Exams / GCP-PCNE / D1 Configuring, implementing and managing a cloud network security solution

    D1.1

    Configuring, implementing and managing a cloud network security solution (part 1 of 3)

    • 2 min read
    • 5 sections
    • 24 questions
    • Free preview
    • Exam domain: Configuring, implementing and managing a cloud network security solution
    You are reading a free preview. The rest of the GCP-PCNE course unlocks with an Exam pass or All access.See plans

    Firewall rules and policies

    Topic Fact
    Priority Rules are evaluated from highest to lowest priority, where 0 is the highest priority.
    Targets / sources VPC firewall rules target instances by network tag or service account (never labels). Service accounts are the more precise identity.
    Implied rules Implied deny ingress and implied allow egress exist. They cannot be logged.
    Logging Enabled individually per rule. To see denied traffic, create an explicit deny rule with logging.
    Hierarchical policies Evaluated before VPC rules; lower-level rules cannot override a higher-level rule. goto_next hands the packet to the next level (folder, then VPC policies).

    Pattern for "block X everywhere except the corporate network, and let some VPCs decide": org-level ingress rule for the corporate range with goto_next (higher priority), then a deny from 0.0.0.0/0, then allow rules in the VPC policies.

    Cloud Armor policy types

    Which Cloud Armor policy type

    • Backend security policy: attached to backend services of external load balancers (also GKE through Ingress and BackendConfig).
    • Edge security policy: filters before cache, for backend services and buckets.
    • Network edge security policy: protects VMs with public IPs, regional external passthrough LBs and protocol forwarding; supports source ASN matching (--network-src-asns).
    • Preview mode logs what a rule would match without enforcing it.
    • Behind a third-party proxy, origin.ip is the proxy. Set userIpRequestHeaders[] and match origin.user_ip.

    Cloud Armor behind a proxy

    Cloud NGFW TLS inspection

    1. Create a CA pool and CA in Certificate Authority Service.
    2. Grant the service agent roles/privateca.certificateRequester (it generates intermediate CAs signed by your pool).
    3. Create a TLS inspection policy referencing the pool (trust config is optional).
    4. Add the policy to the firewall endpoint association.
    5. Enable TLS inspection in the firewall policy rules.

    Secure Web Proxy is similar: for HTTPS, a rule is evaluated only if TLS inspection is enabled on it, so path/header matchers need it.

    Packet Mirroring

    • Sources: subnets, tags or instance names; filter by protocol/CIDR/direction.
    • Collector: internal passthrough NLB in the same region as the sources; can be in a peered VPC.
    • Mirrored traffic that crosses zones is charged as egress, so use a collector group per zone.

    VPC Service Controls, Shared VPC, NCC, routing

    Need Answer
    Restrict Google APIs (Storage, BigQuery) to a project/corporate IPs VPC-SC perimeter per project + access level with IP ranges
    Shared VPC admin across folders Compute Shared VPC Admin + Project IAM Admin at org level
    Force VPC-to-VPC traffic through an inspection VPC NCC star topology: inspection VPC center, others edge (no edge-to-edge)
    Inspect subnet-to-subnet traffic with NVAs Policy-based route: source, destination, next hop ILB, scoped by tag
    Send tagged VMs through Secure Web Proxy Static 0.0.0.0/0 route with network tag
    Find overly broad allow rules Firewall Insights, overly permissive rules

    NCC star topology

    Exam traps

    • A deny-all at priority 0 overrides every allow; lower number wins.
    • Implied rules do not log; make an explicit rule.
    • origin.ip vs origin.user_ip behind a proxy.
    • Network tags, not labels, in firewall rules.
    • Packet Mirroring collectors must be in the sources' region.
    • NCC star topology blocks edge-to-edge; mesh does not.
    • VPC-SC protects Google APIs, not load balancer clients.

    Docs

    The rest of this chapter is part of the GCP-PCNE premium course

    Unlock every chapter, all 316 questions and spaced review with All access or a 90-day exam pass. Every Fundamentals exam stays free, and the first chapter of every exam is open.

    Chapters