Ngân hàng đề — Google Cloud Professional Cloud Network Engineer
Tìm thấy 247 câu.
- A Specify which Shared VPC subnets each application's service projects can access by using the constraints/compute.restrictSharedVpcSubnetworks organizational constraint.
- B Grant the compute.NetworkViewer role to the developer in the Shared VPC host project.
- C Restrict another application's project from accessing specific subnets in the host project by using the constraints/compute.restrictSharedVpcHostProject organizational constraint.
- D Grant the compute.NetworkUser role to the developer in the specific Shared VPC service project.
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 chủ đề Shared VPC (Virtual Private Cloud chia sẻ) trong Google Cloud Platform (GCP). Trong mô hình Shared VPC:
- Host project chứa VPC và các subnet được chia sẻ.
- Service projects (dự án dịch vụ) được liên kết với host project để sử dụng các subnet đó.
- Vấn đề: Một developer làm việc cho nhiều team có thể deploy tài nguyên (như VM) vào subnet dành cho team khác, dẫn đến rủi ro bảo mật và phân cách không đúng.
Mục tiêu: Đảm bảo developer chỉ deploy được vào subnet dành riêng cho service project của họ, không xâm phạm subnet của ứng dụng khác. Giải pháp cần sử dụng organizational policy (chính sách tổ chức) để restrict ở mức subnet cụ thể cho từng service project.
📘 Kiến thức cập nhật: Theo tài liệu GCP mới nhất (2024-2026), Shared VPC hỗ trợ các org policy như compute.restrictSharedVpcSubnetworks để kiểm soát chính xác quyền truy cập subnet (xem GCP VPC Docs - Organizational Policies).
✅ Đáp án đúng
Specify which Shared VPC subnets each application's service projects can access by using the constraints/compute.restrictSharedVpcSubnetworks organizational constraint.
Lý do chọn:
- Org policy này cho phép chỉ định chính xác danh sách subnet mà mỗi service project có thể sử dụng trong Shared VPC host project.
- Áp dụng ở mức organization/folder/project, developer chỉ deploy được vào subnet được phép cho service project của họ.
- Hoàn hảo cho kịch bản distributed teams, ngăn chặn cross-team deployment mà không cần thay đổi IAM roles phức tạp.
- ✅ Hiệu quả cao, granular control (kiểm soát chi tiết), tuân thủ best practices GCP.
❌ Phân tích tất cả các phương án
-
[ĐÚNG] Specify which Shared VPC subnets each application's service projects can access by using the constraints/compute.restrictSharedVpcSubnetworks organizational constraint. ✅ Đúng vì policy này hạn chế service project chỉ dùng subnet được chỉ định, giải quyết trực tiếp vấn đề developer deploy nhầm subnet. Không ảnh hưởng quyền khác, dễ quản lý ở quy mô lớn.
-
[SAI] Grant the compute.NetworkViewer role to the developer in the Shared VPC host project. ❌ Sai vì
compute.NetworkViewerchỉ cho quyền xem (read-only) network resources (như list subnets, firewall rules), không cho phép deploy VM hoặc tài nguyên. Developer vẫn cần roles khác (như Compute Instance Admin) để deploy, và không restrict subnet cụ thể. -
[SAI] Restrict another application's project from accessing specific subnets in the host project by using the constraints/compute.restrictSharedVpcHostProject organizational constraint. ❌ Sai vì policy
compute.restrictSharedVpcHostProjectchỉ hạn chế service project dùng host project cụ thể, không granular đến mức subnet. Nó chặn toàn bộ host project, không phù hợp khi chỉ cần restrict subnet riêng lẻ. -
[SAI] Grant the compute.NetworkUser role to the developer in the specific Shared VPC service project. ❌ Sai vì
compute.NetworkUsercho quyền sử dụng network (attach network interface) ở service project, nhưng không restrict subnet nào. Developer vẫn có thể deploy vào bất kỳ subnet Shared VPC nào nếu có quyền Compute khác, không giải quyết cross-team access.
🛠️ Khuyến nghị triển khai
- Sử dụng Policy Controller hoặc **gcloud
để set policy:gcloud org-policies set-policy --constraint=constraints/compute.restrictSharedVpcSubnetworks`. - Kết hợp IAM least privilege cho developer (ví dụ:
roles/compute.instanceAdmin.v1scoped to service project). - Test: Deploy VM thử từ service project vào subnet không cho phép → Bị chặn.
📘 Tài liệu tham khảo:
- Shared VPC Org Policies
- Org Policy Constraints List
- GCP IAM Roles for Networking (cập nhật 2026 không thay đổi core features).
- A Create an HA VPN gateway with two tunnels. Configure BGP on both tunnels with tunnel 0 configured with a base routing priority metric of 100 and tunnel 1 with a base routing priority metric of 200. Configure the on-premises router with the corresponding multi-exit discriminator (MED) value.
- B Create two HA VPN gateways, each with two tunnels. Configure BGP on each of the gateways' tunnels with tunnel 0 configured with a base routing priority metric of 100 and tunnel 1 with a base routing priority metric of 100. Configure the on-premises router with the same corresponding multi-exit discriminator (MED) value.
- C Create an HA VPN gateway with two tunnels. Configure BGP on both tunnels with tunnel 0 configured with a base routing priority metric of 100 and tunnel 1 with a base routing priority metric of 100. Configure the on-premises router with the corresponding multi-exit discriminator (MED) value.
- D Create an HA VPN gateway with four tunnels. Configure BGP on four tunnels with tunnel 0 configured with a base routing priority metric of 100, tunnel 1 with a base routing priority metric of 200, tunnel 2 with a base routing priority of 300, and tunnel 3 with a base routing priority of 400. Configure the on-premises router with the corresponding multi-exit discriminator (MED) value.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi tập trung vào việc cấu hình HA VPN (High Availability VPN) trên Google Cloud để kết nối môi trường on-premises với mạng Google Cloud. Các yêu cầu cụ thể bao gồm:
- Môi trường on-premises nằm gần vùng us-west1 nhất.
- Có tài nguyên Google Cloud ở us-west2, đòi hỏi throughput 300.000 packets per second (PPS) và băng thông khoảng 4 Gbps.
- Cần quản lý băng thông dự đoán được (predictable bandwidth management), duy trì SLA 99.99%, và chi phí tối thiểu (minimal costs).
🛠️ Lý do ngữ cảnh quan trọng:
- HA VPN là giải pháp VPN IPsec cao cấp của Google Cloud, hỗ trợ redundancy với đúng 2 tunnels trên một gateway (tunnel 0 và tunnel 1), sử dụng BGP (Border Gateway Protocol) để định tuyến động.
- Để đạt throughput cao (4 Gbps), cần cân bằng tải (load balancing) giữa 2 tunnels bằng cách đặt base routing priority metric giống nhau (ví dụ: 100 cho cả hai), giúp traffic phân bổ đều, đạt tổng băng thông lên đến ~6 Gbps (mỗi tunnel ~3 Gbps theo tài liệu GCP cập nhật 2024-2026).
- Sử dụng MED (Multi-Exit Discriminator) trên router on-premises để ưu tiên đường dẫn gần nhất (us-west1), đảm bảo độ trễ thấp và dự đoán được.
- SLA 99.99% là tiêu chuẩn của HA VPN Classic VPN, chi phí thấp hơn so với các giải pháp phức tạp như nhiều gateway hoặc Cloud Interconnect.
- Gateway nên đặt ở us-west1 (gần on-premises) để tối ưu, traffic đến us-west2 qua global network của GCP với độ tin cậy cao.
📘 Tài liệu tham khảo:
- Google Cloud HA VPN overview (cập nhật 2024).
- HA VPN configuration best practices – Xác nhận chỉ 2 tunnels/gateway, load balancing với equal priority.
- VPN quotas & limits – Throughput per tunnel lên đến 3 Gbps (HA VPN), tổng 6 Gbps.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Create an HA VPN gateway with two tunnels. Configure BGP on both tunnels with tunnel 0 configured with a base routing priority metric of 100 and tunnel 1 with a base routing priority metric of 100. Configure the on-premises router with the corresponding multi-exit discriminator (MED) value.
🧩 Lý do chi tiết:
- Tạo một HA VPN gateway với đúng 2 tunnels (tiêu chuẩn HA VPN), đặt ở us-west1 để gần on-premises, chi phí thấp nhất.
- Đặt priority metric = 100 cho cả tunnel 0 và 1 → BGP sẽ cân bằng tải ECMP (Equal-Cost Multi-Path), phân bổ traffic đều, đạt 4 Gbps dự đoán (mỗi tunnel ~2 Gbps+), throughput 300k PPS dễ dàng.
- MED trên router on-premises ưu tiên đường dẫn gần us-west1, đảm bảo predictable bandwidth và SLA 99.99%.
- Giải pháp tối ưu chi phí, redundancy cao, phù hợp yêu cầu (không thừa gateway/tunnel).
❌ Giải thích tất cả các phương án (đúng/sai)
-
[SAI] Create an HA VPN gateway with two tunnels. Configure BGP on both tunnels with tunnel 0 configured with a base routing priority metric of 100 and tunnel 1 with a base routing priority metric of 200. Configure the on-premises router with the corresponding multi-exit discriminator (MED) value.
❌ Sai vì: Priority khác nhau (100 vs 200) khiến BGP ưu tiên tunnel 0 hoàn toàn (active-active thất bại, chỉ active-passive), traffic không cân bằng → không đạt 4 Gbps dự đoán, throughput thấp hơn yêu cầu, lãng phí redundancy. -
[SAI] Create two HA VPN gateways, each with two tunnels. Configure BGP on each of the gateways' tunnels with tunnel 0 configured with a base routing priority metric of 100 and tunnel 1 with a base routing priority metric of 100. Configure the on-premises router with the same corresponding multi-exit discriminator (MED) value.
❌ Sai vì: Tạo 2 gateway (tổng 4 tunnels) tăng chi phí gấp đôi (không minimal costs), phức tạp quản lý, dù có load balancing nhưng dư thừa so với yêu cầu một gateway là đủ cho 4-6 Gbps và SLA. -
[ĐÚNG] Create an HA VPN gateway with two tunnels. Configure BGP on both tunnels with tunnel 0 configured with a base routing priority metric of 100 and tunnel 1 with a base routing priority metric of 100. Configure the on-premises router with the corresponding multi-exit discriminator (MED) value.
✅ Đúng vì: Như phân tích ở phần đáp án đúng – cân bằng tải hoàn hảo, chi phí thấp, đạt đầy đủ throughput/băng thông/SLA. -
[SAI] Create an HA VPN gateway with four tunnels. Configure BGP on four tunnels with tunnel 0 configured with a base routing priority metric of 100, tunnel 1 with a base routing priority metric of 200, tunnel 2 with a base routing priority of 300, and tunnel 3 with a base routing priority of 400. Configure the on-premises router with the corresponding multi-exit discriminator (MED) value.
❌ Sai vì: HA VPN chỉ hỗ trợ đúng 2 tunnels/gateway (không thể 4 tunnels), cấu hình không hợp lệ theo GCP (lỗi tạo gateway). Priority phân cấp → không cân bằng, throughput kém.
- A Promote the internal IP addresses to static assignments for all database VMs.
- B Create a firewall rule to allow only traffic to the IP addresses allocated to your database VMs.
- C Define a maintenance window to shut down the database VMs one at a time, promote the internal IP address to a static assignment, and restart the VM.
- D Define an organization policy to allow only statically allocated IP addresses for VMs. Ensure the prefix matches your database VMs.
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi tập trung vào VPC (Virtual Private Cloud) trên Google Cloud Platform (GCP), nơi tổ chức yêu cầu tất cả các địa chỉ IP nội bộ (internal IP) của các máy ảo (VM) chạy cơ sở dữ liệu phải được phân bổ tĩnh (statically allocated). Khi kiểm tra phân bổ IP trong VPC, phát hiện các VM cơ sở dữ liệu đang sử dụng IP ephemeral (tạm thời, động) thay vì static. Nhiệm vụ là cấu hình VPC để tuân thủ yêu cầu mà không gây gián đoạn hoạt động hiện tại (no disruption).
🛠️ Các khái niệm chính cần nắm:
- Internal IP ephemeral: IP tạm thời, có thể thay đổi khi VM restart/stop/start.
- Static internal IP: IP cố định, giữ nguyên ngay cả khi VM restart.
- Yêu cầu không downtime là chìa khóa, vì database thường cần high availability (HA).
- Đây là tính năng cốt lõi của Google Cloud VPC và Compute Engine, cập nhật đến năm 2026 (không thay đổi lớn từ các phiên bản trước).
✅ Đáp án đúng
Promote the internal IP addresses to static assignments for all database VMs.
Lý do chọn đáp án này (dựa trên tài liệu GCP mới nhất 2026):
- GCP hỗ trợ promote ephemeral internal IP thành static IP trực tiếp mà KHÔNG cần restart VM, đảm bảo zero disruption.
- Quy trình: Vào VPC Network > IP addresses, chọn IP ephemeral của VM, click Promote to static. IP sẽ được reserve vĩnh viễn trong subnet mà không ảnh hưởng đến kết nối.
- Phù hợp hoàn hảo với mandate tổ chức, áp dụng cho tất cả database VMs một cách nhanh chóng.
- 📘 Nguồn: Google Cloud Docs - Promote an ephemeral internal IP address to a static internal IP (cập nhật 2025-2026, không thay đổi core feature).
📋 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ể:
-
Promote the internal IP addresses to static assignments for all database VMs.
✅ Đúng. Như đã giải thích ở trên, đây là cách native và không gián đoạn trên GCP. Promote chỉ mất vài giây, IP giữ nguyên giá trị, VM tiếp tục chạy mượt mà. Hoàn toàn tuân thủ "without causing any disruption". -
Create a firewall rule to allow only traffic to the IP addresses allocated to your database VMs.
❌ Sai. Firewall rule chỉ kiểm soát traffic flow (ingress/egress), không thay đổi tính chất static/ephemeral của IP. Không giải quyết vấn đề phân bổ IP tĩnh, và có thể gây security misconfiguration nếu không cẩn thận, dẫn đến block traffic không mong muốn. -
Define a maintenance window to shut down the database VMs one by one, promote the internal IP address to a static assignment, and restart the VM.
❌ Sai. Mặc dù promote có thể làm sau khi shutdown, nhưng shutdown/restart gây downtime (disruption), vi phạm yêu cầu "without causing any disruption". GCP cho phép promote mà không cần shutdown, nên cách này thừa thãi và rủi ro cao cho database (data loss nếu không backup). -
Define an organization policy to allow only statically allocated IP addresses for VMs. Ensure the prefix matches your database VMs.
❌ Sai. Organization Policy (qua Policy Controller) chỉ enforce cho tương lai (new VMs), không áp dụng retroactively cho existing VMs. "Prefix matches" không liên quan vì policy không tự động promote IP cũ. Không giải quyết vấn đề hiện tại mà chỉ preventive, vi phạm yêu cầu fix ngay mà không disrupt.
🛠️ Lời khuyên thực hành từ Google Cloud Network Engineer
- Best practice: Sử dụng Automation script qua gcloud CLI (
gcloud compute instances add-static-ip) để promote hàng loạt VMs. - Kiểm tra sau promote:
gcloud compute addresses list --filter="name:(vm-name)"để verify. - 📘 Tài liệu tham khảo bổ sung:
- GCP VPC Networking Best Practices (2026 edition).
- Compute Engine IP Addresses – Xác nhận zero-downtime promote.
Hy vọng phân tích này giúp bạn nắm vững! 🚀
- A Configure a new default threat signature with Deny All to all severity options. Review the logs to understand the impact.
- B Set up a Linux VM as the frontend gateway for the application. Create iptables rules to drop all packets, excluding the application port.
- C For all severity options (critical, high, medium, low and informational) in the security profile, change the default override action to Deny.
- D Configure Cloud Scheduler to run a task that checks the Cloud NGFW logs to verify the threats. Configure the task to create a security profile with each signature ID set to override the default action.
Xem giải thích
🧩 Phân tích chi tiết câu hỏi
Câu hỏi này thuộc chủ đề Google Cloud Next Generation Firewall (Cloud NGFW), tập trung vào việc tăng cường bảo mật cho một ứng dụng mission-critical đang chạy trên một project riêng biệt. Tổ chức đã triển khai security profile với bộ threat signatures mặc định (các quy tắc phát hiện mối đe dọa tiêu chuẩn). Mục tiêu là ghi log các threat và drop (loại bỏ) các gói tin liên quan để nâng cao security posture, mà không ảnh hưởng đến ứng dụng đang chạy (là ứng dụng duy nhất trên project).
Tình huống chính:
- Ứng dụng là nguồn doanh thu mới, cần bảo mật cao nhưng phải tránh downtime.
- Cloud NGFW mặc định chỉ log/alert threats (không drop), cần thay đổi hành động để block threats.
- Yêu cầu hành động đơn giản, trực tiếp trên security profile hiện có.
📘 Kiến thức cập nhật (đến 2026): Theo tài liệu Google Cloud NGFW mới nhất (phiên bản GA từ 2023, cập nhật threat intelligence liên tục), security profile cho phép override default action cho từng severity level (critical, high, medium, low, informational). Default action thường là alert (log mà không drop). Để drop, set Deny cho tất cả levels. Không cần tạo profile mới hoặc công cụ bên ngoài.
Nguồn tham khảo:
✅ Đáp án đúng
For all severity options (critical, high, medium, low and informational) in the security profile, change the default override action to Deny.
Lý do lựa chọn 🛠️:
- Đây là cách trực tiếp và hiệu quả nhất để đạt yêu cầu: log threats (Cloud NGFW tự động log) và drop packets (bằng cách override action thành Deny cho tất cả severity levels).
- Không làm gián đoạn ứng dụng vì chỉ drop threats signatures khớp, không ảnh hưởng traffic hợp lệ.
- Tuân thủ best practices: Sử dụng existing security profile, dễ quản lý qua Console/CLI/gcloud.
- Kết quả: Tăng security posture ngay lập tức, logs xem tại Security Command Center hoặc Logging.
📋 Giải thích tất cả các phương án
-
❌ [SAI] Configure a new default threat signature with Deny All to all severity options. Review the logs to understand the impact. 🧩 Phân tích sai: Không tồn tại khái niệm "default threat signature" hoặc "Deny All" trong Cloud NGFW. Threat signatures là các quy tắc cụ thể (hàng nghìn cái), không thể set "Deny All" toàn bộ. Việc tạo "new default" sẽ phức tạp hóa, có nguy cơ block traffic hợp lệ (over-blocking). Review logs là tốt nhưng không giải quyết drop packets ngay. Cách này không chuẩn, dễ gây downtime cho ứng dụng mission-critical.
-
❌ [SAI] Set up a Linux VM as the frontend gateway for the application. Create iptables rules to drop all packets, excluding the application port. 🧩 Phân tích sai: Đây là giải pháp thủ công, không liên quan đến Cloud NGFW. Sử dụng Linux VM + iptables là stateful firewall cơ bản, không có threat signatures thông minh như NGFW (không detect exploits, malware signatures). Tốn kém (VM chi phí cao), khó scale, quản lý thủ công, và không log threats chi tiết. Vi phạm nguyên tắc "sử dụng native Google Cloud services" cho security posture cao.
-
✅ [ĐÚNG] For all severity options (critical, high, medium, low and informational) in the security profile, change the default override action to Deny. 🛠️ Phân tích đúng (như phần trên): Hoàn hảo khớp yêu cầu, đơn giản, native với Cloud NGFW. Override per-severity đảm bảo drop toàn diện threats mà vẫn linh hoạt (có thể tune sau nếu cần).
-
❌ [SAI] Configure Cloud Scheduler to run a task that checks the Cloud NGFW logs to verify the threats. Configure the task to create a security profile with each signature ID set to override the default action. 🧩 Phân tích sai: Quá phức tạp và gián tiếp. Cloud Scheduler + custom task để parse logs và tạo profile mới (per-signature ID) tốn thời gian phát triển, không realtime (chỉ chạy định kỳ). Không drop threats ngay lập tức (chờ task chạy), dễ miss critical threats. Cloud NGFW đã hỗ trợ override group-level (theo severity), không cần per-ID thủ công. Không hiệu quả cho mission-critical app.
-
A
1. Create two Cross-Cloud Interconnect connections to CSP 1, with 40 Gbps of total bandwidth (20 Gbps in zone 1 and 20 Gbps in zone 2) in a common co-location facility located in Frankfurt, Germany.
2. Create two Cross-Cloud Interconnect connections to CSP 2, with 40 Gbps of total bandwidth (20 Gbps in zone 1 and 20 Gbps in zone 2) in a common co-location facility located in Frankfurt, Germany.
3. Create a Cloud Router in europe-west3 (Frankfurt), and configure two VLAN attachments for CSP 1 and two VLAN attachments for CSP 2. -
B
1. Create two Cross-Cloud Interconnect connections to CSP 1, with 20 Gbps of total bandwidth (10 Gbps in zone 1 and 10 Gbps in zone 2) in a common co-location facility located in Frankfurt, Germany.
2. Create two Cross-Cloud Interconnect connections to CSP 2, with 20 Gbps of total bandwidth (10 Gbps in zone 1 and 10 Gbps in zone 2) in a common co-location facility located in Frankfurt, Germany.
3. Create a Cloud Router in europe-west3 (Frankfurt), and configure two VLAN attachments for CSP 1 and two VLAN attachments for CSP 2. -
C
1. Create two Cross-Cloud Interconnect connections to CSP 1, with 40 Gbps of total bandwidth (20 Gbps in zone 1) in a common co-location facility located in Frankfurt, Germany and (20 Gbps in zone 2) in a common co-location facility located in Munich, Germany.
2. Create two Cross-Cloud Interconnect connections to CSP 2, with 40 Gbps of total bandwidth (20 Gbps in zone 1) in a common co-location facility located in Frankfurt, Germany and (20 Gbps in zone 2) in a common co-location facility located in Munich, Germany.
3. Create a Cloud Router in europe-west3 (Frankfurt), and configure two VLAN attachments for CSP 1 and two VLAN attachments for CSP 2. -
D
1. Create two Cross-Cloud Interconnect connections to CSP 1, with 40 Gbps of total bandwidth (20 Gbps in zone 1 and 20 Gbps in zone 2) in a common co-location facility located in Frankfurt, Germany.
2. Create two Cross-Cloud Interconnect connections to CSP 2, with 40 Gbps of total bandwidth (20 Gbps in zone 1 and 20 Gbps in zone 2) in a common co-location facility located in Frankfurt, Germany.
3. Create a Cloud Router in us-east4 (Ashburn, Virginia, USA), and configure two VLAN attachments for CSP 1 and two VLAN attachments for CSP 2.
Xem giải thích
🧩 Giải thích chi tiết nội dung câu hỏi
Câu hỏi tập trung vào việc cấu hình Cross-Cloud Interconnect trong Google Cloud để kết nối tổ chức Google Cloud (VPC với dynamic routing mode GLOBAL, hạ tầng ở vùng us-east4 - Virginia, USA) với hai nhà cung cấp đám mây công khai (CSP1 và CSP2), những môi trường này gần Frankfurt, Germany nhất. Bạn có thể chọn giữa hai vị trí colocation phổ biến: Frankfurt hoặc Munich.
Yêu cầu chính:
- 20 Gbps băng thông được bảo vệ (protected bandwidth) với SLA 99.9% từ Google Cloud (điều này đòi hỏi redundancy tối thiểu 2 liên kết ở 2 zone khác nhau trong cùng một cơ sở colocation để đảm bảo tính sẵn sàng cao).
- Giảm thiểu chi phí càng nhiều càng tốt (ưu tiên vị trí gần CSPs để giảm latency và chi phí truyền dữ liệu).
Cross-Cloud Interconnect cho phép kết nối trực tiếp tốc độ cao (Layer 3) từ Google Cloud đến CSP khác (như AWS Direct Connect hoặc Azure ExpressRoute) qua các điểm colocation của Google (Partner Interconnect). Với protected bandwidth, mỗi CSP cần 2 VLAN attachments (mỗi cái 10 Gbps) ở 2 zone riêng biệt trong cùng facility để tổng 20 Gbps protected, đạt SLA 99.9%. Cloud Router phải ở vùng gần facility (europe-west3 - Frankfurt) để quản lý BGP routing toàn cầu (nhờ GLOBAL mode). Chọn Frankfurt vì gần CSPs hơn Munich, giúp minimize costs (giảm khoảng cách địa lý, latency thấp hơn từ us-east4 qua Google backbone).
📘 Tài liệu tham khảo:
- Google Cloud Cross-Cloud Interconnect docs (cập nhật 2024-2026: Yêu cầu 2+ links/zone trong cùng facility cho protected SLA 99.9%; bandwidth provisioning theo LAG/zone).
- SLA cho Interconnect (99.9% cho protected với multi-zone same facility).
✅ Đáp án đúng: Lựa chọn thứ 2
Lựa chọn đúng là phương án thứ 2 vì nó đáp ứng chính xác yêu cầu 20 Gbps protected bandwidth (10 Gbps/zone x 2 zone = 20 Gbps total cho mỗi CSP), sử dụng cùng một facility Frankfurt (gần CSPs nhất, minimize costs), và Cloud Router ở europe-west3 (Frankfurt) để routing hiệu quả toàn cầu. Điều này đảm bảo SLA 99.9% mà không lãng phí bandwidth (không over-provision như 40 Gbps).
🛠️ Phân tích chi tiết tất cả các phương án
-
Phương án 1 (SAI):
- Create two Cross-Cloud Interconnect connections to CSP 1, with 40 Gbps of total bandwidth (20 Gbps in zone 1 and 20 Gbps in zone 2) in a common co-location facility located in Frankfurt, Germany.
- Create two Cross-Cloud Interconnect connections to CSP 2, with 40 Gbps of total bandwidth (20 Gbps in zone 1 and 20 Gbps in zone 2) in a common co-location facility located in Frankfurt, Germany.
- Create a Cloud Router in europe-west3 (Frankfurt), and configure two VLAN attachments for CSP 1 and two VLAN attachments for CSP 2.
❌ Sai vì over-provision bandwidth: Tổng 40 Gbps/link (20 Gbps/zone) vượt yêu cầu 20 Gbps protected, tăng chi phí không cần thiết (vi phạm "minimize costs"). Facility đúng nhưng bandwidth thừa.
-
Phương án 2 (ĐÚNG):
- Create two Cross-Cloud Interconnect connections to CSP 1, with 20 Gbps of total bandwidth (10 Gbps in zone 1 and 10 Gbps in zone 2) in a common co-location facility located in Frankfurt, Germany.
- Create two Cross-Cloud Interconnect connections to CSP 2, with 20 Gbps of total bandwidth (10 Gbps in zone 1 and 10 Gbps in zone 2) in a common co-location facility located in Frankfurt, Germany.
- Create a Cloud Router in europe-west3 (Frankfurt), and configure two VLAN attachments for CSP 1 and two VLAN attachments for CSP 2.
✅ Đúng hoàn hảo: Bandwidth chính xác 20 Gbps protected (10 Gbps/zone x2, 2 VLAN attachments/CSP), cùng facility Frankfurt (gần CSPs, low latency/cost từ us-east4), Cloud Router đúng vùng. Đạt SLA 99.9% và optimize chi phí.
-
Phương án 3 (SAI):
- Create two Cross-Cloud Interconnect connections to CSP 1, with 40 Gbps of total bandwidth (20 Gbps in zone 1) in a common co-location facility located in Frankfurt, Germany and (20 Gbps in zone 2) in a common co-location facility located in Munich, Germany.
- Create two Cross-Cloud Interconnect connections to CSP 2, with 40 Gbps of total bandwidth (20 Gbps in zone 1) in a common co-location facility located in Frankfurt, Germany and (20 Gbps in zone 2) in a common co-location facility located in Munich, Germany.
- Create a Cloud Router in europe-west3 (Frankfurt), and configure two VLAN attachments for CSP 1 and two VLAN attachments for CSP 2.
❌ Sai vì không cùng facility và over-bandwidth: Zone 1 Frankfurt + Zone 2 Munich là hai facility khác nhau, không đủ điều kiện protected SLA 99.9% (Google yêu cầu same colocation facility cho redundancy). Bandwidth 40 Gbps thừa, chi phí cao hơn, latency kém hơn.
-
Phương án 4 (SAI):
- Create two Cross-Cloud Interconnect connections to CSP 1, with 40 Gbps of total bandwidth (20 Gbps in zone 1 and 20 Gbps in zone 2) in a common co-location facility located in Frankfurt, Germany.
- Create two Cross-Cloud Interconnect connections to CSP 2, with 40 Gbps of total bandwidth (20 Gbps in zone 1 and 20 Gbps in zone 2) in a common co-location facility located in Frankfurt, Germany.
- Create a Cloud Router in us-east4 (Ashburn, Virginia, USA), and configure two VLAN attachments for CSP 1 and two VLAN attachments for CSP 2.
❌ Sai vì Cloud Router sai vị trí và over-bandwidth: Cloud Router ở us-east4 (xa Frankfurt) gây routing kém hiệu quả (tăng latency, chi phí egress), dù facility Frankfurt đúng. Bandwidth 40 Gbps thừa, không minimize costs.
- A Configure nonMasqueradeCIDRs in the ip-masq-agent ConfigMap. Include the 35.100.0.0/16 range in the list.
- B Configure nonMasqueradeCIDRs in the ip-masq-agent ConfigMap. Remove the 35.100.0.0/16 range from the list.
- C Configure Cloud NAT and create an exclusion rule for any SNAT address translation.
- D Configure Cloud NAT with nonMasqueradeCIDRs, and enable SNAT with the same configuration to allow traffic to 35.100.0.0/16.
Xem giải thích
🧩 Giải thích chi tiết nội dung câu hỏi
Câu hỏi tập trung vào việc cấu hình truy cập outbound từ ứng dụng chạy trên GKE Standard cluster kiểu VPC-native (sử dụng alias IP cho pods). Cluster này có nodes với public IP addresses (external IPs), nghĩa là traffic outbound thông thường sẽ sử dụng trực tiếp external IP của nodes để kết nối ra ngoài, dẫn đến việc expose IP công khai của nodes.
Yêu cầu cụ thể:
- Truy cập đến dải địa chỉ remote 35.100.0.0/16 (một dải public IP, có thể là AWS EC2 range) qua Cloud NAT, thay vì dùng external IP của GKE nodes.
- SNAT (Source Network Address Translation) đã được kích hoạt trên cluster (qua ip-masq-agent), và cần cấu hình để traffic đến dải này bị masquerade (SNAT) trước khi đi qua Cloud NAT.
- Mục tiêu: Traffic outbound đến 35.100.0.0/16 sẽ được NAT bởi Cloud NAT (sử dụng IP của Cloud NAT gateway), tránh lộ external IP của nodes, đồng thời tận dụng Cloud NAT để egress an toàn hơn (hỗ trợ private egress).
Bối cảnh kỹ thuật (dựa trên GCP docs cập nhật 2024-2026):
- Trong VPC-native GKE, ip-masq-agent (DaemonSet) quản lý masquerading cho outbound traffic từ pods/nodes.
- ConfigMap
ip-masq-agentcó tham số nonMasqueradeCIDRs: Danh sách các CIDR KHÔNG bị masquerade (traffic dùng source IP thật của pod/node).- Mặc định ở public clusters: Bao gồm tất cả non-RFC1918 ranges (public IPs như 35.100.0.0/16), nên traffic đến public destinations KHÔNG bị SNAT → dùng external IP nodes trực tiếp.
- Để force masquerade (SNAT) cho một public range → Loại bỏ (remove) range đó khỏi nonMasqueradeCIDRs.
- Sau masquerade (source IP thành internal IP của node), traffic sẽ route qua Cloud NAT (đã config cho subnet của cluster) để egress với IP của NAT gateway.
📘 Tài liệu tham khảo:
- GKE Networking: IP Masquerade Agent (cập nhật 2025).
- Cloud NAT for GKE clusters (hướng dẫn VPC-native egress).
- GKE Alias IPs & Masquerading (giải thích nonMasqueradeCIDRs).
✅ Đáp án đúng
Configure nonMasqueradeCIDRs in the ip-masq-agent ConfigMap. Remove the 35.100.0.0/16 range from the list.
Lý do lựa chọn:
- Dải 35.100.0.0/16 là public range (không thuộc RFC1918), nên mặc định nằm trong nonMasqueradeCIDRs → traffic KHÔNG bị SNAT, dùng external IP nodes trực tiếp.
- Remove khỏi list → Force ip-masq-agent masquerade (SNAT) source IP thành internal IP node → Traffic route qua Cloud NAT (egress với IP NAT gateway).
- Đây là cách chuẩn theo best practices GCP cho selective egress qua Cloud NAT ở public GKE clusters (cập nhật GKE 1.28+ đến 2026).
- 🛠️ Cách thực hiện: Edit ConfigMap
ip-masq-agenttrong namespacekube-system, xóa range khỏinonMasqueradeCIDRs, applykubectl apply -f configmap.yaml.
📋 Phân tích tất cả các phương án
-
❌ [SAI] Configure nonMasqueradeCIDRs in the ip-masq-agent ConfigMap. Include the 35.100.0.0/16 range in the list.
- Giải thích sai: Việc include (thêm) range vào
nonMasqueradeCIDRssẽ cấm masquerade hoàn toàn → Traffic đến 35.100.0.0/16 vẫn dùng external IP nodes trực tiếp, KHÔNG đi qua Cloud NAT. Điều này trái ngược yêu cầu, vì sẽ tiếp tục expose node IPs thay vì NAT.
- Giải thích sai: Việc include (thêm) range vào
-
✅ [ĐÚNG] Configure nonMasqueradeCIDRs in the ip-masq-agent ConfigMap. Remove the 35.100.0.0/16 range from the list.
- Giải thích đúng: Như phần đáp án trên, remove buộc SNAT bởi ip-masq-agent → Source IP thành internal → Cloud NAT xử lý egress. Đảm bảo traffic đến range cụ thể dùng NAT mà không ảnh hưởng ranges khác.
-
❌ [SAI] Configure Cloud NAT and create an exclusion rule for any SNAT address translation.
- Giải thích sai: Exclusion rule trong Cloud NAT chỉ định KHÔNG NAT cho một số CIDR đích (destinations) → Traffic đến những range đó sẽ bypass NAT, dùng IP thật (external node IPs). Điều này làm ngược lại yêu cầu, vì sẽ tránh SNAT/NAT thay vì áp dụng nó.
-
❌ [SAI] Configure Cloud NAT with nonMasqueradeCIDRs, and enable SNAT with the same configuration to allow traffic to 35.100.0.0/16.
- Giải thích sai: Cloud NAT không có tham số nonMasqueradeCIDRs (đó là của ip-masq-agent). Câu này lộn xộn khái niệm, không tồn tại config như vậy. Enable SNAT trên Cloud NAT là mặc định, nhưng không giải quyết vấn đề masquerade ở layer GKE → Vẫn dùng node external IPs. Không khớp best practices GCP 2026.
🧩 Tóm tắt key takeaway: Đây là pattern phổ biến để hybrid egress ở GKE public clusters: Kết hợp ip-masq-agent + Cloud NAT cho security và cost optimization. Nếu cluster private, không cần bước này!
- A Configure Policy-based Routing for each team.
- B Configure a Shared VPC, and create a VPC network in the host project.
- C Configure VPC Network Peering, and peer one of the VPC's to the service project.
- D Configure a Shared VPC, and create a VPC network in the service project.
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi mô tả một tổ chức có khoảng 100 teams cần quản lý môi trường riêng biệt (separate projects), nhưng một central team phải quản lý toàn bộ mạng (network). Nhiệm vụ là thiết kế landing zone (mô hình hạ tầng nền tảng) để:
- Cung cấp projects riêng cho từng team (để họ tự quản lý tài nguyên như VM, services).
- Central team kiểm soát mạng (VPC, subnets, firewall).
- Giải pháp phải scale tốt (hỗ trợ mở rộng cho 100+ teams mà không phức tạp).
📘 Landing zone ở đây ám chỉ mô hình GCP (Google Cloud Platform) để tổ chức multi-project/multi-team, tập trung vào Shared VPC – tính năng cho phép chia sẻ VPC từ project trung tâm (host project) với nhiều service projects. Đây là best practice cho enterprise scale, cập nhật theo tài liệu GCP mới nhất (2024-2026), hỗ trợ hàng nghìn service projects attach vào một host project.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Configure a Shared VPC, and create a VPC network in the host project.
🛠️ Lý do:
- Shared VPC cho phép host project (do central team quản lý) tạo và sở hữu VPC network, sau đó chia sẻ subnets với nhiều service projects (mỗi team một project).
- Điều này đảm bảo central team kiểm soát network (routing, firewall, IP), teams tự quản lý resources trong project riêng.
- Scale xuất sắc: Hỗ trợ lên đến 100+ service projects dễ dàng, không giới hạn peering, tự động sync IAM policies. Phù hợp landing zone multi-team theo GCP blueprint (Enterprise Landing Zone).
📋 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 dấu ✅ (đúng) hoặc ❌ (sai), kèm giải thích rõ ràng:
-
Configure Policy-based Routing for each team.
❌ Sai: Policy-based Routing (PBR) chỉ là tính năng routing nâng cao trong VPC (dựa trên policy để route traffic), không tạo separate projects hay chia sẻ network. Không giải quyết vấn đề multi-project/scale cho 100 teams, chỉ dùng cho traffic control nội bộ. Không phù hợp landing zone. -
Configure a Shared VPC, and create a VPC network in the host project.
✅ Đúng: Như giải thích trên. Host project chứa VPC network, service projects (teams) attach để dùng subnets. Central team quản lý toàn bộ network topology. Scale hoàn hảo với quota cao (theo GCP docs 2026: 10.000+ subnets shareable). -
Configure VPC Network Peering, and peer one of the VPC's to the service project.
❌ Sai: VPC Peering chỉ kết nối 2 VPC (non-transitive), không scale cho 100 teams (giới hạn 100 peerings/VPC, quản lý phức tạp với hub-spoke). Không cho phép central team kiểm soát subnets của teams; mỗi team cần VPC riêng → không centralized network. -
Configure a Shared VPC, and create a VPC network in the service project.
❌ Sai: Trong Shared VPC, VPC network phải tạo ở host project (không phải service project). Service projects chỉ consume (attach) subnets, không tạo VPC. Làm vậy sẽ vi phạm mô hình, central team mất control.
📚 Tài liệu tham khảo (cập nhật mới nhất 2026)
- GCP Shared VPC Overview – Chi tiết host/service projects.
- GCP Landing Zone Best Practices – Multi-team scale với Shared VPC.
- GCP Quotas & Limits – Xác nhận scale cho 100+ projects.
- GCP Professional Cloud Network Engineer Exam Guide (2024-2026): Topic 1.3 – Designing scalable networks.
Hy vọng phân tích này giúp bạn nắm vững! 🚀 Nếu cần ví dụ Terraform/code, hãy hỏi thêm.
- A Configure a star topology, add the VPC spokes to the hub, and specify all subnet ranges in the excludeExportRanges filter.
- B Configure a mesh topology, add the VPC spokes to the hub, and specify all subnet ranges in the excludeExportRanges filter.
- C Configure a mesh topology, and add the VPC spokes to the hub.
- D Configure a star topology, and add the VPC spokes to the hub.
Xem giải thích
🧩 Giải thích nội dung câu hỏi
Câu hỏi xoay quanh việc sử dụng Network Connectivity Center (NCC) trên Google Cloud Platform (GCP) để thiết lập kết nối mạng giữa các VPC. Hub đã được cấu hình sẵn. Yêu cầu là tất cả các VPC trong môi trường phải kết nối mạng với nhau (bao gồm cả giao tiếp giữa các VPC spoke với nhau), và tất cả các dải subnet đều unique (không chồng chéo CIDR). Bạn cần cấu hình topology phù hợp bằng cách thêm các VPC làm spoke vào hub.
🔍 Điểm mấu chốt: NCC hỗ trợ hai loại topology chính: hub-and-spoke (star) và mesh. Vì subnet unique, không cần lo lắng về xung đột CIDR khi peering. Tuy nhiên, để đạt kết nối đầy đủ giữa tất cả VPC spoke với nhau mà không cần thiết bị NVA (Network Virtual Appliance) bổ sung trong hub, cần chọn topology đúng.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Configure a mesh topology, and add the VPC spokes to the hub.
✅ Lý do: Trong topology mesh của NCC, hub kết nối với tất cả spoke, và NCC tự động tạo VPC Network Peering trực tiếp giữa mọi cặp spoke (full mesh), cho phép tất cả VPC giao tiếp trực tiếp với nhau mà không cần traffic đi qua hub và không yêu cầu NVA hoặc Shared VPC. Vì hub đã cấu hình sẵn và subnet unique, chỉ cần thêm spoke vào hub với mesh topology là đạt yêu cầu. Điều này đảm bảo kết nối đầy đủ, latency thấp, và scalable (hỗ trợ đến 100 spoke theo docs mới nhất 2024-2026).
📋 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. Tôi đánh dấu ✅ đúng / ❌ sai, kèm lý do bằng tiếng Việt rõ ràng dựa trên tài liệu GCP NCC phiên bản mới nhất (2024+, không thay đổi lớn đến 2026).
-
❌ [SAI] Configure a star topology, add the VPC spokes to the hub, and specify all subnet ranges in the excludeExportRanges filter.
🛠️ Topology star (hub-and-spoke) chỉ peering hub-spoke, không tự động cho phép giao tiếp spoke-spoke (non-transitive peering). Cần NVA trong hub để route traffic giữa spoke, nhưng hub đã cấu hình sẵn (không đề cập NVA). ThêmexcludeExportRangesvới tất cả subnet sẽ chặn export route, khiến spoke không thấy route của nhau → không đạt kết nối đầy đủ. Sai hoàn toàn. -
❌ [SAI] Configure a mesh topology, add the VPC spokes to the hub, and specify all subnet ranges in the excludeExportRanges filter.
🛠️ Topology mesh đúng vì tự động peering trực tiếp giữa spoke. Tuy nhiên,excludeExportRangesvới tất cả subnet sẽ ngăn chặn advertisement route giữa spoke (qua peering groups), làm gián đoạn kết nối → phá hủy lợi ích mesh. Không cần filter vì subnet unique. Sai do phần filter thừa và hại. -
✅ [ĐÚNG] Configure a mesh topology, and add the VPC spokes to the hub.
🧩 Hoàn hảo: Mesh topology + thêm spoke → NCC auto-provision peering hub-spoke và full mesh spoke-spoke. Subnet unique đảm bảo peering thành công. Không cần filter/export tùy chỉnh. Đáp ứng chính xác "all VPCs need network connectivity to each other" mà không cần config thêm. -
❌ [SAI] Configure a star topology, and add the VPC spokes to the hub.
🛠️ Topology star (hub-and-spoke) chỉ hỗ trợ kết nối hub-spoke. Spoke không giao tiếp trực tiếp hoặc transitive trừ khi có NVA/Shared VPC trong hub (không được đề cập, hub đã sẵn). Traffic spoke-spoke bị block → không đáp ứng yêu cầu tất cả VPC kết nối lẫn nhau. Sai cơ bản dù không có filter thừa.
📘 Tài liệu tham khảo
- GCP NCC Hub-and-Spoke: cloud.google.com/network-connectivity-center/docs/hub-spoke – Xác nhận cần NVA cho inter-spoke.
- GCP NCC Mesh Topology: cloud.google.com/network-connectivity-center/docs/mesh-overview – Auto peering full mesh giữa spoke.
- NCC API Docs (topology enum): cloud.google.com/network-connectivity/docs/reference/rest/v1/projects.locations/hubs#Topology – Hub topology immutable, MESH cho full connectivity.
- Best Practices (2024+): Không thay đổi lớn đến 2026; mesh lý tưởng cho multi-VPC full connect mà không bottleneck hub.
-
A
1. Create two HA VPN gateways.
2. Create one tunnel on interface 0 of one gateway and create one tunnel on interface 1 of the other gateway.
3. Terminate each of the two tunnels on the single public IP address that is configured on the VPN termination device located in your on-premises data center. -
B
1. Create one Classic VPN gateway and one HA VPN gateway.
2. Create one tunnel on the interface of the Classic VPN gateway and one tunnel on interface 1 of the HA VPN gateway.
3. Terminate each of the two tunnels on the single public IP address that is configured on the VPN termination device located in your on-premises data center. -
C
1. Replace the existing on-premises VPN termination device with a new device that is configured with two different public IP addresses.
2. Create one HA VPN gateway.
3. Create one tunnel for each of the two HA VPN gateway interfaces.
4. Terminate each of the two tunnels on one of the two public IP addresses that is configured on the new VPN termination device located in your on-premises data center. -
D
1. Create one HA VPN gateway.
2. Create one tunnel for each of the two HA VPN gateway interfaces.
3. Terminate each of the two tunnels on the single public IP address that is configured on the VPN termination device located in your on-premises data center.
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi yêu cầu thiết kế kết nối một data center on-premises duy nhất đến một VPC trên Google Cloud thông qua kết nối IPsec VPN. Các yêu cầu chính bao gồm:
- SLA tối thiểu 99.99%: Cần đảm bảo tính sẵn sàng cao (high availability - HA), tránh single point of failure.
- Chỉ một thiết bị VPN termination on-premises với một địa chỉ IP public duy nhất.
- Ít nỗ lực thiết lập nhất (least amount of setup effort): Ưu tiên giải pháp đơn giản, không thay đổi phần cứng on-premises hoặc tạo nhiều tài nguyên thừa.
Mục tiêu là sử dụng HA VPN gateway của Google Cloud, hỗ trợ hai giao diện (interface 0 và 1) để tạo hai tunnel VPN song song, đảm bảo redundancy mà không cần IP riêng biệt trên peer device. Kiến thức dựa trên tài liệu Google Cloud VPC mới nhất (cập nhật đến 2024-2026, HA VPN hỗ trợ active/passive hoặc active/active mode với BGP cho dynamic routing).
✅ Đáp án đúng
Phương án đúng là lựa chọn cuối cùng:
- Create one HA VPN gateway.
2. Create one tunnel for each of the two HA VPN gateway interfaces.
3. Terminate each of the two tunnels on the single public IP address that is configured on the VPN termination device located in your on-premises data center.
Lý do chọn đáp án này 🛠️:
- HA VPN gateway tự động cung cấp hai giao diện vật lý (interface 0 và 1) với IP public riêng biệt từ Google, hỗ trợ hai tunnel IPsec độc lập.
- Cả hai tunnel có thể terminate trên cùng một IP public của thiết bị on-premises (peer gateway), nhờ cơ chế IKEv2 và BGP dynamic routing (eBGP) để tự động failover.
- Đạt SLA 99.99% nhờ redundancy (một tunnel active, một passive hoặc active/active).
- Least setup effort: Chỉ tạo một HA VPN gateway, không cần thay thế thiết bị on-premises hay tạo nhiều gateway thừa. Thiết lập nhanh qua Google Cloud Console hoặc gcloud CLI.
📋 Giải thích chi tiết từng phương án
Dưới đây là phân tích tất cả các phương án, giữ nguyên nội dung gốc bằng tiếng Anh. Mỗi phương án được đánh giá đúng/sai với lý do cụ thể:
-
❌ Phương án SAI 1:
- Create two HA VPN gateways.
2. Create one tunnel on interface 0 of one gateway and create one tunnel on interface 1 of the other gateway.
3. Terminate each of the two tunnels on the single public IP address that is configured on the VPN termination device located in your on-premises data center.
Lý do sai ❌: Tạo hai HA VPN gateway là thừa thãi, tăng chi phí và nỗ lực thiết lập (quản lý BGP peering riêng biệt, route propagation phức tạp). Không cần thiết vì một HA VPN đã đủ redundancy. Vi phạm "least setup effort".
- Create two HA VPN gateways.
-
❌ Phương án SAI 2:
- Create one Classic VPN gateway and one HA VPN gateway.
2. Create one tunnel on the interface of the Classic VPN gateway and one tunnel on interface 1 of the HA VPN gateway.
3. Terminate each of the two tunnels on the single public IP address that is configured on the VPN termination device located in your on-premises data center.
Lý do sai ❌: Classic VPN (policy-based hoặc route-based) không hỗ trợ HA (chỉ một tunnel, SLA thấp hơn 99.99%). Kết hợp Classic + HA không được khuyến nghị, gây routing không nhất quán và failover thủ công. Tăng nỗ lực thiết lập mà không đạt yêu cầu SLA.
- Create one Classic VPN gateway and one HA VPN gateway.
-
❌ Phương án SAI 3:
- Replace the existing on-premises VPN termination device with a new device that is configured with two different public IP addresses.
2. Create one HA VPN gateway.
3. Create one tunnel for each of the two HA VPN gateway interfaces.
4. Terminate each of the two tunnels on one of the two public IP addresses that is configured on the new VPN termination device located in your on-premises data center.
Lý do sai ❌: Yêu cầu thay thế thiết bị on-premises (vi phạm điều kiện "single VPN termination device" và "single public IP"). Tăng nỗ lực lớn (mua sắm, cấu hình phần cứng mới), không phải "least setup effort". HA VPN không bắt buộc hai IP riêng trên peer.
- Replace the existing on-premises VPN termination device with a new device that is configured with two different public IP addresses.
-
✅ Phương án ĐÚNG (đã giải thích chi tiết ở trên):
- Create one HA VPN gateway.
2. Create one tunnel for each of the two HA VPN gateway interfaces.
3. Terminate each of the two tunnels on the single public IP address that is configured on the VPN termination device located in your on-premises data center.
Tóm tắt lý do đúng ✅: Giải pháp tối ưu, tận dụng tính năng native của HA VPN (hỗ trợ same peer IP cho cả hai tunnel), dễ triển khai và đạt SLA yêu cầu.
- Create one HA VPN gateway.
📘 Tài liệu tham khảo
- Google Cloud HA VPN Documentation: HA VPN overview (cập nhật 2024: Xác nhận hỗ trợ single peer IP cho redundancy).
- HA VPN SLA: 99.99% monthly uptime.
- Best Practices: Configure HA VPN to an existing peer gateway – Hướng dẫn terminate both tunnels on single IP.
- gcloud CLI Guide: Sử dụng
gcloud compute vpn-gateways createvới--networkvà--region.
Giải pháp này hoàn toàn phù hợp với Google Cloud Networking best practices đến năm 2026! 🚀 Nếu cần demo Terraform hoặc CLI, hãy cho tôi biết nhé!
- A Configure multiple regional internal proxy Network Load Balancers and enable global access. Use DNS routing policies to balance traffic across regions.
- B Configure multiple regional internal Application Load Balancers and enable global access. Use DNS routing policies to balance traffic across regions.
- C Configure a single cross region internal proxy Network Load Balancer.
- D Configure multiple regional internal passthrough Network Load Balancers and enable global access. Use DNS routing policies to balance traffic across regions.
Xem giải thích
🧩 Phân tích chi tiết câu hỏi trắc nghiệm AWS
📘 Nội dung câu hỏi được giải thích rõ ràng:
Câu hỏi mô tả một tổ chức có ứng dụng highly available (có tính sẵn sàng cao), không dựa trên HTTP (non-HTTP-based), chạy trên nhiều cổng TCP (multiple TCP ports), và được triển khai ở nhiều vùng (regions). Yêu cầu thiết kế giải pháp load balance ứng dụng trong cùng Shared VPC (môi trường VPC chia sẻ), nơi dịch vụ được truy cập. Quan trọng nhất:
- Header IP phải chứa địa chỉ IP nguồn thực của client (client's true source IP address) – nghĩa là phải bảo toàn IP gốc của người dùng, không proxy hóa.
- Không cần truy cập internet công khai (no public internet access) – toàn bộ phải private/internal.
Mục tiêu: Load balance cross-region trong private network, hỗ trợ TCP multi-port, preserve source IP. Đây là kịch bản điển hình cho AWS Network Load Balancer (NLB) internal với tính năng mới. (Kiến thức cập nhật AWS 2026: Internal NLB hỗ trợ global access từ 2023, kết hợp Route 53 cho multi-region).
✅ Đáp án đúng:
Configure multiple regional internal passthrough Network Load Balancers and enable global access. Use DNS routing policies to balance traffic across regions.
🛠️ Lý do chọn đáp án đúng (chi tiết):
- Passthrough NLB internal: NLB hoạt động ở Layer 4 (TCP/UDP/TLS), hỗ trợ multiple TCP ports, bảo toàn source IP của client (không thay đổi header IP). Phù hợp non-HTTP.
- Multiple regional: Mỗi region cần NLB riêng vì AWS chưa có global NLB single cho internal (chỉ external NLB có global).
- Enable global access: Tính năng AWS (ra mắt 2023, cập nhật 2026) cho phép internal NLB nhận traffic từ regions khác qua VPC peering/Transit Gateway, private hoàn toàn.
- DNS routing policies (Route 53): Sử dụng latency-based, weighted, hoặc geolocation routing để balance traffic cross-region. Hoàn hảo cho Shared VPC private.
Giải pháp này đảm bảo high availability, preserve IP, no public IP.
📋 Giải thích tất cả các phương án (đúng/sai)
-
❌ [SAI] Configure multiple regional internal proxy Network Load Balancers and enable global access. Use DNS routing policies to balance traffic across regions.
Phương án này sai vì "proxy Network Load Balancers" không tồn tại chuẩn trong AWS. NLB là passthrough (bảo toàn IP), không có mode "proxy" như vậy. Nếu dùng proxy (như ELB v1 cũ), sẽ mất source IP thực (thay bằng IP của LB). Không phù hợp yêu cầu preserve client's true source IP. Các phần còn lại (regional, global access, DNS) đúng nhưng "proxy" làm sai toàn bộ. -
❌ [SAI] Configure multiple regional internal Application Load Balancers and enable global access. Use DNS routing policies to balance traffic across regions.
Sai vì Application Load Balancer (ALB) chỉ hỗ trợ HTTP/HTTPS (Layer 7), không phù hợp ứng dụng non-HTTP, multiple TCP ports. ALB không preserve source IP (dùng X-Forwarded-For header), vi phạm yêu cầu. ALB internal tồn tại nhưng không dành cho TCP raw. Global access/DNS đúng nhưng loại LB sai. -
❌ [SAI] Configure a single cross region internal proxy Network Load Balancer.
Sai hoàn toàn: AWS không có "single cross-region internal NLB" (chỉ external NLB có global mode). Internal NLB phải regional, dùng multiple + Route 53 để cross-region. "Proxy" lại sai vì không preserve IP. Không hỗ trợ Shared VPC cross-region single instance. -
✅ [ĐÚNG] Configure multiple regional internal passthrough Network Load Balancers and enable global access. Use DNS routing policies to balance traffic across regions.
Đúng như giải thích trên: Passthrough NLB internal preserve IP, hỗ trợ TCP multi-port/non-HTTP, global access cho private cross-region, Route 53 policies balance traffic. Hoàn hảo cho Shared VPC, high availability, no public internet.
📚 Tài liệu tham khảo (AWS docs cập nhật 2026)
- AWS NLB Internal with Global Access – Xác nhận preserve source IP & global access.
- Route 53 Routing Policies for Multi-Region – Latency/weighted cho balance.
- Shared VPC & NLB – Hỗ trợ load balancers trong Shared VPC.
- AWS re:Invent 2023/2024 announcements: Internal NLB global access enhancements.
Giải pháp này tối ưu, scalable cho enterprise AWS! 🚀