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

Tìm thấy 352 câu.

Câu 341
A company runs a workload in a single VPC on AWS. The company’s architecture contains several interface VPC endpoints for AWS services, including Amazon CloudWatch Logs and AWS Key Management Service (AWS KMS). The endpoints are configured to use a shared security group. The security group is not used for any other workloads or resources.

After a security review of the environment, the company determined that the shared security group is more permissive than necessary. The company wants to make the rules associated with the security group more restrictive. The changes to the security group rules must not prevent the resources in the VPC from using AWS services through interface VPC endpoints. The changes must prevent unnecessary access.

The security group currently uses the following rules:

• Inbound - Rule 1

Protocol: TCP -

Port: 443 -

Source: 0.0.0.0/0 -

• Inbound - Rule 2

Protocol: TCP -

Port: 443 -

Source: VPC CIDR -

• Outbound - Rule 1

Protocol: All -

Port: All -

Destination: 0.0.0.0/0 -

Which rule or rules should the company remove to meet with these requirements?
  1. A Outbound - Rule 2
  2. B Inbound - Rule 1 and Outbound - Rule 1
  3. C Inbound - Rule 2 and Outbound - Rule 1
  4. D Outbound - Rule 1
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 xoay quanh việc tối ưu hóa security group (SG) được chia sẻ cho các interface VPC endpoints (VPCE) trong một VPC duy nhất. Các endpoints này dùng để truy cập các dịch vụ AWS như Amazon CloudWatch Logs và AWS KMS qua PrivateLink, sử dụng giao thức HTTPS (TCP port 443).

  • Tình huống hiện tại: SG được dùng chỉ cho các endpoints này, không dùng cho workload khác. Các rules hiện có quá permissive (quá rộng mở):

    • Inbound Rule 1: TCP 443 từ 0.0.0.0/0 (cho phép từ toàn internet – rủi ro cao).
    • Inbound Rule 2: TCP 443 từ VPC CIDR (cho phép từ nội bộ VPC – hợp lý).
    • Outbound Rule 1: All traffic đến 0.0.0.0/0 (cho phép endpoints gửi traffic ra mọi nơi – không cần thiết).
  • Yêu cầu thay đổi: Loại bỏ các rule thừa để restrictive hơn (giảm quyền truy cập không cần), nhưng KHÔNG làm gián đoạn việc resources trong VPC sử dụng AWS services qua VPCE.
    🛠️ Nguyên lý cốt lõi: Interface VPCE chỉ cần inbound TCP 443 từ VPC CIDR để nhận request từ clients. Security Groups là stateful (tự động cho phép response traffic outbound tương ứng), nên không cần explicit outbound rules cho responses. Traffic forwarding đến AWS services được AWS PrivateLink xử lý nội bộ, ngoài tầm kiểm soát SG. Loại bỏ rules permissive giúp ngăn internet inbound và outbound không mong muốn từ endpoints.

✅ Đáp án đúng: Inbound - Rule 1 and Outbound - Rule 1

Lý do lựa chọn (chi tiết):

  • Inbound Rule 1 (0.0.0.0/0): Thừa và nguy hiểm, vì resources VPC chỉ cần từ VPC CIDR (đã có Rule 2). Remove để chặn truy cập từ internet.
  • Outbound Rule 1 (All to 0.0.0.0/0): Hoàn toàn thừa, vì SG stateful tự cho phép responses (TCP từ endpoint về VPC trên ephemeral ports 1024-65535). Endpoints không initiate outbound mới (chỉ respond). Remove ngăn endpoints kết nối ra ngoài không cần thiết.
    Sau remove, access vẫn OK: Clients gửi request → inbound Rule 2 allow → response auto-permitted. Giảm rủi ro tối đa!

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

  • ❌ [SAI] Outbound - Rule 2
    Không tồn tại rule nào tên "Outbound - Rule 2" trong mô tả SG. Remove cái không có sẽ không thay đổi gì, không giúp restrictive hơn.

  • ✅ [ĐÚNG] Inbound - Rule 1 and Outbound - Rule 1
    Như giải thích trên: Remove Inbound 1 chặn public access thừa; remove Outbound 1 tận dụng stateful SG để chỉ allow responses cần thiết. Hoàn hảo cho yêu cầu "restrictive mà không break access".

  • ❌ [SAI] Inbound - Rule 2 and Outbound - Rule 1
    Inbound Rule 2 (VPC CIDR) bắt buộc giữ, vì nó allow resources VPC gửi request đến endpoints (port 443). Remove sẽ block toàn bộ access đến CloudWatch Logs/KMS → vi phạm yêu cầu.

  • ❌ [SAI] Outbound - Rule 1
    Chỉ remove outbound này chưa đủ: Inbound Rule 1 vẫn cho phép internet hit endpoints (rủi ro bảo mật cao). Không meet "prevent unnecessary access" đầy đủ.

💡 Lời khuyên DevOps: Sau remove, nên verify bằng VPC Reachability Analyzer và test connectivity (e.g., aws logs describe-log-groups từ EC2). Nếu cần restrict hơn, reference SGs thay CIDR! 🚀

Câu 342
A company uses transit gateways to route traffic between the company's VPCs. Each transit gateway has a single route table. Each route table contains attachments and routes for the VPCs that are in the same AWS Region as the transit gateway. The route tables in each VPC also contain routes to all the other VPC CIDR ranges that are available through the transit gateways. Some VPCs route to local NAT gateways.

The company plans to add many new VPCs soon. A network engineer needs a solution to add new VPC CIDR ranges to the route tables in each VPC.

Which solution will meet these requirements in the MOST operationally efficient way?
  1. A Create a new customer-managed prefix list. Add all VPC CIDR ranges to the new prefix list. Update the route tables in each VPC to use the new prefix list ID as the destination and the appropriate transit gateway ID as the target.
  2. B Turn on default route table propagation for the transit gateway route tables. Turn on route propagation for each route table in each VPC.
  3. C Update the route tables in each VPC to use 0.0.0.010 as the destination and the appropriate transit gateway ID as the target.
  4. D Turn on default route table association for the transit gateway route tables. Turn on route propagation for each route table in each VPC.
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 thực tế trong môi trường AWS sử dụng Transit Gateway (TGW) để kết nối traffic giữa các VPC trong cùng Region.

  • Công ty có nhiều VPC kết nối qua TGW, mỗi TGW có một route table duy nhất chứa attachments và routes cho các VPC trong Region đó.
  • Các VPC route tables đã có routes trỏ đến tất cả CIDR ranges của các VPC khác qua TGW.
  • Một số VPC sử dụng local NAT gateways để outbound traffic.
  • Vấn đề sắp tới: Sẽ thêm nhiều VPC mới → cần thêm CIDR ranges mới vào route tables của MỖI VPC hiện tại một cách hiệu quả nhất về mặt vận hành (operationally efficient).
    🛠️ Mục tiêu: Tránh phải cập nhật thủ công từng route riêng lẻ trong hàng trăm VPC route tables mỗi khi thêm VPC mới, giảm thiểu lỗi và thời gian quản lý. Đây là bài toán kinh điển về scaling routing trong TGW, sử dụng tính năng Prefix Lists để simplify.

📘 Kiến thức cập nhật (AWS 2026): Transit Gateway hỗ trợ customer-managed prefix lists (từ 2021, ổn định đến 2026) để group CIDRs động, route tables VPC có thể reference prefix list ID làm destination. Không có thay đổi lớn ở phiên bản mới nhất (Transit Gateway v3.x).

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

