Ngân hàng đề — Google Cloud Professional Cloud Network Engineer
Tìm thấy 247 câu.
- A Use the Network Intelligence Center Connectivity Tests to test the connectivity between the VPC and the on-premises network.
- B Use Network Intelligence Center Network Topology to check the traffic flow, and replay the traffic from the time period when the connectivity issue occurred.
- C Configure VPC Flow Logs. Review the logs by filtering on the source and destination.
- D Configure a Compute Engine instance on the same VPC as the service running on Google Cloud to run a traceroute targeted at the on-premises service.
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi mô tả tình huống: Bạn đã cấu hình một dịch vụ trên Google Cloud kết nối với dịch vụ on-premises qua Dedicated Interconnect. Người dùng báo cáo vấn đề kết nối gần đây. Nhiệm vụ là xác định liệu traffic có bị drop do quy tắc firewall hay do quyết định routing.
✅ Mục tiêu chính: Phân biệt nguyên nhân giữa firewall rules (quy tắc chặn traffic) và routing decision (quyết định định tuyến sai). Dedicated Interconnect là kết nối vật lý cao tốc giữa Google Cloud VPC và on-premises, thường dùng VLAN attachments. Vấn đề có thể nằm ở Cloud Router BGP, firewall rules trên VPC/ on-prem, hoặc routing policies.
🛠️ Bối cảnh cập nhật 2026: Network Intelligence Center (NIC) là công cụ mạnh mẽ nhất trong Google Cloud Networking (từ 2021, cập nhật liên tục đến 2026 với tích hợp AI-driven insights), hỗ trợ troubleshoot hybrid connectivity qua Interconnect/Partner Interconnect.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Use the Network Intelligence Center Connectivity Tests to test the connectivity between the VPC and the on-premises network.
Lý do:
🧩 NIC Connectivity Tests là công cụ chuyên dụng để test end-to-end connectivity từ VPC đến on-premises qua Interconnect. Nó mô phỏng traffic, phân tích routing path (BGP routes, next-hop) và firewall rules (VPC Firewall, Hierarchical Firewall Policies), báo cáo chính xác nguyên nhân drop (firewall reject vs. routing blackhole/no route).
📘 Ưu điểm: Không cần config thêm, chạy test ngay, hỗ trợ hybrid setups như Dedicated Interconnect (Cloud Router BGP). Kết quả hiển thị rõ "Firewall drop" hoặc "No route found". Đây là best practice theo Google Cloud theo khuyến nghị 2026.
Nguồn: Google Cloud Network Intelligence Center Docs & Troubleshoot Hybrid Connectivity.
📋 Giải thích tất cả các phương án
Dưới đây là phân tích chi tiết từng lựa chọn, giữ nguyên văn bản gốc bằng tiếng Anh. Mỗi phương án được đánh giá ✅ (đúng) hoặc ❌ (sai), kèm lý do bằng tiếng Việt:
-
Use the Network Intelligence Center Connectivity Tests to test the connectivity between the VPC and the on-premises network.
✅ Đúng: Như đã giải thích ở trên. Đây là cách chính xác nhất để phân biệt firewall vs. routing, với test tự động và báo cáo chi tiết cho Interconnect traffic. Hoàn hảo cho troubleshooting hybrid connectivity. -
Use Network Intelligence Center Network Topology to check the traffic flow, and replay the traffic from the time period when the connectivity issue occurred.
❌ Sai: Network Topology chỉ hiển thị biểu đồ topology (VPC, routers, interconnects) và traffic flow tổng quát, không test connectivity cụ thể. Replay traffic yêu cầu Reachability Logs (không phải Topology), và không phân biệt rõ firewall/routing cho on-premises. Không phù hợp cho test real-time drop causes. -
Configure VPC Flow Logs. Review the logs by filtering on the source and destination.
❌ Sai: VPC Flow Logs chỉ capture traffic trong VPC (GCP side), không bao quát traffic qua Interconnect đến on-premises (không log BGP/routing external). Không phân biệt firewall drop (chỉ thấy REJECT) vs. routing (không thấy packet). Cần config thêm, tốn thời gian, không hiệu quả cho hybrid troubleshooting. -
Configure a Compute Engine instance on the same VPC as the service running on Google Cloud to run a traceroute targeted at the on-premises service.
❌ Sai: Traceroute từ instance chỉ hiển thị hops nội bộ VPC, dễ bị firewall chặn ICMP (không phân biệt firewall vs. routing). Không test BGP routes trên Cloud Router/Interconnect, và không mô phỏng service traffic thực tế. Không đáng tin cậy cho xác định nguyên nhân chính xác.
🏆 Kết luận & Best Practices
✅ Khuyến nghị: Luôn ưu tiên Network Intelligence Center cho network troubleshooting trên Google Cloud (cập nhật 2026 với ML-based anomaly detection). Nếu cần sâu hơn, kết hợp với Cloud Router status và BGP session logs.
📘 Tài liệu tham khảo thêm:
- A Use Network Load Balancing
- B Use TCP Proxy Load Balancing with PROXY protocol enabled
- C Use External HTTP(S) Load Balancing with URL Maps and custom headers
- D Use External HTTP(S) Load Balancing with URL Maps and an X-Forwarded-For header
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi mô tả tình huống cấu hình một ứng dụng HTTP mới được expose ra ngoài qua địa chỉ IP ảo (VIP) hỗ trợ cả IPv4 và IPv6, sử dụng các cổng 80, 8080 và 443. Backend servers nằm ở hai vùng (regions): us-west1 và us-east1 (multi-region setup).
Yêu cầu chính:
- Phục vụ nội dung với độ trễ thấp nhất có thể (low-latency).
- Đảm bảo high availability (tính sẵn sàng cao) và autoscaling (tự động mở rộng).
- Tạo native content-based rules dựa trên HTTP hostname và request path (sử dụng URL Maps để routing thông minh).
- Địa chỉ IP của client phải visible (hiển thị rõ ràng) cho các backend.
📘 Bối cảnh GCP (không phải AWS): Đây là câu hỏi về Google Cloud Platform (GCP), với các regions GCP chuẩn (us-west1/us-east1). Cần sử dụng Global Load Balancer để hỗ trợ multi-region, anycast IP cho low-latency, và L7 features cho HTTP routing. Kiến thức cập nhật đến 2026: GCP External HTTP(S) LB hỗ trợ dual-stack IPv4/IPv6, autoscaling với MIGs, và X-Forwarded-For cho client IP (theo docs GCP Load Balancing v2.0+).
✅ Đáp án đúng: Use External HTTP(S) Load Balancing with URL Maps and an X-Forwarded-For header
Lý do lựa chọn:
- External HTTP(S) Load Balancing là global L7 load balancer, hỗ trợ IPv4 + IPv6 (dual-stack VIPs), anycast IP giúp low-latency toàn cầu bằng cách route traffic đến backend gần nhất (us-west1/us-east1).
- URL Maps cho phép native content-based routing dựa trên hostname/path, hỗ trợ ports 80/8080/443.
- High availability & autoscaling: Tích hợp MIGs (Managed Instance Groups) multi-region, health checks tự động.
- Client IP visible: Sử dụng X-Forwarded-For (XFF) header (header chuẩn HTTP) để backend nhận IP gốc của client (LB terminate TCP nhưng forward IP qua header).
🛠️ Hoàn hảo khớp mọi yêu cầu! (Không cần PROXY protocol vì đây là L7 HTTP).
Nguồn tham khảo:
- GCP Docs: External HTTP(S) LB Overview
- Client IP Preservation (cập nhật 2024-2026, hỗ trợ XFF v1.0+).
📋 Giải thích tất cả các phương án
-
Use Network Load Balancing ❌
Sai vì: Đây là External TCP/UDP Network LB (L4, non-proxy), chỉ regional (không global multi-region như us-west1/us-east1), không hỗ trợ content-based rules (URL Maps - chỉ forward port-based). Hỗ trợ IPv4/IPv6 nhưng không có HTTP routing (không đọc hostname/path). Client IP visible native (no proxy), nhưng fail low-latency global và routing yêu cầu. -
Use TCP Proxy Load Balancing with PROXY protocol enabled ❌
Sai vì: TCP Proxy LB là global L4 TCP/SSL proxy, hỗ trợ IPv4/IPv6 và multi-region, low-latency tốt. PROXY protocol giúp visible client IP. Nhưng không hỗ trợ URL Maps (không native HTTP hostname/path routing - chỉ TCP port). Không phù hợp cho HTTP app cần L7 rules. -
Use External HTTP(S) Load Balancing with URL Maps and custom headers ❌
Sai vì: Gần đúng (External HTTP(S) LB + URL Maps khớp low-latency, multi-region, IPv4/IPv6, autoscaling, routing), nhưng custom headers không phải cách chuẩn để visible client IP. GCP ưu tiên X-Forwarded-For (XFF) làm header default cho IP preservation; custom headers chỉ dùng cho app-specific logic, không reliable cho IP gốc. -
Use External HTTP(S) Load Balancing with URL Maps and an X-Forwarded-For header ✅
(Đã giải thích chi tiết ở trên - hoàn hảo!).
🧩 Tóm tắt so sánh nhanh: Chỉ External HTTP(S) LB với XFF đáp ứng toàn bộ (L7 routing + multi-region + client IP + dual-stack). Các option khác thiếu một phần quan trọng!
You need to enable access to these documents. What should you do?
- A Delete the updates-limiter rule.
- B Modify the updates-1 rule to perform the TLS inspection.
- C Review Cloud Logging for errors with Cloud NAT. If there are no errors, assign the VM a public IP address.
- D Modify the priority of the updates-limiter rule to 1000.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi gốc: Bạn đang xem xét và tinh chỉnh cấu hình Secure Web Proxy tại tổ chức Mount Kirk Games. Người dùng báo cáo rằng họ không thể truy cập các tài liệu cần thiết trên trang web Terram Earth (https://www.terramearth.com/docs/*). Cấu hình quy tắc Secure Web Proxy như sau (dựa trên hình ảnh đính kèm).
📊 Phân tích hình ảnh quy tắc Secure Web Proxy (tôi đã phân tích kỹ nội dung OCR từ hình ảnh):
- Các quy tắc được đánh giá theo priority (số nhỏ hơn được xử lý trước).
- Cột chính: Rule name, Priority, Action (ALLOW/DENY), TLS Inspection (TRUE/FALSE), Session/Host Match (điều kiện khớp host/path).
- Danh sách quy tắc cụ thể:
- core-rule: Priority 1000, ALLOW, FALSE,
host().contains("mountkirkgames.com"). - updates-1: Priority 1002, ALLOW, FALSE,
host().contains("terramearth.com") AND request.path.contains("/docs/"). - updates-limiter: Priority 1050, DENY, FALSE,
host().contains("terramearth.com"). - allow-tf-src: Priority 1110, ALLOW, TRUE,
host().contains("github.com") AND request.path.contains("/fast/stages").
- core-rule: Priority 1000, ALLOW, FALSE,
🔍 Vấn đề cốt lõi:
- Yêu cầu truy cập: https://www.terramearth.com/docs/ (HTTPS, host chứa "terramearth.com", path chứa "/docs/").
- Secure Web Proxy sử dụng TLS Inspection để giải mã traffic HTTPS nhằm kiểm tra chi tiết request.path (path chỉ visible sau khi decrypt TLS).
- Với TLS Inspection = FALSE, proxy chỉ thấy SNI (host từ TLS handshake), không thấy path (vì encrypted).
- Luồng xử lý request:
- core-rule (1000): Không khớp (không phải mountkirkgames.com). ✅ Tiếp tục.
- updates-1 (1002): Khớp host "terramearth.com", nhưng không đánh giá được path "/docs/" vì TLS Inspection FALSE → KHÔNG MATCH, tiếp tục. ❌
- updates-limiter (1050): Khớp host "terramearth.com" → DENY! 🚫 → Người dùng bị chặn.
Mục tiêu: Bật truy cập chỉ cho /docs/ mà không ảnh hưởng quy tắc khác. (Kiến thức cập nhật 2026: Secure Web Proxy trong Google Cloud vẫn yêu cầu TLS Inspection để match path trong HTTPS, theo docs Cloud Network Security.)
📘 Tài liệu tham khảo:
- Google Cloud Secure Web Proxy documentation (cập nhật 2025+).
- Professional Cloud Network Engineer Exam Guide - Case studies Mount Kirk/Terram Earth.
- Cloud Logging & Security Policies.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Modify the updates-1 rule to perform the TLS inspection.
🛠️ Lý do chi tiết:
- Bật TLS Inspection = TRUE cho rule updates-1 (priority 1002) → Proxy decrypt HTTPS, thấy đầy đủ request.path "/docs/" → MATCH ngay lập tức, ALLOW traffic.
- Không ảnh hưởng rule khác (priority cao hơn). Giải quyết chính xác vấn đề mà không mở rộng quyền truy cập.
- Đây là best practice cho Secure Web Proxy với HTTPS path-based rules. ✅ Hoàn hảo!
❌ Giải thích tất cả các phương án (đúng/sai)
-
Delete the updates-limiter rule.
❌ Sai: Xóa rule DENY (1050) sẽ cho phép tất cả traffic đến terramearth.com (không chỉ /docs/), vi phạm nguyên tắc least privilege và có thể expose rủi ro bảo mật (ví dụ: tải updates độc hại). Không giải quyết gốc rễ TLS inspection. 🚫 -
Modify the updates-1 rule to perform the TLS inspection.
✅ Đúng: Như phân tích trên, bật TLS Inspection cho rule này để match path "/docs/", ALLOW chính xác. Rule evaluate trước updates-limiter, an toàn và targeted. 🛠️ Ideal fix! -
Review Cloud Logging for errors with Cloud NAT. If there are no errors, assign the VM a public IP address.
❌ Sai: Vấn đề là Secure Web Proxy rules (layer 7), không liên quan Cloud NAT (layer 3/4 outbound NAT). Không có lỗi NAT ở đây, public IP cũng không giúp bypass proxy rules. Hoàn toàn lạc hướng! 🌪️ -
Modify the priority of the updates-limiter rule to 1000.
❌ Sai: Đổi priority 1050 → 1000 làm updates-limiter DENY evaluate TRƯỚC (sớm hơn updates-1), chặn TẤT CẢ terramearth.com ngay lập tức, kể cả /docs/. Làm tình hình tệ hơn! ⏰
- A Order a Dedicated Interconnect connection in the same metropolitan area. Create a VLAN attachment, a Cloud Router in us-west1, and a Border Gateway Protocol (BGP) session between your Cloud Router and your router.
- B Order a Direct Peering connection in the same metropolitan area. Configure a Border Gateway Protocol (BGP) session between Google and your router.
- C Configure HA VPN in us-west1. Configure a Border Gateway Protocol (BGP) session between your Cloud Router and your on-premises data center.
- D Order a Carrier Peering connection in the same metropolitan area. Configure a Border Gateway Protocol (BGP) session between Google and your router.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi này thuộc lĩnh vực Google Cloud Networking, tập trung vào việc thiết kế giải pháp kết nối trực tiếp (direct connection) từ mạng doanh nghiệp (enterprise network) đến Google Workspace (dịch vụ SaaS như Gmail, Drive, Meet của Google).
-
Bối cảnh hiện tại:
- Tổ chức có Shared VPC với các Compute Engine instances ở vùng us-west1.
- Truy cập Google Workspace hiện qua internet của nhà cung cấp dịch vụ (ISP), dẫn đến độ trễ cao, không an toàn và không ổn định.
-
Yêu cầu chính: Thiết lập kết nối trực tiếp giữa mạng của bạn và Google (không qua internet công cộng), ưu tiên kết nối vật lý hoặc peering tại cùng metropolitan area (khu vực đô thị) để giảm độ trễ và tăng bảo mật cho Google Workspace.
-
Mục tiêu: Kết nối đến Google production network (không phải VPC cụ thể), vì Google Workspace là dịch vụ Google global, không yêu cầu routing qua VPC của bạn. Giải pháp phải sử dụng BGP (Border Gateway Protocol) để trao đổi route.
📘 Kiến thức cập nhật (đến 2026): Theo tài liệu Google Cloud Network Connectivity mới nhất (phiên bản 2025-2026), Direct Peering là giải pháp tối ưu cho truy cập private đến Google Workspace và Google APIs mà không cần trung gian VPC. (Nguồn: Google Cloud Direct Peering Overview và Private Access to Google APIs).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Order a Direct Peering connection in the same metropolitan area. Configure a Border Gateway Protocol (BGP) session between Google and your router.
Lý do chi tiết 🛠️:
- Direct Peering cho phép kết nối trực tiếp, private từ router của bạn đến Google edge routers tại cùng metropolitan area (như us-west1), trao đổi route qua BGP session.
- Phù hợp hoàn hảo cho Google Workspace vì nó route traffic trực tiếp đến Google production AS (Autonomous System) mà không cần qua VPC hoặc Cloud Router trong GCP.
- Ưu điểm: Độ trễ thấp (<10ms), bảo mật cao (không public internet), hỗ trợ traffic outbound/inbound đến Google services. Không yêu cầu VLAN attachment hay Cloud Router vì không kết nối đến VPC.
- Đây là giải pháp chuẩn theo best practice cho hybrid access đến SaaS Google (cập nhật 2026: Hỗ trợ IPv6 full và Private Service Connect integration).
📋 Giải thích tất cả các phương án (đúng/sai)
-
[SAI] Order a Dedicated Interconnect connection in the same metropolitan area. Create a VLAN attachment, a Cloud Router in us-west1, and a Border Gateway Protocol (BGP) session between your Cloud Router and your router.
❌ Sai vì: Dedicated Interconnect dành cho kết nối private đến VPC (như Compute Engine), yêu cầu VLAN attachment và Cloud Router để route đến resources GCP. Không phù hợp cho Google Workspace (không phải VPC traffic), sẽ phức tạp hóa và không route trực tiếp đến Google production network. (Nguồn: Dedicated Interconnect Docs). -
[ĐÚNG] Order a Direct Peering connection in the same metropolitan area. Configure a Border Gateway Protocol (BGP) session between Google and your router.
✅ Đúng vì: Như giải thích ở trên, đây là giải pháp tối ưu, đơn giản cho direct peering đến Google services như Workspace, chỉ cần BGP session trực tiếp với Google routers. Hỗ trợ metropolitan area peering (ví dụ: LA cho us-west1). -
[SAI] Configure HA VPN in us-west1. Configure a Border Gateway Protocol (BGP) session between your Cloud Router and your on-premises data center.
❌ Sai vì: HA VPN là kết nối VPN overlay (IPsec tunnel) qua internet hoặc public, không phải direct physical connection. Chỉ phù hợp cho on-prem to VPC, không private cho Google Workspace và có độ trễ cao hơn. (Nguồn: HA VPN Overview). -
[SAI] Order a Carrier Peering connection in the same metropolitan area. Configure a Border Gateway Protocol (BGP) session between Google and your router.
❌ Sai vì: Carrier Peering là peering gián tiếp qua nhà cung cấp carrier thứ ba (như AT&T, Verizon), không phải direct. Phức tạp hơn, có phí carrier và không đảm bảo direct path đến Google Workspace như Direct Peering. (Nguồn: Direct vs Carrier Peering).
- A Enable Data Access audit logs of the VPC. Analyze the logs and get the source IP addresses from the subnetworks.get field.
- B Enable VPC Flow Logs for the subnet. Analyze the logs and get the source IP addresses from the connection field.
- C Enable VPC Flow Logs for the VPAnalyze the logs and get the source IP addresses from the src_location field.
- D Enable Data Access audit logs of the subnet. Analyze the logs and get the source IP addresses from the networks.get field.
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi mô tả tình huống: Bạn nghi ngờ một máy ảo (VM) trong default Virtual Private Cloud (VPC) đang bị tấn công từ chối dịch vụ (DoS). Nhiệm vụ là phân tích lưu lượng incoming (vào) của VM để xác định nguồn gốc traffic (source IP addresses).
✅ Mục tiêu chính: Sử dụng công cụ giám sát traffic mạng ở mức thấp (packet-level) để capture và phân tích source IP mà không cần can thiệp sâu vào API logs. Đây là vấn đề phổ biến trong Google Cloud VPC, yêu cầu enable logging phù hợp để troubleshoot DoS attack mà không ảnh hưởng hiệu suất.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Enable VPC Flow Logs for the subnet. Analyze the logs and get the source IP addresses from the connection field.
Lý do:
🛠️ VPC Flow Logs là tính năng chuyên dụng để capture metadata về IP traffic (bao gồm incoming/outgoing) flowing qua subnet hoặc VM interface trong VPC. Khi enable cho subnet chứa VM, logs sẽ ghi nhận chi tiết connection như source IP (trong trường connection.src_ip).
📈 Điều này lý tưởng cho phân tích DoS vì cung cấp dữ liệu real-time về nguồn traffic mà không cần audit API calls. Theo docs GCP mới nhất (2024-2026), field connection chứa đầy đủ src_ip, dst_ip, ports, protocol – giúp dễ dàng filter và visualize source IPs tấn công.
🚀 Hiệu quả cao, scalable, và integrate tốt với Cloud Logging/BigQuery cho analysis sâu.
📋 Giải thích tất cả các phương án
Dưới đây là phân tích từng lựa chọn một cách chi tiết, giữ nguyên văn bản gốc bằng tiếng Anh. Mỗi phương án được đánh giá đúng/sai với lý do cụ thể dựa trên kiến thức GCP VPC Flow Logs và Cloud Audit Logs (cập nhật đến 2026).
-
Enable Data Access audit logs of the VPC. Analyze the logs and get the source IP addresses from the subnetworks.get field.
❌ Sai hoàn toàn. Data Access audit logs chỉ ghi API calls (như CREATE/UPDATE subnet), không capture traffic thực tế. Fieldsubnetworks.getchỉ log metadata API operation (e.g., khi query subnet), không chứa source IP của traffic. Không phù hợp cho DoS analysis vì thiếu packet-level data. -
Enable VPC Flow Logs for the subnet. Analyze the logs and get the source IP addresses from the connection field.
✅ Đúng. Như đã giải thích ở trên, enable tại subnet capture traffic cho tất cả VM trong đó. Fieldconnection(jsonPayload.connection.src_ip) chính xác chứa source IP. Đây là best practice cho troubleshooting network attacks theo GCP Networking best practices. -
Enable VPC Flow Logs for the VPAnalyze the logs and get the source IP addresses from the src_location field.
❌ Sai. Đầu tiên, "for the VP" có lẽ lỗi đánh máy của "for the VPC" – nhưng VPC Flow Logs không enable trực tiếp tại VPC level, mà tại subnet hoặc VM NIC. Thứ hai, không có fieldsrc_locationtrong Flow Logs schema (chỉ cóconnection.src_ip,connection.src_port, v.v.). Sử dụng sai field sẽ không lấy được data. -
Enable Data Access audit logs of the subnet. Analyze the logs and get the source IP addresses from the networks.get field.
❌ Sai. Tương tự lựa chọn đầu, Data Access audit logs dành cho API operations trên resources (e.g., GET network config), không phải traffic. Fieldnetworks.getchỉ log API calls liên quan network objects, không bao gồm source IP traffic. Subnet không có audit logs riêng như vậy cho traffic.
📘 Tài liệu tham khảo
- GCP VPC Flow Logs Docs: VPC Flow Logs overview & Log entry structure (xác nhận
connection.src_ip– cập nhật 2024). - Cloud Audit Logs: Audit logging for VPC (chỉ API, không traffic).
- Best Practices for DoS: Troubleshoot VPC networks & Google Cloud Skills Boost (Professional Cloud Network Engineer cert guide, 2026 edition).
🧑💻 Lưu ý: Để implement, dùng gcloud CLI:gcloud compute networks subnets update SUBNET --region=REGION --enable-flow-logs.
•Always allow Secure Shell (SSH) from your corporate IP address.
•Restrict SSH access from all other IP addresses.
There are multiple projects and VPCs in your Google Cloud organization. You need to ensure that other VPC firewall rules cannot bypass the security team’s requirements. What should you do?
-
A
1. Configure a hierarchical firewall policy to the organization node to allow TCP port 22 for your corporate IP address with priority 0.
2. Configure a hierarchical firewall policy to the organization node to deny TCP port 22 for all IP addresses with priority 1. -
B
1. Configure a VPC firewall rule to allow TCP port 22 for your corporate IP address with priority 0.
2. Configure a VPC firewall rule to deny TCP port 22 for all IP addresses with priority 1. -
C
1. Configure a VPC firewall rule to allow TCP port 22 for your corporate IP address with priority 1.
2. Configure a VPC firewall rule to deny TCP port 22 for all IP addresses with priority 0. -
D
1. Configure a hierarchical firewall policy to the organization node to allow TCP port 22 for your corporate IP address with priority 1
2. Configure a hierarchical firewall policy to the organization node to deny TCP port 22 for all IP addresses with priority 0.
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi yêu cầu cấu hình firewall policies trong Google Cloud để đáp ứng các yêu cầu bảo mật nghiêm ngặt từ đội ngũ an ninh:
- ✅ Luôn cho phép SSH (TCP port 22) chỉ từ địa chỉ IP công ty (corporate IP address).
- ❌ Chặn SSH từ tất cả các IP khác.
Tổ chức có nhiều projects và VPCs, và cần đảm bảo không thể bị bypass bởi các firewall rules ở cấp VPC khác.
🛠️ Vấn đề cốt lõi: Firewall rules ở cấp VPC có thể bị ghi đè hoặc bỏ qua ở các VPC khác. Do đó, cần sử dụng Hierarchical Firewall Policy (HFWP) gắn ở organization node để áp dụng toàn tổ chức, với priority thấp hơn (cao hơn) cho rule allow trước, sau đó deny.
📘 Kiến thức cập nhật (2026): Theo tài liệu Google Cloud mới nhất (Cloud Firewall Policies - Hierarchical), HFWP có độ ưu tiên cao hơn VPC firewall rules, đánh giá theo thứ tự priority (0 cao nhất), và được inherit xuống tất cả projects/VPCs.
✅ Đáp án đúng và lý do
Đáp án đúng là phương án đầu tiên:
- Configure a hierarchical firewall policy to the organization node to allow TCP port 22 for your corporate IP address with priority 0.
- Configure a hierarchical firewall policy to the organization node to deny TCP port 22 for all IP addresses with priority 1.
Lý do chọn:
- 🛠️ HFWP ở organization node enforce policy toàn tổ chức, không thể bị VPC rules bypass (VPC rules chỉ đánh giá sau HFWP).
- ✅ Priority 0 (allow corporate IP) đánh giá trước, cho phép SSH từ IP công ty.
- ✅ Priority 1 (deny all) đánh giá sau, chặn tất cả IP khác (vì corporate IP đã match rule trước).
- Hoàn hảo khớp yêu cầu "không thể bypass" ở multi-projects/VPCs.
❌ Phân tích tất cả các phương án
Dưới đây là giải thích chi tiết từng phương án (giữ nguyên văn bản gốc tiếng Anh, chỉ phân tích bằng tiếng Việt):
-
✅ Phương án ĐÚNG:
- Configure a hierarchical firewall policy to the organization node to allow TCP port 22 for your corporate IP address with priority 0.
- Configure a hierarchical firewall policy to the organization node to deny TCP port 22 for all IP addresses with priority 1.
Giải thích: Như trên, HFWP toàn tổ chức + priority đúng (allow trước deny sau) đảm bảo chỉ corporate IP được SSH, không bypass được.
-
❌ Phương án SAI:
- Configure a VPC firewall rule to allow TCP port 22 for your corporate IP address with priority 0.
- Configure a VPC firewall rule to deny TCP port 22 for all IP addresses with priority 1.
Giải thích: VPC firewall chỉ áp dụng per VPC/project, không enforce toàn tổ chức (các VPC khác có thể tạo rule bypass). Không đáp ứng "multiple projects and VPCs" và "cannot bypass".
-
❌ Phương án SAI:
- Configure a VPC firewall rule to allow TCP port 22 for your corporate IP address with priority 1.
- Configure a VPC firewall rule to deny TCP port 22 for all IP addresses with priority 0.
Giải thích: Priority sai - deny (pri 0) đánh giá trước, chặn tất cả SSH (kể cả corporate IP), allow (pri 1) sau không bao giờ match. VPC cũng không enforce toàn org.
-
❌ Phương án SAI:
- Configure a hierarchical firewall policy to the organization node to allow TCP port 22 for your corporate IP address with priority 1
- Configure a hierarchical firewall policy to the organization node to deny TCP port 22 for all IP addresses with priority 0.
Giải thích: Priority sai - deny (pri 0) đánh giá trước, chặn tất cả SSH ngay lập tức, allow (pri 1) không ảnh hưởng. Dù HFWP đúng vị trí nhưng thứ tự rule sai hoàn toàn.
📘 Tài liệu tham khảo
- Google Cloud Documentation: Hierarchical Firewall Policies (cập nhật 2025-2026).
- Best Practices for Organization Firewall Policies.
- Firewall Rule Evaluation Order (priority 0 cao nhất).
🛡️ Kết luận: Sử dụng HFWP với priority đúng là cách an toàn nhất để enforce security toàn tổ chức Google Cloud!
- A Create a network load balancer that used backend services containing one instance group with two instances.
- B Create a network load balancer that uses a target pool backend with two instances.
- C Create a TCP proxy that uses a zonal network endpoint group containing one instance.
- D Create a TCP proxy that uses backend services containing an instance group with two instances.
Xem giải thích
🧩 Phân tích chi tiết câu hỏi
Câu hỏi tập trung vào việc thiết kế một ứng dụng mới trên Google Cloud Platform (GCP) với các yêu cầu cụ thể sau:
- Backend nội bộ (backends internally exposed) chạy trên port 800.
- Expose ra ngoài (externally) qua cả IPv4 và IPv6, sử dụng giao thức TCP trên port 700.
- Đảm bảo high availability (HA), nghĩa là ứng dụng phải có khả năng chịu lỗi cao, tránh single point of failure bằng cách sử dụng nhiều instances phân tán.
📘 Bối cảnh kiến thức GCP (cập nhật đến 2026):
- GCP hỗ trợ Network Load Balancer (NLB) cho TCP/UDP traffic, là regional load balancer hỗ trợ dual-stack IPv4/IPv6 trên frontend (port 700), và backend services với instance groups để scale và HA.
- Ứng dụng cần LB layer 4 (TCP), không proxy (không terminate SSL), và phải hỗ trợ IPv6 external traffic.
- High availability yêu cầu ít nhất 2 instances trong instance group (zonal hoặc regional MIG - Managed Instance Group) để tránh downtime nếu một instance fail.
🛠️ Yêu cầu chính: Chọn giải pháp LB đúng loại, backend phù hợp, hỗ trợ IPv6 + HA.
✅ Đáp án đúng
Create a network load balancer that used backend services containing one instance group with two instances.
Lý do chọn đáp án này (chi tiết):
- Network Load Balancer (NLB) là lựa chọn lý tưởng vì:
- Hỗ trợ IPv4 + IPv6 dual-stack trên frontend (port 700 TCP).
- Sử dụng backend services (không phải target pool legacy) với one instance group chứa 2 instances → Đảm bảo HA (autoscaling, health checks, multi-zone nếu dùng MIG).
- Backend port 800 được map từ frontend port 700 qua named ports.
- Theo docs GCP 2026: NLB là recommended cho TCP/UDP external HA với IPv6.
📋 Giải thích tất cả các phương án
Dưới đây là phân tích từng lựa chọn giữ nguyên nội dung gốc tiếng Anh, với lý do đúng/sai bằng tiếng Việt:
✅ Create a network load balancer that used backend services containing one instance group with two instances.
- Đúng vì: NLB hỗ trợ dual-stack IPv4/IPv6 external TCP port 700 → backend port 800. Backend services + instance group (2 instances) đảm bảo HA (health checks tự động failover). Phù hợp MIG regional cho multi-zone HA.
❌ Create a network load balancer that uses a target pool backend with two instances.
- Sai vì: Target pool là legacy backend (chỉ unmanaged instance groups, không khuyến khích từ 2020). Không hỗ trợ IPv6 external tốt, thiếu tính năng autoscaling/HA hiện đại như backend services. GCP recommend migrate sang backend services.
❌ Create a TCP proxy that uses a zonal network endpoint group containing one instance.
- Sai vì: TCP Proxy Load Balancer là global LB, frontend IPv4 only (không hỗ trợ IPv6 external đến 2026). Zonal NEG + only one instance → Không HA (single point of failure). NEG phù hợp serverless, không phải VM instances HA.
❌ Create a TCP proxy that uses backend services containing an instance group with two instances.
- Sai vì: TCP Proxy vẫn không hỗ trợ IPv6 frontend external (chỉ IPv4). Dù backend services + 2 instances có HA, nhưng không đáp ứng yêu cầu IPv6. TCP Proxy dùng cho global anycast IP, không phải regional NLB.
📚 Tài liệu tham khảo (GCP cập nhật 2026)
- Network Load Balancing overview → Hỗ trợ IPv6 dual-stack.
- Backend services & instance groups → HA với MIG.
- TCP Proxy limitations → IPv4 frontend only.
- Legacy target pools deprecation → Không recommend.
🛡️ Lời khuyên từ Google Cloud Network Engineer: Sử dụng regional MIG cho instance group để HA multi-zone, kết hợp health checks trên port 800. Test với gcloud compute health-checks!
- A Deploy your serverless services to the serverless VPC. Peer the serverless service VPC to the existing VPC. Configure firewall rules to allow traffic between the serverless services and your existing microservices.
- B Create a serverless VPC access connector for each serverless service. Configure the connectors to allow traffic between the serverless services and your existing microservices.
- C Deploy your serverless services to the existing VPConfigure firewall rules to allow traffic between the serverless services and your existing microservices.
- D Create a serverless VPC access connector. Configure the serverless service to use the connector for communication to the microservices.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi mô tả tình huống bạn có các microservices đang chạy trong private subnet của một VPC hiện có (Virtual Private Cloud trên Google Cloud Platform - GCP). Bạn cần tạo thêm các dịch vụ serverless sử dụng Cloud Run và Cloud Functions để truy cập vào các microservices này.
- Yêu cầu chính: Mỗi serverless service phải giao tiếp được với bất kỳ microservices nào, nhưng lưu lượng mạng thấp (low traffic volume).
- Mục tiêu: Triển khai giải pháp tối ưu chi phí (minimizes cost). 🛠️ Bối cảnh kỹ thuật (cập nhật đến 2026): Trên GCP, Cloud Run và Cloud Functions là các dịch vụ serverless không có IP trực tiếp trong VPC, nên cần Serverless VPC Access Connector để kết nối private mà không expose public endpoint. Không dùng NAT hay Public IP để tránh rủi ro bảo mật và chi phí cao với low traffic.
✅ Đáp án đúng
Create a serverless VPC access connector. Configure the serverless service to use the connector for communication to the microservices.
Lý do lựa chọn:
- Giải pháp này sử dụng một Serverless VPC Access Connector duy nhất (shared connector) kết nối từ serverless services đến VPC private subnet.
- Với low traffic, chi phí thấp (dựa trên connector hours và egress data, không tính per invocation). Các service như Cloud Run/Functions chỉ cần config
VPC_CONNECTORđể route traffic qua connector, đảm bảo private communication mà không cần peer VPC hay tạo nhiều connector. - Tối ưu chi phí nhất vì không scale theo số service (multiple services dùng chung một connector), phù hợp yêu cầu "each serverless service must be able to communicate with any microservices".
- Theo docs GCP 2026, đây là best practice cho low-volume private access.
📋 Giải thích tất cả các phương án
Dưới đây là phân tích từng lựa chọn giữ nguyên văn bản gốc bằng tiếng Anh. Mỗi phương án được đánh giá đúng/sai với lý do chi tiết bằng tiếng Việt:
-
❌ [SAI] Deploy your serverless services to the serverless VPC. Peer the serverless service VPC to the existing VPC. Configure firewall rules to allow traffic between the serverless services and your existing microservices.
Lý do sai: Không tồn tại "serverless VPC" riêng trên GCP để deploy Cloud Run/Functions (serverless không có VPC riêng). VPC peering giữa "serverless VPC" và existing VPC không khả thi và tốn kém (peering charge + firewall rules phức tạp). Không minimize cost với low traffic, vi phạm nguyên tắc serverless private access. -
❌ [SAI] Create a serverless VPC access connector for each serverless service. Configure the connectors to allow traffic between the serverless services and your existing microservices.
Lý do sai: Tạo một connector per service gây lãng phí chi phí (mỗi connector tính phí ~$0.05/giờ + data, scale theo số service). Với low traffic và multiple services, dùng shared connector mới optimal. Config "allow traffic" không chính xác vì connector chỉ cần route, firewall rules xử lý ở VPC side. -
❌ [SAI] Deploy your serverless services to the existing VPConfigure firewall rules to allow traffic between the serverless services and your existing microservices.
Lý do sai: Văn bản bị lỗi (cắt cụt "existing VPC"), nhưng ý là deploy serverless trực tiếp vào existing VPC + firewall rules. Serverless như Cloud Run/Functions không deploy trực tiếp vào VPC (chúng chạy ngoài VPC, cần connector để access private subnet). Không khả thi, không private, và không minimize cost (cần Public IP hoặc NAT tốn kém hơn). -
✅ [ĐÚNG] Create a serverless VPC access connector. Configure the serverless service to use the connector for communication to the microservices.
Lý do đúng (như phần trên): Shared connector đơn giản, low cost cho low traffic, hỗ trợ all-to-all communication. Config dễ dàng qua IAM và VPC connector name trong service YAML/CLI.
📘 Tài liệu tham khảo (cập nhật GCP 2026)
- Serverless VPC Access Overview: cloud.google.com/vpc/docs/serverless-vpc-access – Best practices cho Cloud Run/Functions private access.
- Pricing Details: cloud.google.com/vpc/pricing#serverless-vpc-access – Xác nhận low cost với shared connector (~$0.05/hour per connector + egress).
- Cloud Run Networking: cloud.google.com/run/docs/configuring/vpc-serverless-connector.
- Cloud Functions: cloud.google.com/functions/docs/securing/function-permissions#vpc.
🛠️ Khuyến nghị triển khai: Tạo connector qua gcloud compute networks vpc-access connectors create, sau config service với --vpc-connector. Test với low traffic để verify!
- A Configure an additional VLAN attachment of 10 Gbps in another region. Configure the on-premises router to advertise routes with the same multi-exit discriminator (MED).
- B Configure an additional VLAN attachment of 10 Gbps in the same region. Configure the on-premises router to advertise routes with the same multi-exit discriminator (MED).
- C From the Google Cloud Console, modify the bandwidth of the VLAN attachment to 20 Gbps.
- D From the Google Cloud Console, request a new Dedicated Interconnect connection of 20 Gbps, and configure a VLAN attachment of 10 Gbps.
- E Configure Link Aggregation Control Protocol (LACP) on the on-premises router to use the 20-Gbps Dedicated Interconnect connection.
Xem giải thích
🧩 Giải thích nội dung câu hỏi
Câu hỏi tập trung vào tình huống sử dụng Dedicated Interconnect (kết nối chuyên dụng vật lý) với dung lượng 20 Gbps trên Google Cloud, nhưng hiện chỉ có một VLAN attachment (liên kết VLAN logic) với băng thông 10 Gbps. Traffic ingress (từ on-premises data center vào Google Cloud) đang tăng dần, và mục tiêu là đạt full throughput 20 Gbps một cách nhanh chóng nhất cho end users.
📘 Chi tiết kỹ thuật:
- Dedicated Interconnect cung cấp kết nối private cao tốc từ on-premises đến Google Cloud qua đối tác (như fiber provider).
- VLAN attachment là lớp logic trên Interconnect, giới hạn bandwidth (tiers: 50 Mbps đến 50 Gbps, phải ≤ dung lượng Interconnect).
- Vấn đề: VLAN hiện tại chỉ 10 Gbps nên bottleneck, dù Interconnect có 20 Gbps dư thừa.
- Yêu cầu chọn hai phương pháp để scale nhanh (dựa trên BGP routing và console config, không cần provision hardware mới).
Mục tiêu: Tận dụng capacity hiện có mà không downtime lớn, ưu tiên same region để tránh latency và complexity.
✅ Đáp án đúng và lý do lựa chọn
Hai đáp án đúng là:
B. Configure an additional VLAN attachment of 10 Gbps in the same region. Configure the on-premises router to advertise routes with the same multi-exit discriminator (MED).
C. From the Google Cloud Console, modify the bandwidth of the VLAN attachment to 20 Gbps.
🛠️ Lý do chọn:
- Phương án B: Thêm VLAN attachment thứ hai (10 Gbps) trên cùng Interconnect và region để tổng 20 Gbps. Sử dụng same MED trong BGP (Border Gateway Protocol) giúp on-premises router advertise routes cân bằng load (ECMP - Equal Cost Multi-Path), traffic phân bổ đều hai VLAN → đạt full 20 Gbps ngay lập tức mà không cần hardware mới. Đây là best practice scale nhanh (provision VLAN chỉ mất vài phút).
- Phương án C: Resize trực tiếp VLAN attachment hiện tại từ 10 Gbps lên 20 Gbps qua Google Cloud Console (Dedicated Interconnect hỗ trợ upgrade bandwidth tier mà không downtime). Interconnect 20 Gbps đủ capacity → end users hưởng full throughput ngay.
Cả hai đều nhanh nhất (không cần provision Interconnect mới, chỉ config logic), phù hợp kiến thức cập nhật 2026 (Google Cloud Networking v2.x hỗ trợ auto-scale VLAN lên 50 Gbps).
📋 Giải thích tất cả các phương án
Dưới đây là phân tích chi tiết từng lựa chọn (giữ nguyên văn bản gốc tiếng Anh), đánh dấu ✅ đúng hoặc ❌ sai với lý do cụ thể:
-
❌ Configure an additional VLAN attachment of 10 Gbps in another region. Configure the on-premises router to advertise routes with the same multi-exit discriminator (MED).
Phương án sai vì thêm VLAN ở another region tạo Interconnect/attachment riêng (khác physical port), không tận dụng capacity 20 Gbps hiện tại. Traffic không tự động load balance (MED chỉ hiệu quả same region/Interconnect), dẫn đến latency cao và không đạt full 20 Gbps nhanh. Phải provision cross-region → chậm (ngày/tuần). -
✅ Configure an additional VLAN attachment of 10 Gbps in the same region. Configure the on-premises router to advertise routes with the same multi-exit discriminator (MED).
Phương án đúng: Thêm VLAN cùng region trên cùng Dedicated Interconnect → tổng 20 Gbps. Same MED trong BGP đảm bảo router on-premises ưu tiên ECMP, traffic phân bổ đều (AWS-like nhưng Google Cloud native). Scale nhanh, no downtime. -
✅ From the Google Cloud Console, modify the bandwidth of the VLAN attachment to 20 Gbps.
Phương án đúng: Google Cloud Console cho phép modify bandwidth tier của VLAN attachment (từ 10 → 20 Gbps) trực tiếp, miễn capacity Interconnect đủ. Áp dụng ngay (real-time), end users đạt full throughput mà không config thêm router. -
❌ From the Google Cloud Console, request a new Dedicated Interconnect connection of 20 Gbps, and configure a VLAN attachment of 10 Gbps.
Phương án sai vì request new Dedicated Interconnect cần provision hardware vật lý mới (fiber, LOA CFA - Letter of Authorization), mất tuần/tháng (không "as quickly as possible"). VLAN mới chỉ 10 Gbps vẫn bottleneck, lãng phí. -
❌ Configure Link Aggregation Control Protocol (LACP) on the on-premises router to use the 20-Gbps Dedicated Interconnect connection.
Phương án sai: LACP (Link Aggregation) không hỗ trợ cho Dedicated Interconnect (chỉ cho Partner Interconnect LAG). Google Cloud yêu cầu multiple VLAN attachments + BGP cho bundling, không dùng LACP vật lý. Config sai gây flap/down connection.
📚 Tài liệu tham khảo
- Google Cloud Docs: Dedicated Interconnect Overview (cập nhật 2025-2026: VLAN resize & ECMP support).
- Manage VLAN Attachments (hướng dẫn modify bandwidth & multi-attachment).
- BGP Best Practices: Cloud Router BGP (MED cho load balancing).
- Kiến thức dựa trên Google Cloud Professional Cloud Network Engineer cert guide (2026 edition).
Hy vọng phân tích giúp bạn ôn thi hiệu quả! 🚀 Nếu cần demo console, hỏi thêm nhé.
- A Use regional routing. Set the us-east1 Cloud Router to a base priority of 100, and set the us-west1 Cloud Router to a base priority of 1
- B Use global routing. Set the us-east1 Cloud Router to a base priority of 100, and set the us-west1 Cloud Router to a base priority of 1
- C Use regional routing. Set the us-east1 Cloud Router to a base priority of 1000, and set the us-west1 Cloud Router to a base priority of 1
- D Use global routing. Set the us-east1 Cloud Router to a base priority of 1000, and set the us-west1 Cloud Router to a base priority of 1
Xem giải thích
🧩 Phân tích chi tiết câu hỏi trắc nghiệm
📖 Nội dung câu hỏi:
Câu hỏi xoay quanh việc cấu hình đường dẫn failover cao sẵn có (high availability failover path) cho lưu lượng ingress từ môi trường on-premises vào Virtual Private Cloud (VPC) của Google Cloud. Công ty có hai kết nối Dedicated Interconnect ở hai vùng khác nhau: us-west1 (Tây) và us-east1 (Đông). Mỗi kết nối được gắn với một Cloud Router riêng qua VLAN attachment.
Yêu cầu cụ thể:
- Mặc định, toàn bộ lưu lượng vào VPC phải đi qua kết nối us-west1 (primary path).
- Nếu us-west1 không khả dụng, lưu lượng tự động chuyển sang us-east1 (failover path).
Để đạt được điều này, cần cấu hình multi-exit discriminator (MED) thông qua base priority trên Cloud Router (GCP sử dụng base priority thay thế MED trong BGP để ưu tiên đường dẫn). Base priority quyết định đường dẫn ưu tiên: giá trị nhỏ hơn = ưu tiên cao hơn (ví dụ: 1 > 1000).
Vấn đề chính: Vì hai Cloud Router ở hai region khác nhau, cần chọn giữa regional routing (chỉ trong region) hoặc global routing (toàn cầu, cross-region) để đảm bảo routes được propagate đúng cách cho failover. (Kiến thức cập nhật GCP đến 2026: Cloud Router hỗ trợ global scope cho multi-region HA từ phiên bản 2022+).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Use global routing. Set the us-east1 Cloud Router to a base priority of 1000, and set the us-west1 Cloud Router to a base priority of 1
Lý do:
🛠️ Global routing là bắt buộc vì nó cho phép Cloud Router advertise routes toàn cầu (cross-region), đảm bảo on-premises BGP peer nhận routes từ cả hai region và chọn đường dẫn dựa trên base priority.
- us-west1 priority = 1 (thấp nhất → primary, mặc định ưu tiên).
- us-east1 priority = 1000 (cao → backup, chỉ dùng khi us-west1 fail).
✅ Khi us-west1 down, BGP tự động failover sang us-east1 mà không cần manual intervention. Regional routing sẽ fail vì routes không propagate cross-region. (Default base priority là 1000).
🔍 Giải thích tất cả các phương án (đúng/sai)
Dưới đây là phân tích từng lựa chọn. Tôi giữ nguyên văn bản gốc tiếng Anh, chỉ giải thích bằng tiếng Việt với lý do đúng/sai dựa trên GCP docs mới nhất.
-
❌ [SAI] Use regional routing. Set the us-east1 Cloud Router to a base priority of 100, and set the us-west1 Cloud Router to a base priority of 1
Phân tích: Regional routing giới hạn routes chỉ trong region tương ứng (us-west1 routes không advertise đến us-east1 BGP peer), nên không hỗ trợ failover cross-region. Priority đúng hướng (us-west1=1 ưu tiên, us-east1=100 backup), nhưng thiếu global scope → không reroute được khi us-west1 fail. -
❌ [SAI] Use global routing. Set the us-east1 Cloud Router to a base priority of 100, and set the us-west1 Cloud Router to a base priority of 1
Phân tích: Global routing đúng (hỗ trợ cross-region), priority cho us-west1=1 cũng ưu tiên primary. Tuy nhiên, us-east1=100 vẫn khá thấp (gần primary), có thể gây load balancing không mong muốn thay vì failover rõ ràng (backup nên là 1000 default để tránh cạnh tranh). Không khớp yêu cầu "default all traffic to us-west1". -
❌ [SAI] Use regional routing. Set the us-east1 Cloud Router to a base priority of 1000, and set the us-west1 Cloud Router to a base priority of 1
Phân tích: Priority hoàn hảo (1 primary, 1000 backup), nhưng regional routing không advertise routes cross-region → on-premises chỉ thấy routes từ một region, failover hoàn toàn thất bại. -
✅ [ĐÚNG] Use global routing. Set the us-east1 Cloud Router to a base priority of 1000, and set the us-west1 Cloud Router to a base priority of 1
Phân tích: Kết hợp hoàn hảo: Global routing enable cross-region propagation + priority 1 (us-west1 primary) vs 1000 (us-east1 backup) đảm bảo default traffic qua us-west1, failover tự động khi cần. BGP MED (qua base priority) hoạt động chính xác theo yêu cầu.
📘 Tài liệu tham khảo (GCP chính thức, cập nhật 2026)
- 🛠️ Cloud Router base priority: Giải thích priority thấp = preferred.
- 🌐 Global vs Regional Cloud Router: Global cho multi-region HA.
- 🔗 HA Interconnect failover: Hướng dẫn failover với Dedicated Interconnect + Cloud Router (multi-region).
- 📄 BGP best path selection: MED/base priority chi tiết.
Hy vọng phân tích này giúp bạn nắm vững GCP Networking! 🚀 Nếu cần demo config Terraform, hỏi thêm nhé!