Professional Cloud Security Engineer
Prepare and test your skills
Prepare and test your skills
Designing secure multi-tier architectures requires isolating backend compute and database tiers from the public internet to minimize the overall attack surface. Workloads in these internal tiers should never receive public IP addresses. Instead, administrators use Private Google Access and Private Service Connect (PSC) to reach Google APIs and managed services through private internal IP routing. When internal instances require outbound internet access for software updates, traffic is routed through Cloud NAT or Secure Web Proxy rather than exposing instances directly to the internet.
Internal application traffic between architectural tiers is segmented and distributed using Internal Load Balancers (ILBs). Advanced Envoy-based internal proxy load balancers require a dedicated proxy-only subnet with a minimum prefix length of /26, though a /23 prefix is recommended to support future growth. These load balancers provide automatic network-level encryption across Google Cloud while supporting protocols like HTTPS and HTTP/2 to the backends. Network firewall rules must explicitly allow incoming traffic from the proxy-only subnet to backend instances to ensure proper routing.
Organizations use Private Service Connect to securely exchange traffic across separate VPC networks and third-party services without configuring transitive VPC peering. A service producer publishes an internal load balancer using a service attachment backed by a dedicated PSC NAT subnet of at least /29 in size. Consumers connect through a local consumer endpoint address, while the producer applies source network address translation (SNAT) to ingress packets. Producers govern incoming connections by selecting an acceptance policy:
A client VM in the consumer VPC reaches a Private Service Connect consumer endpoint using a private internal IP; the connection crosses to a service attachment in the producer VPC without VPC peering, which forwards traffic to an internal load balancer and backend VMs while source-NATing packets into a dedicated PSC NAT subnet. The producer governs connections via automatic acceptance or explicit project approval.
To block lateral movement across the network, administrators configure VPC firewall rules based on the principle of least privilege. These rules restrict traffic strictly to designated subnets, required ports, and identity-based network tags. Workloads are also placed within VPC Service Controls to establish logical perimeters around Google-managed resources and prevent unauthorized data exfiltration. Security teams monitor these encapsulated paths using VPC Flow Logs and Network Intelligence Center for continuous operational visibility.
A custom Google Cloud VPC network containing three dedicated subnets for the presentation, application, and data tiers. Traffic flows sequentially from the load balancer to web VMs, then to application VMs, then to the database, while a firewall rule denies non-adjacent traffic directly from the presentation tier to the data tier.
Multi-tier VPC subnetting isolates different layers of an application—such as the presentation, application, and data tiers—into dedicated subnets within a custom Virtual Private Cloud (VPC) network. This design applies a defense-in-depth model where each tier operates independently and communicates only with adjacent tiers. Traffic must flow sequentially from frontend to application and from application to database, while all non-adjacent communication paths are blocked by default. Structuring networks globally, regionally, or zonally supports high availability, hub-and-spoke topologies, and hybrid cloud designs.
Traditional network security relies entirely on IP addresses, but identity-based firewall policies extend protection by using service accounts, secure tags, and hierarchical firewall policies. Secure tags allow administrators to group virtual machines logically and enforce least privilege access between adjacent tiers. This model operates under a zero-trust framework where all traffic between individual virtual machines is denied by default until an explicit allow rule is defined. Combining dedicated subnets with identity-driven rules prevents attackers from moving laterally if a single instance is compromised.
For containerized environments, Google Kubernetes Engine (GKE) Network Policies enforce granular microsegmentation at the pod level. These policies act as distributed firewalls, controlling communication based on Kubernetes labels and namespaces rather than VM IP addresses. Administrators configure a default-deny policy for pod ingress and egress, then create explicit rules that permit only required traffic between application tiers. This creates a secure boundary around individual workloads directly inside the cluster.
To safeguard data moving across internal networks, Cloud Service Mesh provides mutual TLS (mTLS) for microservices. With mTLS, the client and server workloads authenticate each other using managed cryptographic certificates before opening a connection. This process establishes an encrypted channel that protects data in transit against interception and tampering across the VPC network. Combining mTLS with GKE network policies ensures that only authorized, verified identities can establish network sessions.
Integrating these mechanisms produces a complete defense-in-depth architecture for multi-tier applications. VPC subnets establish coarse boundaries across the network, GKE network policies enforce precise container-level isolation, and Cloud Service Mesh mTLS adds cryptographic identity and encryption for all service interactions. This layered strategy significantly reduces the application's attack surface and ensures that network boundaries, identities, and data flows remain secure at every tier.
Private Service Connect enables organizations to securely exchange traffic across separate VPC networks and third-party services without configuring transitive VPC peering. A service producer publishes an internal load balancer using a service attachment backed by a dedicated PSC NAT subnet of at least /29 in size. Producers can choose between automatic connection acceptance or explicit project approval to govern incoming connections.
Advanced Envoy-based internal proxy load balancers require a dedicated proxy-only subnet with a minimum prefix length of /26, though a /23 prefix is recommended to support future growth. Network firewall rules must explicitly allow incoming traffic from the proxy-only subnet to backend instances to ensure proper routing.
GKE Network Policies enforce granular microsegmentation at the pod level, acting as distributed firewalls that control communication based on Kubernetes labels and namespaces rather than VM IP addresses. Administrators configure a default-deny policy for pod ingress and egress, then create explicit rules that permit only required traffic between application tiers.
Cloud Service Mesh provides mutual TLS (mTLS) for microservices, where client and server workloads authenticate each other using managed cryptographic certificates before opening a connection. This establishes an encrypted channel that protects data in transit against interception and tampering across the VPC network.
An enterprise is designing a secure three-tier application architecture on Google Cloud across isolated VPC networks for the presentation tier, business logic tier, and database tier. The security team establishes the following boundary isolation requirements:
Which combination of network isolation and data encapsulation controls should you deploy?
Establish Private Services Access (PSA) using an allocated internal IP range across all tiers, configure classic Cloud VPN tunnels between tier subnets, and assign ephemeral external IP addresses restricted by VPC firewall rules.
Deploy Private Service Connect (PSC) endpoints to publish and consume business microservices across VPCs, configure an Internal Application Load Balancer with a proxy-only subnet for Layer 7 internal routing, and enable Private Google Access on the backend subnets.
Deploy multi-NIC VM instances to bridge the tier VPCs, deploy an Internal Passthrough Network Load Balancer for Layer 7 traffic management, and route Google API requests through a custom Router appliance VM.
Configure a VPC Network Peering mesh between all application VPCs, deploy an External Application Load Balancer with Cloud Armor for internal path-based routing, and configure Cloud NAT for Google API egress.