Đáp án đúng: Create a new customer-managed prefix list. Add all VPC CIDR ranges to the new prefix list. Update the route tables in each VPC to use the new prefix list ID as the destination and the appropriate transit gateway ID as the target.

Lý do:

  • 🧩 Hiệu quả nhất: Tạo customer-managed prefix list (quản lý bởi user) chứa tất cả VPC CIDR ranges. Khi thêm VPC mới, chỉ cần update prefix list (thêm CIDR) → tự động propagate đến TẤT CẢ VPC route tables đã reference prefix list ID. Không cần edit từng route riêng lẻ ở mỗi VPC.
  • ✅ Scalable & low-ops: Giảm từ O(n*m) operations (n VPC mới x m VPC cũ) xuống O(1) update prefix list. Hỗ trợ TGW ID làm target chính xác.
  • Không ảnh hưởng local NAT gateways vì prefix list chỉ match VPC CIDRs cụ thể, không phải 0.0.0.0/0.
    📘 Nguồn: AWS Docs - Prefix lists for VPC route tables & Transit Gateway Routing (cập nhật 2025).

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

Dưới đây là phân tích từng lựa chọn một cách rõ ràng, 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 best practices AWS Transit Gateway.

  • Create a new customer-managed prefix list. Add all VPC CIDR ranges to the new prefix list. Update the route tables in each VPC to use the new prefix list ID as the destination and the appropriate transit gateway ID as the target.
    ✅ ĐÚNG (như đã giải thích ở trên). Đây là giải pháp MOST operationally efficient vì prefix list cho phép dynamic updates mà không chạm vào route tables VPC sau lần đầu setup. Hoàn hảo cho scaling nhiều VPC mới.

  • Turn on default route table propagation for the transit gateway route tables. Turn on route propagation for each route table in each VPC.
    ❌ SAI.

    • "Default route table propagation" chỉ áp dụng cho TGW route tables (tự động propagate routes từ attachments vào default route table của TGW), không giải quyết vấn đề update VPC route tables.
    • "Route propagation" ở VPC route tables là để propagate routes từ subnets/EGW/NGW, không propagate từ TGW. VPC không hỗ trợ propagate routes từ TGW vào route tables của nó. Giải pháp này không thêm CIDR mới vào VPC routes và không efficient.
  • Update the route tables in each VPC to use 0.0.0.0/10 as the destination and the appropriate transit gateway ID as the target.
    ❌ SAI.

    • 0.0.0.0/10 (lỗi đánh máy? thường là 0.0.0.0/0) là default route route TẤT CẢ traffic qua TGW, bao gồm internet/public traffic → xung đột với local NAT gateways (traffic sẽ bypass NAT, gây asymmetric routing hoặc mất connectivity).
    • Không specific cho VPC CIDRs → không meet yêu cầu chỉ route VPC-to-VPC. Phải update thủ công mỗi VPC → kém efficient khi scale.
  • Turn on default route table association for the transit gateway route tables. Turn on route propagation for each route table in each VPC.
    ❌ SAI.

    • "Default route table association" chỉ associate attachments tự động vào default TGW route table, giúp TGW routes → VPCs, nhưng không update VPC route tables để biết CIDRs mới.
    • "Route propagation" ở VPC như trên: không áp dụng cho TGW. Giải pháp chỉ optimize TGW side, bỏ qua vấn đề chính (VPC routes).

🛠️ Khuyến nghị thực tế: Implement prefix list ngay, kết hợp AWS Transit Gateway Policy Table (nếu cần segmentation). Test với AWS Network Manager cho monitoring. Best practice từ AWS Well-Architected Framework - Reliability Pillar! 🚀

Câu 343
A company has several AWS Site-to-Site VPN connections between an on-premises customer gateway and a transit gateway. The company's application uses IPv4 to communicate through the VPN connections.

The company has updated the VPC to be dual stack and wants to transition to using IPv6-only for new workloads. When the company tries to communicate through the existing VPN connections, IPv6 traffic fails.

Which solution will provide IPv6 support with the LEAST operational overhead?
  1. A Create a new Site-to-Site VPN connection that supports IPv6.
  2. B Create a new Site-to-Site VPN connection to a self-managed Amazon EC2 instance that runs open source software.
  3. C Update the existing Site-to-Site VPN connections to support IPv6.
  4. D Update the on-premises customer gateway's public IP address from IPv4 to IPv6.
Xem giải thích

🧩 Giải thích nội dung câu hỏi

Câu hỏi mô tả một công ty đang sử dụng nhiều kết nối AWS Site-to-Site VPN giữa on-premises customer gateway và Transit Gateway trên AWS. Các ứng dụng hiện tại giao tiếp qua IPv4 thành công. Tuy nhiên, công ty đã nâng cấp VPC lên chế độ dual-stack (hỗ trợ cả IPv4 và IPv6) và muốn chuyển sang IPv6-only cho các workload mới. Vấn đề là IPv6 traffic thất bại khi đi qua các kết nối VPN hiện tại.

Yêu cầu tìm giải pháp hỗ trợ IPv6 với LEAST operational overhead (ít tác động vận hành nhất, nghĩa là đơn giản, nhanh chóng, không cần thay đổi lớn về cấu hình hoặc quản lý).
Bối cảnh kỹ thuật cập nhật đến 2026: Từ tháng 11/2023, AWS hỗ trợ IPv6 cho Site-to-Site VPN kết nối với Transit Gateway, nhưng chỉ áp dụng cho kết nối mới (không thể kích hoạt trên kết nối cũ). VPC dual-stack cho phép workload IPv6-only, nhưng VPN cần hỗ trợ IPv6 end-to-end (từ on-premises qua Transit Gateway đến VPC).
📘 Tài liệu tham khảo:

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

Đáp án đúng: Create a new Site-to-Site VPN connection that supports IPv6.

Lý do:

  • Đây là giải pháp ít overhead nhất vì AWS cho phép tạo kết nối VPN mới trực tiếp hỗ trợ IPv6 khi attach vào Transit Gateway (chỉ cần cấu hình IPv6 prefix trên customer gateway và VPN endpoint). Không cần thay đổi phần cứng on-premises lớn, không self-manage instance, và không chạm vào kết nối cũ (có thể chạy song song IPv4/IPv6 trong quá trình transition).
  • Theo docs AWS 2026, existing VPN không thể update IPv6, nên tạo mới là cách chính thức, đơn giản qua Console/CLI/API. Operational overhead thấp: chỉ vài phút setup + BGP propagate routes.
    🛠️ Bước thực hiện nhanh: Tạo VPN connection mới với IPv6 CIDR, attach Transit Gateway, cập nhật customer gateway config (IPv6 tunnel).

