Ngân hàng đề — AWS Certified Advanced Networking Specialty

Tìm thấy 352 câu.

Câu 201 Chọn nhiều đáp án
A global film production company uses the AWS Cloud to encode and store its video content before distribution. The company's three global offices are connected to the us-east-1 Region through AWS Site-to-Site VPN links that terminate on a transit gateway with BGP routing activated.

The company recently started to produce content at a higher resolution to support 8K streaming. The size of the content files has increased to three times the size of the content files from the previous format. Uploads of files to Amazon EC2 instances are taking 10 times longer than they did with the previous format.

Which actions should a network engineer recommend to reduce the upload times? (Choose two.)
  1. A Create a second VPN tunnel from each office location to the transit gateway. Activate equal-cost multi-path (ECMP) routing.
  2. B Modify the transit gateway to activate Jumbo MTU on the VPN tunnels to each office location.
  3. C Replace the existing VPN tunnels with new tunnels that have acceleration activated.
  4. D Upgrade each EC2 instance to a modern instance type. Activate Jumbo MTU in the operating system.
  5. E Replace the existing VPN tunnels with new tunnels that have IGMP activated.
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 sản xuất phim toàn cầu sử dụng AWS Cloud để encode và lưu trữ nội dung video trước khi phân phối. Họ có ba văn phòng toàn cầu kết nối với Region us-east-1 qua AWS Site-to-Site VPN, các kết nối này terminate trên Transit Gateway với BGP routing được kích hoạt.

Gần đây, công ty chuyển sang sản xuất nội dung 8K streaming, khiến kích thước file tăng gấp 3 lần so với định dạng cũ. Kết quả là thời gian upload file lên Amazon EC2 instances chậm gấp 10 lần.

Vấn đề cốt lõi: Hiệu suất upload bị bottleneck do VPN tunnels hiện tại không đủ throughput cho file lớn, đặc biệt với file size tăng cao và traffic từ nhiều office. Câu hỏi yêu cầu chọn TWO actions mà network engineer nên recommend để giảm thời gian upload, tập trung vào tối ưu hóa kết nối mạng WAN-to-AWS.

📘 Kiến thức AWS cập nhật đến 2026: Theo tài liệu AWS mới nhất (AWS Site-to-Site VPN, Transit Gateway Routing 2025+), VPN tunnels mặc định hỗ trợ throughput ~1.25 Gbps/tunnel, nhưng có thể scale bằng multiple tunnels + ECMP hoặc VPN Acceleration (dùng AWS Global Accelerator để tối ưu path, giảm latency/jitter cho large transfers). Không hỗ trợ Jumbo MTU trực tiếp trên TGW VPN (MTU chuẩn 1500 bytes).

Nguồn tham khảo:

✅ Đáp án đúng (Chọn TWO)

Hai lựa chọn đúng là:
1. Create a second VPN tunnel from each office location to the transit gateway. Activate equal-cost multi-path (ECMP) routing.
2. Replace the existing VPN tunnels with new tunnels that have acceleration activated.

Lý do chọn:

  • Những actions này trực tiếp giải quyết bottleneck throughput và latency của VPN tunnels khi upload file lớn (gấp 3x size). Multiple tunnels + ECMP tăng aggregate bandwidth (lên đến 5 Gbps với 4 tunnels/office), phân tải traffic đều. VPN Acceleration sử dụng Global Accelerator để route traffic qua AWS edge locations toàn cầu, cải thiện TCP performance cho uploads lớn (giảm retransmissions, tăng throughput 2-5x theo benchmarks AWS 2025). Kết hợp cả hai sẽ giảm thời gian upload đáng kể mà không thay đổi architecture lớn.

🔍 Phân tích tất cả các phương án (Đúng/Sai)

Dưới đây là phân tích chi tiết từng lựa chọn, giữ nguyên văn bản gốc bằng tiếng Anh. Mỗi phương án được đánh giá dựa trên tính khả thi, hiệu quả và phù hợp với best practices AWS:

  • ✅ Create a second VPN tunnel from each office location to the transit gateway. Activate equal-cost multi-path (ECMP) routing.
    🛠️ Đúng: Transit Gateway hỗ trợ tối đa 4 tunnels/VPN connection với BGP + ECMP (equal-cost multi-path), cho phép load balancing traffic upload song song. Điều này tăng throughput tổng (aggregate bandwidth) lên gấp đôi hoặc hơn, lý tưởng cho file lớn từ multiple offices. AWS recommend cho high-bandwidth scenarios như media uploads (xem Transit Gateway quotas 2026: ECMP tự động kích hoạt với equal BGP routes).

  • ❌ Modify the transit gateway to activate Jumbo MTU on the VPN tunnels to each office location.
    🚫 Sai: Transit Gateway VPN attachments không hỗ trợ Jumbo MTU (9001 bytes); MTU chuẩn là 1500 bytes cho IPsec VPN (AWS IPsec giới hạn). Kích hoạt Jumbo trên TGW sẽ gây fragmentation và packet loss, làm chậm hơn thay vì nhanh. Chỉ Jumbo MTU áp dụng cho VPC attachments, không phải VPN (xác nhận AWS docs: VPN MTU fixed).

  • ✅ Replace the existing VPN tunnels with new tunnels that have acceleration activated.
    🛠️ Đúng: VPN Acceleration (ra mắt 2022, update 2025) tích hợp AWS Global Accelerator, route traffic qua 50+ edge locations toàn cầu, tối ưu latency/jitter cho TCP-based uploads (như S3/EC2). Hiệu quả cao với large files (8K video), tăng throughput 2-5x và giảm thời gian upload ~60% theo AWS tests. Dễ implement: Tạo VPN mới với acceleration enabled, BGP giữ nguyên.

  • ❌ Upgrade each EC2 instance to a modern instance type. Activate Jumbo MTU in the operating system.
    🚫 Sai: Vấn đề nằm ở VPN WAN link (chậm gấp 10x do file lớn), không phải EC2 compute/network interface. Modern instances (như C7g, M7g 2025) hỗ trợ enhanced networking + Jumbo MTU OS-level (setifconfig), nhưng không ảnh hưởng đến VPN ingress. Upload bottleneck ở tunnel, không phải EC2 side – upgrade EC2 chỉ lãng phí chi phí.

  • ❌ Replace the existing VPN tunnels with new tunnels that have IGMP activated.
    🚫 Sai: IGMP (Internet Group Management Protocol) dùng cho multicast routing (như video streaming group), không liên quan đến unicast file uploads (TCP/S3/EC2). VPN AWS không cần IGMP cho unicast; kích hoạt chỉ phức tạp hóa mà không tăng throughput. Sai ngữ cảnh hoàn toàn (AWS VPN focus unicast + multicast riêng biệt qua TGW).

Kết luận 💡: Kết hợp multiple tunnels + ECMP và VPN Acceleration là solution tối ưu, scalable cho media workloads. Implement theo thứ tự: Acceleration trước (dễ test), rồi add tunnels nếu cần >2.5 Gbps/office. Test với CloudWatch VPN metrics để verify!

Câu 202
An application team for a startup company is deploying a new multi-tier application into the AWS Cloud. The application will be hosted on a fleet of Amazon EC2 instances that run in an Auto Scaling group behind a publicly accessible Network Load Balancer (NLB). The application requires the clients to work with UDP traffic and TCP traffic.

In the near term, the application will serve only users within the same geographic location. The application team plans to extend the application to a global audience and will move the deployment to multiple AWS Regions around the world to bring the application closer to the end users. The application team wants to use the new Regions to deploy new versions of the application and wants to be able to control the amount of traffic that each Region receives during these rollouts. In addition, the application team must minimize first-byte latency and jitter (randomized delay) for the end users.

How should the application team design the network architecture for the application to meet these requirements?
  1. A Create an Amazon CloudFront distribution to align to each Regional deployment. Set the NLB for each Region as the origin for each CloudFront distribution. Use an Amazon Route 53 weighted routing policy to control traffic to the newer Regional deployments.
  2. B Create an AWS Global Accelerator accelerator and listeners for the required ports. Configure endpoint groups for each Region. Configure a traffic dial for the endpoint groups to control traffic to the newer Regional deployments. Register the NLBs with the endpoint groups.
  3. C Use Amazon S3 Transfer Acceleration for the application in each Region. Adjust the amount of traffic that each Region receives from the Transfer Acceleration endpoints to the Regional NLBs.
  4. D Create an Amazon CloudFront distribution that includes an origin group. Set the NLB for each Region as the origins for the origin group. Use an Amazon Route 53 latency routing policy to control traffic to the new Regional deployments.
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 đội ngũ phát triển ứng dụng của startup đang triển khai ứng dụng multi-tier (đa tầng) lên AWS Cloud. Ứng dụng chạy trên fleet EC2 instances trong Auto Scaling Group (ASG), phía sau Network Load Balancer (NLB) công khai. Ứng dụng cần hỗ trợ UDP traffic và TCP traffic từ clients.

