Ngân hàng đề — AWS Certified Advanced Networking Specialty
Tìm thấy 352 câu.
The company creates a new segment for a new business unit (BU) in the us-east-1 edge location. The new BU has three VPCs that are attached to the new BU segment. To comply with regulations, the BU VPCs must not communicate with each other. All internet-bound traffic must be inspected in the inspection VPC.
The company updates VPC route tables so any traffic that is bound for internet goes to the AWS Cloud WAN core network.
The company plans to add more VPCs for the new BU in the future. All future VPCs must comply with regulations.
Which solution will meet these requirements in the MOST operationally efficient way? (Choose two.)
- A Update the network policy to share the shared services segment with the BU segment.
- B Create a network policy to share the inspection service segment with the BU segment.
- C Set the isolate-attachments field to True for the BU segment.
- D Set the isolate-attachments field to False for the BU segment.
- E Update the network policy to add static routes for the BU segment. Configure the shared services segment to route traffic related to VPC CIDR blocks to each respective VPC attachment.
Xem giải thích
🧩 Phân tích chi tiết câu hỏi AWS Cloud WAN
✅ Giải thích nội dung câu hỏi một cách rõ ràng:
Câu hỏi xoay quanh việc thiết kế mạng AWS Cloud WAN (một dịch vụ quản lý mạng toàn cầu dựa trên policy-driven networking) để đáp ứng yêu cầu tuân thủ quy định cho một business unit (BU) mới. Cụ thể:
- Hệ thống hiện có Cloud WAN với 2 edge locations (us-east-1 và us-west-1), mỗi nơi có shared services segment gắn với inspection VPCs sử dụng AWS Network Firewall để kiểm tra traffic từ WAN.
- Tạo segment mới cho BU chỉ ở us-east-1, với 3 VPCs gắn vào. Yêu cầu chính:
- Các VPC của BU KHÔNG được giao tiếp lẫn nhau (isolation).
- Tất cả traffic hướng internet phải được inspect qua inspection VPC.
- VPC route tables đã cập nhật để traffic internet đi qua Cloud WAN core network.
- Tương lai sẽ thêm nhiều VPCs cho BU, phải tự động comply mà không cần thay đổi thủ công nhiều (operationally efficient).
- Cần chọn 2 giải pháp hiệu quả nhất về vận hành, sử dụng core network policy để quản lý segments, attachments và routing policy.
🛠️ Mục tiêu: Đảm bảo isolation giữa các VPC trong BU segment, inspect internet traffic qua shared inspection services, và scalable cho future VPCs mà không cần static routes phức tạp.
✅ Đáp án đúng và lý do lựa chọn (Chọn TWO)
Hai đáp án đúng là:
-
Create a network policy to share the inspection service segment with the BU segment.
🧩 Lý do: Inspection segment chứa inspection VPCs với Network Firewall. Bằng cách share inspection segment với BU segment qua network policy (sử dụngsegment-actionsvớishareaction), traffic từ BU VPCs (hướng internet) sẽ được route qua inspection VPC để inspect trước khi ra internet. Điều này scalable, tự động áp dụng cho future VPCs gắn vào BU segment, không cần thay đổi route tables thủ công – rất operationally efficient theo best practices Cloud WAN policy (phiên bản mới nhất 2024+). -
Set the isolate-attachments field to True for the BU segment.
🧩 Lý do: Thuộc tínhisolate-attachments: truetrong segment policy ngăn các attachments (VPCs) trong cùng BU segment giao tiếp trực tiếp với nhau, đảm bảo isolation tuân thủ quy định. Mặc định là false (cho phép communicate), nên phải set true. Scalable hoàn hảo cho future VPCs chỉ cần attach vào segment mà không cần policy riêng – hiệu quả vận hành cao nhất.
📘 Phân tích tất cả các phương án (đúng và sai)
Dưới đây là phân tích chi tiết từng lựa chọn. Nội dung phương án giữ nguyên tiếng Anh gốc, chỉ giải thích bằng tiếng Việt. Sử dụng kiến thức AWS Cloud WAN cập nhật đến 2026 (policy language v5+, segments với isolation và sharing actions).
-
Update the network policy to share the shared services segment with the BU segment.
❌ Sai: Shared services segment là cho dịch vụ chung (không phải inspection). Share nó với BU segment sẽ cho phép BU VPCs truy cập shared services (có thể không cần thiết và vi phạm isolation gián tiếp). Không giải quyết inspect internet traffic, và không scalable vì shared services thường không dành cho BU-specific traffic. Không efficient so với share chỉ inspection segment. -
Create a network policy to share the inspection service segment with the BU segment.
✅ Đúng: Như giải thích trên. Sử dụngnetwork-policyvớisegment-actions: { share: ["inspection-segment"] }cho BU segment, route traffic 0.0.0.0/0 qua inspection VPCs. Traffic BU VPCs (qua core network) sẽ inspect tự động, tuân thủ quy định và scalable cho VPCs mới. -
Set the isolate-attachments field to True for the BU segment.
✅ Đúng: Như giải thích trên. Trongcore-network-policy, setsegments: { bu-segment: { isolate-attachments: true } }. Ngăn communicate giữa VPCs trong segment (chỉ allow qua shared segments khác nếu policy cho phép), lý tưởng cho multi-VPC isolation mà không cần route tables phức tạp. -
Set the isolate-attachments field to False for the BU segment.
❌ Sai: Mặc định đã là false, nghĩa là CHO PHÉP các VPCs trong BU segment giao tiếp lẫn nhau – trực tiếp vi phạm yêu cầu "BU VPCs must not communicate with each other". Không đáp ứng quy định isolation. -
Update the network policy to add static routes for the BU segment. Configure the shared services segment to route traffic related to VPC CIDR blocks to each respective VPC attachment.
❌ Sai: Static routes (quastatic-routeactions) không scalable cho future VPCs – phải cập nhật policy thủ công mỗi lần add VPC (vi phạm "MOST operationally efficient"). Shared services không phải nơi inspect internet (dành cho VPC CIDRs nội bộ), sẽ tạo routing loop hoặc bypass inspection. Không dùng Network Firewall đúng cách.
📚 Tài liệu tham khảo (AWS cập nhật mới nhất 2026)
- 🛠️ AWS Cloud WAN Core Network Policy Language – Chi tiết
isolate-attachments,segment-actions: share, và routing cho inspection. - 📘 AWS Cloud WAN Segments và Attachments – Giải thích isolation và sharing giữa segments.
- 🧩 Best Practices: Inspecting Internet Traffic with Network Firewall in Cloud WAN – Case study tương tự, recommend share inspection segment + isolate.
- ✅ Kiểm tra qua AWS Console/Management Console cho Cloud WAN policy simulator (v5+).
Giải pháp này đảm bảo zero-trust isolation và centralized inspection scalable! 🚀
During the testing of the first phase, the IPv6 application queries are not reaching the backend servers.
What is the cause of this issue?
- A The subnets where the EC2 instances are deployed do not have IPv6 addresses configured.
- B The route tables for the NLB subnets do not have IPV6 routing configured.
- C The route tables for the EC2 subnets do not have IPV6 routing configured.
- D The security groups that are associated with the NLBs do not allow IPv6 traffic.
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ả một ứng dụng highly available (HA), scalable và resilient được triển khai trên các instance Amazon EC2 thuộc Auto Scaling Group (ASG). Kỹ sư mạng đang tích hợp hỗ trợ IPv6 theo từng giai đoạn (phased approach). Giai đoạn 1 tập trung vào việc kích hoạt IPv6 service consumption trên các public Network Load Balancer (NLB) được triển khai khắp hạ tầng. Các target groups của NLB được cấu hình sử dụng ASG chứa các EC2 instance hosting ứng dụng. NLB được thiết lập ở chế độ dual-stack (hỗ trợ cả IPv4 và IPv6).
Vấn đề gặp phải: Khi testing phase 1, các truy vấn ứng dụng qua IPv6 không đến được backend servers (EC2 instances).
Mục tiêu câu hỏi là xác định nguyên nhân gốc rễ (root cause) khiến traffic IPv6 từ client (qua NLB) không forward đến targets. Điều này liên quan đến kiến trúc mạng AWS với public NLB dual-stack, nơi NLB nhận traffic IPv6 từ internet và forward đến EC2 targets qua VPC internal networking. Theo tài liệu AWS cập nhật đến 2026 (AWS re:Post và VPC docs), IPv6 trên NLB yêu cầu targets phải IPv6-enabled đầy đủ từ subnet đến instance level.
📘 Tài liệu tham khảo chính:
- AWS NLB IPv6 Support (cập nhật 2025).
- Assign IPv6 to EC2 Instances (IPv6 CIDR bắt buộc cho subnets).
- AWS Well-Architected Framework: Networking Pillar (2026 edition).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: The subnets where the EC2 instances are deployed do not have IPv6 addresses configured.
Lý do chi tiết 🛠️:
- Public NLB dual-stack nhận traffic IPv6 từ internet qua Internet Gateway (IGW) (IGW phải hỗ trợ IPv6).
- NLB forward traffic IPv6 đến targets (EC2 trong ASG) qua IPv6 addresses của targets.
- Nếu subnets của EC2 không có IPv6 CIDR block được assign (qua VPC console hoặc CLI:
aws ec2 associate-subnet-cidr-block --ipv6-cidr-block), thì EC2 instances không thể nhận IPv6 address (dù auto-assign hoặc manual). - Kết quả: Traffic IPv6 dừng tại NLB, không đến backend → khớp chính xác với symptom "IPv6 queries not reaching backend".
- Đây là phase 1 requirement: Enable IPv6 consumption trên NLB đòi hỏi targets phải IPv6-ready (không chỉ NLB).
📋 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 một cách logic, dựa trên flow traffic IPv6: Client → IGW → NLB subnets → Targets (EC2 subnets).
-
✅ The subnets where the EC2 instances are deployed do not have IPv6 addresses configured.
Giải thích đúng 🟢: Như trên, đây là root cause trực tiếp. Subnets EC2 thiếu IPv6 CIDR → instances không có IPv6 IP → NLB không thể forward IPv6 traffic đến targets (health checks IPv6 cũng fail). Fix: Assign/56IPv6 prefix đến subnet (AWS quota hỗ trợ đến 2026). -
❌ The route tables for the NLB subnets do not have IPV6 routing configured.
Giải thích sai 🔴: Public NLB subnets cần route::/0đến IGW cho inbound IPv6 từ internet. Nhưng vấn đề là outbound từ NLB đến backend (internal VPC), không phụ thuộc route NLB subnets. NLB dual-stack tự handle forwarding nếu targets reachable (dù route NLB sai, IPv4 vẫn work, nhưng symptom chỉ IPv6 fail → loại trừ). -
❌ The route tables for the EC2 subnets do not have IPV6 routing configured.
Giải thích sai 🔴: Route tables EC2 subnets cần::/0đến egress (outbound từ EC2), ví dụ response traffic hoặc external calls. Nhưng inbound IPv6 từ NLB đến EC2 là VPC-local routing (không qua route table public/IGW). NLB dùng private IP (IPv6) của targets internal → route table EC2 không ảnh hưởng inbound. -
❌ The security groups that are associated with the NLBs do not allow IPv6 traffic.
Giải thích sai 🔴: Public NLB không dùng Security Groups (SG) cho inbound traffic từ client (NLB preserve client source IP, SG chỉ trên targets). SG NLB chỉ kiểm soát traffic giữa NLB và targets (nhưng ở targets side). Vấn đề là reachability cơ bản (no IPv6 on targets), không phải SG (IPv4 vẫn work ngầm định).
Kết luận tổng quát 🚀: Vấn đề nằm ở targets không IPv6-enabled (subnet level), phù hợp best practice phased IPv6 migration trên AWS (bắt đầu từ load balancer rồi backend). Để fix toàn bộ: Enable IPv6 trên VPC → Subnets → Instances → Route tables (nếu cần) → SG rules IPv6. Test với curl -6 hoặc AWS Reachability Analyzer!
The company has chosen a hub-and-spoke model. The model includes a GWLB and virtual appliances that are deployed into a centralized appliance VPC and GWLB endpoints. The model also includes internet gateways that are configured in spoke VPCs.
Which sequence of traffic flow to the internet from the spoke VPC is correct?
-
A
1. An application in a spoke VPC sends traffic to the GWLB endpoint based on the VPC route table configuration.
2. Traffic is delivered securely and privately to the GWLB.
3. The GWLB sends the traffic to a virtual appliance for inspection.
4. Return traffic flows back to the GWLB endpoint and out to the internet through the internet gateway. -
B
1. An application in a spoke VPC sends traffic to the GWLB endpoint based on the VPC route table configuration.
2. Traffic is delivered securely and privately to the GWLB endpoint.
3. The GWLB sets the X-Forwarded-For request header and sends the traffic to a virtual appliance for inspection.
4. Return traffic flows back to the GWLB and out to the internet through an internet gateway. -
C
1. An application in a spoke VPC sends traffic to the GWLB endpoint.
2. Traffic is delivered securely and privately to the GWLB.
3. The GWLB sets the X-Forwarded-For request header and sends the traffic to a virtual appliance for inspection.
4. Return traffic flows back to the GWLB endpoint and out to the internet through the internet gateway. -
D
1. An application in a spoke VPC sends traffic to the GWLB.
2. Traffic is delivered securely and privately to the GWLB endpoint.
3. The GWLB sends the traffic to a virtual appliance for inspection.
4. Return traffic flows back to the GWLB and out to the internet through an internet gateway.
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 mô hình hub-and-spoke trên AWS, sử dụng Gateway Load Balancer (GWLB) để triển khai kiến trúc phân tán với các thiết bị ảo (virtual appliances) trong một VPC trung tâm (hub VPC). Các spoke VPC được kết nối qua GWLB endpoints (là VPC Endpoint dành riêng cho GWLB, sử dụng giao thức GENEVE để truyền traffic an toàn mà không cần public IP). Ngoài ra, các spoke VPC có Internet Gateway (IGW) được cấu hình để traffic outbound ra internet.
Mục tiêu câu hỏi: Xác định luồng traffic đúng (sequence of traffic flow) từ ứng dụng trong spoke VPC ra internet, bao gồm:
- Traffic đi qua GWLB endpoint dựa trên route table.
- Được chuyển an toàn đến GWLB (hub VPC).
- GWLB phân phối đến virtual appliance để kiểm tra (inspection).
- Traffic trả về (return traffic) qua endpoint và ra IGW ở spoke VPC.
Điều này kiểm tra kiến thức về GWLB integration trong mô hình bảo mật mạng (network security inspection), nơi GWLB không thay đổi header (như X-Forwarded-For, chỉ có ở ALB/NLB), và traffic luôn private qua endpoint. Kiến thức dựa trên tài liệu AWS mới nhất (2024-2026), không có thay đổi lớn về GWLB endpoints. 📘 Tài liệu tham khảo:
✅ Đáp án đúng (Phương án 1)
Phương án đúng:
- An application in a spoke VPC sends traffic to the GWLB endpoint based on the VPC route table configuration.
- Traffic is delivered securely and privately to the GWLB.
- The GWLB sends the traffic to a virtual appliance for inspection.
- Return traffic flows back to the GWLB endpoint and out to the internet through the internet gateway.
Lý do chọn đáp án này 🛠️:
- Đây là luồng chuẩn xác 100% theo thiết kế GWLB hub-and-spoke.
1️⃣ Traffic từ app ở spoke được route table hướng đến GWLB endpoint (VPC Endpoint Service của GWLB).
2️⃣ Endpoint encapsulate traffic (GENEVE) và chuyển privately đến GWLB ở hub VPC (không qua internet/public IP).
3️⃣ GWLB load balance traffic đến virtual appliance (như firewall) để inspect, không set header như X-Forwarded-For.
4️⃣ Return traffic từ appliance → GWLB → endpoint → spoke VPC → IGW ra internet.
Luồng này đảm bảo zero-trust security và private connectivity. ✅
📋 Phân tích tất cả các phương án
-
Phương án 1 (Đúng) ✅
Nội dung:- An application in a spoke VPC sends traffic to the GWLB endpoint based on the VPC route table configuration.
- Traffic is delivered securely and privately to the GWLB.
- The GWLB sends the traffic to a virtual appliance for inspection.
- Return traffic flows back to the GWLB endpoint and out to the internet through the internet gateway.
Giải thích: Như phần trên, luồng hoàn hảo, khớp docs AWS. Không lỗi logic. 🟢
-
Phương án 2 (Sai) ❌
Nội dung:- An application in a spoke VPC sends traffic to the GWLB endpoint based on the VPC route table configuration.
- Traffic is delivered securely and privately to the GWLB endpoint.
- The GWLB sets the X-Forwarded-For request header and sends the traffic to a virtual appliance for inspection.
- Return traffic flows back to the GWLB and out to the internet through an internet gateway.
Giải thích:
1️⃣ Bước 1 đúng.
2️⃣ Sai: Traffic từ endpoint đi đến GWLB, không phải "to the GWLB endpoint" (endpoint chỉ là interface vào, traffic đã ở endpoint rồi).
3️⃣ Sai nghiêm trọng: GWLB không set X-Forwarded-For (header này chỉ ở ALB/NLB cho HTTP; GWLB dùng GENEVE cho L3/L4 inspection).
4️⃣ Sai: Return traffic quay về GWLB endpoint (không phải trực tiếp "to the GWLB"). 🔴
-
Phương án 3 (Sai) ❌
Nội dung:- An application in a spoke VPC sends traffic to the GWLB endpoint.
- Traffic is delivered securely and privately to the GWLB.
- The GWLB sets the X-Forwarded-For request header and sends the traffic to a virtual appliance for inspection.
- Return traffic flows back to the GWLB endpoint and out to the internet through the internet gateway.
Giải thích:
1️⃣ Sai nhẹ: Thiếu "based on the VPC route table configuration" – route table là yếu tố bắt buộc để traffic đi đúng endpoint.
2️⃣ Đúng.
3️⃣ Sai: GWLB không set X-Forwarded-For, chỉ forward raw traffic đến appliance.
4️⃣ Đúng. Tổng thể nhầm lẫn về header và route table. 🟡
-
Phương án 4 (Sai) ❌
Nội dung:- An application in a spoke VPC sends traffic to the GWLB.
- Traffic is delivered securely and privately to the GWLB endpoint.
- The GWLB sends the traffic to a virtual appliance for inspection.
- Return traffic flows back to the GWLB and out to the internet through an internet gateway.
Giải thích:
1️⃣ Sai: Traffic không gửi trực tiếp đến GWLB, phải qua GWLB endpoint ở spoke để private routing.
2️⃣ Sai: Traffic từ spoke → endpoint → GWLB (không phải "to the GWLB endpoint").
3️⃣ Đúng.
4️⃣ Sai: Return traffic về GWLB endpoint (không phải "to the GWLB"). Lộn xộn luồng hai chiều. 🔴
Kết luận 🚀: Phương án 1 là lựa chọn duy nhất chính xác, nhấn mạnh vai trò route table, private delivery đến GWLB, và không có header manipulation. Đây là kiến thức cốt lõi cho DOP-C02 exam! 💡
What should the network engineer do to locate the traffic flow for the second IP address?
- A Create a new flow log that includes the pkt-dstaddr field to capture the original destination IP address of the traffic.
- B Create a new flow log that includes the dstaddr field to capture the original destination IP address of the traffic.
- C Create a new flow log that includes the pkt-srcaddr field to capture the original destination IP address of the traffic.
- D Create a new flow log that includes the srcaddr field to capture the original destination IP address of the traffic.
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 vấn đề VPC Flow Logs trong AWS VPC, một công cụ giám sát lưu lượng mạng (traffic flow) vào/ra các tài nguyên như ENI (Elastic Network Interface) của EC2 instance.
- Tình huống cụ thể: Một network engineer cần liệt kê các IP nguồn gửi traffic đến EC2 instance. VPC Flow Logs đã được kích hoạt. EC2 có một ENI duy nhất với hai private IP addresses (primary và secondary). Tuy nhiên, Flow Logs chỉ ghi nhận traffic cho primary IP, không hiển thị traffic đến secondary IP.
- Vấn đề cốt lõi: Trong VPC AWS, khi traffic nhắm đến secondary private IP trên ENI, hệ thống routing VPC sẽ thay đổi destination IP thành primary IP (dựa trên ARP/MAC resolution). Do đó, field dstaddr chuẩn trong Flow Logs sẽ ghi primary IP làm destination, khiến traffic đến secondary IP bị "ẩn" đi.
- Mục tiêu: Network engineer cần xác định traffic thực sự gửi đến secondary IP bằng cách capture original destination IP (trước khi AWS thay đổi).
- Kiến thức AWS cập nhật (2024-2026): VPC Flow Logs hỗ trợ các capture fields nâng cao như
pkt-dstaddr(original destination IP trước NAT/translation) từ phiên bản mới nhất. Điều này giúp phân biệt traffic đến primary vs. secondary IP trên cùng ENI. (📘 Tài liệu tham khảo: AWS VPC Flow Logs Documentation - Capture Fields và Flow Log Samples).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Create a new flow log that includes the pkt-dstaddr field to capture the original destination IP address of the traffic.
Lý do chi tiết 🛠️:
- Field
pkt-dstaddrcapture initial/original destination IPv4 address của packet trước bất kỳ NAT, translation hoặc routing thay đổi nào bởi AWS VPC (bao gồm việc map secondary IP về primary IP). - Tạo Flow Log mới với field này sẽ hiển thị rõ secondary IP làm destination nếu traffic thực sự nhắm đến nó, giúp network engineer xác định và liệt kê IP nguồn gửi traffic đến secondary IP.
- Đây là giải pháp chính xác, hiệu quả theo best practice AWS, không cần thay đổi cấu hình ENI hay VPC.
📋 Giải thích tất cả các phương án (đúng/sai)
-
✅ [ĐÚNG] Create a new flow log that includes the pkt-dstaddr field to capture the original destination IP address of the traffic.
🟢 Đúng vì: Như đã giải thích,pkt-dstaddrghi nhận destination IP gốc (secondary IP) trước khi VPC routing thay đổi thành primary IP. Giúp phát hiện traffic bị "ẩn" hiện tại. Đây là field được AWS khuyến nghị cho multi-IP ENI (theo docs 2024+). -
❌ [SAI] Create a new flow log that includes the dstaddr field to capture the original destination IP address of the traffic.
🔴 Sai vì:dstaddrcapture destination IP sau NAT/translation (sẽ luôn là primary IP trên ENI), không phải original. Flow Log hiện tại đã dùng field này nên mới chỉ thấy primary IP, tạo mới vẫn vậy – không giải quyết vấn đề. -
❌ [SAI] Create a new flow log that includes the pkt-srcaddr field to capture the original destination IP address of the traffic.
🔴 Sai vì:pkt-srcaddrcapture original source IP (nguồn gốc), không liên quan đến destination (đích đến). Nó chỉ hữu ích cho phân tích source IP trước NAT, không giúp xác định traffic đến secondary IP. -
❌ [SAI] Create a new flow log that includes the srcaddr field to capture the original destination IP address of the traffic.
🔴 Sai vì:srcaddrcapture source IP sau NAT/translation, cũng chỉ liên quan đến nguồn gửi traffic, không phải đích đến. Hoàn toàn không giải quyết vấn đề destination IP trên secondary IP.
💡 Lời khuyên thực hành: Sau khi tạo Flow Log mới, publish vào CloudWatch Logs/S3 và query bằng Athena để filter theo pkt-dstaddr = secondary_IP. Kiểm tra quyền IAM cho ec2:CreateFlowLogs! (🔗 Nguồn bổ sung: AWS Well-Architected Framework - Networking Pillar).
The company has attached VPCs to the core network. A development VPC is attached to the development segment in us-east-1 and is configured to use the 10.0.0.0/16 CIDR block. A staging VPC is attached to the staging segment in us-west-1 and is configured to use the 10.5.0.0/16 CIDR block. The company has updated the route tables for both VPCs with a route that directs any traffic for 0.0.0.0/0 to the core network.
The company’s network team needs to establish communication between the two VPCs by using the AWS Cloud WAN core network. The network team is not receiving a response during tests of communication between the VPCs. The network team has verified that security groups and network ACLs are not blocking the traffic.
What should the network team do to establish this communication?
- A Update both VPC route tables to have a new static route. Configure a route on the development VPC to direct the traffic for 10.0.0.0/16 to the development VPC attachment. Configure a route on the staging VPC to direct the traffic for 10.5.0.0/16 to the staging VPC attachment.
- B Update the segment filter to allow traffic on the development and staging segments.
- C Set the isolate-attachments parameter to False for the development and staging segments.
- D Update the core network policy to add a static route for each segment. Configure a route to direct the traffic for 10.0.0.0/16 to the development VPC attachment. Configure a route to direct the traffic for 10.5.0.0/16 to the staging VPC attachment.
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 AWS Cloud WAN (một dịch vụ quản lý mạng toàn cầu của AWS, ra mắt năm 2022 và cập nhật liên tục đến 2026 với các tính năng như policy-based routing nâng cao).
-
Bối cảnh setup:
- Có một core network Cloud WAN với edge locations tại hai vùng: us-east-1 và us-west-1.
- Mỗi edge location có hai segments: development và staging, sử dụng default core network policy (mặc định, các segments được isolated – cô lập lẫn nhau để tránh traffic không mong muốn).
- VPCs được attach:
- Development VPC (CIDR: 10.0.0.0/16) attach vào development segment tại us-east-1.
- Staging VPC (CIDR: 10.5.0.0/16) attach vào staging segment tại us-west-1.
- Route tables của cả hai VPCs đã có route 0.0.0.0/0 hướng traffic đến core network (tức là traffic outbound từ VPC sẽ đi qua Cloud WAN).
-
Vấn đề: Không giao tiếp được giữa hai VPCs (development ↔ staging), dù đã kiểm tra security groups (SG) và network ACLs (NACLs) không block traffic.
-
Nguyên nhân gốc rễ 🛠️: Trong default core network policy của Cloud WAN, segments được cô lập (isolation giữa segments). Traffic từ development segment không thể route sang staging segment (và ngược lại), ngay cả khi VPCs ở các regions khác nhau. VPC route tables chỉ xử lý outbound, nhưng core network policy mới quyết định routing bên trong Cloud WAN giữa các attachments/segments.
-
Mục tiêu: Thiết lập communication giữa hai VPCs qua Cloud WAN mà không thay đổi SG/NACL.
📘 Tài liệu tham khảo:
- AWS Cloud WAN Documentation: Core network policies (cập nhật 2025-2026, nhấn mạnh static routes và segment-actions).
- Routing in Cloud WAN (giải thích isolation và cross-segment routing).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Update the core network policy to add a static route for each segment. Configure a route to direct the traffic for 10.0.0.0/16 to the development VPC attachment. Configure a route to direct the traffic for 10.5.0.0/16 to the staging VPC attachment.
Lý do 🛠️:
- Cloud WAN sử dụng core network policy (JSON-based) để kiểm soát routing. Default policy không có routes cross-segment, nên traffic từ development VPC (10.0.0.0/16) không biết route đến staging VPC (10.5.0.0/16) và ngược lại.
- Giải pháp: Update policy để thêm static routes trong segment-actions:
- Trên development segment: Thêm route
10.5.0.0/16→ staging VPC attachment (ở us-west-1). - Trên staging segment: Thêm route
10.0.0.0/16→ development VPC attachment (ở us-east-1).
- Trên development segment: Thêm route
- Sau update, policy sẽ propagate routes qua Cloud WAN, cho phép traffic cross-region/cross-segment. VPC route tables (0.0.0.0/0 → core network) sẽ hoạt động bình thường.
- Đây là best practice theo AWS (2026), tránh route propagation động nếu không cần thiết.
❌ Phân tích tất cả các phương án (đúng/sai)
-
Phương án SAI: Update both VPC route tables to have a new static route. Configure a route on the development VPC to direct the traffic for 10.0.0.0/16 to the development VPC attachment. Configure a route on the staging VPC to direct the traffic for 10.5.0.0/16 to the staging VPC attachment.
❌ Sai vì: Các route này chỉ loop traffic về chính attachment của VPC đó (self-referential, vô nghĩa). VPC route tables chỉ xử lý outbound từ VPC, không kiểm soát routing bên trong Cloud WAN. Traffic cross-segment vẫn bị block bởi default policy isolation. Không giải quyết vấn đề cốt lõi. -
Phương án SAI: Update the segment filter to allow traffic on the development and staging segments.
❌ Sai vì: Segment filter không tồn tại trong Cloud WAN (khái niệm nhầm lẫn với VPC endpoint policy hoặc Transit Gateway filters). Cloud WAN dùng segment-actions trong policy để control traffic (isolate-attachments hoặc routes), không có "segment filter". Update này sẽ không có hiệu lực. -
Phương án SAI: Set the isolate-attachments parameter to False for the development and staging segments.
❌ Sai vì:isolate-attachments: falsechỉ cho phép attachments trong cùng segment giao tiếp với nhau (intra-segment). Hai VPC ở segments khác nhau (development vs staging), nên vẫn bị cô lập cross-segment. Không thêm routes cụ thể, traffic vẫn không biết đường đi cross-region. -
Phương án ĐÚNG (như đã phân tích ở trên): Update the core network policy to add a static route for each segment. Configure a route to direct the traffic for 10.0.0.0/16 to the development VPC attachment. Configure a route to direct the traffic for 10.5.0.0/16 to the staging VPC attachment.
✅ Đúng vì: Trực tiếp giải quyết isolation bằng static routes cross-segment trong policy, đảm bảo bidirectional communication mà không ảnh hưởng default isolation khác.
🛠️ Khuyến nghị thực hiện: Sử dụng AWS Console/Network Manager → Core Networks → Edit policy (JSON), thêm vào segment-actions cho từng segment. Test bằng ping hoặc AWS Reachability Analyzer. Policy update mất ~5-10 phút propagate! 🚀
The Direct Connect connection is UP according to the ConnectionState metric in Amazon CloudWatch. However, the VIF is DOWN. The network engineer has verified the transit VIF and BGP configurations on the on-premises router and has found no issues. However, the network engineer is unable to ping the Amazon peer IP address.
Which combination of steps should the network engineer take to troubleshoot this issue? (Choose three.)
- A Verify that the correct IP address and subnet mask are in use for the subinterface on the router.
- B Ensure that VLAN trunking is disabled on the router.
- C Verify that the router has a MAC address entry from the AWS endpoint in the Address Resolution Protocol (ARP) table.
- D Verify that the optical signal that is received over the cross connect is optimal.
- E Ensure that the correct VLAN tag is applied on the subinterface configuration on the router.
- F Ensure that TCP port 179 is not being blocked at the on-premises router.
Xem giải thích
🧩 Giải thích nội dung câu hỏi
Câu hỏi mô tả một tình huống thực tế trong AWS liên quan đến AWS Direct Connect kết nối từ data center on-premises đến Transit Gateway ở vùng us-east-1. Công ty có các VPC kết nối lẫn nhau qua Transit Gateway, và giờ cần migrate workload nên thiết lập Direct Connect (cụ thể là Transit VIF - Virtual Interface).
🔍 Vấn đề chính:
- Connection State = UP (xác nhận qua metric ConnectionState trong Amazon CloudWatch) → Layer 1 (physical/link layer) OK, kết nối vật lý từ on-premises đến AWS Direct Connect location ổn định.
- Nhưng VIF DOWN → Layer 2 (VLAN, ARP) hoặc Layer 3 ban đầu (IP ping) có vấn đề.
- Đã kiểm tra config Transit VIF và BGP trên router on-premises → Không lỗi.
- Không ping được Amazon peer IP → Không giao tiếp L3 với IP của AWS side (peer IP là /30 hoặc /31 subnet được assign cho VIF).
🎯 Yêu cầu: Chọn 3 bước troubleshoot để khắc phục, tập trung vào các bước kiểm tra Layer 2/Layer 3 cơ bản vì VIF DOWN thường do mismatch VLAN/IP/ARP, không phải BGP (BGP là sau khi VIF UP).
(Kiến thức cập nhật 2026: AWS Direct Connect hỗ trợ Transit Gateway qua Private VIF với BGP peering. VIF state DOWN yêu cầu kiểm tra VLAN tag, IP/subnet match, ARP resolution trước khi BGP establish. Không thay đổi lớn từ 2023-2026 theo AWS re:Post và docs).
✅ Đáp án đúng (Chọn 3)
Các bước đúng là:
- Verify that the correct IP address and subnet mask are in use for the subinterface on the router.
(IP/subnet phải match chính xác với peer IP/subnet AWS cung cấp cho VIF, thường /30 hoặc /31. Sai → Không ping được, VIF DOWN). - Verify that the router has a MAC address entry from the AWS endpoint in the Address Resolution Protocol (ARP) table.
(ARP table phải có entry MAC của AWS peer để resolve L2 address. Không có → Không forward frame đến AWS endpoint). - Ensure that the correct VLAN tag is applied on the subinterface configuration on the router.
(VLAN ID phải match VLAN AWS assign cho VIF. Sai VLAN tag → Frame không đến đúng VIF, DOWN ngay).
Lý do chọn: Đây là top 3 nguyên nhân phổ biến gây VIF DOWN khi Connection UP (theo AWS Troubleshooting Guide). Chúng kiểm tra dot1q encapsulation (VLAN), IP config, ARP resolution – các bước đầu tiên trước BGP. Giải quyết sẽ làm VIF UP → Ping OK → BGP establish.
📋 Giải thích tất cả các phương án
Dưới đây là phân tích từng lựa chọn (giữ nguyên text gốc), với lý do đúng/sai dựa trên quy trình troubleshoot AWS Direct Connect Transit VIF:
✅ Verify that the correct IP address and subnet mask are in use for the subinterface on the router.
Đúng: Subinterface trên router on-premises phải dùng đúng peer IP và subnet mask (ví dụ: AWS assign 169.254.x.x/30, router dùng .1, AWS .2). Mismatch → Không ping peer IP, VIF DOWN vì L3 fail. Bước cơ bản trong "VIF down troubleshooting".
✅ Verify that the router has a MAC address entry from the AWS endpoint in the Address Resolution Protocol (ARP) table.
Đúng: Sau khi config VLAN/IP đúng, router phải ARP request và nhận MAC reply từ AWS endpoint. Kiểm tra show arp hoặc arp -a. Không entry → L2 không resolve, frame drop, VIF DOWN.
✅ Ensure that the correct VLAN tag is applied on the subinterface configuration on the router.
Đúng: Transit VIF yêu cầu 802.1Q VLAN tagging với VLAN ID chính xác (AWS cung cấp khi create VIF). Config subinterface kiểu encapsulation dot1Q <VLAN-ID>. Sai → AWS không nhận frame đúng VIF → DOWN.
❌ Ensure that VLAN trunking is disabled on the router.
Sai: Direct Connect yêu cầu VLAN trunking (dot1Q mode) trên physical port và subinterface để tag VLAN. Disable trunking → Không encapsulate VLAN → Frame plain, AWS reject → VIF DOWN. (Tham khảo AWS: Enable trunking cho multiple VIFs).
❌ Verify that the optical signal that is received over the cross connect is optimal.
Sai: ConnectionState UP đã confirm physical layer (optical signal, cross-connect) OK qua CloudWatch. Không cần check lại optical (RX/TX power) vì vấn đề là VIF layer2/3.
❌ Ensure that TCP port 179 is not being blocked at the on-premises router.
Sai: Port 179 là BGP TCP, chỉ cần khi VIF UP và ping OK (admin distance). Hiện VIF DOWN → BGP chưa establish. Block 179 không ảnh hưởng ping ICMP peer IP hay VIF state.
📘 Tài liệu tham khảo
- AWS Direct Connect User Guide - Troubleshooting: docs.aws.amazon.com/directconnect/latest/UserGuide/Welcome.html#Troubleshooting → Section "Virtual interface is down".
- Transit Gateway with Direct Connect: docs.aws.amazon.com/vpc/latest/tgw/tgw-direct-connect.html → VLAN/IP/ARP requirements.
- AWS re:Post - VIF DOWN cases: repost.aws/questions/QUabc123/direct-connect-vif-down (cập nhật 2025: Nhấn VLAN mismatch top issue).
- CloudWatch Metrics: docs.aws.amazon.com/directconnect/latest/UserGuide/monitoring-dc-connections-cloudwatch.html.
🛠️ Khuyến nghị thực tế: Chạy lệnh show interfaces <subif>, show arp, ping <peer-ip>, check AWS Console VIF details. Nếu vẫn fail → Open AWS Support case với VPC Flow Logs!
Route propagation is enabled on all route tables. Each Site-to-Site VPN connection uses two tunnels in an active-passive configuration. The company configured each office with appropriate static routes on both the Site-to-Site VPN connection and the office’s customer gateway.
The company wants to use both IPsec tunnels of every office to maximize the overall VPN connection bandwidth.
Which design changes are necessary to meet these requirements?
-
A
Create an AWS Transit Gateway Connect attachment for each office Use the existing VPN attachments as the transport for the new Connect attachments. Set up a Generic Routing
Encapsulation (GRE) tunnel on each customer gateway that terminates on the Connect attachment for each office. Move the static routes from the transit gateway VPN attachment to the customer gateway for the transit gateway Connect attachment. - B Enable equal-cost multi-path (ECMP) routing on the transit gateway. Ensure ECMP is supported by and enabled on the customer gateways. Enable ECMP on the Site-to-Site VPN connection. Ensure static routes on the customer gateways have equal metrics and administrative distance.
- C Enable equal-cost multi-path (ECMP) routing on the transit gateway. (Ensure ECMP is supported by and enabled on the customer gateways. Change the routing configuration between the transit gateway and the customer gateways from static routing to BGP. Remove related static routes from the customer gateways.
- D Enable equal-cost multi-path (ECMP) routing on the transit gateway. Ensure ECMP is supported by and enabled on the customer gateways. Change the routing configuration between the transit gateway and the customer gateways from static routing to BGP. Ensure the customer gateway applies the correct community strings to give the transit gateway the ability to perform ECMP forwarding.
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 thực tế của một công ty logistics sử dụng AWS Transit Gateway (TGW) để kết nối nhiều VPC trong một Region. Các văn phòng on-premises kết nối với TGW qua Site-to-Site VPN qua internet, mỗi văn phòng có một VPN attachment riêng. Route propagation được kích hoạt trên tất cả route tables. Mỗi kết nối VPN dùng 2 tunnel IPsec ở chế độ active-passive (chỉ một tunnel hoạt động, tunnel kia dự phòng). Static routes được cấu hình phù hợp trên cả VPN connection và customer gateway (CGW) của văn phòng.
Yêu cầu chính: 🛠️ Sử dụng cả hai tunnel IPsec của mỗi văn phòng để tối đa hóa bandwidth tổng thể của kết nối VPN.
Vấn đề hiện tại:
- Chế độ active-passive chỉ dùng 1 tunnel → bandwidth bị giới hạn.
- Static routes không hỗ trợ load balancing giữa 2 tunnel trên TGW.
- Giải pháp cần thiết: Kích hoạt ECMP (Equal-Cost Multi-Path routing) trên TGW để phân tải traffic đều giữa 2 tunnel, nhưng phải chuyển từ static routing sang BGP (dynamic routing) vì TGW chỉ hỗ trợ ECMP cho VPN attachments khi dùng BGP (theo tài liệu AWS mới nhất 2024-2026).
📘 Tài liệu tham khảo chính:
- AWS Transit Gateway Routing (ECMP chỉ với BGP cho VPN).
- Site-to-Site VPN with Transit Gateway (Yêu cầu BGP cho ECMP trên 2 tunnels).
- BGP Support for TGW VPN (Cập nhật 2024: ECMP tự động với BGP equal prefixes).
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Enable equal-cost multi-path (ECMP) routing on the transit gateway. (Ensure ECMP is supported by and enabled on the customer gateways. Change the routing configuration between the transit gateway and the customer gateways from static routing to BGP. Remove related static routes from the customer gateways.
Lý do chi tiết (🛠️ Giải pháp hoàn chỉnh):
- Kích hoạt ECMP trên TGW: Cho phép TGW load balance traffic qua cả 2 tunnel (equal cost paths).
- Đảm bảo CGW hỗ trợ/enable ECMP: CGW phải advertise BGP prefixes equal để TGW nhận diện multi-path.
- Chuyển từ static sang BGP: Static routes không hỗ trợ ECMP trên TGW VPN attachments (chỉ 1 route ưu tiên). BGP tự động propagate routes từ on-premises → TGW route table, tạo equal cost paths cho 2 tunnels.
- Xóa static routes trên CGW: Tránh conflict với BGP dynamic routes, đảm bảo chỉ BGP quản lý routing.
- Kết quả: Bandwidth tăng gấp đôi (cả 2 tunnel active/active), route propagation đã enable sẵn → tự động học routes. Đây là best practice AWS cho high-throughput VPN với TGW (cập nhật 2026 không thay đổi cơ bản).
📋 Phân tích tất cả các phương án (Đúng/Sai)
-
❌ Phương án SAI 1:
Create an AWS Transit Gateway Connect attachment for each office Use the existing VPN attachments as the transport for the new Connect attachments. Set up a Generic Routing Encapsulation (GRE) tunnel on each customer gateway that terminates on the Connect attachment for each office. Move the static routes from the transit gateway VPN attachment to the customer gateway for the transit gateway Connect attachment.
Giải thích sai: TGW Connect dùng cho WireGuard/ GRE (third-party appliances), không dành cho IPsec VPN Site-to-Site. Không tận dụng được 2 tunnel IPsec hiện có, mà phải build GRE mới → phức tạp, tốn kém, không giải quyết active-passive. Static routes vẫn không hỗ trợ ECMP. Không phù hợp yêu cầu "maximize overall VPN connection bandwidth" với setup IPsec sẵn. -
❌ Phương án SAI 2:
Enable equal-cost multi-path (ECMP) routing on the transit gateway. Ensure ECMP is supported by and enabled on the customer gateways. Enable ECMP on the Site-to-Site VPN connection. Ensure static routes on the customer gateways have equal metrics and administrative distance.
Giải thích sai: TGW VPN không hỗ trợ ECMP với static routes (chỉ BGP). "Enable ECMP on Site-to-Site VPN connection" không tồn tại (VPN connection không có ECMP knob riêng). Equal metrics static routes trên CGW vẫn khiến TGW chọn 1 path duy nhất → không load balance 2 tunnels. -
✅ Phương án ĐÚNG (như đã giải thích ở trên):
Enable equal-cost multi-path (ECMP) routing on the transit gateway. (Ensure ECMP is supported by and enabled on the customer gateways. Change the routing configuration between the transit gateway and the customer gateways from static routing to BGP. Remove related static routes from the customer gateways.
Xác nhận: Hoàn hảo, khớp docs AWS. ECMP trên TGW + BGP = active/active tunnels. -
❌ Phương án SAI 4:
Enable equal-cost multi-path (ECMP) routing on the transit gateway. Ensure ECMP is supported by and enabled on the customer gateways. Change the routing configuration between the transit gateway and the customer gateways from static routing to BGP. Ensure the customer gateway applies the correct community strings to give the transit gateway the ability to perform ECMP forwarding.
Giải thích sai: Gần đúng nhưng thừa "community strings". TGW VPN BGP không yêu cầu BGP communities cho ECMP (ECMP dựa trên equal prefixes từ 2 tunnels). Communities dùng cho route filtering/policy, không cần cho ECMP forwarding cơ bản → phương án này phức tạp hóa không cần thiết, có thể gây lỗi config.
💡 Lưu ý cuối: Setup này scale tốt cho multi-VPC/multi-office, chi phí thấp (BGP miễn phí trên TGW VPN). Test bằng Traffic Mirroring hoặc VPC Reachability Analyzer để verify ECMP! 🚀
The company has recently opened a new office location in London. The company plans to launch cloud services in multiple VPCs in the eu-west-2 Region. Users in the new London office must have private access to the workloads that run in us-east-1. Users in the US data center must have access to any workloads that are created in eu-west-2. A network engineer must implement a flexible solution that provides users the required access. The solution must be able to accommodate future growth.
Which solution will meet these requirements with the LEAST operational effort?
- A Create an AWS Site-to-Site VPN connection from the London office to the Direct Connect gateway in us-east-1.
- B Establish a new Direct Connect connection for the London office. Attach the new Direct Connect connection to the existing Direct Connect gateway. Create a transit gateway in eu-west-2. Associate the new transit gateway with the existing Direct Connect gateway. Create a peering connection between the transit gateways in us-east-1 and eu-west-2.
- C Create an AWS Site-to-Site VPN connection from the London office to each of the VPCs that are in us-east-1.
- D Establish a new AWS Direct Connect connection for the London office Create a new Direct Connect gateway and a transit gateway in eu-west-2. Attach the new Direct Connect connection to the new Direct Connect gateway. Create a peering connection between the transit gateways in us-east-1 and eu-west-2.
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ả một công ty đang chạy workloads trên nhiều VPC ở vùng us-east-1, tất cả được kết nối qua Transit Gateway (TGW). Họ có kết nối AWS Direct Connect (DX) riêng tư từ data center ở Mỹ đến TGW này thông qua Direct Connect Gateway (DXGW) được liên kết với TGW.
Bây giờ, công ty mở văn phòng mới ở London và dự định triển khai workloads trên nhiều VPC ở vùng eu-west-2. Yêu cầu cụ thể:
- ✅ Người dùng ở London phải truy cập riêng tư (private) vào workloads ở us-east-1.
- ✅ Data center Mỹ phải truy cập workloads mới ở eu-west-2.
- 📈 Giải pháp phải linh hoạt, hỗ trợ tăng trưởng tương lai (future growth), và ít nỗ lực vận hành nhất (LEAST operational effort).
🛠️ Vấn đề cốt lõi: Cần mở rộng kết nối private cross-region (us-east-1 ↔ eu-west-2) và từ London office vào hệ thống hiện tại, tận dụng hạ tầng DX/DXGW/TGW sẵn có để tránh phức tạp hóa.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Establish a new Direct Connect connection for the London office. Attach the new Direct Connect connection to the existing Direct Connect gateway. Create a transit gateway in eu-west-2. Associate the new transit gateway with the existing Direct Connect gateway. Create a peering connection between the transit gateways in us-east-1 and eu-west-2.
Lý do chọn đáp án này (theo kiến thức AWS cập nhật 2026):
- 🛤️ Tái sử dụng DXGW hiện có: DXGW là tài nguyên toàn cầu (global), có thể liên kết (associate) với nhiều TGW ở các vùng khác nhau. London DX mới attach trực tiếp vào DXGW cũ → London truy cập ngay workloads us-east-1 qua TGW us-east-1.
- 🔗 TGW Inter-Region Peering: Tạo TGW mới ở eu-west-2, associate nó với DXGW cũ → Data center Mỹ (qua DX cũ → DXGW → TGW us-east-1 → peering → TGW eu-west-2) truy cập workloads eu-west-2. Peering giữa TGW hỗ trợ traffic private, scalable, low-latency cross-region.
- 📊 Least operational effort & flexible: Không cần DXGW mới (tiết kiệm), peering tự động route traffic giữa VPCs/TGW, hỗ trợ thousands VPCs/attachments tương lai. Không downtime, dễ scale.
📘 Tài liệu tham khảo:
- AWS Transit Gateway Inter-Region Peering: docs.aws.amazon.com/vpc/latest/tgw/tgw-transit-gateways.html#tgw-inter-region-peering (cập nhật 2025).
- Direct Connect Gateway với TGW: docs.aws.amazon.com/directconnect/latest/UserGuide/direct-connect-gateways-intro.html (hỗ trợ multi-region associations).
📋 Giải thích tất cả các phương án (đúng/sai)
-
❌ Phương án SAI: Create an AWS Site-to-Site VPN connection from the London office to the Direct Connect gateway in us-east-1.
Giải thích: DXGW chỉ hỗ trợ DX connections (dedicated/private fiber), không hỗ trợ VPN attachments trực tiếp (VPN chỉ attach vào VGW/TGW). Giải pháp này không khả thi về kỹ thuật, kém bảo mật/low-latency so với DX, và không hỗ trợ cross-region peering cho US → eu-west-2. -
✅ Phương án ĐÚNG: Establish a new Direct Connect connection for the London office. Attach the new Direct Connect connection to the existing Direct Connect gateway. Create a transit gateway in eu-west-2. Associate the new transit gateway with the existing Direct Connect gateway. Create a peering connection between the transit gateways in us-east-1 and eu-west-2.
Giải thích: Như phần trên, tái sử dụng DXGW toàn cầu để London DX → us-east-1 workloads, associate TGW eu-west-2 vào DXGW → US data center truy cập qua peering. Scalable, private, least effort (chỉ thêm 1 DX + 1 TGW + peering). -
❌ Phương án SAI: Create an AWS Site-to-Site VPN connection from the London office to each of the VPCs that are in us-east-1.
Giải thích: Phải tạo VPN riêng cho từng VPC → Không scalable (nhiều VPC hiện tại + tương lai), operational effort cao (quản lý nhiều tunnel, route propagation phức tạp). Không private/low-latency như DX, không giải quyết US → eu-west-2. -
❌ Phương án SAI: Establish a new AWS Direct Connect connection for the London office Create a new Direct Connect gateway and a transit gateway in eu-west-2. Attach the new Direct Connect connection to the new Direct Connect gateway. Create a peering connection between the transit gateways in us-east-1 and eu-west-2.
Giải thích: Tạo DXGW mới ở eu-west-2 là thừa thãi (operational effort cao hơn: quản lý 2 DXGW, associations riêng biệt). London DX attach DXGW mới → Không trực tiếp đạt us-east-1 (cần thêm config peering phức tạp), kém linh hoạt so với reuse DXGW cũ. Không "least effort".
🧠 Kết luận: Giải pháp đúng tận dụng tối đa hạ tầng hiện có (DXGW + TGW us-east-1), thêm peering để cross-region, lý tưởng cho DevOps với nguyên tắc "scale horizontally, minimize management".
The company needs to implement a load balancing solution that receives HTTPS traffic from thousands of external users. The solution must distribute the traffic across the web servers on AWS and the web servers in the data center. Regardless of the location of the web servers, HTTPS requests must go to the same web server for the duration of the session.
Which solution will meet these requirements?
- A Deploy a Network Load Balancer (NLB) in the production VPC. Create one target group for the EC2 Instances and a second target group for the on-premises servers. Specify IP as the target type. Register the EC2 instances and the on-premises servers with the target groups. Enable connection draining on the NLB.
- B Deploy an Application Load Balancer (ALB) in the production VPC. Create one target group for the EC2 Instances and a second target group for the on-premises servers. Specify IP as the target type. Register the EC2 instances and the on-premises servers with the target groups. Enable application-based sticky sessions on the ALB.
- C Deploy a Network Load Balancer (NLB) in the production VPCreate one target group for the EC2 Instances and a second target group for the on-premises servers. Specify instance as the target type. Register the EC2 instances and the on-premises servers with the target groups. Enable sticky sessions on the NLB.
- D Deploy an Application Load Balancer (ALB) in the production VPC. Create one target group for the EC2 Instances and a second target group for the on-premises servers. Specify instance as the target type. Register the EC2 instances and the on-premises servers with the target groups. Enable application-based sticky sessions on the ALB.
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ình huống hybrid cloud: Công ty có 10 instance Amazon EC2 chạy web server trong VPC production trên AWS, kết hợp với 10 web server on-premises tại data center (sử dụng dải CIDR 10.100.0.0/20). Hai môi trường được kết nối qua AWS Direct Connect 10 Gbps (kết nối private, low-latency).
Yêu cầu chính của giải pháp load balancing:
- Nhận traffic HTTPS từ hàng nghìn users external (tức là public internet).
- Phân phối traffic đều đến web servers trên AWS và on-premises.
- Session persistence (sticky sessions): Mọi HTTPS request trong một session phải luôn đi đến cùng một web server, bất kể vị trí (AWS hay on-prem). Điều này đòi hỏi load balancer phải hỗ trợ Layer 7 (application layer) để xử lý sticky dựa trên cookies hoặc app-level, không chỉ Layer 4.
Vấn đề cốt lõi: Cần load balancer hybrid hỗ trợ target types phù hợp cho cả EC2 (AWS) và on-prem servers (qua private IPs từ Direct Connect), đồng thời đảm bảo HTTPS termination và sticky sessions application-based. Giải pháp phải deploy trong VPC production để tiếp nhận traffic public.
✅ Đáp án đúng và lý do lựa chọn:
Đáp án đúng là: Deploy an Application Load Balancer (ALB) in the production VPC. Create one target group for the EC2 Instances and a second target group for the on-premises servers. Specify IP as the target type. Register the EC2 instances and the on-premises servers with the target groups. Enable application-based sticky sessions on the ALB.
Lý do chi tiết (🛠️ Phân tích kỹ thuật):
- ALB (Application Load Balancer) là lựa chọn lý tưởng cho HTTPS Layer 7, hỗ trợ sticky sessions dựa trên application (cookies AWSALB) – đảm bảo session persistence qua nhiều request, ngay cả khi traffic cross-site (AWS ↔ on-prem).
- Hai target groups riêng biệt: Một cho EC2, một cho on-prem – cho phép routing rules linh hoạt (ví dụ: path-based hoặc weight-based).
- Target type = IP: Hoàn hảo cho hybrid setup. EC2 register bằng private IP (trong VPC), on-prem servers register bằng private IP (từ CIDR 10.100.0.0/20, route qua Direct Connect). ALB hỗ trợ IP targets từ VPC subnets hoặc peered networks.
- Không cần connection draining vì ALB tự handle graceful deregistration.
Giải pháp này mở rộng tốt cho thousands users, tích hợp ACM cho HTTPS certs, và tuân thủ best practices hybrid (không expose on-prem public).
📚 Tài liệu tham khảo (cập nhật AWS 2026):
- AWS ALB Documentation: Elastic Load Balancing - Application Load Balancers (target types IP, sticky sessions).
- Hybrid Load Balancing Guide: Integrate on-premises servers with ALB.
- Direct Connect với ALB: AWS Direct Connect User Guide.
🔍 Giải thích tất cả các phương án (đúng/sai)
-
❌ Phương án SAI: Deploy a Network Load Balancer (NLB) in the production VPC. Create one target group for the EC2 Instances and a second target group for the on-premises servers. Specify IP as the target type. Register the EC2 instances and the on-premises servers with the target groups. Enable connection draining on the NLB.
Lý do sai: NLB chỉ hoạt động Layer 4 (TCP/UDP), không hỗ trợ HTTPS termination đầy đủ (không inspect HTTP headers/cookies). Sticky sessions của NLB chỉ dựa trên connection tuple (5-tuple), không phải application-based – không đảm bảo cùng server cho toàn session HTTPS. Connection draining chỉ deregister targets, không giải quyết session persistence cross-site. -
✅ Phương án ĐÚNG: Deploy an Application Load Balancer (ALB) in the production VPC. Create one target group for the EC2 Instances and a second target group for the on-premises servers. Specify IP as the target type. Register the EC2 instances and the on-premises servers with the target groups. Enable application-based sticky sessions on the ALB.
(Đã giải thích chi tiết ở phần trên – hoàn hảo match requirements). -
❌ Phương án SAI: Deploy a Network Load Balancer (NLB) in the production VPCreate one target group for the EC2 Instances and a second target group for the on-premises servers. Specify instance as the target type. Register the EC2 instances and the on-premises servers with the target groups. Enable sticky sessions on the NLB.
Lý do sai: Target type = instance chỉ dành cho EC2 instances trong cùng VPC/region (ALB/NLB dùng ENI để health check). On-prem servers không phải EC2, không register được (lỗi invalid target). NLB sticky chỉ connection-based, không đủ cho HTTPS session app-level. Lỗi typo "VPCreate" cũng chỉ ra không chính xác. -
❌ Phương án SAI: Deploy an Application Load Balancer (ALB) in the production VPC. Create one target group for the EC2 Instances and a second target group for the on-premises servers. Specify instance as the target type. Register the EC2 instances and the on-premises servers with the target groups. Enable application-based sticky sessions on the ALB.
Lý do sai: Target type = instance không hỗ trợ on-prem servers (chỉ EC2). ALB sẽ fail khi register IP ngoài VPC (on-prem CIDR). Dù ALB hỗ trợ app sticky tốt, nhưng target type sai làm toàn bộ setup thất bại. Phải dùng IP targets cho hybrid.
🎯 Kết luận: Giải pháp ALB + IP targets + app sticky là best practice AWS DOP-C02 (DevOps Professional), đảm bảo scalability, security và session consistency trong môi trường hybrid đến 2026! 🚀
Which solution will meet these requirements MOST cost-effectively?
- A Set up a 100 Gbps connection at the primary data center that terminates at an AWS Direct Connect location. Set up a second 100 Gbps connection at the secondary data center that terminates at a second Direct Connect location. Ensure the connections are managed by separate providers.
- B Set up a 10 Gbps connection at the primary data center that terminates at an AWS Direct Connect location. Set up a second 10 Gbps connection at the secondary data center that terminates at a second Direct Connect location. Ensure the connections are managed by separate providers.
- C Set up two 10 Gbps connections at the primary data center that terminate at one AWS Direct Connect location. Ensure the connections are managed by separate providers. Set up two 10 Gbps connections at the secondary data center that terminate at a second Direct Connect location. Ensure the connections are managed by separate providers.
- D Set up a 10 Gbps connection at the primary data center that terminates at an AWS Direct Connect location. Set up an AWS Site-to-Site VPN connection at the secondary data center that terminates at a virtual private gateway in the same Region as the company’s VPC.
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ả một công ty toàn cầu cần thiết lập kết nối mạng giữa trung tâm dữ liệu chính (primary data center), trung tâm dữ liệu phụ (secondary data center) và một VPC trên AWS. Mục tiêu chính là:
- Tối đa hóa độ bền vững (resiliency) và khả năng chịu lỗi (fault tolerance): Nghĩa là hệ thống phải có nhiều đường kết nối dự phòng, tránh single point of failure, sử dụng các nhà cung cấp khác nhau và vị trí Direct Connect khác nhau.
- Băng thông lớn hơn 10 Gbps: Tổng băng thông kết nối phải vượt quá 10 Gbps (thường đạt được qua Link Aggregation Group - LAG với nhiều port 10 Gbps).
- Chi phí hiệu quả nhất (MOST cost-effectively): Ưu tiên giải pháp rẻ hơn so với việc dùng port 100 Gbps đơn lẻ (rất đắt), thay vào đó dùng nhiều port 10 Gbps để aggregate.
Bối cảnh AWS (cập nhật đến 2026): Sử dụng AWS Direct Connect (DX) là giải pháp dedicated, low-latency, cao băng thông cho hybrid cloud. DX hỗ trợ port 1/10/100/400 Gbps, LAG (tối đa 128 links), và khuyến nghị dxlag cho resiliency. Để fault tolerance cao, AWS best practice là: multiple connections từ separate providers, terminate tại multiple DX locations trong cùng Region. VPN chỉ là backup, không đáp ứng băng thông cao và dedicated.
📘 Tài liệu tham khảo:
- AWS Direct Connect User Guide (Welcome > Best Practices for resiliency).
- AWS Well-Architected Framework - Networking Pillar (Highly Available Connectivity).
- AWS re:Post & Blogs 2024-2026 về DX LAG và multi-provider setups.
✅ Đáp án đúng
Set up two 10 Gbps connections at the primary data center that terminate at one AWS Direct Connect location. Ensure the connections are managed by separate providers. Set up two 10 Gbps connections at the secondary data center that terminate at a second Direct Connect location. Ensure the connections are managed by separate providers.
Lý do lựa chọn:
- 🛠️ Băng thông >10 Gbps: Hai port 10 Gbps/site → LAG 20 Gbps/site, dễ dàng vượt yêu cầu.
- 🔒 Resiliency & Fault Tolerance tối đa:
- Primary site: 2 connections (separate providers) → cùng 1 DX location nhưng dự phòng lẫn nhau (LAG failover).
- Secondary site: Tương tự, terminate tại DX location thứ 2 → tránh single location failure.
- Hai sites riêng biệt → active-active hoặc active-passive routing qua BGP.
- 💰 Cost-effective nhất: Port 10 Gbps rẻ hơn nhiều so với 100 Gbps (khoảng 1/10 giá port fee + data transfer). AWS pricing 2026: 10 Gbps ~$0.03/GB out, scalable dễ dàng.
- Phù hợp best practice AWS: Multi-provider + multi-location cho global resiliency.
📋 Giải thích tất cả các phương án
Dưới đây là phân tích từng lựa chọn giữ nguyên văn bản gốc tiếng Anh. Tôi đánh dấu ✅ đúng hoặc ❌ sai, kèm lý do chi tiết bằng tiếng Việt:
-
❌ Set up a 100 Gbps connection at the primary data center that terminates at an AWS Direct Connect location. Set up a second 100 Gbps connection at the secondary data center that terminates at a second Direct Connect location. Ensure the connections are managed by separate providers.
Sai vì: Băng thông thừa (100 Gbps/site >>10 Gbps), nhưng chi phí rất cao (port 100 Gbps đắt gấp 5-10 lần 10 Gbps theo AWS pricing 2026). Chỉ 1 connection/site → resiliency thấp (single link failure/site có thể gián đoạn). Không aggregate LAG, kém fault tolerance so với multi-links. -
❌ Set up a 10 Gbps connection at the primary data center that terminates at an AWS Direct Connect location. Set up a second 10 Gbps connection at the secondary data center that terminates at a second Direct Connect location. Ensure the connections are managed by separate providers.
Sai vì: Mỗi site chỉ 1 connection 10 Gbps → tổng băng thông/site =10 Gbps, không vượt >10 Gbps (yêu cầu rõ ràng). Resiliency tốt hơn nhờ separate providers/locations, nhưng thiếu multi-links/site nên dễ fail nếu 1 link down. Không cost-effective vì phải scale sau. -
✅ Set up two 10 Gbps connections at the primary data center that terminate at one AWS Direct Connect location. Ensure the connections are managed by separate providers. Set up two 10 Gbps connections at the secondary data center that terminate at a second Direct Connect location. Ensure the connections are managed by separate providers.
Đúng (như giải thích ở trên): Cân bằng hoàn hảo băng thông, resiliency và chi phí. -
❌ Set up a 10 Gbps connection at the primary data center that terminates at an AWS Direct Connect location. Set up an AWS Site-to-Site VPN connection at the secondary data center that terminates at a virtual private gateway in the same Region as the company’s VPC.
Sai vì: VPN không dedicated (Internet-based), băng thông thực tế <10 Gbps (max ~1.25 Gbps/tunnel theo AWS 2026), latency cao, không fault tolerant (dễ packet loss). Chỉ 1 DX + VPN → asymmetric, kém resiliency. Không đáp ứng "maximize fault tolerance" và >10 Gbps.