📋 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 nội dung gốc bằng tiếng Anh. Mỗi phương án được đánh giá đúng/sai dựa trên tính khả thi, overhead và best practice AWS (cập nhật 2026).

  • ✅ Create a new Site-to-Site VPN connection that supports IPv6.
    Giải thích đúng: Giải pháp tối ưu với least overhead. AWS hỗ trợ native IPv6 cho VPN mới attach Transit Gateway (enable IPv6 address family trong BGP). Có thể chạy parallel với VPN cũ (IPv4), dễ migrate traffic dần dần mà không downtime lớn. Không cần code/custom hóa, chỉ config standard. Overhead: Thấp (tạo resource mới ~5-10 phút).

  • ❌ Create a new Site-to-Site VPN connection to a self-managed Amazon EC2 instance that runs open source software.
    Giải thích sai: Overhead cao vì phải self-manage EC2 (cài open source như StrongSwan/FRR cho IPv6 VPN), chịu trách nhiệm HA, scaling, patching, monitoring. Không native AWS, tăng complexity (IAM roles, security groups, EBS backups). AWS khuyến nghị dùng managed VPN thay vì tự build, vi phạm least overhead.

  • ❌ Update the existing Site-to-Site VPN connections to support IPv6.
    Giải thích sai: Không khả thi theo AWS docs. Existing Site-to-Site VPN với Transit Gateway không thể enable IPv6 (chỉ hỗ trợ IPv4 sau khi tạo). Phải detach/terminate rồi tạo mới. Overhead cao do downtime, re-route traffic, re-config BGP. AWS xác nhận rõ: "IPv6 is supported only on new VPN connections" (2023+).

  • ❌ Update the on-premises customer gateway's public IP address from IPv4 to IPv6.
    Giải thích sai: Không giải quyết gốc rễ vì VPN connection vẫn IPv4-only (AWS side không hỗ trợ IPv6 trên existing). Customer gateway public IP là IPv4 cho internet-facing VPN; chuyển IPv6 chỉ làm tunnel fail hoàn toàn (AWS VPN endpoint vẫn cần IPv4 public IP). Overhead cao: Thay đổi network on-premises lớn, không tương thích existing setup. AWS yêu cầu both sides match protocol.

🏆 Kết luận và best practice

Giải pháp đúng tận dụng native AWS IPv6 VPN để transition mượt mà sang IPv6-only workloads trên dual-stack VPC. Trong production, test parallel connections trước khi cutover. Sử dụng AWS Network Manager để visualize routes IPv6.
📘 Nguồn bổ sung: AWS Well-Architected: Networking Pillar - IPv6 (2026 edition).

Câu 344
A company has two teams: Team A and Team B. Team A has VPCs that run in Account A. The team uses a transit gateway (TGW-A) to route traffic between workloads that run in the different VPCs. Similarly, Team В has VPCs that run in Account B. Team В uses a different transit gateway (TGW-B) to route traffic between workloads that run in the different VPCs.

The company's network team manages the routing for Team A and Team В. The network team wants to retire TGW-B and use a single transit gateway to manage routing for the VPCs of both teams.

Which solution will meet this requirement with the LEAST operational overhead?
  1. A Create a resource share for TGW-A Share TGW-A with Account B. Create VPC attachments for the VPCs in Account В. Configure routing for the VPCs in TGW-A route tables. Update the route tables of the VPCs in Account В to forward traffic to TGW-Delete TGW-B attachments and TGW-B.
  2. B Create a resource share for TGW-A. Share TGW-A with Account В. Replicate the TGW-B configuration to TGW-A to automatically start routing changes for the VPCs in Account В. Delete TGW-B when routing changes are complete.
  3. C Create a new transit gateway (TGW-C) in Account A. Create a resource share for TGW-Share TGW-C with Account B. Create VPC attachments for the VPCs in Account A and Account В. Configure routing for all the VPCs in TGW-C route tables. Update the route tables for the VPCs in Account A and Account В to forward traffic to TGW-Delete TGW-A attachments and TGW-B attachments. Delete TGW-A and TGW-B.
  4. D Create a new transit gateway (TGW-C) in a new account (Account C). Create a resource share for TGW-C. Share TGW-C with Account A and Account B. Create VPC attachments for the VPCs in Account A and Account В. Configure routing for all the VPCs in TGW-C route tables. Update the route tables for the VPCs in Account A and Account В to forward traffic to TGW-C. Delete TGW-A attachments and TGW-B attachments. Delete TGW-A and TGW-B.
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 có hai đội ngũ (Team A và Team B) hoạt động ở hai tài khoản AWS riêng biệt (Account A và Account B).

  • Team A ở Account A sử dụng Transit Gateway (TGW-A) để định tuyến lưu lượng giữa các VPC của họ.
  • Team B ở Account B sử dụng Transit Gateway riêng (TGW-B) tương tự.
  • Nhóm mạng (network team) quản lý định tuyến cho cả hai đội, và họ muốn ngừng sử dụng TGW-B, thay vào đó dùng một Transit Gateway duy nhất để quản lý định tuyến cho tất cả VPC của cả hai đội.

Yêu cầu chính: Tìm giải pháp ít overhead hoạt động nhất (LEAST operational overhead), nghĩa là giảm thiểu công việc triển khai, cấu hình và quản lý.
🛠️ Transit Gateway (TGW) là dịch vụ AWS cho phép kết nối nhiều VPC, VPN, Direct Connect qua một hub trung tâm. Từ năm 2023-2026, AWS hỗ trợ chia sẻ TGW cross-account qua AWS Resource Access Manager (RAM) mà không cần tạo TGW mới, giúp tái sử dụng tài nguyên hiện có một cách hiệu quả.

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

✅ Đáp án đúng: Phương án đầu tiên

Create a resource share for TGW-A Share TGW-A with Account B. Create VPC attachments for the VPCs in Account В. Configure routing for the VPCs in TGW-A route tables. Update the route tables of the VPCs in Account В to forward traffic to TGW-Delete TGW-B attachments and TGW-B.

Lý do chọn đáp án này 🏆:

  • Đây là giải pháp tái sử dụng TGW-A hiện có (không tạo mới), chia sẻ qua RAM resource share cross-account – tính năng chuẩn của AWS, ít overhead nhất vì chỉ cần:
    1. Tạo resource share cho TGW-A và share với Account B (1 bước đơn giản).
    2. Account B tạo VPC attachments cho VPCs của mình vào TGW-A (tự động accept share).
    3. Cấu hình TGW route tables để định tuyến giữa VPCs A và B.
    4. Cập nhật VPC route tables ở Account B để trỏ về TGW-A.
    5. Xóa TGW-B và attachments (cleanup cuối).
  • Không cần di chuyển VPCs Account A, giữ nguyên cấu hình Team A, chỉ mở rộng cho Team B. Overhead thấp vì tận dụng infrastructure sẵn có, tránh downtime lớn và chi phí tạo TGW mới. Phù hợp best practice AWS DevOps (2026).

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

  • Phương án ĐÚNG (A):
    Create a resource share for TGW-A Share TGW-A with Account B. Create VPC attachments for the VPCs in Account В. Configure routing for the VPCs in TGW-A route tables. Update the route tables of the VPCs in Account В to forward traffic to TGW-Delete TGW-B attachments and TGW-B.
    ✅ Đúng vì: Như giải thích trên, tái sử dụng TGW-A với RAM sharing là cách tối ưu overhead (chỉ attach thêm VPCs B, config routes, delete TGW-B). Không gián đoạn Team A.

  • Phương án SAI (B):
    Create a resource share for TGW-A. Share TGW-A with Account В. Replicate the TGW-B configuration to TGW-A to automatically start routing changes for the VPCs in Account В. Delete TGW-B when routing changes are complete.
    ❌ Sai vì: AWS không hỗ trợ "replicate configuration" tự động giữa các TGW (không có feature copy/replicate route tables hay policy tự động đến 2026). Phải config thủ công, và cụm từ "automatically start routing changes" không tồn tại – dẫn đến overhead cao hơn và không khả thi.

  • Phương án SAI (C):
    Create a new transit gateway (TGW-C) in Account A. Create a resource share for TGW-Share TGW-C with Account B. Create VPC attachments for the VPCs in Account A and Account В. Configure routing for all the VPCs in TGW-C route tables. Update the route tables for the VPCs in Account A and Account В to forward traffic to TGW-Delete TGW-A attachments and TGW-B attachments. Delete TGW-A and TGW-B.
    ❌ Sai vì: Tạo TGW-C mới yêu cầu attach lại TẤT CẢ VPCs từ A và B, cập nhật toàn bộ route tables (cả A và B), xóa TGW-A/B – overhead cao gấp đôi (di chuyển toàn bộ, rủi ro downtime). Không "least operational" so với reuse TGW-A.

  • Phương án SAI (D):
    Create a new transit gateway (TGW-C) in a new account (Account C). Create a resource share for TGW-C. Share TGW-C with Account A and Account B. Create VPC attachments for the VPCs in Account A and Account В. Configure routing for all the VPCs in TGW-C route tables. Update the route tables for the VPCs in Account A and Account В to forward traffic to TGW-C. Delete TGW-A attachments and TGW-B attachments. Delete TGW-A and TGW-B.
    ❌ Sai vì: Tạo TGW-C ở account mới (Account C) + share với A/B + attach lại tất cả VPCs + cập nhật routes toàn bộ – overhead cực cao (thêm account quản lý, chi phí, complexity). Phù hợp cho multi-account lớn nhưng không "least" ở đây.