📍 Yêu cầu hiện tại và tương lai:

  • Ban đầu: Chỉ phục vụ users trong cùng khu vực địa lý (single Region).
  • Tương lai: Mở rộng global audience với multi-Region (nhiều Region trên thế giới) để gần users hơn, giảm độ trễ.
  • Kiểm soát traffic: Sử dụng các Region mới để deploy phiên bản mới, điều chỉnh lượng traffic đến từng Region trong rollout.
  • Tối ưu hóa: Giảm first-byte latency (độ trễ byte đầu tiên) và jitter (độ trễ ngẫu nhiên) cho end-users.

🛠️ Mục tiêu thiết kế mạng: Cần kiến trúc hỗ trợ UDP/TCP, multi-Region routing thông minh, traffic control (như weighted), và tối ưu latency/jitter. AWS Global Accelerator là giải pháp lý tưởng vì sử dụng anycast IP toàn cầu, route traffic qua AWS Edge Locations gần users nhất, hỗ trợ UDP/TCP, và có traffic dials để kiểm soát tỷ lệ traffic.

✅ Đáp án đúng và lý do lựa chọn

Đáp án đúng: Create an AWS Global Accelerator accelerator and listeners for the required ports. Configure endpoint groups for each Region. Configure a traffic dial for the endpoint groups to control traffic to the newer Regional deployments. Register the NLBs with the endpoint groups.

Lý do chọn:

  • AWS Global Accelerator (GAA) cung cấp static anycast IP addresses toàn cầu, route traffic UDP/TCP qua AWS backbone network và Edge Locations gần users nhất → Giảm đáng kể first-byte latency và jitter (cải thiện lên đến 60% so với public internet).
  • Listeners cho các ports cần thiết (TCP/UDP).
  • Endpoint groups mỗi Region chứa NLB → Hỗ trợ multi-Region failover và proximity routing.
  • Traffic dials (hoặc traffic weights) cho phép điều chỉnh chính xác % traffic đến từng endpoint group → Lý tưởng cho blue-green/canary rollouts ở Region mới.
  • Hoàn hảo cho NLB (TCP/UDP) và ASG. Đây là best practice theo AWS Well-Architected Framework (Reliability & Performance Pillars) cập nhật 2024-2026.

📋 Giải thích tất cả các phương án

  • ✅ [ĐÚNG] Create an AWS Global Accelerator accelerator and listeners for the required ports. Configure endpoint groups for each Region. Configure a traffic dial for the endpoint groups to control traffic to the newer Regional deployments. Register the NLBs with the endpoint groups.
    🟢 Đúng vì: Như giải thích trên, GAA hỗ trợ UDP/TCP đầy đủ, multi-Region với proximity-based routing, traffic dials kiểm soát rollout, và tối ưu latency/jitter qua AWS global network. Phù hợp NLB làm endpoint.

  • ❌ [SAI] Create an Amazon CloudFront distribution to align to each Regional deployment. Set the NLB for each Region as the origin for each CloudFront distribution. Use an Amazon Route 53 weighted routing policy to control traffic to the newer Regional deployments.
    🔴 Sai vì: CloudFront chủ yếu cho HTTP/HTTPS (WebSocket hỗ trợ hạn chế TCP, không hỗ trợ UDP native). NLB origin cần HTTP proxy, không phù hợp non-HTTP app. Route 53 weighted chỉ DNS-level, không giảm jitter/latency như GAA (traffic đi public internet → độ trễ cao). Không lý tưởng cho multi-tier app UDP/TCP.

  • ❌ [SAI] Use Amazon S3 Transfer Acceleration for the application in each Region. Adjust the amount of traffic that each Region receives from the Transfer Acceleration endpoints to the Regional NLBs.
    🔴 Sai vì: S3 Transfer Acceleration chỉ tối ưu upload/download S3 objects qua AWS Edge, không hỗ trợ ứng dụng động trên EC2/NLB. Không route UDP/TCP traffic đến NLB, không có traffic control multi-Region cho app. Hoàn toàn không liên quan!

  • ❌ [SAI] Create an Amazon CloudFront distribution that includes an origin group. Set the NLB for each Region as the origins for the origin group. Use an Amazon Route 53 latency routing policy to control traffic to the new Regional deployments.
    🔴 Sai vì: Tương tự lựa chọn đầu, CloudFront không hỗ trợ UDP, origin group chỉ failover (không weighted control tốt cho rollout). Route 53 latency routing dựa DNS (chậm, jitter cao vì public DNS resolution), không minimize first-byte latency như GAA anycast. NLB non-HTTP không tương thích tốt với CloudFront.

📘 Tài liệu tham khảo (Cập nhật mới nhất AWS 2026)

Hy vọng phân tích giúp bạn ôn thi DOP-C02 hiệu quả! 🚀 Nếu cần thêm ví dụ Terraform/ CDK deploy, hỏi nhé!

Câu 203 Chọn nhiều đáp án
A company is deploying a new stateless web application on AWS. The web application will run on Amazon EC2 instances in private subnets behind an Application Load Balancer. The EC2 instances are in an Auto Scaling group. The web application has a stateful management application for administration that will run on EC2 instances that are in a separate Auto Scaling group.

The company wants to access the management application by using the same URL as the web application, with a path prefix of/management. The protocol, hostname, and port number must be the same for the web application and the management application. Access to the management application must be restricted to the company's on-premises IP address space. An SSL/TLS certificate from AWS Certificate Manager (ACM) will protect the web application.

Which combination of steps should a network engineer take to meet these requirements? (Choose two.)
  1. A Insert a rule for the load balancer HTTPS listener. Configure the rule to check the path-pattern condition type for the /management prefix and to check the source-ip condition type for the on-premises IP address space. Forward requests to the management application target group if there is a match. Edit the management application target group and enable stickiness.
  2. B Modify the default rule for the load balancer HTTPS listener. Configure the rule to check the path-pattern condition type for the /management prefix and to check the source-ip condition type for the on-premises IP address space. Forward requests to the management application target group if there is not a match. Enable group-level stickiness in the rule attributes.
  3. C Insert a rule for the load balancer HTTPS listener. Configure the rule to check the path-pattern condition type for the /management prefix and to check the X-Forwarded-For HTTP header for the on-premises IP address space. Forward requests to the management application target group if there is a match. Enable group-level stickiness in the rule attributes.
  4. D Modify the default rule for the load balancer HTTPS listener. Configure the rule to check the path-pattern condition type for the /management prefix and to check the source-ip condition type for the on-premises IP address space. Forward requests to the web application target group if there is not a match.
  5. E Forward all requests to the web application target group. Edit the web application target group and disable stickiness.
Xem giải thích

🧩 Phân tích chi tiết nội dung câu hỏi

Câu hỏi này thuộc chủ đề Application Load Balancer (ALB) trong AWS, tập trung vào việc cấu hình listener rules để route traffic thông minh dựa trên path pattern và source IP.

  • Bối cảnh triển khai:

    • Ứng dụng web stateless chạy trên EC2 trong private subnets, sau ALB, thuộc Auto Scaling Group (ASG).
    • Ứng dụng management stateful (cần session persistence - stickiness) chạy trên EC2 riêng biệt, ASG khác.
    • Yêu cầu: Truy cập management qua cùng URL (protocol HTTPS, hostname, port) với web app, nhưng thêm path prefix /management.
    • Bảo mật: Chỉ cho phép từ on-premises IP space (dùng source-ip condition).
    • SSL/TLS: Sử dụng cert từ ACM trên ALB.
  • Mục tiêu: Network engineer cần chọn TWO steps để:

    • Route traffic /management chỉ từ IP on-prem → management target group (TG), với stickiness (vì stateful).
    • Traffic còn lại → web TG (stateless, không cần stickiness).
    • Sử dụng rules trên HTTPS listener của ALB (rules được đánh giá từ trên xuống, default rule cuối cùng catch-all).

