Section 3 — マネージドネットワークサービス

出題比率 ~16%。Cloud Load Balancing、Cloud CDN、Cloud DNS。LB Deepdive で決定木を視覚化。

LB の 5 次元分類

次元選択肢
DirectionExternal / Internal
LayerApplication (L7) / Network (L4)
ScopeGlobal / Regional / Cross-region
ArchitectureProxy / Passthrough
Tier (External)Premium / Standard
覚え方: 方向 × L7/L4 × グローバル/リージョナル × プロキシ/パススルー の 4 軸で要件を仕分ける。

NEG (Network Endpoint Group) の使い分け

Zonal NEG (GCE_VM_IP_PORT)

VM の IP:port を直接登録。Container-native LB で Pod を直接 backend に。

Internet NEG (FQDN/IP)

External LB のバックエンドにオンプレ/他クラウド。

Serverless NEG

Cloud Run / App Engine / Cloud Functions / API Gateway。

Hybrid NEG

Internal LB でオンプレ/他クラウドをバックエンドに。

PSC NEG

PSC でマネージドサービスを backend に。

Cloud DNS ルーティングポリシー

Weighted Round Robin

  • 重み付き分散
  • Canary / A-B テスト

Geolocation

  • クライアント発信元の地域
  • マルチリージョンへの誘導

Failover

  • Primary + Backup
  • HC 連動切替

Health-checked Multi-target

  • 複数の正常エンドポイントから選択

ハイブリッド DNS パターン

オンプレ DC corp.example.com Onprem DNS 10.0.0.53 GCP VPC gcp.example.com (private) Cloud DNS private zone Outbound forwarding zone source: 35.199.192.0/19 Inbound server policy VPC ごとに inbound IP 払い出し

確認問題

Q. TCP プロトコルでクライアント IP を保持し、Anycast IP でグローバル受信したい。

B。 Passthrough は 送信元 IP 保持。External Passthrough NLB は Anycast IP 利用可。