🛠️ Lời khuyên DevOps: Sử dụng AWS RAM cho TGW sharing là best practice để scale cross-account mà không refactor lớn. Test bằng AWS Console hoặc CDK/Terraform để verify! 🚀

Câu 345 Chọn nhiều đáp án
A company has an AWS environment that includes multiple VPCs that are connected by a transit gateway. The company wants to use a certificate-based AWS Site-to-Site VPN connection to establish connectivity between an on-premises environment and the AWS environment. The company does not have a static public IP address for the on-premises environment.

Which combination of steps should the company take to establish VPN connectivity between the transit gateway and the on-premises environment? (Choose two.)
  1. A Create a public certificate in AWS Certificate Manager (ACM).
  2. B Create a private certificate in AWS Certificate Manager (ACM).
  3. C Configure the Site-to-Site VPN tunnels to use the pre-shared key (PSK).
  4. D Create a customer gateway. Specify the current dynamic IP address of the customer gateway device's external interface.
  5. E Create a customer gateway. Do not specify the IP address of the customer gateway device.
Xem giải thích

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

Câu hỏi tập trung vào việc thiết lập kết nối AWS Site-to-Site VPN dựa trên chứng chỉ (certificate-based) giữa môi trường on-premises (không có địa chỉ IP public tĩnh) và môi trường AWS sử dụng Transit Gateway để kết nối nhiều VPC.

  • Bối cảnh chính:

    • AWS có nhiều VPC kết nối qua Transit Gateway (TGW).
    • On-premises cần kết nối VPN với TGW.
    • On-premises KHÔNG có IP public tĩnh (dynamic IP), nên không thể chỉ định IP cố định.
    • Yêu cầu sử dụng certificate-based authentication thay vì PSK (pre-shared key).
  • Mục tiêu: Chọn COMBINATION OF TWO STEPS (hai bước kết hợp) để thiết lập kết nối VPN từ TGW đến on-premises.

Câu hỏi kiểm tra kiến thức về AWS VPN Site-to-Site với certificate authentication (hỗ trợ từ năm 2021 và cập nhật đến 2026), nơi sử dụng private certificates từ ACM cho mutual authentication, và xử lý dynamic IP cho Customer Gateway (CGW). Không cần IP tĩnh, AWS hỗ trợ discovery động.

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

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

Hai bước đúng là:

  1. Create a private certificate in AWS Certificate Manager (ACM).
    Lý do: Certificate-based VPN yêu cầu private certificate từ ACM (hoặc ACM PCA) để AWS Virtual Private Gateway (VGW) hoặc TGW xác thực thiết bị on-premises. Private cert dùng cho server/client authentication hai chiều, không dùng public cert.

  2. Create a customer gateway. Do not specify the IP address of the customer gateway device.
    Lý do: Với dynamic IP (không tĩnh), tạo CGW KHÔNG chỉ định IP để AWS tự động phát hiện và cập nhật IP thay đổi qua VPN tunnel negotiation. Điều này hỗ trợ kết nối với TGW qua VPN attachment.

🛠️ Quy trình tổng thể khuyến nghị (dựa trên best practices 2026): Tạo private cert → Import cert vào on-premises device → Tạo CGW không IP → Tạo VPN Connection attach vào TGW → Download config và apply trên on-premises.

📋 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 chi tiết:

  • ❌ Create a public certificate in AWS Certificate Manager (ACM).
    Sai vì certificate-based Site-to-Site VPN KHÔNG sử dụng public certificate. Public cert chỉ dùng cho public-facing services như ELB/CloudFront. Ở đây cần private cert (internal PKI) để mutual TLS auth giữa AWS và on-premises device.

  • ✅ Create a private certificate in AWS Certificate Manager (ACM).
    Đúng vì đây là bước bắt buộc cho certificate-based auth. ACM tạo private cert (RSA/ECDSA) cho VGW/TGW xác thực client cert từ on-premises. On-premises device phải cài cert tương ứng (root CA chain). Hỗ trợ đến 2026 với ACM Private CA integration.

  • ❌ Configure the Site-to-Site VPN tunnels to use the pre-shared key (PSK).
    Sai vì PSK chỉ dùng cho IKEv1/IKEv2 PSK-based auth, KHÔNG tương thích với certificate-based VPN. Câu hỏi chỉ rõ "certificate-based", nên phải dùng cert auth thay thế PSK.

  • ❌ Create a customer gateway. Specify the current dynamic IP address of the customer gateway device's external interface.
    Sai vì on-premises có dynamic IP (thay đổi), chỉ định IP hiện tại sẽ lỗi khi IP thay đổi (VPN tunnel down). AWS yêu cầu KHÔNG chỉ định IP cho dynamic CGW để tự động cập nhật qua tunnel heartbeat.

  • ✅ Create a customer gateway. Do not specify the IP address of the customer gateway device.
    Đúng vì hỗ trợ dynamic endpoint resolution. AWS VPN connection sẽ negotiate và cập nhật IP tự động (qua IKE discovery). Kết hợp với TGW attachment để route traffic từ VPCs qua VPN đến on-premises.

🧩 Lưu ý bổ sung: Sau hai bước trên, cần tạo VPN Connection, attach vào TGW, và config on-premises (như Cisco/strongSwan) với cert + IKEv2. Test với dynamic IP failover để đảm bảo high availability!

Câu 346
A company operates in multiple AWS Regions. The company has deployed transit gateways in each Region. The company uses AWS Organizations to operate multiple AWS accounts in one organization.

The company needs to capture all VPC flow log data when a new VPC is created. The company needs to send flow logs to a specific Amazon S3 bucket.

Which solution will meet these requirements with the LEAST administrative effort?
  1. A Update IAM permissions for each user to include a condition that ensures users can create VPCs only when VPC Flow Logs is enabled and configured correctly.
  2. B Create a custom AWS Config rule with automatic remediation that verifies VPC Flow Logs is enabled and configured correctly. Apply the AWS Config rule to the organization.
  3. C Enable VPC Flow Logs on each transit gateway. Configure VPC Flow Logs to send flow logs to the specified S3 bucket.
  4. D Deploy a serverless application that uses AWS CloudTrail to monitor for VPC creation events in each account. Configure the application to apply the correct VPC Flow Logs configuration.