Logic cốt lõi (theo AWS ALB docs cập nhật 2024-2026):

  • Insert rule (thêm rule mới trước default) để ưu tiên match path /management* VÀ source-ip → forward management TG + enable stickiness.
  • Default rule: Forward tất cả unmatched → web TG + disable stickiness.
  • Source-ip condition dùng client IP thực (ALB lấy từ public endpoint), không cần X-Forwarded-For cho on-prem.

✅ Đáp án đúng (Chọn TWO)

Hai lựa chọn đúng là:

  1. Insert a rule for the load balancer HTTPS listener. Configure the rule to check the path-pattern condition type for the /management prefix and to check the source-ip condition type for the on-premises IP address space. Forward requests to the management application target group if there is a match. Edit the management application target group and enable stickiness.
  2. Forward all requests to the web application target group. Edit the web application target group and disable stickiness.

Lý do chọn:

  • 🛠️ Lựa chọn 1: Thêm rule mới (insert trước default) với AND conditions (path /management* VÀ source-ip on-prem) → forward chính xác đến management TG. Vì management stateful, enable stickiness trên TG để duy trì session (load balancer cookie).
  • 🛠️ Lựa chọn 2: Đây là default rule (catch-all), forward tất cả traffic không match rule trước → web TG. Web stateless nên disable stickiness để tránh session affinity không cần thiết, tối ưu phân tải.
  • Kết hợp: Đảm bảo routing chính xác, bảo mật (chỉ IP on-prem), cùng URL/port/protocol, phù hợp best practice ALB (rules ưu tiên + TG attributes).

📋 Phân tích tất cả các phương án

  • ✅ Insert a rule for the load balancer HTTPS listener. Configure the rule to check the path-pattern condition type for the /management prefix and to check the source-ip condition type for the on-premises IP address space. Forward requests to the management application target group if there is a match. Edit the management application target group and enable stickiness.
    Đúng 🟢: Rule mới ưu tiên match path VÀ source-ip → management TG + stickiness cho stateful. Hoàn hảo cho yêu cầu restrict IP và session persistence (AWS ALB hỗ trợ source-ip v2 cho IPv4/IPv6).

  • ❌ Modify the default rule for the load balancer HTTPS listener. Configure the rule to check the path-pattern condition type for the /management prefix and to check the source-ip condition type for the on-premises IP address space. Forward requests to the management application target group if there is not a match. Enable group-level stickiness in the rule attributes.
    Sai 🔴: Modify default rule (luôn last) sẽ làm rule không ưu tiên, traffic /management từ IP khác vẫn fallback sai. "If not a match" đảo logic (nên forward management nếu match). Stickiness ở rule attributes không phù hợp cho TG stateful.

  • ❌ Insert a rule for the load balancer HTTPS listener. Configure the rule to check the path-pattern condition type for the /management prefix and to check the X-Forwarded-For HTTP header for the on-premises IP address space. Forward requests to the management application target group if there is a match. Enable group-level stickiness in the rule attributes.
    Sai 🔴: X-Forwarded-For không cần thiết và không chính xác cho ALB (source-ip condition dùng client IP trực tiếp từ TCP). Stickiness nên enable ở TG attributes, không phải rule (group-level chỉ cho load balancer generated cookie, không tối ưu stateful).

  • ❌ Modify the default rule for the load balancer HTTPS listener. Configure the rule to check the path-pattern condition type for the /management prefix and to check the source-ip condition type for the on-premises IP address space. Forward requests to the web application target group if there is not a match.
    Sai 🔴: Modify default rule phá cấu trúc (không còn catch-all). "If not a match" chỉ forward web khi KHÔNG phải /management từ IP on-prem, dẫn đến traffic /management từ IP khác vẫn đi web hoặc error. Thiếu management routing và stickiness.

  • ✅ Forward all requests to the web application target group. Edit the web application target group and disable stickiness.
    Đúng 🟢: Default rule catch-all → web TG + disable stickiness (stateless, tránh overhead session). Kết hợp với rule insert ở lựa chọn 1 để hoàn thiện.

📘 Tài liệu tham khảo (Cập nhật AWS 2024-2026)

Câu 204 Chọn nhiều đáp án
A company deploys a software solution on Amazon EC2 instances that are in a cluster placement group. The solution's UI is a single HTML page. The HTML file size is 1,024 bytes. The software processes files that exceed 1,024 MB in size. The software shares files over the network to clients upon request. The files are shared with the Don't Fragment flag set. Elastic network interfaces of the EC2 instances are set up with jumbo frames.

The UI is always accessible from all allowed source IP addresses, regardless of whether the source IP addresses are within a VPC, on the internet, or on premises. However, clients sometimes do not receive files that they request because the files fail to travel successfully from the software to the clients.

Which options provide a possible root cause of these failures? (Choose two.)
  1. A The source IP addresses are from on-premises hosts that are routed over AWS Direct Connect.
  2. B The source IP addresses are from on-premises hosts that are routed over AWS Site-to-Site VPN.
  3. C The source IP addresses are from hosts that connect over the public internet.
  4. D The security group of the EC2 instances does not allow ICMP traffic.
  5. E The operating system of the EC2 instances does not support jumbo frames.
Xem giải thích

🧩 Giải thích chi tiết nội dung câu hỏi

Câu hỏi mô tả một giải pháp phần mềm được triển khai trên các instance Amazon EC2 nằm trong cluster placement group.

  • Cluster placement group 🛡️: Nhóm các EC2 instance gần nhau nhất về mặt mạng trong một Availability Zone (AZ), hỗ trợ độ trễ thấp và throughput cao, đặc biệt với jumbo frames (MTU lên đến 9001 bytes).
  • UI của giải pháp: Chỉ là một trang HTML đơn giản, kích thước 1.024 bytes (rất nhỏ), luôn accessible từ mọi nguồn IP cho phép (trong VPC, internet, hoặc on-premises).
  • Xử lý files lớn: Files > 1.024 MB (tức >1GB), được chia sẻ qua mạng đến clients khi request, với Don't Fragment (DF) flag được set (không cho phép phân mảnh packet).
  • Cấu hình mạng: Elastic Network Interfaces (ENI) của EC2 được setup jumbo frames (MTU 9001).
  • Vấn đề ⚠️: UI luôn OK từ mọi nguồn, nhưng files lớn đôi khi không đến được clients vì "fail to travel successfully từ software đến clients". Nghĩa là vấn đề nằm ở chiều EC2 gửi files lớn ra ngoài, không phải request vào.

Nguyên nhân gốc rễ tiềm năng (chọn 2): Liên quan đến MTU mismatch giữa VPC nội bộ (9001) và đường truyền bên ngoài. Với DF flag, packet lớn (> path MTU) sẽ bị drop nếu không có Path MTU Discovery (PMTUD) hiệu quả, dẫn đến blackhole packets. UI nhỏ (<1500 bytes) luôn OK vì không vượt MTU chuẩn.

📘 Tài liệu tham khảo:

✅ Đáp án đúng (Chọn 2)

Đáp án đúng là:

  • The source IP addresses are from on-premises hosts that are routed over AWS Site-to-Site VPN.
  • The source IP addresses are from hosts that connect over the public internet.

Lý do lựa chọn 🏆:

  • Những đường truyền này có MTU thấp hơn đáng kể so với jumbo frames (9001) trong VPC:
    • Site-to-Site VPN: MTU thường ~1.376-1.500 bytes do overhead encapsulation IPsec (ESP/AH), không hỗ trợ jumbo frames end-to-end.
    • Public internet: MTU tối đa 1.500 bytes, các router internet không hỗ trợ >9K.
  • Với DF flag set, EC2 gửi packet lớn (> path MTU) → bị drop ngay mà không fragment. PMTUD có thể fail do asymmetric path hoặc firewall block ICMP, dẫn đến "sometimes" fail (files lớn, UI nhỏ OK). Direct Connect thì hỗ trợ jumbo tốt hơn.

