Ngân hàng đề — Google Cloud Professional Cloud Network Engineer
Tìm thấy 247 câu.
- A Create a packet mirroring policy that is configured with your VM as the source and destined to a collector. Analyze the packet captures.
- B Enable VPC Flow Logs on the subnet that the VM is deployed in with SAMPLE_RATE = 1.0, and run a query in Logs Explorer to analyze the packet flow.
- C Verify the network/attachment/egress_dropped_packets_count Cloud Interconnect VLAN attachment metric.
- D Enable Firewall Rules Logging on your firewall rules and review the logs.
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 khắc phục sự cố (troubleshooting) một ứng dụng trong mạng Google Cloud không hoạt động đúng. Ứng dụng gửi gói tin (packets) ngắt quãng với tần suất thấp (low volume intermittently) từ một Compute Engine VM đến đích trên mạng on-premises qua cặp Cloud Interconnect VLAN attachments.
✅ Vấn đề chính: Nghi ngờ gói tin bị mất (packets getting lost) ở đâu đó trên đường đi.
- Đã kiểm tra Cloud Next Generation Firewall (Cloud NGFW): Không có quy tắc deny chặn egress traffic, và không có quy tắc allow explicit (theo mặc định, egress traffic trong GCP được allow trừ khi có deny).
- Mục tiêu: Theo best practices của Google, phân tích luồng (flow) để kiểm tra xem gói tin có được gửi đúng từ VM ra không, nhằm cô lập vấn đề (isolate the issue).
🛠️ Bối cảnh kỹ thuật: Đây là kiểm tra egress traffic từ VM qua Interconnect đến on-prem, tập trung vào việc xác nhận gói tin rời khỏi VM (không phải vấn đề ở firewall hay Interconnect ngay lập tức). Cần công cụ packet-level analysis cho traffic thấp và ngắt quãng.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Create a packet mirroring policy that is configured with your VM as the source and destined to a collector. Analyze the packet captures.
Lý do:
- Packet Mirroring là công cụ recommended bởi Google để capture và mirror toàn bộ gói tin (full packets) từ nguồn cụ thể (VM làm source), gửi đến collector để phân tích chi tiết (packet captures như Wireshark).
- Hoàn hảo cho traffic thấp, ngắt quãng vì capture 100% packets mà không miss (không sample).
- Giúp xác nhận gói tin có rời VM đúng không, cô lập vấn đề ngay từ nguồn VM trước khi đi xa hơn (Interconnect hoặc on-prem).
- Theo best practices GCP Networking (cập nhật 2024-2026): Sử dụng Packet Mirroring cho troubleshooting packet loss từ VM.
📘 Tài liệu tham khảo:
- Packet Mirroring overview (Google Cloud Docs, phiên bản mới nhất 2026).
- Troubleshoot connectivity with Packet Mirroring.
📋 Giải thích tất cả các phương án
Dưới đây là phân tích từng phương á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 mới nhất (2026).
-
Create a packet mirroring policy that is configured with your VM as the source and destined to a collector. Analyze the packet captures.
✅ Đúng (như đã giải thích ở trên). 🛠️ Đây là cách chính xác, granular nhất để xem packets từ VM source, không bị sample, phù hợp low-volume traffic. -
Enable VPC Flow Logs on the subnet that the VM is deployed in with SAMPLE_RATE = 1.0, and run a query in Logs Explorer to analyze the packet flow.
❌ Sai. VPC Flow Logs chỉ capture flow-level metadata (như src/dst IP, ports, bytes), KHÔNG phải full packets. Dù SAMPLE_RATE=1.0 (capture 100% flows), vẫn aggregate và có thể miss intermittent low-volume traffic do sampling mechanism và không real-time packet detail. Không phù hợp để "analyze the flow to see if packets are being sent correctly out of the VM" – chỉ xem tổng quan, không cô lập packet loss từ VM. -
Verify the network/attachment/egress_dropped_packets_count Cloud Interconnect VLAN attachment metric.
❌ Sai. Metric này chỉ đếm packets bị drop tại VLAN attachment của Cloud Interconnect (mức attachment), KHÔNG phản ánh packets từ VM source. Vấn đề có thể ở VM → subnet → router trước Interconnect, nên metric này không giúp isolate từ VM. Chỉ hữu ích sau khi xác nhận packets đến Interconnect. -
Enable Firewall Rules Logging on your firewall rules and review the logs.
❌ Sai. Đã validate không có deny rules ở Cloud NGFW, và egress default allow (không cần explicit allow). Firewall Logs chỉ log hits/denies trên rules, nhưng với no deny và low-volume, logs có thể trống hoặc không capture (logging overhead cao, không real-time packet analysis). Không phải cách Google-recommended để check "packets sent correctly out of the VM" – chỉ xem firewall impact, không phải VM egress.
🧩 Tóm tắt key takeaway: Packet Mirroring là best practice cho packet-level troubleshooting từ VM, giúp nhanh chóng isolate egress từ source mà không ảnh hưởng performance. Các phương án khác quá tổng quát hoặc sai vị trí trong network path.
- A Create a security policy to block all Cloud CON requests, review the logs, and filter which users are attempting to download the wrong game binary.
- B Create a new URL path for the updated game binary. Allow the cache to expire automatically through HTTP headers.
- C Upload the updated game binary to Cloud Storage. Invalidate the wrong game binary from the Cloud CDN cache.
- D Disable Cloud CDN. Reconfigure the load balancer with the updated game binary. Enable Cloud CDN.
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 tổ chức của bạn đang phát hành một trò chơi video mới, phân phối toàn cầu qua Cloud CDN (dịch vụ phân phối nội dung của Google Cloud). Trong giai đoạn phát hành sớm, phiên bản binary sai đã được upload lên Cloud Storage và bị cache vào Cloud CDN. Hàng nghìn người dùng đã tải phiên bản sai. Bộ phận marketing thông báo người dùng tải lại phiên bản cập nhật qua cùng một URL.
Vấn đề cốt lõi: Cần đảm bảo người dùng tải đúng phiên bản mới mà không thay đổi URL, loại bỏ cache cũ nhanh chóng để tránh người dùng tiếp tục nhận file sai.
🛠️ Yêu cầu giải quyết: Hành động ngay lập tức, hiệu quả, tận dụng tính năng của Cloud CDN và Cloud Storage (dựa trên kiến thức Google Cloud cập nhật đến 2026, Cloud CDN hỗ trợ invalidation cache linh hoạt qua API/CLI).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Upload the updated game binary to Cloud Storage. Invalidate the wrong game binary from the Cloud CDN cache.
Lý do:
- Upload file mới lên Cloud Storage đảm bảo nguồn gốc (origin) có dữ liệu đúng.
- Invalidate cache (xóa cache cụ thể cho path/URL) là tính năng chuẩn của Cloud CDN, buộc CDN tải lại từ origin ngay lập tức, giúp người dùng toàn cầu nhận phiên bản mới qua cùng URL mà không chờ TTL (Time-To-Live) hết hạn.
- Đây là cách nhanh nhất, ít gián đoạn nhất, phù hợp với quy mô hàng nghìn người dùng. Không ảnh hưởng đến traffic khác.
📘 Tài liệu tham khảo: Cloud CDN Cache Invalidation (cập nhật 2025-2026, hỗ trợ gsutil invalidation hoặc API với wildcard paths).
🛠️ Giải thích chi tiết 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. Tôi đánh dấu ✅ đúng hoặc ❌ sai, kèm lý do cụ thể bằng tiếng Việt:
-
❌ [SAI] Create a security policy to block all Cloud CON requests, review the logs, and filter which users are attempting to download the wrong game binary.
Phương án này không giải quyết gốc rễ vì block tất cả request đến Cloud CDN (có lẽ lỗi đánh máy "CDN") sẽ làm gián đoạn toàn bộ dịch vụ, ảnh hưởng người dùng hợp pháp. Review logs và filter users chỉ giúp theo dõi, không invalidate cache hay cung cấp file mới. Không hiệu quả, gây downtime lớn. -
❌ [SAI] Create a new URL path for the updated game binary. Allow the cache to expire automatically through HTTP headers.
Tạo URL mới vi phạm yêu cầu "sử dụng cùng URL" từ marketing. Chờ cache expire tự động qua HTTP headers (như Cache-Control) có thể mất hàng giờ/ngày tùy TTL, dẫn đến người dùng tiếp tục tải file cũ. Không chủ động, rủi ro cao với traffic toàn cầu. -
✅ [ĐÚNG] Upload the updated game binary to Cloud Storage. Invalidate the wrong game binary from the Cloud CDN cache.
Như đã giải thích ở trên: Upload origin mới + invalidate cache (quagcloud alpha cdn cache-invalidatedhoặc API) là giải pháp chuẩn, nhanh (thường <1 phút propagate global), không thay đổi URL hay gián đoạn. -
❌ [SAI] Disable Cloud CDN. Reconfigure the load balancer with the updated game binary. Enable Cloud CDN.
Disable Cloud CDN gây downtime toàn bộ CDN (mất lợi ích edge caching global). Load balancer (HTTP(S) LB) không dùng để host binary trực tiếp mà chỉ proxy đến backend như Cloud Storage. Re-enable sau không tự invalidate cache cũ, phức tạp và không cần thiết so với invalidate đơn giản.
🧩 Kết luận: Phương án đúng tận dụng tối ưu Cloud CDN features (invalidate), phù hợp best practices Google Cloud Networking (2026). Nếu triển khai, dùng lệnh: gsutil invalidate Cloud-CDN-Backend/path/to/binary. Tham khảo thêm: Google Cloud CDN Overview.
- A Create a Cloud Armor security policy, and associate the policy with the load balancer. Configure the security policy's settings as follows: action: throttle; conform action: allow; exceed action: deny-429.
- B Configure the load balancer to accept only the defined amount of requests per client IP address, increase the backend servers to support more traffic, and redirect traffic to a different backend to burst traffic.
- C Create a Cloud Armor security policy, and apply the predefined Open Worldwide Security Application Project (OWASP) rules to automatically implement the rate limit per client IP address.
- D Configure a VM with Linux, implement the rate limit through iptables, and use a firewall rule to send an HTTP 429 response to the client application.
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 mô tả tình huống bạn đang quản lý một ứng dụng chính sử dụng external global Application Load Balancer (cân bằng tải ứng dụng toàn cầu bên ngoài) trên Google Cloud Platform (GCP). Sau khi kiểm tra hành vi người dùng, bạn phát hiện máy chủ backend bị quá tải do các spike đột ngột (erratic spikes) trong tỷ lệ yêu cầu từ client. Nhiệm vụ là giới hạn số lượng phiên đồng thời (concurrent sessions) và trả về phản hồi HTTP 429 Too Many Requests cho client, đồng thời tuân thủ thực hành được Google khuyến nghị.
🔍 Yêu cầu chính: Áp dụng cơ chế rate limiting/throttling để bảo vệ backend, với phản hồi chuẩn HTTP 429, và phải theo best practices của Google (sử dụng dịch vụ native như Cloud Armor thay vì tự build).
✅ Đáp án đúng:
Create a Cloud Armor security policy, and associate the policy with the load balancer. Configure the security policy's settings as follows: action: throttle; conform action: allow; exceed action: deny-429.
Lý do chọn đáp án này (theo kiến thức GCP cập nhật đến 2026):
🛡️ Cloud Armor là dịch vụ bảo mật WAF (Web Application Firewall) của Google, hỗ trợ rate-based throttling chính xác để giới hạn concurrent sessions hoặc requests per IP/second. Cấu hình action: throttle; conform action: allow; exceed action: deny-429 là cách chính thức được Google khuyến nghị (theo docs mới nhất), cho phép request hợp lệ đi qua (allow), còn vượt ngưỡng thì deny với mã 429. Điều này gắn trực tiếp vào Load Balancer backend, hiệu quả cao, không cần code custom.
📘 Tài liệu tham khảo:
- Cloud Armor Rate Limiting Overview (cập nhật 2024-2026).
- Configure Throttling Policies.
🛠️ 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, giữ nguyên văn bản gốc tiếng Anh. Tôi đánh dấu ✅ cho đúng, ❌ cho sai, và giải thích chi tiết bằng tiếng Việt dựa trên best practices GCP.
-
✅ [ĐÚNG] Create a Cloud Armor security policy, and associate the policy with the load balancer. Configure the security policy's settings as follows: action: throttle; conform action: allow; exceed action: deny-429.
🟢 Giải thích đúng: Đây là giải pháp chuẩn, native của GCP. Cloud Armor hỗ trợ throttling dựa trên IP hoặc session, gắn trực tiếp vào global external HTTP(S) Load Balancer. Cấu hình chính xác trả về HTTP 429 khi vượt ngưỡng (ví dụ: 100 requests/IP/60s), bảo vệ backend mà không làm gián đoạn dịch vụ. Tuân thủ 100% Google-recommended practices, scalable globally. -
❌ [SAI] Configure the load balancer to accept only the defined amount of requests per client IP address, increase the backend servers to support more traffic, and redirect traffic to a different backend to burst traffic.
🔴 Giải thích sai: Global Application Load Balancer của GCP không có tính năng built-in rate limiting per IP như mô tả (chỉ hỗ trợ qua Cloud Armor). Việc tăng backend servers chỉ scale up chứ không limit concurrent sessions (có thể làm tốn kém vô ích). Redirect traffic để "burst" không trả về HTTP 429 chuẩn và không phải best practice – dễ gây loop hoặc overload khác. -
❌ [SAI] Create a Cloud Armor security policy, and apply the predefined Open Worldwide Security Application Project (OWASP) rules to automatically implement the rate limit per client IP address.
🔴 Giải thích sai: Cloud Armor có OWASP rules (như Top 10, CRS) để chống tấn công SQLi/XSS/CSRF, nhưng chúng không tự động implement rate limiting. OWASP tập trung vào security patterns, không phải throttling/concurrent sessions. Để rate limit, phải dùng custom threshold rules (như phương án đúng), không phải predefined OWASP. -
❌ [SAI] Configure a VM with Linux, implement the rate limit through iptables, and use a firewall rule to send an HTTP 429 response to the client application.
🔴 Giải thích sai: Sử dụng VM Linux + iptables là cách tự build, không scalable và không được Google khuyến nghị cho global LB (phải đặt VM trước LB, tăng latency/single point of failure). iptables limit packets chứ không dễ gửi HTTP 429 chuẩn (cần custom script phức tạp). GCP ưu tiên managed services như Cloud Armor để tránh operational overhead.
🎯 Kết luận: Phương án đúng tận dụng Cloud Armor throttling – giải pháp managed, global, và hiệu quả nhất cho external global Application Load Balancer trên GCP (không liên quan AWS như lưu ý ban đầu, vì toàn bộ terms là GCP-native). Áp dụng ngay để bảo vệ ứng dụng! 🚀
-
A
1. Create a new Cloud Armor network edge security policy. In the policy, set the userIpRequestHeaders[] attribute.
2. Add a policy rule that denies traffic that matches inIpRange(origin.user_ip, 'IP_RANGE_BLOCK') statement.
3. Apply the policy to the backend service that includes all your Google Cloud workloads. -
B
1. Create a new Cloud Armor network edge security policy. In the policy, set the userIpRequestHeaders[] attribute.
2. Add a policy rule that denies traffic that matches the inIpRange(origin.ip, 'IP_RANGE_BLOCK') statement.
3. Apply the policy to the backend service that includes all your Google Cloud workloads. -
C
1. Create a new Cloud Armor backend security policy. In the policy, set the userIpRequestHeaders[] attribute.
2. Add a policy rule that denies traffic that matches the inIpRange(origin.user_ip, 'IP_RANGE_BLOCK') statement.
3. Apply the policy to the backend service that includes all your Google Cloud workloads. -
D
1. Create a new Cloud Armor backend security policy. In the policy, set the userIpRequestHeaders[] attribute.
2. Add a policy rule that denies traffic that matches the inIpRange(origin.ip, 'IP_RANGE_BLOCK') statement.
3. Apply the policy to the backend service that includes all your Google Cloud workloads.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi xoay quanh việc cấu hình Cloud Armor trong Google Cloud để chặn các session từ các IP client gốc (internet clients) thuộc dải IP_RANGE_BLOCK.
📋 Bối cảnh chính:
- Công ty sử dụng third-party cloud WAF làm proxy: Nó nhận kết nối HTTPS từ client internet, áp dụng chính sách bảo mật, sau đó mở kết nối HTTPS mới đến public IP của global Application Load Balancer (ALB) trong Google Cloud.
- Workloads Google Cloud là backend của ALB này.
- Cloud Armor chưa được cấu hình.
- Yêu cầu: Cloud Armor phải tự thực hiện việc chặn (không phải third-party WAF), dựa trên source IP gốc của client internet (không phải IP của WAF proxy).
⚠️ Thách thức kỹ thuật:
- Vì third-party WAF proxy traffic, nên source IP mà ALB nhìn thấy là IP của WAF provider, không phải IP client thật.
- Để Cloud Armor lấy được IP client gốc, cần trích xuất từ HTTP headers (như X-Forwarded-For, True-Client-IP) mà WAF forward.
- Cloud Armor sử dụng CEL (Common Expression Language) để viết rules, với
origin.user_ip(IP user từ headers) vàorigin.ip(IP trực tiếp kết nối). - Policy phải attach vào backend service chứa workloads.
- Loại policy: Backend security policy (L7, attach backend service) vs Network edge security policy (gần edge network, attach target proxy, chủ yếu L3/L4 + một số L7).
🛠️ Giải pháp cần thiết (theo docs GCP 2024-2026):
- Tạo backend security policy.
- Set
userIpRequestHeaders[]để chỉ định headers chứa IP client thật. - Rule:
inIpRange(origin.user_ip, 'IP_RANGE_BLOCK')để deny. - Attach policy vào backend service.
📘 Tài liệu tham khảo:
- Cloud Armor security policy overview (cập nhật 2025).
- Configure Cloud Armor policies – chi tiết
userIpRequestHeadersvà CEL. - Edge vs Backend policies (Premium Network Tier).
✅ Đáp án đúng: Lựa chọn thứ 3
1. Create a new Cloud Armor backend security policy. In the policy, set the userIpRequestHeaders[] attribute.
2. Add a policy rule that denies traffic that matches the inIpRange(origin.user_ip, 'IP_RANGE_BLOCK') statement.
3. Apply the policy to the backend service that includes all your Google Cloud workloads.
Lý do lựa chọn 🏆:
- ✅ Backend security policy: Đúng loại policy attach trực tiếp vào backend service (step 3), phù hợp với External HTTP(S) LB global. Policy này inspect L7 traffic sau LB proxy, hỗ trợ đầy đủ CEL với
origin.user_ip. - ✅ userIpRequestHeaders[]: Cấu hình bắt buộc để Cloud Armor trích xuất IP client thật từ headers do third-party WAF forward (vì
origin.ipchỉ thấy IP WAF). - ✅ inIpRange(origin.user_ip, ...): Rule chính xác chặn dựa trên IP gốc, deny traffic matching.
- Toàn bộ quy trình khớp yêu cầu: Cloud Armor tự block, không phụ thuộc WAF ngoài.
❌ Phân tích tất cả các phương án
-
Phương án 1 (SAI):
1. Create a new Cloud Armor network edge security policy. In the policy, set the userIpRequestHeaders[] attribute. 2. Add a policy rule that denies traffic that matches inIpRange(origin.user_ip, 'IP_RANGE_BLOCK') statement. 3. Apply the policy to the backend service that includes all your Google Cloud workloads.❌ Lý do sai: Network edge security policy không attach vào backend service (step 3 sai – nó attach vào target proxy/frontend LB). Mặc dù hỗ trợ
userIpRequestHeadersvàorigin.user_ipở Premium Tier, nhưng không phù hợp quy trình attach và chủ yếu cho edge DDoS/L4, không inspect đầy đủ sau proxy WAF. -
Phương án 2 (SAI):
1. Create a new Cloud Armor network edge security policy. In the policy, set the userIpRequestHeaders[] attribute. 2. Add a policy rule that denies traffic that matches the inIpRange(origin.ip, 'IP_RANGE_BLOCK') statement. 3. Apply the policy to the backend service that includes all your Google Cloud workloads.❌ Lý do sai: Kết hợp 2 lỗi: (1) Network edge policy không attach backend service (như trên). (2)
origin.ipchỉ lấy IP trực tiếp (IP WAF proxy), không phải IP client gốc – không giải quyết vấn đề proxy. -
Phương án 3 (ĐÚNG): ✅ Giải thích chi tiết ở phần trên – Hoàn hảo khớp yêu cầu.
-
Phương án 4 (SAI):
1. Create a new Cloud Armor backend security policy. In the policy, set the userIpRequestHeaders[] attribute. 2. Add a policy rule that denies traffic that matches the inIpRange(origin.ip, 'IP_RANGE_BLOCK') statement. 3. Apply the policy to the backend service that includes all your Google Cloud workloads.❌ Lý do sai: Loại policy và attach đúng,
userIpRequestHeaders[]đúng, nhưngorigin.ipsai – nó lấy IP WAF proxy thay vì IP client gốc từ headers. Dù set headers, rule vẫn dùng IP sai → không block đúng session client.
🧠 Lưu ý cuối: Cấu hình này đảm bảo Cloud Armor độc lập block traffic xấu ngay tại backend, tăng layer bảo mật sau third-party WAF!
- A Create a sub-domain named internal.terramearth.com. Add the new DNS entry (myglobalapp.internal.terramearth.com) to the sub-domain pointing to the internal IP address from the application VM.
- B Configure a query logic script inside Cloud DNS to check the source IP address from the VPC, and respond with a modified DNS record to include the internal IP address from the application VM.
- C Configure a private zone for the application record (myglobalapp.terramearth.com) and point to the internal IP address of the application VM. Bind this zone to the VPC.
- D Promote the ephemeral IP address from the application VM to static, add this static ip address to each internal client's host file, and change the myglobalapp.terramearth.com DNS record to this new static IP address.
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 của tổ chức TerramEarth đang triển khai một ứng dụng toàn cầu quản lý thanh toán thẻ tín dụng trên Google Cloud Platform (GCP). Các máy ảo (VM) client bên trong cùng VPC cần truy cập ứng dụng này một cách riêng tư (privately), không sử dụng địa chỉ IP công khai (external IP) do yêu cầu tuân thủ (compliance).
Hiện tại:
- Cloud DNS chỉ resolve tên miền
myglobalapp.terramearth.comđến public IP qua public zone. - Client cần resolve
myglobalapp.terramearth.com(giữ nguyên tên miền) đến internal IP của ứng dụng VM, mà không dùng external IP.
Yêu cầu giải pháp:
- Cấu hình Cloud DNS theo best practices của Google để client trong VPC resolve đúng internal IP.
- Giải pháp phải scalable, an toàn, tuân thủ private access.
📘 Tài liệu tham khảo:
- Cloud DNS Private Zones (cập nhật 2024-2026: Hỗ trợ private zones với VPC binding, peering, và Cloud DNS policies).
- Google Cloud Networking Best Practices (khuyến nghị private DNS cho internal services).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Configure a private zone for the application record (myglobalapp.terramearth.com) and point to the internal IP address of the application VM. Bind this zone to the VPC.
Lý do:
- 🛠️ Private zone trong Cloud DNS cho phép tạo bản sao riêng tư của tên miền (tên giống public zone:
myglobalapp.terramearth.com), resolve đến internal IP chỉ dành cho các VPC được bind. - Client trong VPC sẽ ưu tiên private zone (theo thứ tự resolution của Google: private > public), không cần thay đổi tên miền hay dùng external IP → Tuân thủ compliance và private access.
- Đây là Google-recommended practice cho hybrid/public-private DNS (split-horizon DNS), scalable cho global apps. Không ảnh hưởng public zone cho external clients.
- Cập nhật 2026: Private zones hỗ trợ A/AAAA records cho internal IPv4/IPv6, với VPC binding tự động propagate qua Cloud Router nếu cần.
📋 Giải thích tất cả các phương án
-
Phương án A [SAI]: Create a sub-domain named internal.terramearth.com. Add the new DNS entry (myglobalapp.internal.terramearth.com) to the sub-domain pointing to the internal IP address from the application VM.
❌ Sai vì: Yêu cầu client dùng tên miền mới (myglobalapp.internal.terramearth.com) thay vìmyglobalapp.terramearth.comgốc → Phải thay đổi ứng dụng/config client (không scalable, vi phạm "reach myglobalapp.terramearth.com"). Không theo best practice, vẫn phụ thuộc public zone cho tên gốc. -
Phương án B [SAI]: Configure a query logic script inside Cloud DNS to check the source IP address from the VPC, and respond with a modified DNS record to include the internal IP address from the application VM.
❌ Sai vì: Cloud DNS không hỗ trợ script tùy chỉnh hoặc query logic dựa trên source IP (không có GeoIP/DNS policies cho internal IP selection như vậy). Đây là tính năng không tồn tại (chỉ có Cloud DNS Policies cho external traffic). Vi phạm best practices, phức tạp và không an toàn. -
Phương án C [ĐÚNG]: Configure a private zone for the application record (myglobalapp.terramearth.com) and point to the internal IP address of the application VM. Bind this zone to the VPC.
✅ Đúng vì: Như giải thích trên. 🛠️ Hoàn hảo match yêu cầu: Giữ tên miền gốc, private resolution chỉ trong VPC, bind zone đảm bảo propagation. Best practice cho TerramEarth-like workloads. -
Phương án D [SAI]: Promote the ephemeral IP address from the application VM to static, add this static ip address to each internal client's host file, and change the myglobalapp.terramearth.com DNS record to this new static IP address.
❌ Sai vì:- Chỉnh
/etc/hoststrên mỗi client → Không scalable (hàng nghìn VM?), manual maintenance, vi phạm automation best practices. - Thay đổi public DNS record ảnh hưởng toàn cầu (external clients cũng resolve sai internal IP → Downtime/compliance fail).
- Ephemeral to static chỉ là bước phụ, không giải quyết DNS private access.
- Chỉnh
Kết luận 💡: Giải pháp C là tối ưu, đảm bảo zero-trust networking và hybrid DNS theo blueprint Google Cloud cho global apps như TerramEarth! 🚀
- A Set up the Dedicated Interconnect connection towards the europe-west4 region instead of the europe-west3 region.
- B Set up an additional Partner Interconnect connection between your data center and the europe-west4 region.
- C Set up a remote VLAN attachment to the europe-west4 region on the Dedicated Interconnect connection.
- D Use Cloud VPN instead of Dedicated Interconnect to send traffic over the internet.
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 đang thiết lập Dedicated Interconnect từ data center on-premises tại Frankfurt, Germany (Đức) kết nối đến region europe-west3 (cũng nằm trong khu vực Frankfurt). Tuy nhiên, team AI lo ngại về kết nối đến europe-west4 (region ở Hà Lan, gần Frankfurt) vì họ cần sử dụng Google Cloud TPUs cho workload, đòi hỏi low latency network connectivity. Mục tiêu là đảm bảo kết nối mạng độ trễ thấp, đồng thời giảm thiểu chi phí và operational overhead (gánh nặng vận hành).
🛠️ Vấn đề cốt lõi: Dedicated Interconnect chỉ attach trực tiếp đến một location cụ thể (ở đây europe-west3), nhưng cần mở rộng đến europe-west4 mà không cần thêm kết nối vật lý mới, tận dụng backbone network của Google để giữ low latency (thường <10ms nội bộ GCP). Giải pháp phải phù hợp với kiến trúc Cloud Interconnect mới nhất (cập nhật 2024-2026, hỗ trợ multi-region peering qua VLAN attachments).
📘 Tài liệu tham khảo:
- Google Cloud Interconnect Documentation
- Remote VLAN Attachments Guide (hỗ trợ low-latency peering qua Google's global backbone).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Set up a remote VLAN attachment to the europe-west4 region on the Dedicated Interconnect connection.
Lý do:
- ✅ Remote VLAN attachment cho phép tạo VLAN ảo từ Dedicated Interconnect tại europe-west3 (Frankfurt) để peering trực tiếp với VPC ở europe-west4, traffic đi qua Google's premium backbone network (low latency ~5-10ms giữa hai region gần nhau).
- ✅ Tiết kiệm chi phí & overhead: Không cần thêm hardware/cáp vật lý, chỉ cấu hình phần mềm trên Interconnect hiện tại (một lần setup, tự động scale).
- ✅ Phù hợp workload TPU (TPUs ở europe-west4 yêu cầu high-bandwidth low-latency để sync data từ on-prem).
- 🧩 Đây là best practice theo GCP 2026, hỗ trợ HA/VPC peering cross-region mà không cần Partner Interconnect.
❌ Giải thích tất cả các phương án (đúng/sai)
-
[SAI] Set up the Dedicated Interconnect connection towards the europe-west4 region instead of the europe-west3 region.
❌ Sai vì: Thay đổi toàn bộ Interconnect sang europe-west4 sẽ mất kết nối trực tiếp đến europe-west3 (vốn đã setup), dẫn đến downtime & chi phí cao (cần deploy lại hardware tại location mới ở Hà Lan). Không giải quyết nhu cầu dual-region, overhead lớn, không low latency cho europe-west3. -
[SAI] Set up an additional Partner Interconnect connection between your data center and the europe-west4 region.
❌ Sai vì: Partner Interconnect (qua ISP third-party) yêu cầu thêm kết nối vật lý từ on-prem đến PoP của partner gần europe-west4, tăng chi phí gấp đôi (port fees + partner fees), độ trễ cao hơn backbone trực tiếp (~20-50ms), và overhead vận hành (quản lý nhiều connection). Không tối ưu so với remote VLAN. -
[ĐÚNG] Set up a remote VLAN attachment to the europe-west4 region on the Dedicated Interconnect connection.
✅ Đúng vì: Như giải thích trên, tận dụng Interconnect hiện tại để extend peering đến region khác qua Google's network (low latency, zero thêm hardware). Hỗ trợ L2/L3 BGP peering, BGP auto-negotiation, lý tưởng cho TPU workloads cần consistent performance. -
[SAI] Use Cloud VPN instead of Dedicated Interconnect to send traffic over the internet.
❌ Sai vì: Cloud VPN dùng IPsec tunnel qua Internet công cộng, độ trễ cao (50-200ms+ jitter), bandwidth giới hạn, không đảm bảo low latency cho TPU (workload AI/ML cần <10ms). Chi phí egress cao hơn, bảo mật kém hơn Dedicated (dù encrypt), vi phạm yêu cầu "low latency" & "minimize costs/overhead".
- A Raise the priority of the network firewall policy rules.
- B Lower the priority of the network firewall policy rules.
- C Update the default policy and rule evaluation order to BEFORE_CLASSIC_FIREWALL.
- D Update the default policy and rule evaluation order to AFTER_CLASSIC_FIREWALL.
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 trong Google Cloud VPC (không phải AWS, vì AWS sử dụng Security Groups và NACLs thay vì VPC firewall rules kiểu này):
Công ty đang sử dụng VPC firewall rules cổ điển (classic VPC firewall rules) với quy tắc deny tất cả egress traffic (lưu lượng đi ra ngoài).
Bạn cần cho phép một số VMs kết nối đến các website bên ngoài dựa trên Fully Qualified Domain Name (FQDN) – ví dụ: allow traffic đến example.com.
Sau khi áp dụng cấu hình mới (có lẽ là Network Firewall Policy hỗ trợ FQDN filtering), lưu lượng vẫn bị deny.
Vấn đề: Cần điều chỉnh setup để new configuration (Network Firewall Policy) được áp dụng trước classic rules.
📘 Lý do kỹ thuật: Classic VPC firewall rules được đánh giá trước Network Firewall Policies theo mặc định (AFTER_CLASSIC_FIREWALL), nên rule "deny all egress" chặn hết trước khi Network Policy kịp allow FQDN. Cần thay đổi default policy evaluation order để Network Policy ưu tiên hơn.
(Cập nhật đến 2026: Tính năng Network Firewall Policies với FQDN hỗ trợ egress từ GA năm 2023, và evaluation order có thể config tại VPC level hoặc global policy – theo docs GCP mới nhất).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Update the default policy and rule evaluation order to BEFORE_CLASSIC_FIREWALL.
🛠️ Lý do:
- Theo mặc định, Network Firewall Policies (hỗ trợ FQDN-based rules) được đánh giá SAU classic VPC firewall rules (AFTER_CLASSIC_FIREWALL).
- Classic rule "deny all egress" sẽ chặn trước, nên dù Network Policy allow FQDN cũng vô hiệu.
- Bằng cách cập nhật default evaluation order thành BEFORE_CLASSIC_FIREWALL, Network Policy sẽ được đánh giá TRƯỚC, allow FQDN traffic trước khi classic deny áp dụng.
- Đây là giải pháp chính xác, không ảnh hưởng priority nội bộ rules.
📋 Giải thích tất cả các phương án (đúng/sai)
-
[SAI] Raise the priority of the network firewall policy rules.
❌ Sai vì: Priority của rules trong Network Firewall Policy (số thấp hơn = cao hơn) chỉ ảnh hưởng nội bộ policy đó, không thay đổi thứ tự đánh giá giữa Network Policy và classic VPC rules. Vấn đề gốc là evaluation order giữa hai loại policy, không phải priority nội bộ. Thay đổi này không giải quyết được việc classic "deny all" chặn trước. -
[SAI] Lower the priority of the network firewall policy rules.
❌ Sai vì: Lower priority (số cao hơn) làm Network Policy rules yếu hơn nội bộ, thậm chí tệ hơn. Không liên quan đến thứ tự đánh giá với classic rules – classic vẫn eval trước và deny hết. Hoàn toàn không đúng hướng. -
[ĐÚNG] Update the default policy and rule evaluation order to BEFORE_CLASSIC_FIREWALL.
✅ Đúng vì: Như giải thích trên, chuyển evaluation order để Network Firewall Policy (với FQDN allow) eval TRƯỚC classic deny. Đây là config trực tiếp tại VPC network hoặc global firewall policy, áp dụng ngay cho tất cả rules liên quan. Hiệu quả 100% cho trường hợp egress FQDN. -
[SAI] Update the default policy and rule evaluation order to AFTER_CLASSIC_FIREWALL.
❌ Sai vì: Đây chính là mặc định hiện tại, khiến Network Policy eval SAU classic (deny all chặn trước). Thay đổi thành cái này chỉ giữ nguyên vấn đề, traffic vẫn bị deny – trái ngược yêu cầu.
📚 Tài liệu tham khảo (cập nhật 2026)
- 🛡️ Google Cloud VPC Firewall Rules Evaluation Order – Chi tiết về BEFORE_CLASSIC_FIREWALL vs AFTER_CLASSIC_FIREWALL.
- 🔍 Network Firewall Policies & FQDN Filtering – Hỗ trợ FQDN cho egress từ 2023.
- 📘 Firewall Policies Overview – Hierarchical policies và default order.
(Kiểm tra console GCP hoặc gcloud command:gcloud compute network-firewall-policies describeđể verify order).
- A Create the backend in us-east1, create multiple forwarding rules in each region, and then enable regional access.
- B Create the backend service in europe-west2, create the forwarding rule in us-east1, and then enable regional access.
- C Create the backend service in us-east1, create the forwarding rule in europe-west2, and then enable global access.
- D Create the backend service in us-east1, create the forwarding rule in us-east1, and then enable global access.
Xem giải thích
🧩 Phân tích chi tiết câu hỏi
Câu hỏi này thuộc lĩnh vực Google Cloud Networking (không phải AWS như mô tả ban đầu, có thể là nhầm lẫn), cụ thể liên quan đến VPC với chế độ định tuyến động khu vực (regional dynamic routing mode).
- Bối cảnh:
- VPC được cấu hình regional dynamic routing mode (tính năng mới từ năm 2022, cập nhật đến 2026, giúp tối ưu hóa định tuyến cross-region mà không cần Custom Advertised Routes - CAR).
- Có các VMs (Virtual Machines) và VLAN attachments triển khai ở vùng europe-west2.
- Có regional internal Application Load Balancers (ILBs) ở vùng us-east1.
- Yêu cầu: Đảm bảo các VMs ở europe-west2 có thể kết nối (connectivity) đến các regional internal ALBs ở us-east1 (cross-region traffic).
🛠️ Vấn đề cốt lõi: Regional internal Application Load Balancer mặc định chỉ phục vụ traffic trong cùng region. Để hỗ trợ cross-region access (từ europe-west2 đến us-east1), cần kích hoạt global access trên forwarding rule của ILB, đồng thời backend service phải ở đúng region chứa backend resources. Với regional dynamic routing, traffic sẽ được định tuyến tự động qua VPC network mà không cần peering phức tạp.
📘 Tài liệu tham khảo:
- Google Cloud Load Balancing: Regional internal Application Load Balancer with global access (cập nhật 2024-2026).
- VPC Routing Domains: Regional dynamic routing (tính năng GA từ 2023).
✅ Đáp án đúng
Create the backend service in us-east1, create the forwarding rule in us-east1, and then enable global access.
Lý do lựa chọn:
- ✅ Backend service phải tạo ở us-east1 (region chứa ILB và backend thực tế, thường là VMs phục vụ application ở đó).
- ✅ Forwarding rule cũng tạo ở us-east1 (region của ILB), sau đó enable global access để IP của forwarding rule có thể được truy cập từ các region khác (như europe-west2).
- 🛤️ Với regional dynamic routing mode, traffic từ VMs europe-west2 sẽ tự động định tuyến cross-region qua VPC global network scope, không cần cấu hình thêm routes.
- Kết quả: VMs ở europe-west2 có thể resolve và kết nối đến internal IP của ILB ở us-east1 một cách an toàn, private.
❌ Phân tích tất cả các phương án
-
[SAI] Create the backend in us-east1, create multiple forwarding rules in each region, and then enable regional access. ❌ Sai vì: Không tồn tại "backend" riêng lẻ (phải dùng backend service). Tạo multiple forwarding rules ở mỗi region là không cần thiết và phức tạp, vi phạm nguyên tắc regional ILB. Enable regional access chỉ giới hạn trong region, không hỗ trợ cross-region. Sẽ gây lỗi connectivity từ europe-west2.
-
[SAI] Create the backend service in europe-west2, create the forwarding rule in us-east1, and then enable regional access. ❌ Sai vì: Backend service ở europe-west2 không khớp với ILB ở us-east1 (backend phải ở cùng region với ILB để health checks và traffic proxy đúng). Enable regional access chỉ cho phép intra-region, VMs europe-west2 vẫn không kết nối được đến us-east1. Gây mismatch region và routing failure.
-
[SAI] Create the backend service in us-east1, create the forwarding rule in europe-west2, and then enable global access. ❌ Sai vì: Forwarding rule phải ở cùng region với backend service và ILB (us-east1), không thể đặt ở europe-west2 (sẽ tạo ILB riêng biệt, không liên kết). Dù enable global access, cấu hình lệch region dẫn đến không resolve IP đúng, traffic không proxy được.
-
[ĐÚNG] Create the backend service in us-east1, create the forwarding rule in us-east1, and then enable global access. ✅ Đúng như phân tích trên: Cấu hình chuẩn theo best practices GCP. Backend và forwarding rule đồng bộ ở us-east1, global access mở rộng reachability cross-region. Regional dynamic routing xử lý định tuyến tự động, đảm bảo low-latency connectivity.
🧩 Lưu ý bổ sung: Nếu dùng global internal Application Load Balancer, không cần bước này, nhưng câu hỏi chỉ định regional, nên phải enable global access. Test bằng gcloud compute forwarding-rules update với --allow-global-access.
- A Configure Private Google Access on the VPC resource. Create a default route to the internet.
- B Configure Private Google Access on the subnet resource. Create a default route to the internet.
- C Configure Cloud NAT, and remove the default route to the internet.
- D Configure a global Secure Web Proxy, and remove the default route to the internet.
Xem giải thích
🧩 Phân tích chi tiết câu hỏi
Câu hỏi yêu cầu thiết kế kiến trúc cho tổ chức để clients (các máy ảo hoặc endpoint trong VPC) có thể kết nối đến một số Google APIs cụ thể như Cloud Storage và BigQuery, mà không cho traffic đi qua internet công cộng. Giải pháp phải ưu tiên cloud-first (sử dụng dịch vụ native của Google Cloud) và yêu cầu ít bước cấu hình nhất.
🔍 Yếu tố chính cần xem xét:
- Kết nối private đến Google APIs sử dụng Private Google Access (PGA) – tính năng cho phép các instance trong private subnet truy cập dịch vụ Google mà không cần public IP và không đi qua internet.
- PGA chỉ được enable ở mức subnet (không phải VPC), và yêu cầu default route (0.0.0.0/0) trỏ đến internet (qua NAT hoặc IGW) để route các IP public của Google APIs (như *.googleapis.com), nhưng traffic thực tế sẽ được Google "intercept" và route private qua network backbone riêng.
- Không cần public IP trên instance, không traverse internet, và đây là cách least configuration so với Private Service Connect (PSC) hoặc VPC peering phức tạp hơn.
- Cập nhật kiến thức GCP đến 2026: PGA vẫn là giải pháp chuẩn cho access Google APIs từ private subnets (không thay đổi lớn từ 2023-2026), hỗ trợ full cho Cloud Storage/BigQuery.
📘 Tài liệu tham khảo:
- Google Cloud VPC: Private Google Access
- Configure Private Google Access
- Google Cloud Networking Best Practices (2025 update)
✅ Đáp án đúng
Configure Private Google Access on the subnet resource. Create a default route to the internet.
Lý do lựa chọn 🛠️:
- Đây là giải pháp chuẩn và ít config nhất: Enable PGA trên subnet (1 bước), thêm default route 0.0.0.0/0 đến internet (thường qua Cloud Router + NAT nếu private subnet). Traffic đến Google APIs (Cloud Storage/BigQuery) sẽ không traverse internet nhờ PGA route private, dù IP đích là public. Không cần PSC (phức tạp hơn), không public IP. Hoàn hảo cho cloud-first!
📋 Giải thích tất cả các phương án
-
❌ [SAI] Configure Private Google Access on the VPC resource. Create a default route to the internet.
PGA không được cấu hình ở mức VPC, mà phải enable riêng trên từng subnet. Nếu enable ở VPC (không tồn tại tính năng này), access đến APIs sẽ fail. Default route đúng nhưng thiếu PGA đúng mức → traffic vẫn traverse internet hoặc không kết nối được. -
✅ [ĐÚNG] Configure Private Google Access on the subnet resource. Create a default route to the internet.
Hoàn toàn chính xác! Enable PGA trên subnet cho phép instance private IP access Google APIs qua private path. Default route đến internet cần thiết để route IP public của APIs (Google tự private hóa traffic). Least config, không internet traversal, hỗ trợ Cloud Storage/BigQuery đầy đủ. -
❌ [SAI] Configure Cloud NAT, and remove the default route to the internet.
Cloud NAT chỉ dùng cho egress internet chung từ private IP (source NAT), không private hóa traffic đến Google APIs. Nếu remove default route, không có route nào đến IP của APIs → kết nối fail. Không giải quyết yêu cầu private access đến APIs, cần PGA bổ sung → không least config. -
❌ [SAI] Configure a global Secure Web Proxy, and remove the default route to the internet.
Secure Web Proxy (dùng Cloud Armor/Proxy) dành cho web traffic lọc (HTTP/HTTPS), không hỗ trợ APIs như BigQuery (gRPC/REST non-web). Remove default route → no route đến APIs. Không cloud-first cho mục đích này, config phức tạp hơn PGA → sai hoàn toàn.
•Customer BGP address: 169.254.11.1/30
•Customer ASN: 64515
•Google Cloud BGP address: 169.254.11.2
•Google Cloud ASN: 64517
•MD5 Authentication: Disabled
You need to configure your local BGP session for this tunnel based on the settings provided by the third party customer. You have already associated the Cloud Router with the Cloud VPN Tunnel. What should you do?
-
A
Create a BGP session with these settings:
• Peer ASN: 64517
• Advertise Route Priority (MED): 100
• Local BGP IP: 169.254.11.2
• Peer BGP IP: 169.254.11.1
• MD5 Authentication: Disabled.
-
B
Create a BGP session with these settings:
• Peer ASN: 64515
• Advertise Route Priority (MED): 100
• Local BGP IP: 169.254.11.1
• Peer BGP IP: 169.254.11.2
• MD5 Authentication: Disabled.
-
C
Create a BGP session with these settings:
• Peer ASN: 64515
• Advertise Route Priority (MED): 100
• Local BGP IP: 169.254.11.2
• Peer BGP IP: 169.254.11.1
• MD5 Authentication: Disabled.
-
D
Create a BGP session with these settings:
• Peer ASN: 64515
• Advertise Route Priority (MED): 1000
• Local BGP IP: 169.254.11.2
• Peer BGP IP: 169.254.11.1
• MD5 Authentication: Enabled.
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 đã thiết lập một đường hầm VPN IPSec Cloud (Cloud VPN) duy nhất từ tổ chức của bạn đến khách hàng, với VPN Tunnel Status: Established (đã thiết lập thành công). Tuy nhiên, BGP Session Status: BGP not configured (chưa cấu hình BGP). Khách hàng cung cấp thông tin BGP sau:
- Customer BGP address: 169.254.11.1/30 (địa chỉ BGP của phía khách hàng).
- Customer ASN: 64515 (số AS của khách hàng).
- Google Cloud BGP address: 169.254.11.2 (địa chỉ BGP của Google Cloud).
- Google Cloud ASN: 64517 (số AS của Google Cloud).
- MD5 Authentication: Disabled (không kích hoạt xác thực MD5).
Bạn cần cấu hình BGP session cục bộ (local BGP session) trên phía Google Cloud cho đường hầm này, dựa trên thông tin từ khách hàng. Đã liên kết Cloud Router với Cloud VPN Tunnel.
Mục tiêu: Xác định cách cấu hình BGP đúng trên Google Cloud để thiết lập phiên BGP giữa hai bên (Google Cloud làm local, khách hàng làm peer).
📘 Kiến thức liên quan (cập nhật đến 2026): Trong Google Cloud VPN với dynamic routing (BGP), Cloud Router quản lý BGP peering. Phía Google Cloud sử dụng IP và ASN của mình làm Local, ASN và IP của peer (khách hàng) làm Peer. MD5 phải khớp (disabled). MED (Multi-Exit Discriminator) là tùy chọn ưu tiên route, thường mặc định 100 nếu không chỉ định khác. (Nguồn: Google Cloud VPN Dynamic Routing, Cloud Router BGP Sessions - phiên bản mới nhất 2026).
✅ Đáp án đúng
Create a BGP session with these settings:
• Peer ASN: 64515
• Advertise Route Priority (MED): 100
• Local BGP IP: 169.254.11.2
• Peer BGP IP: 169.254.11.1
• MD5 Authentication: Disabled.
Lý do chọn đáp án này:
✅ Đây là cấu hình chính xác trên Cloud Router của Google Cloud:
- Peer ASN: 64515 → ASN của khách hàng (peer).
- Local BGP IP: 169.254.11.2 → IP BGP của Google Cloud (local side).
- Peer BGP IP: 169.254.11.1 → IP BGP của khách hàng (peer side).
- MED: 100 → Giá trị hợp lý và khớp với các option chuẩn (mặc định khuyến nghị).
- MD5: Disabled → Khớp chính xác với cài đặt khách hàng.
Sau khi tạo BGP session này trên Cloud Router (đã associate với VPN tunnel), phiên BGP sẽ thiết lập thành công, trạng thái chuyển sang Established. 🛠️
📋 Giải thích tất cả các phương án
-
Phương án 1 (Sai):
Create a BGP session with these settings:
• Peer ASN: 64517
• Advertise Route Priority (MED): 100
• Local BGP IP: 169.254.11.2
• Peer BGP IP: 169.254.11.1
• MD5 Authentication: Disabled.
❌ Sai vì: Peer ASN: 64517 là ASN của Google Cloud (không phải peer). Phải dùng ASN của khách hàng (64515). ASN sai sẽ khiến BGP không negotiate được, session không up. Các thông số IP và MD5 đúng nhưng ASN sai làm toàn bộ thất bại. 🧩 -
Phương án 2 (Sai):
Create a BGP session with these settings:
• Peer ASN: 64515
• Advertise Route Priority (MED): 100
• Local BGP IP: 169.254.11.1
• Peer BGP IP: 169.254.11.2
• MD5 Authentication: Disabled.
❌ Sai vì: Đảo ngược IP – Local BGP IP: 169.254.11.1 là IP của khách hàng (phải là peer IP), Peer BGP IP: 169.254.11.2 là IP của Google Cloud. Trên Cloud Router, local phải là IP Google Cloud. Đảo IP gây mismatch, BGP không hình thành neighbor. ASN và MD5 đúng nhưng IP sai. 🔄 -
Phương án 3 (Đúng): ✅ (Đã giải thích chi tiết ở phần trên). Hoàn hảo khớp tất cả thông số! 🎯
-
Phương án 4 (Sai):
Create a BGP session with these settings:
• Peer ASN: 64515
• Advertise Route Priority (MED): 1000
• Local BGP IP: 169.254.11.2
• Peer BGP IP: 169.254.11.1
• MD5 Authentication: Enabled.
❌ Sai vì: Hai lỗi lớn – MD5: Enabled (khách hàng là Disabled, phải khớp để authenticate). MED: 1000 (không khớp chuẩn, mặc dù MED linh hoạt nhưng option này dùng giá trị khác gây nhầm lẫn, và MD5 sai là lỗi chí mạng). IP và ASN đúng nhưng MD5 không khớp → BGP down ngay lập tức. ⚠️