Xem giải thích

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

Câu hỏi tập trung vào việc tự động hóa việc thu thập VPC Flow Logs cho mọi VPC mới được tạo ra trong môi trường multi-account và multi-Region của AWS Organizations.
✅ Yêu cầu chính:

  • Công ty hoạt động ở nhiều AWS Regions, đã triển khai transit gateways ở mỗi Region (nhưng transit gateways không phải là trọng tâm chính, chỉ là ngữ cảnh về hạ tầng).
  • Sử dụng AWS Organizations để quản lý nhiều AWS accounts trong một organization.
  • Mục tiêu: Capture tất cả VPC flow log data ngay khi VPC mới được tạo, và gửi logs đến một S3 bucket cụ thể.
  • Tiêu chí chọn giải pháp: LEAST administrative effort (ít nỗ lực quản trị nhất), nghĩa là cần giải pháp tự động hóa cao, scale theo organization, không yêu cầu can thiệp thủ công lặp lại cho từng account/Region/VPC.

🛠️ Vấn đề cốt lõi: VPC Flow Logs là tính năng ghi lại traffic IP vào/ra VPC (cập nhật mới nhất 2026: hỗ trợ Traffic Mirroring nâng cao và integration sâu với AWS Config/Remediation). Giải pháp phải enforce tự động cho mọi VPC mới, không chỉ enable thủ công, và chỉ định đích S3 bucket cụ thể. AWS Organizations cho phép delegated administrator để apply policies/config toàn organization mà không cần touch từng account.

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

Đáp án đúng: Create a custom AWS Config rule with automatic remediation that verifies VPC Flow Logs is enabled and configured correctly. Apply the AWS Config rule to the organization.

Lý do chọn (chi tiết):
🧩 Giải pháp này đáp ứng đầy đủ yêu cầu với LEAST effort:

  • AWS Config rule tùy chỉnh (custom Lambda-based rule) kiểm tra VPC Flow Logs đã enable và config đúng (gửi đến S3 bucket cụ thể) cho mọi VPC.
  • Automatic remediation (tích hợp AWS Systems Manager Automation hoặc Lambda) tự động enable Flow Logs + config S3 destination nếu phát hiện non-compliant VPC mới.
  • Apply to organization: Sử dụng AWS Organizations delegated administrator for Config (tính năng từ 2021, cập nhật 2026 hỗ trợ multi-Region aggregation tốt hơn), deploy một lần duy nhất cho toàn organization → zero-touch per account/Region, scale tự động khi tạo VPC mới ở bất kỳ account nào.
  • Least effort: Không cần update IAM thủ công, không deploy app riêng, không enable per transit gateway. Hoàn toàn serverless, compliant với best practices DevOps (Infrastructure as Code + compliance automation).

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

Dưới đây là phân tích từng phương án một, giữ nguyên văn bản gốc bằng tiếng Anh. Mỗi phân tích giải thích tại sao đúng/sai dựa trên kiến thức AWS cập nhật 2026, tập trung vào tính khả thi, effort và coverage.

  • Phương án A: Update IAM permissions for each user to include a condition that ensures users can create VPCs only when VPC Flow Logs is enabled and configured correctly.
    ❌ SAI – Không đáp ứng least effort và không tự động hoàn toàn.
    🛠️ Lý do: IAM condition keys (như vpc:EnableFlowLogs từ VPC API updates) có thể restrict tạo VPC nếu không enable Flow Logs, nhưng phải update IAM policy cho MỖI user/role ở MỖI account → high admin effort (hàng trăm accounts). Không tự động config S3 bucket cụ thể sau khi tạo VPC, và không capture logs cho VPC do automation/service tạo (như CloudFormation). Không scale với Organizations.

  • Phương án B: Create a custom AWS Config rule with automatic remediation that verifies VPC Flow Logs is enabled and configured correctly. Apply the AWS Config rule to the organization.
    ✅ ĐÚNG – Giải pháp tối ưu nhất.
    🛠️ Lý do: Như phân tích ở phần đáp án đúng: Custom rule dùng Lambda query DescribeFlowLogs, check destination S3; remediation tự động gọi CreateFlowLogs API với S3 ARN cụ thể. Organization-wide deployment qua Config aggregator/remediation → detect/remediate ngay khi VPC mới tạo (Config evaluates continuously). Least effort: Setup 1 rule + delegate admin → tự động forever.

  • Phương án C: Enable VPC Flow Logs on each transit gateway. Configure VPC Flow Logs to send flow logs to the specified S3 bucket.
    ❌ SAI – Không cover VPCs, chỉ transit gateways.
    🧩 Lý do: VPC Flow Logs trên transit gateway chỉ capture traffic giữa transit gateways/VPN/Direct Connect, KHÔNG capture flow logs của VPCs (VPC Flow Logs là per-VPC/ENI/subnet). Phải enable riêng cho từng transit gateway ở mỗi Region → manual effort cao, không tự động cho VPC mới, và không liên quan trực tiếp đến yêu cầu "VPC mới được tạo".

  • Phương án D: Deploy a serverless application that uses AWS CloudTrail to monitor for VPC creation events in each account. Configure the application to apply the correct VPC Flow Logs configuration.
    ❌ SAI – Effort cao hơn và phức tạp không cần thiết.
    🛠️ Lý do: EventBridge/CloudWatch Events + Lambda từ CloudTrail "CreateVpc" events có thể trigger enable Flow Logs, nhưng phải deploy app này vào MỖI account (hoặc cross-account EventBridge, vẫn cần setup per-Region/account) → high admin effort so với Config organization-wide. Không "least effort" vì custom app yêu cầu maintain code, handle failures, permissions; AWS Config đã built-in remediation tốt hơn (updates 2026: Config hỗ trợ conformance packs cho Flow Logs).

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

Giải pháp này đảm bảo zero-downtime enforcement và audit-ready! 🚀

Câu 347
A company wants to analyze TCP internet traffic. The traffic originates from Amazon EC2 instances in the company’s VPC. The EC2 instances initiate connections through a NAT gateway.

The company wants to capture data about the traffic including source and destination IP addresses ports, and the first 8 bytes of the TCP segments of the traffic. The company needs to collect, store, and analyze all the required data points.

Which solution will meet these requirements?
  1. A Configure the EC2 instances to be VPC traffic mirror sources. Deploy software on the traffic mirror target to forward the data to Amazon CloudWatch Logs. Analyze the data by using CloudWatch Logs Insights
  2. B Configure the NAT gateway to be a VPC traffic mirror source. Deploy software on the traffic mirror target to forward the data to an Amazon S3 bucket. Analyze the data by using Amazon Athena.
  3. C Turn on VPC Flow Logs for the EC2 instances. Specify the default format and set Amazon CloudWatch Logs as the log destination. Analyze the flow log data by using CloudWatch Logs Insights.
  4. D Turn on VPC Flow Logs for the EC2 instances. Specify a custom format and set Amazon S3 as the log destination. Analyze the flow log data by using Amazon Athena.
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 việc phân tích lưu lượng TCP internet traffic từ các instance Amazon EC2 trong VPC của công ty. Các EC2 instance nằm ở private subnet (vì sử dụng NAT gateway để kết nối outbound ra internet). Yêu cầu cụ thể là capture dữ liệu bao gồm:

  • Địa chỉ IP nguồn và đích (source/destination IP addresses),
  • Cổng nguồn và đích (ports),
  • 8 byte đầu tiên của TCP segments (đây là dữ liệu payload trong packet TCP, ví dụ như TCP header hoặc initial sequence number trong SYN packet).