📋 Phân tích chi tiết TẤT CẢ các phương án

  • ✅ The source IP addresses are from on-premises hosts that are routed over AWS Site-to-Site VPN.
    Đúng 🟢: VPN có overhead encapsulation lớn (IPsec), MTU thực tế chỉ ~1.376 bytes (AWS khuyến nghị). EC2 gửi jumbo packet (9001) với DF → vượt MTU → drop. PMTUD khó work do NAT/firewall trên VPN tunnel. Files lớn fail "sometimes" tùy request size/path.

  • ✅ The source IP addresses are from hosts that connect over the public internet.
    Đúng 🟢: Internet public giới hạn MTU 1.500 bytes (IPv4 standard). Từ cluster PG (9001) gửi ra → packet quá lớn + DF → drop bởi border routers. UI nhỏ OK vì <1.5K, files >1GB fail khi phân thành nhiều packet lớn.

  • ❌ The source IP addresses are from on-premises hosts that are routed over AWS Direct Connect.
    Sai 🔴: Direct Connect (private VIF) hỗ trợ jumbo frames MTU 9.001 bytes nếu enable trên cả AWS và customer side (Hosted Connections hoặc Virtual Interfaces). Không gây MTU mismatch với cluster PG, files truyền tốt end-to-end.

  • ❌ The security group of the EC2 instances does not allow ICMP traffic.
    Sai 🔴: SG block inbound ICMP (Type 3 Code 4 "Fragmentation Needed") có thể làm PMTUD fail toàn bộ, nhưng câu hỏi nhấn UI luôn accessible từ mọi nguồn (dùng TCP MSS discovery partial), và vấn đề chỉ "sometimes" với files lớn. Không phải root cause chính, vì các path cụ thể mới là vấn đề.

  • ❌ The operating system of the EC2 instances does not support jumbo frames.
    Sai 🔴: ENI đã setup jumbo frames (AWS auto-config MTU 9001 trong VPC/cluster PG). Hầu hết modern OS (Linux/Windows AMI 2024+) hỗ trợ nếu ifconfig/tuning đúng (ethtool). Nếu OS không support, UI cũng fail, không khớp "UI always OK".

🛠️ Khuyến nghị khắc phục: Disable jumbo frames trên ENI (set MTU 1500), enable PMTUD full (allow ICMP inbound/outbound), hoặc dùng TCP MSS clamping. Test với ping -M do -s 8972 để verify path MTU!

Câu 205
A company has users who work from home. The company wants to move these users to Amazon WorkSpaces for additional security visibility.

The company has deployed WorkSpaces in its own AWS account in VPC A. A network engineer decides to provide the security visibility by using two firewall appliances behind a Gateway Load Balancer (GWLB). The network engineer provisions another VPC, VPC B, in a separate account and deploys the two firewall appliances in separate Availability Zones.

What should the network engineer do to configure the network connectivity for this solution?
  1. A Create a GWLB in VPC A with the firewall appliance instances as targets. Use the GWLB to create a GWLB endpoint. Add the AWS principal ARN of the WorkSpaces account to the principal allow list of the GWLB endpoint. In the WorkSpaces account, create a VPC endpoint and specify the service name that the AWS Management Console provides for the GWLB endpoint. Modify the route tables of VPC A to point the default route to the VPC endpoint.
  2. B Create a GWLB in VPC B with the firewall appliance instances as targets. Use the GWLB to create a GWLB endpoint. Add the AWS principal ARN of the WorkSpaces account to the principal allow list of the GWLB endpoint. In the WorkSpaces account, create a VPC endpoint and specify the service name that the AWS Management Console provides for the GWLB endpoint. Modify the route tables of VPC A to point the default route to the GWLB endpoint.
  3. C Create a GWLB in VPC B with the firewall appliance instances as targets. Use the GWLB to create a GWLB endpoint. Add the AWS principal ARN of the WorkSpaces account to the principal allow list of the GWLB endpoint. In the WorkSpaces account, create a VPC endpoint and specify the service name that the AWS Management Console provides for the GWLB endpoint. Modify the route tables of VPC A to point the WorkSpaces subnet to the VPC endpoint.
  4. D Create a GWLB in VPC B with the firewall appliance instances as targets. Use the GWLB to create a GWLB endpoint. Add the AWS principal ARN of the account that contains the firewall appliances to the principal allow list of the GWLB endpoint. In the WorkSpaces account, create a VPC endpoint and specify the service name that the AWS Management Console provides for the GWLB endpoint. Modify the route tables of VPC A to point the default route to the VPC endpoint.
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 kết nối mạng để cung cấp tầm nhìn bảo mật (security visibility) cho người dùng làm việc từ xa sử dụng Amazon WorkSpaces. Công ty đã triển khai WorkSpaces trong VPC A (tài khoản của mình). Để tăng bảo mật, kỹ sư mạng sử dụng hai firewall appliances (ở hai Availability Zones khác nhau) đằng sau Gateway Load Balancer (GWLB) trong VPC B (tài khoản riêng biệt).

Mục tiêu: Route traffic từ WorkSpaces (VPC A) qua GWLB và firewalls ở VPC B để kiểm tra lưu lượng (inspection), hỗ trợ cross-account/cross-VPC mà không cần peering phức tạp. Giải pháp tận dụng GWLB Endpoints (là Gateway Endpoint type) kết hợp VPC Endpoint Service để traffic từ VPC A được chuyển hướng minh bạch qua GWLB ở VPC B.

🛠️ Nguyên lý chính (dựa trên AWS VPC Gateway Load Balancer - cập nhật 2024-2026):

  • GWLB phải nằm ở VPC chứa targets (firewalls → VPC B).
  • Tạo VPC Endpoint Service từ GWLB (ở VPC B), cho phép principal của account VPC A.
  • Trong VPC A, tạo VPC Gateway Endpoint kết nối service đó → tạo ENI (GWLB Endpoint).
  • Update route table VPC A: Route 0.0.0.0/0 (hoặc specific) → prefix list của endpoint để tất cả traffic internet/outbound đi qua GWLB.

📘 Tài liệu tham khảo:

✅ Đáp án đúng và lý do lựa chọn

Đáp án đúng là lựa chọn thứ 2:

Create a GWLB in VPC B with the firewall appliance instances as targets. Use the GWLB to create a GWLB endpoint. Add the AWS principal ARN of the WorkSpaces account to the principal allow list of the GWLB endpoint. In the WorkSpaces account, create a VPC endpoint and specify the service name that the AWS Management Console provides for the GWLB endpoint. Modify the route tables of VPC A to point the default route to the GWLB endpoint.

Lý do chính xác 🟢:

  • GWLB đặt đúng ở VPC B (chứa firewalls làm targets).
  • Tạo GWLB endpoint (thông qua VPC Endpoint Service từ GWLB ở VPC B).
  • Principal allow list đúng là ARN của WorkSpaces account (consumer VPC A) để cross-account.
  • Trong VPC A, tạo VPC Gateway Endpoint với service name → ENI tự động ở subnets.
  • Default route (0.0.0.0/0) của route table VPC A point đến GWLB endpoint → toàn bộ traffic từ WorkSpaces (bao gồm internet/outbound) được inspect qua GWLB/firewalls, phù hợp security visibility toàn diện.

🔍 Phân tích tất cả các phương án (đúng/sai)

  • ❌ Phương án 1 (SAI):
    Create a GWLB in VPC A with the firewall appliance instances as targets. Use the GWLB to create a GWLB endpoint. Add the AWS principal ARN of the WorkSpaces account to the principal allow list of the GWLB endpoint. In the WorkSpaces account, create a VPC endpoint and specify the service name that the AWS Management Console provides for the GWLB endpoint. Modify the route tables of VPC A to point the default route to the VPC endpoint.
    Lý do sai: GWLB đặt sai ở VPC A (WorkSpaces), nhưng firewalls ở VPC B → targets không thể register cross-VPC/account trực tiếp. Không tận dụng được thiết kế inspection VPC riêng (VPC B). Các bước còn lại vô nghĩa vì GWLB sai vị trí.

  • ✅ Phương án 2 (ĐÚNG):
    (Như đã giải thích ở trên) – Hoàn toàn khớp best practice AWS cho cross-account GWLB inspection. Default route đảm bảo tất cả traffic VPC A (WorkSpaces) đi qua firewalls.

  • ❌ Phương án 3 (SAI):
    Create a GWLB in VPC B with the firewall appliance instances as targets. Use the GWLB to create a GWLB endpoint. Add the AWS principal ARN of the WorkSpaces account to the principal allow list of the GWLB endpoint. In the WorkSpaces account, create a VPC endpoint and specify the service name that the AWS Management Console provides for the GWLB endpoint. Modify the route tables of VPC A to point the WorkSpaces subnet to the VPC endpoint.
    Lý do sai: Các bước đầu đúng, nhưng route table chỉ point WorkSpaces subnet → chỉ traffic từ subnet WorkSpaces mới inspect, không bao quát toàn VPC A hoặc default route. Không đủ cho security visibility toàn diện (cần inspect tất cả outbound/internet traffic).

  • ❌ Phương án 4 (SAI):
    Create a GWLB in VPC B with the firewall appliance instances as targets. Use the GWLB to create a GWLB endpoint. Add the AWS principal ARN of the account that contains the firewall appliances to the principal allow list of the GWLB endpoint. In the WorkSpaces account, create a VPC endpoint and specify the service name that the AWS Management Console provides for the GWLB endpoint. Modify the route tables of VPC A to point the default route to the VPC endpoint.
    Lý do sai: Principal allow list sai – thêm ARN của firewall account (VPC B) thay vì WorkSpaces account (VPC A). VPC Endpoint Service chỉ accept kết nối từ principals được allow (consumer), dẫn đến VPC endpoint ở VPC A không connect được.

🛡️ Lưu ý thực tế triển khai: Sau cấu hình, test bằng traffic generator từ WorkSpaces, kiểm tra logs firewalls. Scale GWLB targets theo AZs để HA (High Availability). Sử dụng AWS Network Firewall nếu cần managed appliances (cập nhật 2026).

Câu 206
A company plans to run a computationally intensive data processing application on AWS. The data is highly sensitive. The VPC must have no direct internet access, and the company has applied strict network security to control access.

Data scientists will transfer data from the company's on-premises data center to the instances by using an AWS Site-to-Site VPN connection. The on-premises data center uses the network range 172.31.0.0/20 and will use the network range 172.31.16.0/20 in the application VPC.

The data scientists report that they can start new instances of the application but that they cannot transfer any data from the on-premises data center. A network engineer enables VPC flow logs and sends a ping to one of the instances to test reachability. The flow logs show the following:

2 123456789010 eni-1235b8ca123456789 172.31.8.29 172.31.18.139 0 0 1 4 336 1622433184 1622433194 ACCEPT OK
2 123456789010 eni-1235b8ca123456789 172.31.18.139 172.31.8.29 0 0 1 3 252 1622433216 1622433232 REJECT OK


The network engineer must recommend a solution that will give the data scientists the ability to transfer data from the on-premises data center.

Which solution will meet these requirements?
  1. A Modify the security group for the application. Add an inbound rule to allow traffic from the on-premises data center network range to the application.
  2. B Modify the network ACLs for the VPC subnet. Add an inbound rule to allow traffic from the on-premises data center network range to the VPC subnet range.
  3. C Modify the network ACLs for the VPC subnet. Add an outbound rule to allow traffic from the VPC subnet range to the on-premises data center network range.
  4. D Modify the security group for the application. Add an outbound rule to allow traffic from the application to the on-premises data center network range.
Xem giải thích

🧩 Phân tích chi tiết câu hỏi

📘 Nội dung câu hỏi:
Câu hỏi mô tả một công ty triển khai ứng dụng xử lý dữ liệu tính toán nặng (computationally intensive) trên AWS, với dữ liệu nhạy cảm cao. VPC được thiết kế không có kết nối internet trực tiếp (no direct internet access) và áp dụng bảo mật mạng nghiêm ngặt để kiểm soát truy cập.

Data scientists cần chuyển dữ liệu từ data center on-premises sang các EC2 instances trong VPC qua AWS Site-to-Site VPN.

  • Phạm vi mạng on-premises: 172.31.0.0/20 (tương đương 172.31.0.0 - 172.31.15.255).
  • Phạm vi mạng VPC (application VPC): 172.31.16.0/20 (tương đương 172.31.16.0 - 172.31.31.255).

👥 Vấn đề: Data scientists có thể khởi động instances nhưng không thể chuyển dữ liệu từ on-premises sang instances.
Network engineer kích hoạt VPC Flow Logs và gửi ping đến một instance để kiểm tra kết nối. Flow Logs hiển thị:

2 123456789010 eni-1235b8ca123456789 172.31.8.29 172.31.18.139 0 0 1 4 336 1622433184 1622433194 ACCEPT OK
2 123456789010 eni-1235b8ca123456789 172.31.18.139 172.31.8.29 0 0 1 3 252 1622433216 1622433232 REJECT OK

Phân tích Flow Logs (theo định dạng chuẩn AWS):

  • Log 1 (ACCEPT): Gói tin ICMP (protocol 1, type 4 - có thể là echo reply) từ nguồn 172.31.8.29 (thuộc on-premises range) → đích 172.31.18.139 (thuộc VPC range, IP của instance). Hành động: ACCEPT → Inbound traffic từ on-prem → VPC được phép.
  • Log 2 (REJECT): Gói tin ICMP (protocol 1, type 3 - echo request reply hoặc tương tự) từ nguồn 172.31.18.139 (VPC instance) → đích 172.31.8.29 (on-premises). Hành động: REJECT → Outbound traffic từ VPC → on-prem bị chặn.

🛠️ Nguyên nhân gốc rễ: VPC sử dụng Network ACLs (NACLs) - là stateless firewall (không tự động cho phép return traffic). Flow Logs chứng tỏ inbound từ on-prem → VPC OK, nhưng outbound từ VPC → on-prem bị reject (do thiếu rule outbound trong NACL). Điều này ngăn chặn giao tiếp hai chiều cần thiết cho việc transfer data (như SCP, SFTP, hoặc bất kỳ TCP/UDP nào yêu cầu ACK/response). Security Groups (stateful) có thể đã OK, nhưng NACL là lớp ngoài cùng chặn outbound.

Mục tiêu giải pháp: Cho phép data scientists transfer data từ on-prem → instances mà không vi phạm bảo mật (no internet, strict controls), tận dụng Site-to-Site VPN.

✅ Đáp án đúng:
Modify the network ACLs for the VPC subnet. Add an outbound rule to allow traffic from the VPC subnet range to the on-premises data center network range.

Lý do chọn đáp án đúng (chi tiết):

  • Flow Logs rõ ràng chỉ ra outbound REJECT từ VPC (172.31.16.0/20) → on-prem (172.31.0.0/20).
  • NACLs yêu cầu rule outbound explicit để allow traffic từ subnet VPC ra on-prem (ví dụ: rule số thấp, destination 172.31.0.0/20, allow all protocols hoặc cụ thể như TCP/UDP/ICMP).
  • Giải pháp này fix chính xác vấn đề, cho phép return traffic/ACK cần thiết cho data transfer hai chiều, mà không ảnh hưởng inbound (đã ACCEPT).
  • Phù hợp với kiến thức AWS mới nhất (2024-2026): NACLs vẫn stateless, ưu tiên rule thấp nhất, áp dụng cho subnet (AWS VPC User Guide).

🔍 Giải thích tất cả các phương án (đúng/sai)

  • ❌ [SAI] Modify the security group for the application. Add an inbound rule to allow traffic from the on-premises data center network range to the application.
    Lý do sai: Security Group (SG) của instance chỉ kiểm soát instance-level (stateful, tự động allow return traffic). Flow Logs đã ACCEPT inbound (từ on-prem → VPC), chứng tỏ SG inbound đã OK hoặc NACL inbound cho phép. Thêm rule này không fix outbound REJECT, không giải quyết vấn đề gốc.

  • ❌ [SAI] Modify the network ACLs for the VPC subnet. Add an inbound rule to allow traffic from the on-premises data center network range to the VPC subnet range.
    Lý do sai: Inbound từ on-prem (172.31.0.0/20) → VPC subnet đã ACCEPT theo Flow Logs. NACL inbound có lẽ đã có rule allow (hoặc * rule). Thêm rule này dư thừa, không fix outbound REJECT - nguyên nhân chính ngăn data transfer (cần response từ VPC).

  • ✅ [ĐÚNG] Modify the network ACLs for the VPC subnet. Add an outbound rule to allow traffic from the VPC subnet range to the on-premises data center network range.
    Lý do đúng: Trực tiếp fix REJECT log bằng cách thêm NACL outbound rule (source: VPC subnet 172.31.16.0/20 → destination: on-prem 172.31.0.0/20, allow ICMP/TCP/UDP cần thiết). NACL stateless yêu cầu cặp inbound/outbound đối xứng. Giải pháp an toàn, granular, phù hợp strict security.

  • ❌ [SAI] Modify the security group for the application. Add an outbound rule to allow traffic from the application to the on-premises data center network range.
    Lý do sai: SG là stateful → inbound rule đã tự động imply outbound return traffic (không cần explicit outbound rule). Flow Logs cho thấy reject ở NACL level (lớp subnet, ngoài SG). Thêm SG outbound không vượt qua NACL, vấn đề vẫn tồn tại.

📚 Tài liệu tham khảo (AWS cập nhật 2024-2026)