Công ty cần thu thập (collect), lưu trữ (store), và phân tích (analyze) toàn bộ dữ liệu này một cách đầy đủ.

Thách thức chính 📌:

  • VPC Flow Logs chỉ capture metadata (như IP, ports, bytes transferred) nhưng KHÔNG capture payload như 8 byte đầu TCP.
  • VPC Traffic Mirroring mới có khả năng mirror toàn bộ packet (bao gồm header và payload), hỗ trợ NAT gateway làm source từ phiên bản AWS mới nhất (cập nhật đến 2026, hỗ trợ Traffic Mirroring cho NAT gateways ra mắt từ 2021 và ổn định).
  • Traffic originate từ EC2 qua NAT → Mirror tại NAT gateway sẽ capture chính xác outbound traffic ra internet.

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

Đáp án đúng: Configure the NAT gateway to be a VPC traffic mirror source. Deploy software on the traffic mirror target to forward the data to an Amazon S3 bucket. Analyze the data by using Amazon Athena.

Lý do chi tiết 🛠️:

  • VPC Traffic Mirroring capture toàn bộ packet TCP, bao gồm source/dest IP, ports, và first 8 bytes TCP segments (payload data).
  • NAT gateway làm Traffic Mirror Source ✅: Hoàn hảo vì traffic từ EC2 private instances đi qua NAT để ra internet, mirror tại đây capture outbound chính xác (hỗ trợ từ AWS VPC Traffic Mirroring docs, cập nhật 2026).
  • Traffic Mirror Target (thường là EC2 instance) nhận mirrored packets → Deploy software custom (như tcpdump hoặc agent) để parse/extract data cần (IP, ports, 8 bytes đầu) và forward vào S3 bucket để lưu trữ lâu dài, scalable.
  • Amazon Athena query dữ liệu trực tiếp từ S3 (dạng Parquet/JSON), hỗ trợ phân tích lớn hiệu quả, chi phí thấp.
  • Giải pháp này đầy đủ collect-store-analyze, phù hợp DevOps best practices cho network visibility.

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

Dưới đây là phân tích từng lựa chọn một cách chi tiết. Tôi giữ nguyên nội dung gốc bằng tiếng Anh, chỉ giải thích bằng tiếng Việt với lý do đúng/sai:

  • ❌ [SAI] Configure the EC2 instances to be VPC traffic mirror sources. Deploy software on the traffic mirror target to forward the data to Amazon CloudWatch Logs. Analyze the data by using CloudWatch Logs Insights
    Giải thích sai 🚫: Mirror từ EC2 instances (ENI) chỉ capture traffic vào/ra ENI của EC2, nhưng không capture đầy đủ outbound internet traffic qua NAT (traffic sau NAT bị thay đổi source IP). Ngoài ra, forward vào CloudWatch Logs không scalable cho high-volume packet data (mirroring tạo raw packets lớn), Logs Insights chỉ query logs metadata, khó parse 8 bytes TCP phức tạp và tốn kém.

  • ✅ [ĐÚNG] Configure the NAT gateway to be a VPC traffic mirror source. Deploy software on the traffic mirror target to forward the data to an Amazon S3 bucket. Analyze the data by using Amazon Athena.
    Giải thích đúng 🟢: Như đã phân tích ở trên, đây là giải pháp tối ưu, capture chính xác tại NAT, lưu S3 + Athena phân tích mạnh mẽ cho packet data.

  • ❌ [SAI] Turn on VPC Flow Logs for the EC2 instances. Specify the default format and set Amazon CloudWatch Logs as the log destination. Analyze the flow log data by using CloudWatch Logs Insights.
    Giải thích sai 🚫: VPC Flow Logs chỉ capture metadata (IP, ports, packets/bytes count), KHÔNG có first 8 bytes TCP payload (AWS xác nhận Flow Logs không hỗ trợ packet content). Default format thiếu chi tiết, CloudWatch Logs Insights chỉ query logs đơn giản, không đủ cho yêu cầu payload.

  • ❌ [SAI] Turn on VPC Flow Logs for the EC2 instances. Specify a custom format and set Amazon S3 as the log destination. Analyze the flow log data by using Amazon Athena.
    Giải thích sai 🚫: Dù custom format + S3 + Athena tốt hơn, nhưng VPC Flow Logs vẫn KHÔNG capture 8 bytes TCP (custom chỉ thêm fields metadata như vpc-id, subnet-id, không có packet payload). Không đáp ứng yêu cầu cốt lõi.

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

Giải pháp này đảm bảo zero downtime, scalable cho production! 🚀

Câu 348
A media company is planning to host an event that the company will live stream to users. The company wants to use Amazon CloudFront.

A network engineer creates a primary origin and a secondary origin for CloudFront. The engineer needs to ensure that the primary origin can fail over to the secondary origin within 15 seconds if a disruption occurs.

Which solution will meet this requirement with the LEAST operational overhead?
  1. A Configure a Lambda@Edge function to check the health status of both origins every 10 seconds. Reroute incoming requests when the origin health status is unhealthy.
  2. B Create a Network Load Balancer (NLB) in front of both origins Configure the NLB as the origin in CloudFront.
  3. C Set the CloudFront origin connection timeout value to 5 seconds Set the origin connection attempts value to 2.
  4. D Configure a Lambda@Edge function to monitor incoming requests for an origin response. Reroute incoming requests if no response is received from the primary origin within 10 seconds.
Xem giải thích

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

Câu hỏi xoay quanh việc triển khai failover giữa primary origin và secondary origin trong Amazon CloudFront cho một sự kiện live stream của công ty media. 🛠️ Mục tiêu là đảm bảo nếu primary origin gặp sự cố (disruption), hệ thống sẽ chuyển sang secondary origin trong vòng 15 giây, đồng thời chọn giải pháp có LEAST operational overhead (ít công vận hành nhất, nghĩa là ưu tiên tính năng native của AWS, tránh code custom hay tài nguyên bổ sung).

  • Bối cảnh: CloudFront là CDN phân phối nội dung nhanh chóng, hỗ trợ multiple origins qua Origin Groups (primary + secondary failover). Khi primary thất bại (ví dụ: timeout, lỗi 5xx), CloudFront tự động thử secondary.
  • Yêu cầu kỹ thuật: Failover phải nhanh (<15s), dựa trên cơ chế thử kết nối (connection attempts) và timeout.
  • Kiến thức cập nhật 2026: Theo AWS CloudFront (phiên bản mới nhất), Origin connection timeout mặc định 30s (có thể set 1-10s), connection attempts mặc định 3 (có thể set 1-3). Tổng thời gian failover = timeout × attempts. Origin Groups hỗ trợ failover native mà không cần code.

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

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

Đáp án đúng: Set the CloudFront origin connection timeout value to 5 seconds Set the origin connection attempts value to 2.