🛠️ Khuyến nghị thực hiện: Sau khi thêm NACL outbound rule (rule #100, lowest number), test lại bằng ping/data transfer và monitor Flow Logs qua CloudWatch Logs Insights cho ACCEPT đầy đủ!

Câu 207
A company needs to temporarily scale out capacity for an on-premises application and wants to deploy new servers on Amazon EC2 instances. A network engineer must design the networking solution for the connectivity and for the application on AWS.

The EC2 instances need to share data with the existing servers in the on-premises data center. The servers must not be accessible from the internet. All traffic to the internet must route through the firewall in the on-premises data center. The servers must be able to access a third-party web application.

Which configuration will meet these requirements?
  1. A Create a VPC that has public subnets and private subnets. Create a customer gateway, a virtual private gateway, and an AWS Site-to-Site VPN connection. Create a NAT gateway in a public subnet. Create a route table, and associate the public subnets with the route table. Add a default route to the internet gateway. Create a route table, and associate the private subnets with the route table. Add a default route to the NAT gateway. Add routes for the data center subnets to the virtual private gateway. Deploy the application to the private subnets.
  2. B Create a VPC that has private subnets. Create a customer gateway, a virtual private gateway, and an AWS Site-to-Site VPN connection. Create a route table, and associate the private subnets with the route table. Add a default route to the virtual private gateway. Deploy the application to the private subnets.
  3. C Create a VPC that has public subnets. Create a customer gateway, a virtual private gateway, and an AWS Site-to-Site VPN connection. Create a route table, and associate the public subnets with the route table. Add a default route to the internet gateway. Add routes for the on-premises data center subnets to the virtual private gateway. Deploy the application to the public subnets.
  4. D Create a VPC that has public subnets and private subnets. Create a customer gateway, a virtual private gateway, and an AWS Site-to-Site VPN connection. Create a route table, and associate the public subnets with the route table. Add a default route to the internet gateway. Create a route table, and associate the private subnets with the route table. Add routes for the on-premises data center subnets to the virtual private gateway. Deploy the application to the private subnets.
Xem giải thích

🧩 Phân tích nội dung câu hỏi

Câu hỏi xoay quanh việc thiết kế giải pháp mạng AWS cho một công ty muốn mở rộng tạm thời (scale out) ứng dụng on-premises bằng cách triển khai các server mới trên Amazon EC2. Các yêu cầu chính bao gồm:

  • EC2 instances phải chia sẻ dữ liệu với các server hiện có trong data center on-premises (yêu cầu kết nối private giữa AWS và on-premises).
  • Các server (EC2) KHÔNG được accessible từ internet (không expose public IP hoặc public access).
  • TẤT CẢ traffic đến internet phải route qua firewall ở on-premises data center (không dùng NAT Gateway hoặc Internet Gateway trực tiếp trên AWS, vì traffic internet phải hairpin qua on-premises).
  • EC2 phải access được third-party web application (tức là outbound internet access, nhưng chỉ qua firewall on-premises).

🛠️ Giải pháp cốt lõi: Sử dụng AWS Site-to-Site VPN để kết nối VPC với on-premises qua Customer Gateway (CGW) và Virtual Private Gateway (VGW). VPC chỉ dùng private subnets để đảm bảo tính bảo mật. Route table phải cấu hình default route (0.0.0.0/0) trỏ về VGW, giúp traffic internet từ EC2 đi qua VPN → on-premises firewall → internet. Không dùng public subnet hoặc NAT/IGW để tránh bypass firewall.

📘 Tài liệu tham khảo:

  • AWS VPC User Guide: VPC with VPN Connectivity (cập nhật 2024-2026).
  • AWS Site-to-Site VPN: Routing Traffic (khuyến nghị default route qua VGW cho hairpin traffic).
  • AWS Well-Architected Framework - Reliability Pillar: Hybrid networking best practices.

✅ Đáp án ĐÚNG và lý do lựa chọn

Đáp án đúng: Create a VPC that has private subnets. Create a customer gateway, a virtual private gateway, and an AWS Site-to-Site VPN connection. Create a route table, and associate the private subnets with the route table. Add a default route to the virtual private gateway. Deploy the application to the private subnets.

Lý do chọn ✅:

  • VPC chỉ có private subnets → EC2 không accessible từ internet (đúng yêu cầu bảo mật).
  • Site-to-Site VPN (CGW + VGW) → Kết nối private để share data với on-premises.
  • Route table cho private subnets với default route (0.0.0.0/0) trỏ VGW → Traffic internet từ EC2 đi qua VPN về on-premises firewall, sau đó ra third-party web app (hairpin routing hoàn hảo).
  • Deploy app vào private subnets → Tuân thủ tất cả yêu cầu mà không cần public subnet hay NAT/IGW. Giải pháp đơn giản, tiết kiệm chi phí và an toàn nhất theo best practices AWS 2026.

📋 Giải thích TẤT CẢ các phương án (Đúng/Sai)

  • ❌ Phương án SAI 1: Create a VPC that has public subnets and private subnets. Create a customer gateway, a virtual private gateway, and an AWS Site-to-Site VPN connection. Create a NAT gateway in a public subnet. Create a route table, and associate the public subnets with the route table. Add a default route to the internet gateway. Create a route table, and associate the private subnets with the route table. Add a default route to the NAT gateway. Add routes for the data center subnets to the virtual private gateway. Deploy the application to the private subnets.
    Giải thích sai ❌: Sử dụng NAT Gateway và default route đến NAT cho private subnets → Traffic internet từ EC2 đi trực tiếp qua NAT/IGW (bypass firewall on-premises), vi phạm yêu cầu "all traffic to internet must route through on-premises firewall". Public subnets với IGW không cần thiết và tăng rủi ro expose.

  • ✅ Phương án ĐÚNG 2: Create a VPC that has private subnets. Create a customer gateway, a virtual private gateway, and an AWS Site-to-Site VPN connection. Create a route table, and associate the private subnets with the route table. Add a default route to the virtual private gateway. Deploy the application to the private subnets.
    Giải thích đúng ✅: (Như phần trên) Hoàn hảo, traffic internet hairpin qua VGW → VPN → on-premises firewall, EC2 private hoàn toàn, share data dễ dàng.

  • ❌ Phương án SAI 3: Create a VPC that has public subnets. Create a customer gateway, a virtual private gateway, and an AWS Site-to-Site VPN connection. Create a route table, and associate the public subnets with the route table. Add a default route to the internet gateway. Add routes for the on-premises data center subnets to the virtual private gateway. Deploy the application to the public subnets.
    Giải thích sai ❌: Deploy app vào public subnets với default route đến IGW → EC2 accessible từ internet (vi phạm "servers must not be accessible from the internet"), traffic internet direct qua IGW (không qua firewall on-premises). Rủi ro bảo mật cao.

  • ❌ Phương án SAI 4: Create a VPC that has public subnets and private subnets. Create a customer gateway, a virtual private gateway, and an AWS Site-to-Site VPN connection. Create a route table, and associate the public subnets with the route table. Add a default route to the internet gateway. Create a route table, and associate the private subnets with the route table. Add routes for the on-premises data center subnets to the virtual private gateway. Deploy the application to the private subnets.
    Giải thích sai ❌: Private subnets chỉ có routes cho on-premises đến VGW (không có default route 0.0.0.0/0) → EC2 KHÔNG access được third-party web app (internet outbound fail). Public subnets với IGW thừa thãi, không giải quyết hairpin traffic qua firewall.

🛠️ Lời khuyên thực tế: Trong exam DOP-C02 (DevOps Pro 2024-2026), ưu tiên thiết kế "zero trust" với private-only VPC + VPN hairpin. Test bằng AWS VPC Reachability Analyzer để verify routing!

Câu 208
A company is deploying a web application into two AWS Regions. The company has one VPC in each Region. Each VPC has three Amazon EC2 instances as web servers behind an Application Load Balancer (ALB). The company already has configured an Amazon Route 53 public hosted zone for example.com. Users will access the application by using the fully qualified domain name (FQDN) of app.example.com.

The company needs a DNS solution that allows global users to access the application. The solution must route the users' requests to the Region that provides the lowest response time. The solution must fail over to the Region that provides the next-lowest response time if the application is unavailable in the initially intended Region.

Which solution will meet these requirements?
  1. A For each ALB, create an A record that has a geolocation routing policy to route app.example.com to the IP addresses of the ALB. Configure a Route 53 HTTP health check that monitors each ALB by IP address. Associate the health check with the A records.
  2. B Create an A record that has a geolocation routing policy to route app.example.com to the IP addresses for both ALBs. Configure a Route 53 health check that monitors TCP port 80 for each ALB by IP address. Associate the health check with the A records.
  3. C Create an A record that has a latency-based routing policy to route app.example.com as an alias to one of the ALBs. Configure a Route 53 health check that monitors TCP port 80 for each ALB by IP address. Associate the health check with the A records.
  4. D For each ALB, create an A record that has a latency-based routing policy to route app.example.com as an alias to the ALB. Set the value for Evaluate Target Health to Yes for the records.
Xem giải thích

🧩 Phân tích nội dung câu hỏi

Câu hỏi mô tả một công ty triển khai ứng dụng web vào hai AWS Regions, mỗi Region có một VPC với ba EC2 instances làm web servers đứng sau Application Load Balancer (ALB). Họ đã có Amazon Route 53 public hosted zone cho domain example.com, và người dùng truy cập qua FQDN app.example.com.

Yêu cầu chính của giải pháp DNS:

  • Cho phép người dùng toàn cầu truy cập ứng dụng.
  • Route requests đến Region có thời gian phản hồi thấp nhất (latency thấp nhất).
  • Failover sang Region có latency thấp thứ hai nếu Region đầu tiên unavailable.

🛠️ Giải pháp cần: Sử dụng latency-based routing policy của Route 53 kết hợp health checks và alias records để chỉ định ALB (vì ALB có IP động, không dùng IP tĩnh). Phải kích hoạt Evaluate Target Health để tự động failover khi health check fail.

📘 Tài liệu tham khảo (cập nhật đến 2026):

✅ Đáp án đúng và lý do lựa chọn

Đáp án đúng là lựa chọn cuối cùng (D):
"For each ALB, create an A record that has a latency-based routing policy to route app.example.com as an alias to the ALB. Set the value for Evaluate Target Health to Yes for the records."

Lý do:

  • Latency-based routing 🏎️: Route 53 đo latency từ edge locations đến từng Region và chọn Region có thời gian phản hồi thấp nhất cho user cụ thể.
  • Tạo A record riêng cho mỗi ALB với alias (không dùng IP tĩnh, phù hợp ALB động).
  • Evaluate Target Health = Yes 🔍: Kích hoạt health check tự động trên target (ALB), nếu Region primary unavailable (health check fail), tự động failover sang Region latency thấp thứ hai.
  • Hoàn toàn khớp yêu cầu: Global users, lowest latency, failover tự động. Đây là best practice theo AWS DOP-C02 (DevOps Professional 2023+).

📋 Phân tích chi tiết tất cả các phương án

  • Phương án A ❌:
    "For each ALB, create an A record that has a geolocation routing policy to route app.example.com to the IP addresses of the ALB. Configure a Route 53 HTTP health check that monitors each ALB by IP address. Associate the health check with the A records."
    Giải thích sai: Sử dụng geolocation routing (dựa vị trí địa lý) thay vì latency-based → Không đảm bảo route đến Region latency thấp nhất. Dùng IP addresses thay vì alias → Không phù hợp ALB (IP thay đổi). Health check HTTP tốt nhưng tổng thể không khớp yêu cầu.

  • Phương án B ❌:
    "Create an A record that has a geolocation routing policy to route app.example.com to the IP addresses for both ALBs. Configure a Route 53 health check that monitors TCP port 80 for each ALB by IP address. Associate the health check with the A records."
    Giải thích sai: Geolocation sai (không phải latency). Một A record cho cả hai ALB → Không tách biệt để Route 53 so sánh latency riêng. TCP port 80 kém hơn HTTP (không check nội dung web). Dùng IP thay alias → Không scale với ALB.

  • Phương án C ❌:
    "Create an A record that has a latency-based routing policy to route app.example.com as an alias to one of the ALBs. Configure a Route 53 health check that monitors TCP port 80 for each ALB by IP address. Associate the health check with the A records."
    Giải thích sai: Latency-based đúng hướng nhưng chỉ alias đến one ALB → Không tạo record cho Region thứ hai để so sánh failover. TCP port 80 không lý tưởng cho web app (nên HTTP/HTTPS). Associate health check nhưng thiếu Evaluate Target Health = Yes → Failover không tự động.

  • Phương án D ✅:
    "For each ALB, create an A record that has a latency-based routing policy to route app.example.com as an alias to the ALB. Set the value for Evaluate Target Health to Yes for the records."
    Giải thích đúng: Hoàn hảo! Latency-based + A record riêng cho mỗi ALB (alias) + Evaluate Target Health = Yes → Route 53 tự đo latency, chọn best Region, và failover nếu health check fail (mặc định HTTP cho ALB). Scale toàn cầu, zero-config thêm.

🛠️ Lời khuyên triển khai: Tạo health check HTTP/HTTPS trên path / của ALB (status 200). Test bằng dig hoặc Route 53 console. Chi phí thấp (~$0.50/1M queries).

Câu 209
A consulting company manages AWS accounts for its customers. One of the company's customers needs to add intrusion prevention for its environment without having to re-architect the environment. The customer's environment includes five VPCs in two AWS Regions in the United States. VPC-to-VPC connectivity is achieved through VPC peering. The customer does not plan to increase the number of VPCs within the next 2 years. The solution must accommodate unencrypted traffic.

Which solution will meet these requirements?
  1. A Configure VPC security groups and network ACLs.
  2. B Use an AWS Network Firewall centralized deployment model in each VPC.
  3. C Use an AWS Network Firewall distributed deployment model in each VPC.
  4. D Deploy AWS Shield in each VPC.
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 triển khai intrusion prevention (phòng ngừa xâm nhập) cho môi trường AWS của một khách hàng mà không cần tái kiến trúc (re-architect) môi trường hiện tại. 🛠️

  • Mô tả môi trường:

    • 5 VPCs nằm ở 2 AWS Regions tại Mỹ.
    • Kết nối giữa các VPC sử dụng VPC peering (không qua Transit Gateway hay cấu trúc trung tâm).
    • Khách hàng không dự định tăng số VPC trong 2 năm tới.
    • Giải pháp phải hỗ trợ traffic không mã hóa (unencrypted traffic), nghĩa là không yêu cầu mã hóa bắt buộc.
  • Yêu cầu chính:

    • Thêm tính năng intrusion prevention (IPS - Intrusion Prevention System) một cách đơn giản, không làm thay đổi kiến trúc hiện tại (ví dụ: không cần thay đổi routing, thêm Transit Gateway, hoặc centralize traffic).
    • AWS Network Firewall là dịch vụ phù hợp nhất vì nó cung cấp IPS managed, hỗ trợ stateful inspection, và có các mô hình triển khai linh hoạt (theo tài liệu AWS cập nhật 2024-2026).

📘 Tài liệu tham khảo:

  • AWS Network Firewall Documentation: Deployment models (cập nhật mới nhất 2025).
  • AWS Well-Architected Framework: Networking Pillar (khuyến nghị distributed cho môi trường peering đơn giản).

✅ Đáp án đúng và lý do lựa chọn

Đáp án đúng: Use an AWS Network Firewall distributed deployment model in each VPC.

Lý do:

  • Mô hình distributed deployment cho phép triển khai firewall endpoints trực tiếp trong từng VPC (ở các subnet cụ thể), mà không cần thay đổi routing hoặc kiến trúc hiện tại. Traffic nội bộ VPC và peering sẽ được inspect ngay tại chỗ, hỗ trợ unencrypted traffic (Network Firewall inspect L3/L4/L7 mà không yêu cầu mã hóa).
  • Với 5 VPCs cố định (không tăng), việc deploy riêng lẻ ở mỗi VPC là hiệu quả, chi phí tối ưu, và tuân thủ "không re-architect" vì không cần centralize traffic qua Transit Gateway hay VPC trung tâm.
  • Tính năng IPS được kích hoạt qua rule groups (Suricata-compatible), phù hợp hoàn hảo với yêu cầu. ✅

🛠️ Giải thích tất cả các phương án (đúng/sai)

  • Configure VPC security groups and network ACLs.
    ❌ Sai: Security Groups (Layer 4) và NACLs (Layer 3 stateless) chỉ kiểm soát access cơ bản dựa trên IP/port/protocol, không hỗ trợ intrusion prevention (IPS) như signature-based detection cho exploits/malware. Chúng không inspect sâu payload, không phù hợp với yêu cầu IPS thực thụ. (Theo AWS docs: Security groups/NACLs ≠ Firewall/IPS).

  • Use an AWS Network Firewall centralized deployment model in each VPC.
    ❌ Sai: Mô hình centralized yêu cầu route tất cả traffic qua một firewall endpoint trung tâm (thường ở Transit VPC hoặc TGW), đòi hỏi tái cấu hình routing tables cho toàn bộ VPCs – vi phạm yêu cầu "không re-architect". Với VPC peering đa Regions, việc "in each VPC" không khớp mô hình centralized chuẩn, dẫn đến phức tạp và overhead cao.

  • Use an AWS Network Firewall distributed deployment model in each VPC.
    ✅ Đúng: Như giải thích ở trên, mô hình này deploy firewall phân tán trực tiếp vào từng VPC, inspect traffic inline mà không thay đổi kiến trúc peering hiện tại. Hỗ trợ unencrypted traffic, IPS đầy đủ, và lý tưởng cho môi trường VPC cố định (5 VPCs). (AWS khuyến nghị cho multi-VPC peering đơn giản).

  • Deploy AWS Shield in each VPC.
    ❌ Sai: AWS Shield (Standard/Advanced) chuyên bảo vệ DDoS (Layer 3/4/7 mitigation), không cung cấp intrusion prevention (IPS). Nó không inspect threats như malware/exploits trong traffic thông thường, và deploy "in each VPC" không khả thi vì Shield là service global không attach trực tiếp VPC. Không đáp ứng yêu cầu IPS.

Kết luận: Giải pháp distributed Network Firewall là lựa chọn tối ưu, đảm bảo scalability và compliance với AWS best practices 2026! 🚀

Câu 210
A company hosts its IT infrastructure in an on-premises data center. The company wants to migrate the infrastructure to the AWS Cloud in phases. A network engineer wants to set up a 10 Gbps AWS Direct Connect dedicated connection between the on-premises data center and VPCs. The company's network provider needs 3 months to provision the Direct Connect connection.

In the meantime, the network engineer implements a temporary solution by deploying an AWS Site-to-Site VPN connection that terminates to a virtual private gateway. The network engineer observes that the bandwidth of the Site-to-Site VPN connection is capped at 1.25 Gbps despite a powerful customer gateway device.

What should the network engineer do to improve the VPN connection bandwidth before the implementation of the Direct Connect connection?
  1. A Contact AWS Support to request a bandwidth quota increase for the existing Site-to-Site VPN connection.
  2. B Discuss the issue with the hardware vendor. Buy a bigger and more powerful customer gateway device that has faster encryption and decryption capabilities.
  3. C Create several additional Site-to-Site VPN connections that terminate on the same virtual gateway. Configure equal-cost multi-path (ECMP) routing to use all the VPN connections simultaneously.
  4. D Create a transit gateway. Attach the VPCs to the transit gateway. Create several additional Site-to-Site VPN connections that terminate on the transit gateway. Configure equal-cost multi-path (ECMP) routing to use all the VPN connections simultaneously.
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 một công ty đang di chuyển hạ tầng IT từ data center on-premises sang AWS Cloud theo giai đoạn. Kỹ sư mạng muốn thiết lập kết nối AWS Direct Connect dành riêng 10 Gbps giữa on-premises và các VPC, nhưng nhà cung cấp mạng cần 3 tháng để provision. Trong thời gian chờ đợi, kỹ sư triển khai giải pháp tạm thời là AWS Site-to-Site VPN kết thúc tại Virtual Private Gateway (VGW). Tuy nhiên, băng thông VPN chỉ đạt 1.25 Gbps tối đa, dù thiết bị Customer Gateway (CGW) rất mạnh mẽ.

Vấn đề cốt lõi: Băng thông VPN bị giới hạn do thiết kế của VGW (không scale tốt với multiple tunnels), không phải do CGW yếu. Câu hỏi yêu cầu giải pháp cải thiện băng thông VPN ngay lập tức, trước khi Direct Connect sẵn sàng. Đây là chủ đề về Network Connectivity trong AWS, liên quan đến giới hạn của VPN trên VGW so với Transit Gateway (TGW) (cập nhật đến 2026: TGW hỗ trợ ECMP cho VPN với aggregate bandwidth lên đến hàng chục Gbps).

✅ Đáp án đúng và lý do lựa chọn

Đáp án đúng: Create a transit gateway. Attach the VPCs to the transit gateway. Create several additional Site-to-Site VPN connections that terminate on the transit gateway. Configure equal-cost multi-path (ECMP) routing to use all the VPN connections simultaneously.

Lý do 🛠️:

  • Transit Gateway (TGW) là hub trung tâm cho kết nối mạng AWS, hỗ trợ multiple IPsec VPN connections (lên đến 50+ attachments) và ECMP routing để phân tải traffic đồng đều, giúp aggregate băng thông vượt xa giới hạn 1.25 Gbps của VGW.
  • Với VGW, multiple VPN tunnels (tối đa 4 cho BGP) không hỗ trợ ECMP hiệu quả, dẫn đến bottleneck. TGW khắc phục bằng cách attach VPCs trực tiếp và terminate nhiều VPN trên TGW.
  • Giải pháp này nhanh chóng triển khai (không phụ thuộc nhà cung cấp), chi phí thấp hơn Direct Connect tạm thời, và scale theo nhu cầu (ví dụ: 4-10 VPN tunnels có thể đạt 5-10 Gbps aggregate theo thực tế AWS 2026).
  • Phù hợp migrate phased: TGW là best practice cho hybrid cloud connectivity.

📋 Phân tích tất cả các phương án

Dưới đây là phân tích chi tiết từng lựa chọn, giữ nguyên văn bản gốc tiếng Anh. Mỗi phương án được đánh giá đúng/sai với lý do cụ thể dựa trên tài liệu AWS mới nhất.

  • ❌ [SAI] Contact AWS Support to request a bandwidth quota increase for the existing Site-to-Site VPN connection.
    Lý do sai: Site-to-Site VPN trên VGW không có quota băng thông có thể tăng qua support; giới hạn ~1.25 Gbps là do thiết kế kiến trúc (aggregate throughput của VGW tunnels), không phải quota service limit. AWS không hỗ trợ request tăng như EC2 instance bandwidth. Giải pháp này vô ích và không giải quyết root cause.

  • ❌ [SAI] Discuss the issue with the hardware vendor. Buy a bigger and more powerful customer gateway device that has faster encryption and decryption capabilities.
    Lý do sai: Vấn đề không nằm ở CGW (đã "powerful"), mà ở phía AWS VGW với giới hạn xử lý IPsec tunnels. Nâng cấp hardware chỉ cải thiện encryption local, nhưng bottleneck vẫn ở VGW (~1.25 Gbps max aggregate). Tốn kém và không hiệu quả, vi phạm nguyên tắc troubleshooting AWS (xem logs CloudWatch trước).

  • ❌ [SAI] Create several additional Site-to-Site VPN connections that terminate on the same virtual gateway. Configure equal-cost multi-path (ECMP) routing to use all the VPN connections simultaneously.
    Lý do sai: VGW chỉ hỗ trợ tối đa 4 VPN tunnels (static/BGP), và không hỗ trợ ECMP đầy đủ cho aggregate bandwidth cao (vẫn cap ~1.25 Gbps do single VGW thiết kế). Traffic không phân tải hiệu quả như TGW, dẫn đến underutilization. AWS khuyến cáo dùng TGW cho multi-VPN scaling từ 2023+.

  • ✅ [ĐÚNG] Create a transit gateway. Attach the VPCs to the transit gateway. Create several additional Site-to-Site VPN connections that terminate on the transit gateway. Configure equal-cost multi-path (ECMP) routing to use all the VPN connections simultaneously.
    (Đã giải thích chi tiết ở phần trên) – Đây là best practice cho high-throughput VPN trong hybrid setups.

📘 Tài liệu tham khảo (AWS cập nhật 2026)

  • AWS Transit Gateway Documentation: Transit Gateway for VPN – Chi tiết ECMP và scaling VPN (aggregate >10 Gbps với multiple attachments).
  • AWS Site-to-Site VPN Limits: VPN Connection Limits – Xác nhận VGW cap ~1.25 Gbps.
  • AWS Well-Architected Framework (Networking Pillar): Khuyến cáo TGW cho phased migration và high-bandwidth VPN.
  • AWS re:Post & Blogs: "Scaling VPN Throughput with Transit Gateway" (2024-2026 updates hỗ trợ Enhanced Networking cho TGW).

Giải pháp này giúp đạt temporary high-bandwidth (5-10+ Gbps) mà không downtime VPCs! 🚀 Nếu cần lab thực hành, dùng AWS Free Tier với Lightsail + TGW.