Lý do 🏆:

  • Giải pháp native của CloudFront (không cần code, load balancer hay monitoring custom), nên least operational overhead – chỉ config trong distribution settings.
  • Tính toán thời gian: Timeout 5s × 2 attempts = 10 giây để phát hiện failure và failover sang secondary origin (trong Origin Group). Đáp ứng <15s.
  • Cách hoạt động: CloudFront thử kết nối primary origin 2 lần, mỗi lần timeout 5s. Nếu fail → tự động dùng secondary (trả về 502/504 từ primary kích hoạt failover).
  • Hoàn hảo cho live stream: Nhanh, scalable, không tốn phí thêm.

📋 Giải thí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 thời gian failover, operational overhead và tính tương thích với CloudFront.

  • ❌ [SAI] Configure a Lambda@Edge function to check the health status of both origins every 10 seconds. Reroute incoming requests when the origin health status is unhealthy.
    Giải thích sai: Overhead cao vì phải viết code Lambda@Edge (chạy tại edge locations), setup polling health check mỗi 10s (không hiệu quả, tốn compute). Không native, khó maintain, và có độ trễ reroute >10s. CloudFront đã có health check built-in qua Origin Groups, không cần custom.

  • ❌ [SAI] Create a Network Load Balancer (NLB) in front of both origins Configure the NLB as the origin in CloudFront.
    Giải thích sai: NLB (Layer 4 TCP/UDP) hỗ trợ failover targets, nhưng overhead lớn: Phải tạo/manage NLB riêng (provisioning, monitoring, phí). CloudFront coi NLB như single origin, không tận dụng Origin Groups native. Thời gian failover NLB ~30s+ (health checks mặc định chậm), không đảm bảo <15s, và phức tạp hơn config trực tiếp origins.

  • ✅ [ĐÚNG] Set the CloudFront origin connection timeout value to 5 seconds Set the origin connection attempts value to 2.
    Giải thích đúng (như phần trên): Native config, failover ~10s, zero code/custom resources. Tối ưu cho high-availability live stream.

  • ❌ [SAI] Configure a Lambda@Edge function to monitor incoming requests for an origin response. Reroute incoming requests if no response is received from the primary origin within 10 seconds.
    Giải thích sai: Tương tự lựa chọn đầu, overhead cao với Lambda@Edge custom (monitor per-request). Chỉ reroute nếu no response 10s → gần 15s nhưng không chính xác (per-request delay), tốn performance edge, và không scalable cho traffic lớn. Lại vi phạm "least overhead" vì code phức tạp.

Kết luận 🎯: Giải pháp native của CloudFront là lựa chọn tối ưu nhất cho DevOps, đảm bảo reliability cao với chi phí vận hành thấp! 🚀

Câu 349
AnyCompany deploys and manages networking resources in its AWS network account, named Account-A. AnyCompany acquires Example Corp, which has an application that runs behind an Application Load Balancer (ALB) in Example Corp's AWS account, named Account-B.

Example Corp needs to use AWS Global Accelerator to create an accelerator to publish the application to users. AnyCompany's networking team will manage the accelerator.

Which solution will meet these requirements with the LEAST management overhead?
  1. A Create an accelerator in Account-В. Use a cross-account role from Account-A to grant the networking team access to manage the accelerator.
  2. B Deploy a Network Load Balancer (NLB) in Account-A to route traffic to the ALB in Account-В. Create an accelerator, and set the NLB as the endpoint in Account-A.
  3. C Create a cross-account Global Accelerator attachment in Account-В for the Account-A principal. Create an accelerator in Account-A by using the shared attachment.
  4. D Create an accelerator in Account-A. Use AWS Resource Access Management (AWS RAM) to share the accelerator with Account-В. Associate the ALB in Account-В with the accelerator in Account-A.
Xem giải thích

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

Câu hỏi tập trung vào việc triển khai AWS Global Accelerator để công bố ứng dụng chạy sau Application Load Balancer (ALB) ở Account-B (của Example Corp) cho người dùng toàn cầu. Account-A (AnyCompany) chịu trách nhiệm quản lý các tài nguyên mạng, bao gồm việc quản lý accelerator. Yêu cầu chính là giải pháp ít overhead quản lý nhất (least management overhead), nghĩa là giảm thiểu việc thiết lập, bảo trì và cấu hình thủ công giữa hai account cross-account.

  • Bối cảnh chính:
    • Ứng dụng ở Account-B cần được expose qua Global Accelerator để tối ưu traffic routing toàn cầu (sử dụng AWS edge locations).
    • Networking team ở Account-A phải quản lý accelerator (tạo, config, monitor).
    • Không muốn overhead cao như deploy thêm resources thừa hoặc chia sẻ phức tạp.

Giải pháp phải tận dụng tính năng cross-account endpoint sharing của Global Accelerator (cập nhật mới nhất AWS đến 2026), cho phép Account-B chia sẻ attachment của ALB mà không cần di chuyển resources.

✅ Đáp án đúng: Lựa chọn C

Create a cross-account Global Accelerator attachment in Account-В for the Account-A principal. Create an accelerator in Account-A by using the shared attachment.

Lý do chọn đáp án này:

  • Đây là giải pháp chuẩn và ít overhead nhất theo best practice AWS (tính năng cross-account attachments ra mắt từ 2022 và ổn định đến 2026).
  • Account-B tạo shared attachment cho ALB, cấp quyền cho principal của Account-A (như IAM role/user).
  • Account-A chỉ cần tạo accelerator và attach shared attachment này → Networking team quản lý toàn bộ accelerator ở Account-A mà không cần deploy thêm resources, không cần role cross-account phức tạp.
  • Lợi ích: Traffic flow mượt mà (Global Accelerator → ALB cross-account), tự động failover, low latency, zero additional resources ở Account-A.

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

  • ❌ Phương án A (Sai):
    Create an accelerator in Account-В. Use a cross-account role from Account-A to grant the networking team access to manage the accelerator.
    Giải thích: Tạo accelerator ở Account-B nghĩa là networking team Account-A phải dùng cross-account role để quản lý (assume role), dẫn đến overhead cao: phải config trust policy, monitor cross-account, và vẫn phụ thuộc Account-B cho lifecycle. Không phải least overhead vì accelerator không ở account quản lý chính.

  • ❌ Phương án B (Sai):
    Deploy a Network Load Balancer (NLB) in Account-A to route traffic to the ALB in Account-В. Create an accelerator, and set the NLB as the endpoint in Account-A.
    Giải thích: Phải deploy thêm NLB ở Account-A (chi phí, config listener, security group cross-account), rồi route traffic NLB → ALB. Overhead lớn: quản lý 2 LB (NLB + ALB), tăng latency tiềm ẩn, không tận dụng native cross-account của Global Accelerator. Không hiệu quả cho least management.

  • ✅ Phương án C (Đúng):
    Create a cross-account Global Accelerator attachment in Account-В for the Account-A principal. Create an accelerator in Account-A by using the shared attachment.
    Giải thích: Như đã nêu ở phần đáp án đúng. Đây là native feature của Global Accelerator: Account-B dùng API create-attachment với CrossAccountAttachmentEnabled=true và specify principal ARN từ Account-A. Account-A attach trực tiếp vào accelerator. Zero extra resources, full control cho networking team, hỗ trợ health checks cross-account.

  • ❌ Phương án D (Sai):
    Create an accelerator in Account-A. Use AWS Resource Access Management (AWS RAM) to share the accelerator with Account-В. Associate the ALB in Account-В with the accelerator in Account-A.
    Giải thích: AWS RAM không hỗ trợ share Global Accelerator (chỉ share VPC, Transit Gateway, etc.). Không thể associate ALB ở Account-B trực tiếp với accelerator ở Account-A mà không dùng shared attachment. Nếu cố, sẽ lỗi permission, overhead cao vì phải workaround (như proxy LB), vi phạm least management.

🛠️ Khuyến nghị triển khai thực tế

  • Bước 1 (Account-B): Tạo attachment với CLI: aws globalaccelerator create-attachment --region us-east-1 --accelerator-arn <shared-arn> --endpoint-id <ALB-ARN> --cross-account-permissions 'PrincipalArn=arn:aws:iam::AccountA:root'.
  • Bước 2 (Account-A): Tạo accelerator và select shared attachment từ console/CLI.
  • Monitoring: Dùng CloudWatch + Accelerator monitoring groups cho health checks cross-account.

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

Giải pháp C đảm bảo secure, scalable, low-overhead theo tiêu chuẩn DevOps Professional! 🚀

Câu 350
A company has two AWS Direct Connect connections between Direct Connect locations and the company's on-premises environment in the US. The company uses the connections to communicate with AWS workloads that run in the us-east-1 Region. The company has a transit gateway that connects several VPCs. The Direct Connect connections terminate at a Direct Connect gateway and the transit VIFs to the transit gateway.

The company recently acquired a smaller company that is based in Europe. The newly acquired company has only on-premises workloads. The newly acquired company does not expect to run workloads on AWS for the next 3 years. However, the newly acquired company requires connectivity to the parent company's AWS resources in us-east-1 and to the parent company's on-premises environment in the US. The parent company wants to use two new Direct Connect connections in Europe to provide the required connectivity.

Which solution will meet these requirements with the LEAST operational overhead for the newly acquired company?
  1. A Associate new transit VIFs to the existing Direct Connect gateway. Configure the new transit VIFs to use Direct Connect SiteLink.
  2. B Associate new transit VIFs to a new Direct Connect gateway and to a new transit gateway in the eu-west-1 Region. Use transit gateway peering to connect the transit gateways.
  3. C Associate new private VIFs to the existing Direct Connect gateway. Configure the existing transit VIFs and the new private VIFs to use Direct Connect SiteLink.
  4. D Associate new private VIFs to a new Direct Connect gateway and to a new VPC in us-east-1. Configure the existing transit VIFs and the new private VIFs to use Direct Connect SiteLink and AWS PrivateLink endpoints in the new VPC.
Xem giải thích

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

Câu hỏi mô tả một tình huống thực tế về kiến trúc kết nối hybrid cloud trên AWS:

  • Công ty mẹ (parent company) có 2 kết nối AWS Direct Connect (DX) từ vị trí on-premises ở Mỹ (US) đến DX Gateway. Các transit Virtual Interfaces (VIFs) từ DX Gateway kết nối với Transit Gateway (TGW) ở vùng us-east-1, giúp giao tiếp giữa on-premises US và các workload AWS trong các VPCs ở us-east-1.
  • Công ty mới mua lại (ở Europe) chỉ có workload on-premises, không chạy workload trên AWS trong 3 năm tới. Tuy nhiên, họ cần kết nối đến:
    • Tài nguyên AWS của parent ở us-east-1 (các VPCs qua TGW).
    • Môi trường on-premises US của parent.
  • Parent muốn sử dụng 2 kết nối DX mới ở Europe để cung cấp kết nối này.
  • Yêu cầu chính: Giải pháp có ít nhất operational overhead (chi phí vận hành thấp nhất) cho công ty mới – nghĩa là đơn giản, ít tài nguyên AWS mới, không yêu cầu quản lý region mới hay peering phức tạp.

Mục tiêu cốt lõi: Kết nối on-premises Europe → AWS us-east-1 và on-premises US một cách private, low-latency, least overhead (tận dụng existing infrastructure). Giải pháp lý tưởng phải dùng Direct Connect SiteLink (tính năng mới từ 2022, cập nhật đến 2026), cho phép kết nối trực tiếp giữa các DX locations qua AWS global backbone mà không cần đi qua public internet, VPN hay region trung gian. SiteLink hỗ trợ private VIF và transit VIF, route traffic privately giữa các sites DX khác nhau.

Lý do lựa chọn:

  • 🛠️ Đơn giản nhất (least overhead): Công ty mới chỉ cần thiết lập 2 DX connections ở Europe → tạo new transit VIFs → associate trực tiếp vào existing DX Gateway (không cần DX Gateway mới). Sau đó, config SiteLink trên new transit VIFs.
  • 📡 Traffic flow: On-premises Europe → DX Europe (new transit VIF) → SiteLink (global backbone) → DX US (existing DX Gateway → existing transit VIF) → TGW us-east-1 → VPCs AWS và on-premises US (qua route propagation trên TGW).
  • 🎯 Ưu điểm: Không cần VPC mới, TGW mới, peering, hay PrivateLink. Công ty mới KHÔNG quản lý tài nguyên AWS (chỉ DX on-prem side), traffic private/low-latency toàn cầu. Phù hợp kiến trúc AWS 2026 với SiteLink hỗ trợ transit VIF cross-region/site.
  • 💡 Least overhead: Chỉ config VIF + SiteLink (automated qua console/API), không deploy resource châu Âu.

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

  • A. Associate new transit VIFs to the existing Direct Connect gateway. Configure the new transit VIFs to use Direct Connect SiteLink.
    ✅ Đúng (như phân tích trên). Giải pháp tối ưu, tận dụng existing DX Gateway + SiteLink để kết nối transit VIFs cross-site (US ↔ Europe), route traffic đến TGW mà không overhead thêm.

  • B. Associate new transit VIFs to a new Direct Connect gateway and to a new transit gateway in the eu-west-1 Region. Use transit gateway peering to connect the transit gateways.
    ❌ Sai: Tạo new DX Gateway và new TGW ở eu-west-1 → overhead cao (deploy/manage resource AWS ở Europe, peering TGW cross-region tốn phí dữ liệu cao ~$0.02/GB + quản lý route phức tạp). Công ty mới phải chịu trách nhiệm TGW Europe dù không chạy workload AWS, vi phạm "least overhead".

  • C. Associate new private VIFs to the existing Direct Connect gateway. Configure the existing transit VIFs and the new private VIFs to use Direct Connect SiteLink.
    ❌ Sai: Private VIF chỉ dùng để kết nối trực tiếp đến VPC cụ thể (yêu cầu VPC ID), không hỗ trợ transit/TGW routing linh hoạt như transit VIF. Công ty mới không có VPC → không thể associate private VIF. SiteLink hỗ trợ private VIF nhưng không giải quyết vấn đề routing đến on-premises US qua TGW.

  • D. Associate new private VIFs to a new Direct Connect gateway and to a new VPC in us-east-1. Configure the existing transit VIFs and the new private VIFs to use Direct Connect SiteLink and AWS PrivateLink endpoints in the new VPC.
    ❌ Sai: Tạo new DX Gateway, new VPC ở us-east-1, và PrivateLink endpoints → overhead cực cao (quản lý VPC mới, endpoints, NAT/IGW cho PrivateLink; phí PrivateLink + data processing). Không cần thiết vì SiteLink + transit VIF đã đủ private routing, vi phạm yêu cầu "no AWS workloads".

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

Giải pháp này đảm bảo secure, scalable, low-cost theo best practices AWS! 🚀