Ngân hàng đề — AWS Certified Advanced Networking Specialty
Tìm thấy 352 câu.
The company’s security policy requires the traffic to be encrypted in transit at all times between the users and the backend.
Which combination of changes must the company make to meet this security requirement? (Choose three.)
- A Create a self-signed certificate for service.example.com. Import the certificate into AWS Certificate Manager (ACM). Configure CloudFront to use this imported SSL/TLS certificate. Change the default behavior to redirect HTTP to HTTPS.
- B Create a certificate for service.example.com by using AWS Certificate Manager (ACM). Configure CloudFront to use this custom SSL/TLS certificate. Change the default behavior to redirect HTTP to HTTPS.
- C Create a certificate with any domain name by using AWS Certificate Manager (ACM) for the EC2 instances. Configure the backend to use this certificate for its HTTPS listener. Specify the instance target type during the creation of a new target group that uses the HTTPS protocol for its targets. Attach the existing Auto Scaling group to this new target group.
- D Create a public certificate from a third-party certificate provider with any domain name for the EC2 instances. Configure the backend to use this certificate for its HTTPS listener. Specify the instance target type during the creation of a new target group that uses the HTTPS protocol for its targets. Attach the existing Auto Scaling group to this new target group.
- E Create a certificate for service-alb.example.com by using AWS Certificate Manager (ACM). On the ALB add a new HTTPS listener that uses the new target group and the service-alb.example.com ACM certificate. Modify the CloudFront origin to use the HTTPS protocol only. Delete the HTTP listener on the ALB.
- F Create a self-signed certificate for service-alb.example.com. Import the certificate into AWS Certificate Manager (ACM). On the ALB add a new HTTPS listener that uses the new target group and the imported service-alb.example.com ACM certificate. Modify the CloudFront origin to use the HTTPS protocol only. Delete the HTTP listener on the ALB.
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 một trang web tin tức toàn cầu sử dụng Amazon CloudFront làm CDN, backend chạy trên Amazon EC2 Windows instances thuộc Auto Scaling group, phía trước là Application Load Balancer (ALB). Khách hàng truy cập qua domain tùy chỉnh service.example.com trên CloudFront, và origin của CloudFront trỏ đến ALB với domain service-alb.example.com.
Yêu cầu bảo mật chính: Traffic phải được mã hóa (encrypted) trong quá trình truyền (in transit) mọi lúc từ users → CloudFront → ALB → EC2 (backend). Nghĩa là cần end-to-end encryption:
- Users → CloudFront: HTTPS với cert hợp lệ cho domain public.
- CloudFront → ALB: HTTPS (không HTTP).
- ALB → EC2: HTTPS qua target group HTTPS (vì mặc định ALB dùng HTTP đến instances).
Câu hỏi yêu cầu chọn 3 thay đổi kết hợp để đáp ứng. Đây là kịch bản thực tế trong AWS, dựa trên best practices năm 2024-2026 (CloudFront hỗ trợ ACM integration mượt mà, ALB hỗ trợ HTTPS targets với cert validation linh hoạt).
📘 Tài liệu tham khảo:
- AWS CloudFront SSL/TLS: docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cnames-and-ssl.html
- ALB HTTPS Listeners & Targets: docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
- ACM for ALB/CloudFront: docs.aws.amazon.com/acm/latest/userguide/acm-overview.html
- Target Groups HTTPS: docs.aws.amazon.com/elasticloadbalancing/latest/application/target-group-configurations.html#target-group-https
✅ Đáp án đúng (Chọn 3 phương án sau)
Các phương án đúng là thứ 2, thứ 4 và thứ 5. Lý do chọn:
- Phương án 2: Đảm bảo users → CloudFront qua HTTPS với cert ACM public hợp lệ cho domain tùy chỉnh service.example.com (ACM free, auto-renew, trusted globally). Redirect HTTP → HTTPS enforce encryption từ client.
- Phương án 4: Đảm bảo ALB → EC2 qua HTTPS bằng target group mới (instance target type, HTTPS protocol). Sử dụng public cert từ third-party (có thể wildcard/any domain phù hợp internal traffic, vì ALB không strict SNI validation cho targets).
- Phương án 5: Đảm bảo CloudFront → ALB qua HTTPS (origin protocol HTTPS only), ALB thêm HTTPS listener với ACM cert cho service-alb.example.com, xóa HTTP listener để tránh plaintext.
Kết hợp 3 thay đổi này tạo end-to-end HTTPS chain, tuân thủ security policy mà không cần self-signed (không trusted/ best practice).
🛠️ 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 phương án một cách đầy đủ:
-
Phương án 1 ❌ (SAI):
Create a self-signed certificate for service.example.com. Import the certificate into AWS Certificate Manager (ACM). Configure CloudFront to use this imported SSL/TLS certificate. Change the default behavior to redirect HTTP to HTTPS.
❌ Lý do sai: Self-signed cert không được browser/clients tin cậy (không chain of trust), gây lỗi "untrusted certificate" cho users toàn cầu. CloudFront hỗ trợ imported cert nhưng ACM ưu tiên public cert (DNS/email validated). Không phù hợp production/security policy. -
Phương án 2 ✅ (ĐÚNG):
Create a certificate for service.example.com by using AWS Certificate Manager (ACM). Configure CloudFront to use this custom SSL/TLS certificate. Change the default behavior to redirect HTTP to HTTPS.
✅ Lý do đúng: ACM public cert miễn phí, auto-renew, tích hợp trực tiếp CloudFront (us-east-1 region). Cert match domain service.example.com, redirect enforce HTTPS từ users. Hoàn hảo cho public-facing CDN (cập nhật 2024+ hỗ trợ ACM PCA cho advanced). -
Phương án 3 ❌ (SAI):
Create a certificate with any domain name by using AWS Certificate Manager (ACM) for the EC2 instances. Configure the backend to use this certificate for its HTTPS listener. Specify the instance target type during the creation of a new target group that uses the HTTPS protocol for its targets. Attach the existing Auto Scaling group to this new target group.
❌ Lý do sai: ACM public cert yêu cầu domain validation (DNS/email), không thể tạo "any domain name" tùy ý. Nếu dùng ACM Private CA thì ok internal, nhưng option ám chỉ public ACM (không specify private). ALB HTTPS targets cần cert trên EC2 nhưng không enforce domain match strict, tuy nhiên không feasible với ACM public. -
Phương án 4 ✅ (ĐÚNG):
Create a public certificate from a third-party certificate provider with any domain name for the EC2 instances. Configure the backend to use this certificate for its HTTPS listener. Specify the instance target type during the creation of a new target group that uses the HTTPS protocol for its targets. Attach the existing Auto Scaling group to this new target group.
✅ Lý do đúng: Third-party public cert (như Let's Encrypt/DigiCert) cho phép "any domain" (wildcard/internal), install trên EC2 Windows (IIS). Target group HTTPS + instance type + attach ASG enable ALB → EC2 encrypted. ALB verify cert optional (health checks ignore SNI mismatch), phù hợp end-to-end encryption. -
Phương án 5 ✅ (ĐÚNG):
Create a certificate for service-alb.example.com by using AWS Certificate Manager (ACM). On the ALB add a new HTTPS listener that uses the new target group and the service-alb.example.com ACM certificate. Modify the CloudFront origin to use the HTTPS protocol only. Delete the HTTP listener on the ALB.
✅ Lý do đúng: ACM cert match service-alb.example.com (ALB domain), HTTPS listener + target group mới. CloudFront origin "HTTPS only" + xóa HTTP listener enforce no plaintext. Tích hợp chuẩn (ALB in us-east-1+ regions hỗ trợ ACM trực tiếp). -
Phương án 6 ❌ (SAI):
Create a self-signed certificate for service-alb.example.com. Import the certificate into AWS Certificate Manager (ACM). On the ALB add a new HTTPS listener that uses the new target group and the imported service-alb.example.com ACM certificate. Modify the CloudFront origin to use the HTTPS protocol only. Delete the HTTP listener on the ALB.
❌ Lý do sai: Self-signed không khuyến khích cho ALB (CloudFront có thể connect nhưng thiếu trust chain, dễ lỗi). ACM hỗ trợ import nhưng best practice dùng native ACM public/imported CA-signed. Security policy yêu cầu "at all times" encrypted nhưng self-signed kém an toàn hơn (không revocation check).
Kết luận 🎯: Kết hợp 2+4+5 là giải pháp tối ưu, chi phí thấp (ACM free), scalable với ASG, và tuân thủ AWS Well-Architected Security Pillar (2026 updates nhấn mạnh zero-trust encryption). Nếu deploy, test bằng AWS X-Ray tracing traffic! 🚀
The company's operations team notices that traffic is being routed only to the instances in the first Availability Zone.
What is the MOST operationally efficient solution to resolve this issue?
- A Enable the new Availability Zone on the NLB
- B Create a new NLB for the instances in the second Availability Zone
- C Enable proxy protocol on the NLB
- D Create a new target group with the instances in both Availability Zones
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 tình huống thực tế trong AWS:
Một công ty đang chạy ứng dụng trên các instance Amazon EC2 nằm sau Network Load Balancer (NLB). Solutions Architect đã thêm các instance EC2 mới vào Availability Zone (AZ) thứ hai để tăng tính sẵn sàng (high availability) cho ứng dụng. Các instance này đã được thêm vào target group của NLB.
Tuy nhiên, đội ngũ operations phát hiện traffic chỉ được route đến các instance ở AZ đầu tiên, không phân bổ đến AZ thứ hai.
Vấn đề cốt lõi 🛠️: NLB yêu cầu phải enable (kích hoạt) các AZ cụ thể trên chính NLB listener để có thể forward traffic đến các subnet/AZ đó. Việc chỉ thêm target (EC2 instances) vào target group là không đủ nếu AZ chưa được enable trên NLB. Theo tài liệu AWS mới nhất (cập nhật đến 2026, Elastic Load Balancing User Guide), NLB chỉ hỗ trợ traffic routing đến các AZ đã được đăng ký khi tạo hoặc chỉnh sửa NLB.
Mục tiêu: Tìm giải pháp hiệu quả nhất về mặt vận hành (operationally efficient) để khắc phục, nghĩa là đơn giản, ít thay đổi hạ tầng, chi phí thấp và nhanh chóng triển khai.
✅ Đáp án đúng: Enable the new Availability Zone on the NLB
Lý do lựa chọn 📘:
Đây là giải pháp tối ưu và trực tiếp nhất! Khi tạo NLB, bạn chỉ chọn một số AZ cụ thể (thường là AZ đầu tiên). Để NLB route traffic đến AZ mới, cần enable AZ thứ hai trên NLB qua AWS Console, CLI hoặc CDK/Terraform. Sau khi enable, NLB sẽ tự động tạo subnet mapping và forward traffic đến targets ở AZ đó (với thuật toán least outstanding requests hoặc flow hash).
Quá trình chỉ mất vài phút, không downtime, và tuân thủ best practice HA của AWS (ít nhất 2 AZ). Không cần thay đổi target group hay tạo tài nguyên mới.
Dẫn chứng 🔗:
- AWS Docs: Enable an Availability Zone for your load balancer (Network Load Balancers - Availability Zones, cập nhật 2025).
- AWS Well-Architected Framework: Pillar Reliability khuyến nghị enable multi-AZ cho NLB.
📋 Giải thích tất cả các phương án (sử dụng emoji để phân loại ✅ Đúng / ❌ Sai)
-
Enable the new Availability Zone on the NLB ✅ ĐÚNG
🟢 Giải pháp chính xác vì NLB chỉ route traffic đến AZ đã enable. Thêm targets vào target group không tự động kích hoạt AZ. Sau khi enable, traffic sẽ cân bằng ngay lập tức. Hiệu quả cao: 1 bước config, zero downtime. -
Create a new NLB for the instances in the second Availability Zone ❌ SAI
🔴 Không hiệu quả! Tạo NLB mới nghĩa là duplicate hạ tầng, tăng chi phí (NLB charge theo giờ + LCU), phức tạp DNS/Route 53 routing, và khó quản lý. Vi phạm nguyên tắc "least privilege" và operational efficiency. -
Enable proxy protocol on the NLB ❌ SAI
🔴 Không liên quan! Proxy Protocol chỉ dùng để preserve source IP khi NLB forward traffic qua proxy (như HAProxy), không ảnh hưởng routing đến AZ. Vấn đề ở đây là AZ enable, không phải IP visibility. -
Create a new target group with the instances in both Availability Zones ❌ SAI
🔴 Vô ích vì target group đã có instances từ cả 2 AZ (theo mô tả). Vấn đề gốc là NLB chưa enable AZ thứ 2, nên dù target group đầy đủ, traffic vẫn không đến. Tạo target group mới chỉ tăng redundancy không cần thiết.
Kết luận 🚀: Giải pháp đúng giúp ứng dụng đạt 99.99% availability theo SLA NLB. Khuyến nghị test bằng AWS Load Testing tools như Locust hoặc kiểm tra CloudWatch metrics (TargetResponseTime, HealthyHostCount per AZ). Nếu triển khai IaC, dùng AWS CDK: nlb.addAvailabilityZone(az2Subnet).
In addition to the primary network interface the network appliance requires a second network interface that will be used exclusively by the application to exchange traffic with hosts over the internet. The company has set up a Bring Your Own IP (BYOIP) pool that includes an Elastic IP address that should be used as the public IP address for the second network interface.
How can the network engineer implement the required architecture?
- A Configure the two network interfaces in the launch template. Define the primary network interface to be created in one of the private subnets. For the second network interface, select one of the public subnets. Choose the BYOIP pool ID as the source of public IP addresses.
- B Configure the primary network interface in a private subnet in the launch template. Use the user data option to run a cloud-init script after boot to attach the second network interface from a subnet with auto-assign public IP addressing enabled.
- C Create an AWS Lambda function to run as a lifecycle hook of the Auto Scaling group when an instance is launching. In the Lambda function, assign a network interface to an AWS Global Accelerator endpoint.
- D During creation of the Auto Scaling group, select subnets for the primary network interface. Use the user data option to run a cloud-init script to allocate a second network interface and to associate an Elastic IP address from the BYOIP pool.
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 một Amazon EC2 Auto Scaling group (ASG) cho một network appliance dựa trên Linux trong kiến trúc highly available (HA). Kỹ sư mạng cần cấu hình launch template mới cho ASG này với các yêu cầu cụ thể sau:
- Giao diện mạng chính (primary network interface - ENI): Được sử dụng mặc định.
- Giao diện mạng thứ hai (secondary ENI): Dành riêng cho ứng dụng trao đổi traffic với các host qua Internet, và phải sử dụng Elastic IP (EIP) từ Bring Your Own IP (BYOIP) pool mà công ty đã thiết lập.
📌 Mục tiêu chính: Đảm bảo secondary ENI có public IP từ BYOIP pool (không phải auto-assign public IP thông thường từ AWS), và toàn bộ kiến trúc phải hỗ trợ Auto Scaling một cách tự động, scalable.
🛠️ Bối cảnh AWS cập nhật đến 2026: Launch template hỗ trợ multiple ENIs (từ 2020), nhưng không thể trực tiếp assign EIP/BYOIP vào secondary ENI trong template. BYOIP yêu cầu provision qua AWS và associate EIP động (thường qua script). ASG lifecycle hooks hỗ trợ tùy chỉnh launch, nhưng ưu tiên user data cho script cloud-init trên Linux instances.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: During creation of the Auto Scaling group, select subnets for the primary network interface. Use the user data option to run a cloud-init script to allocate a second network interface and to associate an Elastic IP address from the BYOIP pool.
Lý do chi tiết:
- Khi tạo ASG, chỉ định subnets cho primary ENI trong launch template/ASG settings (hỗ trợ private subnets cho HA).
- User data với cloud-init script (phù hợp Linux) chạy sau boot: Tự động tạo ENI thứ hai (từ public subnet), allocate EIP từ BYOIP pool (sử dụng AWS CLI như
aws ec2 allocate-address --domain vpc --address-pool <BYOIP-pool-id>vàaws ec2 associate-address), đảm bảo tự động hóa hoàn toàn cho mọi instance mới trong ASG. - ✅ Ưu điểm: Hỗ trợ Auto Scaling động, không phụ thuộc launch template cố định, và BYOIP được associate chính xác. Đây là best practice cho custom multi-ENI với EIP cụ thể (theo AWS Well-Architected Framework - Reliability pillar).
❌ Phân tích tất cả các phương án
Dưới đây là giải thích từng lựa chọn một cách chi tiết:
-
Configure the two network interfaces in the launch template. Define the primary network interface to be created in one of the private subnets. For the second network interface, select one of the public subnets. Choose the BYOIP pool ID as the source of public IP addresses.
❌ Sai vì: Launch template hỗ trợ định nghĩa multiple ENIs (device index 0 cho primary, 1 cho secondary, subnet riêng), nhưng không có option "Choose the BYOIP pool ID as the source of public IP addresses". Public IP chỉ hỗ trợ "auto-assign" (disable/enable) từ AWS pool, không trực tiếp từ BYOIP. BYOIP cần allocate EIP riêng sau launch. -
Configure the primary network interface in a private subnet in the launch template. Use the user data option to run a cloud-init script after boot to attach the second network interface from a subnet with auto-assign public IP addressing enabled.
❌ Sai vì: User data script để attach secondary ENI là đúng hướng (sử dụngaws ec2 create-network-interfacevàattach), nhưng "auto-assign public IP" chỉ cấp IP từ AWS pool, không phải EIP cụ thể từ BYOIP. Yêu cầu bắt buộc BYOIP, nên phương án này không đáp ứng (thiếu associate EIP từ pool). -
Create an AWS Lambda function to run as a lifecycle hook of the Auto Scaling group when an instance is launching. In the Lambda function, assign a network interface to an AWS Global Accelerator endpoint.
❌ Sai vì: ASG lifecycle hooks (Pending:Wait) có thể trigger Lambda để tùy chỉnh launch, nhưng assign ENI to Global Accelerator endpoint hoàn toàn không liên quan. Global Accelerator dùng cho global traffic routing/acceleration, không phải tạo/attach ENI hoặc associate BYOIP. Phức tạp hóa không cần thiết, không giải quyết core yêu cầu. -
During creation of the Auto Scaling group, select subnets for the primary network interface. Use the user data option to run a cloud-init script to allocate a second network interface and to associate an Elastic IP address from the BYOIP pool.
✅ Đúng như đã giải thích ở trên: Kết hợp ASG subnet selection + user data script là cách tối ưu, tự động cho multi-ENI với BYOIP trong Auto Scaling.
📘 Tài liệu tham khảo (AWS cập nhật 2026)
- Launch Templates & Multi-ENI: AWS Docs - Network interfaces for EC2 instances & Launch template limitations.
- BYOIP & EIP Association: Bring Your Own IP (BYOIP) - Sử dụng CLI
allocate-addressvới--address-pool. - User Data & Cloud-Init: Run commands on launch & Auto Scaling user data.
- ASG Best Practices: AWS Auto Scaling Guide.
🛠️ Lời khuyên: Test script cloud-init trong EC2 standalone trước khi apply ASG để tránh downtime!
A network engineer is working on a new version of one of the applications. All the application's components are hosted in the AWS Cloud. The application has a three-tier design. The front end is delivered through Amazon EC2 instances that are deployed in public subnets with Elastic IP addresses assigned. The backend components are deployed in private subnets from RFC1918.
Components of the application need to be able to access other components of the application within the application's VPC by using the same host names as the host names that are used over the public internet. The network engineer also needs to accommodate future DNS changes, such as the introduction of new host names or the retirement of DNS entries.
Which combination of steps will meet these requirements? (Choose three.)
- A Add a geoproximity routing policy in Route 53.
- B Create a Route 53 private hosted zone for the same domain name Associate the application’s VPC with the new private hosted zone.
- C Enable DNS hostnames for the application's VPC.
- D Create entries in the private hosted zone for each name in the public hosted zone by using the corresponding private IP addresses.
- E Create an Amazon EventBridge (Amazon CloudWatch Events) rule that runs when AWS CloudTrail logs a Route 53 API call to the public hosted zone. Create an AWS Lambda function as the target of the rule. Configure the function to use the event information to update the private hosted zone.
- F Add the private IP addresses in the existing Route 53 public hosted zone.
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 cung cấp ứng dụng qua internet, sử dụng Amazon Route 53 public hosted zone làm dịch vụ DNS chính thức (authoritative) cho domain chung của tất cả ứng dụng. Một kỹ sư mạng đang phát triển phiên bản mới của ứng dụng, với kiến trúc 3-tier hoàn toàn trên AWS Cloud:
- Front-end: EC2 instances trong public subnets, sử dụng Elastic IP addresses (EIP) để expose ra internet.
- Backend components: Triển khai trong private subnets (sử dụng dải IP RFC1918, không route trực tiếp ra internet).
Yêu cầu chính:
- Các thành phần ứng dụng trong VPC phải resolve và truy cập lẫn nhau bằng cùng hostname như khi truy cập từ public internet (ví dụ: app.example.com resolve nội bộ đến private IP thay vì public EIP).
- Hỗ trợ thay đổi DNS tương lai linh hoạt (thêm hostname mới, xóa entry cũ) mà không ảnh hưởng đến public DNS.
Vấn đề cốt lõi: Split DNS – public hosted zone chỉ resolve public IP (EIP), cần private DNS riêng cho internal traffic trong VPC sử dụng private IP, đồng thời đồng bộ với public để giữ hostname thống nhất. Câu hỏi yêu cầu chọn 3 steps kết hợp để đáp ứng (theo best practice AWS Route 53 năm 2024-2026). 🛠️
✅ Đáp án đúng (Chọn 3 phương án sau)
Dựa trên tài liệu AWS Route 53 mới nhất (2026), giải pháp chuẩn là tạo private hosted zone song song với public zone, associate với VPC, enable DNS hostnames, và manually/automate sync records private IP. Lý do chọn:
-
Create a Route 53 private hosted zone for the same domain name. Associate the application’s VPC with the new private hosted zone.
✅ Tạo private hosted zone cùng domain để override public resolution chỉ trong VPC. Associate VPC kích hoạt resolution nội bộ → instances resolve hostname đến private IP. Hỗ trợ future changes vì zone riêng biệt. -
Enable DNS hostnames for the application's VPC.
✅ Bật DNS hostnames/resolution trong VPC (VPC settings) để EC2 có hostname mặc định và Route 53 resolver hoạt động đúng, resolve private zone records. Không bật → DNS queries từ instances thất bại. -
Create entries in the private hosted zone for each name in the public hosted zone by using the corresponding private IP addresses.
✅ Tạo A records trong private zone map hostname public → private IP (của EC2 backend). Đảm bảo internal traffic dùng private IP an toàn, nhanh, hỗ trợ thêm/xóa records dễ dàng cho future changes.
Kết hợp 3 bước này tạo split-horizon DNS hoàn chỉnh: Public users → public IP, internal VPC → private IP, cùng hostname. 📘 Tài liệu tham khảo: AWS Route 53 Docs - "Private hosted zones" (docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zones-private.html, cập nhật 2025); VPC DNS resolution (docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html).
📋 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 tiếng Anh. Mỗi phương án được đánh giá dựa trên yêu cầu (internal resolution + future changes), sử dụng kiến thức AWS 2026 (không có thay đổi lớn về Route 53 private zones).
-
Add a geoproximity routing policy in Route 53.
❌ Sai: Geoproximity policy chỉ dùng cho public traffic routing dựa trên vị trí địa lý (latency/traffic flow), không giải quyết internal DNS resolution trong VPC. Không liên quan đến private IP hoặc split DNS, sẽ làm phức tạp public zone vô ích. -
Create a Route 53 private hosted zone for the same domain name. Associate the application’s VPC with the new private hosted zone.
✅ Đúng: Private hosted zone cùng domain override public records chỉ trong VPC đã associate. Instances query DNS → resolve private zone trước (priority cao). Linh hoạt cho future changes vì manage riêng. Bước bắt buộc đầu tiên. -
Enable DNS hostnames for the application's VPC.
✅ Đúng: Trong VPC attributes, enable "DNS hostnames" và "DNS resolution" (mặc định on từ 2016, nhưng phải confirm). Cho phép EC2 có FQDN và resolver gửi query đến Route 53 private zones. Thiếu → instances không resolve hostname nội bộ. -
Create entries in the private hosted zone for each name in the public hosted zone by using the corresponding private IP addresses.
✅ Đúng: Tạo records (A/AAAA) trong private zone mirror public nhưng dùng private IP (RFC1918). Đảm bảo front-end gọi backend bằng hostname → private IP an toàn. Dễ thêm/xóa cho new/retire hostnames. -
Create an Amazon EventBridge (Amazon CloudWatch Events) rule that runs when AWS CloudTrail logs a Route 53 API call to the public hosted zone. Create an AWS Lambda function as the target of the rule. Configure the function to use the event information to update the private hosted zone.
❌ Sai: Ý tưởng automate sync public → private zone qua CloudTrail/EventBridge/Lambda hay, nhưng quá phức tạp, không bắt buộc và có latency (async). Manual create entries đơn giản hơn, đủ cho yêu cầu. AWS recommend manual hoặc Route 53 Resolver rules (không phải cách này). Có thể dùng nhưng không phải "combination" chuẩn. -
Add the private IP addresses in the existing Route 53 public hosted zone.
❌ Sai: Public hosted zone expose public IP chỉ (EIP). Thêm private IP (RFC1918) vào public records → không route được từ internet (unroutable), gây resolve sai cho public users và bảo mật rò rỉ. Vi phạm nguyên tắc public/private separation.
Tóm tắt: 3 ✅ tạo giải pháp tối ưu, scalable, low-cost. Không cần automation phức tạp trừ khi scale lớn. 🛠️ Nguồn bổ sung: AWS Well-Architected Framework - Reliability Pillar (Route 53 section, 2026); Exam DOP-C02 sample questions.
Which solution will meet these requirements?
- A Choose a Gateway Load Balancer (GLB) as the type of load balancer for the ECS service. Create a lifecycle hook to add new tasks to the target group from Amazon ECS as required to handle scaling. Specify the GLB in the service definition. Create a VPC peer for external AWS accounts. Update the route tables so that the AWS accounts can reach the GLB.
- B Choose an Application Load Balancer (ALB) as the type of load balancer for the ECS service. Create path-based routing rules to allow the application to target the containers that are registered in the target group. Specify the ALB in the service definition. Create a VPC endpoint service for the ALB Share the VPC endpoint service with other AWS accounts.
- C Choose an Application Load Balancer (ALB) as the type of load balancer for the ECS service. Create path-based routing rules to allow the application to target the containers that are registered in the target group. Specify the ALB in the service definition. Create a VPC peer for the external AWS accounts. Update the route tables so that the AWS accounts can reach the ALB.
- D Choose a Network Load Balancer (NLB) as the type of load balancer for the ECS service. Specify the NLB in the service definition. Create a VPC endpoint service for the NLB. Share the VPC endpoint service with other AWS accounts.
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 đang triển khai ứng dụng sử dụng các container trên Amazon ECS cluster với Fargate launch type (mô hình serverless, không quản lý EC2). Các container chạy workload yêu cầu kết nối SSL được khởi tạo (clients từ bên ngoài initiate kết nối SSL/TLS đến ứng dụng). Yêu cầu chính:
- Traffic đến từ các AWS accounts khác qua private connectivity (không qua public internet, sử dụng mạng AWS private).
- Ứng dụng phải scale dễ quản lý khi có thêm consumers (sử dụng ECS service auto-scaling). 🛠️ Yêu cầu kỹ thuật cốt lõi:
- Load balancer phù hợp với ECS Fargate (hỗ trợ target groups tự động register/unregister tasks khi scale).
- Hỗ trợ SSL/TLS termination hoặc passthrough.
- Private access cross-account: Ưu tiên VPC Endpoint Service (AWS PrivateLink) để share service privately mà không cần VPC Peering (peering phức tạp, không scale tốt cho multi-account). 📘 Kiến thức cập nhật 2026: Theo AWS re:Post và docs mới nhất (2024-2026), VPC Endpoint Services chỉ hỗ trợ NLB hoặc GWLB làm load balancer chính. ALB không hỗ trợ trực tiếp làm endpoint service NLB. ECS Fargate yêu cầu load balancer internal cho private traffic.
✅ Đáp án đúng
Choose a Network Load Balancer (NLB) as the type of load balancer for the ECS service. Specify the NLB in the service definition. Create a VPC endpoint service for the NLB. Share the VPC endpoint service with other AWS accounts.
Lý do chọn đáp án này 🏆:
- NLB (Layer 4) lý tưởng cho ECS Fargate: Hỗ trợ TCP/TLS listeners (passthrough SSL đến containers), auto-register tasks vào target group khi ECS service scale (sử dụng
loadBalancerstrong service definition). - VPC Endpoint Service cho NLB (AWS PrivateLink): Cho phép các AWS accounts khác tạo VPC Endpoint (Interface Endpoint) để access NLB privately qua mạng AWS backbone, không public IP/DNS. Share qua AWS Resource Access Manager (RAM) hoặc AWS Organizations.
- Đáp ứng đầy đủ: SSL initiated (NLB TLS passthrough), private cross-account, scale tự động (ECS handles).
- ✅ Hoàn hảo cho Fargate: Không cần quản lý servers, traffic private end-to-end.
📋 Giải thích tất cả các phương án
Dưới đây là phân tích từng lựa chọn (giữ nguyên văn bản gốc). Tôi đánh dấu ✅ đúng hoặc ❌ sai, kèm lý do chi tiết dựa trên AWS best practices 2026.
-
Choose a Gateway Load Balancer (GLB) as the type of load balancer for the ECS service. Create a lifecycle hook to add new tasks to the target group from Amazon ECS as required to handle scaling. Specify the GLB in the service definition. Create a VPC peer for external AWS accounts. Update the route tables so that the AWS accounts can reach the GLB.
❌ Sai hoàn toàn:- GLB dành cho virtual appliances (firewalls, IDS), không phải ứng dụng container thông thường. Không hỗ trợ HTTP/SSL app traffic.
- Lifecycle hook dùng cho ASG (EC2), không cần/không phù hợp ECS Fargate (ECS tự register tasks).
- VPC Peering kém scale cho multi-account, cần update route tables thủ công phức tạp. ❌ Không match workload.
-
Choose an Application Load Balancer (ALB) as the type of load balancer for the ECS service. Create path-based routing rules to allow the application to target the containers that are registered in the target group. Specify the ALB in the service definition. Create a VPC endpoint service for the ALB Share the VPC endpoint service with other AWS accounts.
❌ Sai ở bước cốt lõi:- ALB (Layer 7) hỗ trợ path-based routing và ECS Fargate tốt, nhưng không thể tạo VPC Endpoint Service trực tiếp cho ALB. AWS chỉ hỗ trợ NLB/GWLB làm load balancer cho PrivateLink (docs 2026). ALB cần NLB frontend để expose privately.
- Path-based thừa (không yêu cầu routing phức tạp). ❌ Không private cross-account đúng cách.
-
Choose an Application Load Balancer (ALB) as the type of load balancer for the ECS service. Create path-based routing rules to allow the application to target the containers that are registered in the target group. Specify the ALB in the service definition. Create a VPC peer for external AWS accounts. Update the route tables so that the AWS accounts can reach the ALB.
❌ Sai vì thiếu private native:- ALB phù hợp ECS/SSL, nhưng VPC Peering không lý tưởng: Phức tạp scale (limit 125 peering/VPC), route tables thủ công, không private end-to-end như PrivateLink. Multi-account peering dễ lỗi security.
- Path-based routing không cần thiết. ❌ Không meet "private connectivity" best practice.
📘 Tài liệu tham khảo (AWS Docs cập nhật 2026)
- VPC Endpoint Services: docs.aws.amazon.com/vpc/latest/privatelink/create-endpoint-service.html → Xác nhận chỉ NLB/GWLB.
- ECS Fargate + Load Balancing: docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.html.
- NLB TLS Passthrough: docs.aws.amazon.com/elasticloadbalancing/latest/network/load-balancer-listeners.html.
- AWS Well-Architected Framework: Reliability Pillar → PrivateLink cho cross-account.
🛠️ Kết luận: NLB + PrivateLink là solution serverless, scalable, secure nhất cho ECS Fargate! Nếu cần lab, dùng AWS Console deploy demo. 🚀
The company wants to perform testing to determine whether users who receive product recommendations spend more money than users who do not receive product recommendations. The company has a big sales event in 5 days and needs to integrate its existing production environment with the recommendation engine by then. The existing production environment is hosted in a VPC with a CIDR block of 192.168.128 0/17.
A network engineer must integrate the systems by designing a solution that results in the least possible disruption to the existing environments.
Which solution will meet these requirements?
- A Create a VPC peering connection between the web service VPC and the existing production VPC. Add a routing rule to the appropriate route table to allow data to flow to 192.168.224.0/19 from the existing production environment and to flow to 192.168.128.0/17 from the web service environment. Configure the relevant security groups and ACLs to allow the systems to communicate.
- B Ask the development team of the web service to redeploy the web service into the production VPC and integrate the systems there.
- C Create a VPC endpoint service. Associate the VPC endpoint service with the NLB for the web service. Create an interface VPC endpoint for the web service in the existing production VPC.
- D Create a transit gateway in the existing production environment. Create attachments to the production VPC and the web service VPC. Configure appropriate routing rules in the transit gateway and VPC route tables for 192.168.224.0/19 and 192.168.128.0/17. Configure the relevant security groups and ACLs to allow the systems to communicate.
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 tích hợp một web service khuyến nghị sản phẩm mới (chạy trên EC2 instances trong Auto Scaling Group, sau NLB) từ VPC có CIDR 192.168.224.0/19 vào môi trường production hiện tại trong VPC có CIDR 192.168.128.0/17.
📌 Bối cảnh chính:
- Công ty cần kiểm tra A/B testing để xem người dùng nhận khuyến nghị có chi tiêu nhiều hơn không (tích hợp nhanh trước sự kiện bán hàng lớn chỉ trong 5 ngày).
- Yêu cầu: Giải pháp ít disruption nhất cho môi trường hiện tại (không thay đổi lớn, không redeploy, tránh downtime).
- Vấn đề kỹ thuật cốt lõi: Hai VPC có CIDR block chồng chéo (overlap)! VPC web service (192.168.224.0/19) nằm hoàn toàn trong phạm vi VPC production (192.168.128.0/17, bao quát từ 192.168.128.0 đến 192.168.255.255). Điều này loại bỏ các giải pháp yêu cầu non-overlapping CIDR như VPC Peering hoặc Transit Gateway.
🛠️ Mục tiêu: Kết nối production VPC truy cập web service mà không expose ra internet, đảm bảo private traffic, scalable (qua NLB + ASG), và nhanh chóng triển khai.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Create a VPC endpoint service. Associate the VPC endpoint service with the NLB for the web service. Create an interface VPC endpoint for the web service in the existing production VPC.
Lý do chọn:
- 🏆 Giải pháp sử dụng AWS PrivateLink (VPC Endpoint Service): Tạo endpoint service gắn với NLB của web service VPC (service VPC). Sau đó, tạo interface VPC endpoint trong production VPC (consumer VPC) để truy cập private qua AWS network.
- Ưu điểm vượt trội:
- ✅ Không yêu cầu CIDR non-overlapping: PrivateLink dùng Elastic Network Interfaces (ENI) trong consumer VPC, traffic flow private qua AWS backbone mà không cần route table peering.
- ✅ Ít disruption nhất: Không thay đổi VPC hiện tại, không redeploy code, chỉ config endpoint (deploy nhanh <5 ngày).
- ✅ Scalable & Secure: NLB xử lý load balancing, ASG scale tự động; traffic encrypted, không expose public.
- ✅ Phù hợp testing: Production có thể gọi web service qua endpoint DNS (powered by Route 53), dễ A/B test.
- Đây là best practice AWS cho cross-VPC private access với NLB (hỗ trợ đến 2026, AWS VPC Endpoint Services v2).
📋 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, giữ nguyên văn bản gốc tiếng Anh. Mỗi phương án được đánh giá dựa trên yêu cầu ít disruption, overlap CIDR, thời gian triển khai.
-
❌ [SAI] Create a VPC peering connection between the web service VPC and the existing production VPC. Add a routing rule to the appropriate route table to allow data to flow to 192.168.224.0/19 from the existing production environment and to flow to 192.168.128.0/17 from the web service environment. Configure the relevant security groups and ACLs to allow the systems to communicate.
- Lý do sai: VPC Peering KHÔNG hỗ trợ CIDR overlap (AWS docs cấm peering giữa overlapping ranges, traffic không route được). Phải config route table + SG/NACL, nhưng thất bại ngay từ đầu do overlap → không khả thi, disruption cao nếu thử sửa CIDR (thay đổi lớn).
-
❌ [SAI] Ask the development team of the web service to redeploy the web service into the production VPC and integrate the systems there.
- Lý do sai: Redeploy toàn bộ web service (EC2, ASG, NLB) vào production VPC gây disruption cực lớn: downtime, refactor code/network, test lại → vượt quá 5 ngày, vi phạm "least possible disruption". Không scalable riêng biệt cho dev/testing.
-
✅ [ĐÚNG] Create a VPC endpoint service. Associate the VPC endpoint service with the NLB for the web service. Create an interface VPC endpoint for the web service in the existing production VPC.
- Lý do đúng: Như phân tích trên. PrivateLink lý tưởng cho NLB cross-VPC, zero overlap issue, deploy nhanh (Console/CLI/Terraform), traffic private/high throughput. Hỗ trợ NLB từ 2018, ổn định đến 2026.
-
❌ [SAI] Create a transit gateway in the existing production environment. Create attachments to the production VPC and the web service VPC. Configure appropriate routing rules in the transit gateway and VPC route tables for 192.168.224.0/19 and 192.168.128.0/17. Configure the relevant security groups and ACLs to allow the systems to communicate.
- Lý do sai: AWS Transit Gateway KHÔNG hỗ trợ overlapping CIDR giữa attachments (route propagation fail). Phức tạp hơn (tạo TGW, attachments, routes), chi phí cao, thời gian deploy lâu → không "least disruption", kém PrivateLink cho trường hợp service-to-service đơn giản.
📘 Tài liệu tham khảo (AWS cập nhật 2026)
- AWS VPC Endpoint Services (PrivateLink): docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints.html – Hỗ trợ NLB, no CIDR overlap required.
- VPC Peering Limitations: docs.aws.amazon.com/vpc/latest/peering/peering-restrictions.html – Explicitly forbids overlapping CIDRs.
- Transit Gateway CIDR Overlap: docs.aws.amazon.com/vpc/latest/tgw/tgw-limitations.html – No support for overlapping routes.
- Exam Topic (DOP-C02): AWS Certified DevOps Engineer Professional – Networking & VPC Integration (2024-2026 blueprint).
Hy vọng phân tích này giúp bạn ôn thi hiệu quả! 🚀 Nếu cần demo Terraform code, hỏi thêm nhé!
The company has enabled IPv6 for the existing VPC by assigning a new IPv6 CIDR block to the VPC and by assigning IPv6 to the subnets for dual-stack support. The company has launched new Amazon EC2 instances for the new application in the updated subnets.
When updating the hybrid network to support IPv6 the network engineer must avoid making any changes to the current infrastructure. The network engineer also must block direct access to the instances' new IPv6 addresses from the internet. However, the network engineer must allow outbound internet access from the instances.
What is the MOST operationally efficient solution that meets these requirements?
- A Update the Direct Connect transit VIF and configure BGP peering with the AWS assigned IPv6 peering address. Create a new VPN connection that supports IPv6 connectivity. Add an egress-only internet gateway. Update any affected VPC security groups and route tables to provide connectivity within the VPC and between the VPC and the on-premises devices
- B Update the Direct Connect transit VIF and configure BGP peering with the AWS assigned IPv6 peering address. Update the existing VPN connection to support IPv6 connectivity. Add an egress-only internet gateway. Update any affected VPC security groups and route tables to provide connectivity within the VPC and between the VPC and the on-premises devices.
- C Create a Direct Connect transit VIF and configure BGP peering with the AWS assigned IPv6 peering address. Create a new VPN connection that supports IPv6 connectivity. Add an egress-only internet gateway. Update any affected VPC security groups and route tables to provide connectivity within the VPC and between the VPC and the on-premises devices.
- D Create a Direct Connect transit VIF and configure BGP peering with the AWS assigned IPv6 peering address. Create a new VPN connection that supports IPv6 connectivity. Add a NAT gateway. Update any affected VPC security groups and route tables to provide connectivity within the VPC and between the VPC and the on-premises devices.
Xem giải thích
🧩 Phân tích chi tiết nội dung câu hỏi
Câu hỏi tập trung vào việc cập nhật hybrid network hỗ trợ IPv6 cho ứng dụng mới được host trên Amazon EC2 trong VPC AWS, mà không thay đổi bất kỳ phần nào của hạ tầng hiện tại (current infrastructure bao gồm Transit Gateway kết nối các VPC, kết nối on-premises qua AWS Direct Connect và Site-to-Site VPN).
🔍 Tình huống cụ thể:
- On-premises devices đã hỗ trợ IPv6.
- VPC đã enable IPv6 (gán IPv6 CIDR block cho VPC và subnets dual-stack v4/v6).
- EC2 instances mới đã launch trong subnets IPv6.
- Yêu cầu chính:
- Tránh thay đổi hạ tầng hiện tại (không update/modify Direct Connect hoặc VPN existing).
- Block direct access IPv6 từ internet vào instances (không cho inbound IPv6 public).
- Allow outbound internet access IPv6 từ instances.
- Mục tiêu: Giải pháp operationally efficient nhất (tiết kiệm vận hành, ít can thiệp nhất).
🛠️ Kiến thức AWS liên quan (cập nhật 2026):
- Transit Gateway hỗ trợ IPv6 dual-stack từ 2020, propagate IPv6 routes.
- Direct Connect Transit VIF: Có thể tạo mới VIF riêng cho IPv6 mà không ảnh hưởng VIF IPv4 existing (AWS khuyến nghị để tránh downtime).
- Site-to-Site VPN: Hỗ trợ IPv6, nhưng để tránh change existing, tạo VPN connection mới.
- IPv6 security: Không có public IPv6 từ IGW (Internet Gateway chỉ inbound IPv6 nếu associate), dùng Egress-Only Internet Gateway (EIGW) để outbound IPv6 mà block inbound hoàn toàn.
- NAT Gateway không hỗ trợ IPv6 egress (chỉ IPv4 outbound từ private subnet).
- Cập nhật SG (Security Groups) và RT (Route Tables) để route IPv6 nội bộ VPC và hybrid (propagation qua Transit Gateway).
📘 Tài liệu tham khảo:
- AWS VPC IPv6 User Guide (Egress-Only IGW).
- Transit Gateway IPv6.
- Direct Connect IPv6 (Transit VIF mới cho IPv6).
- Site-to-Site VPN IPv6.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng:
Create a Direct Connect transit VIF and configure BGP peering with the AWS assigned IPv6 peering address. Create a new VPN connection that supports IPv6 connectivity. Add an egress-only internet gateway. Update any affected VPC security groups and route tables to provide connectivity within the VPC and between the VPC and the on-premises devices.
Lý do 🏆:
- Tạo mới Direct Connect Transit VIF IPv6 + BGP peering: Không thay đổi VIF existing (tuân thủ "avoid changes"), chỉ add VIF mới để hybrid IPv6 qua Transit Gateway.
- Tạo mới VPN connection IPv6: Không update VPN cũ, đảm bảo hybrid connectivity redundancy.
- Add Egress-Only Internet Gateway: Cho phép outbound IPv6 đến internet (instances initate connection), block inbound IPv6 từ internet hoàn toàn (không assign public IPv6).
- Update SG/RT: Cần thiết để route IPv6 nội bộ VPC và propagate đến Transit Gateway/on-premises (hiệu quả nhất).
- Operationally efficient: Ít rủi ro downtime, tận dụng Transit Gateway propagate routes tự động, phù hợp best practice AWS 2026.
❌ Phân tích tất cả các phương án (đúng/sai)
-
[SAI] Update the Direct Connect transit VIF and configure BGP peering with the AWS assigned IPv6 peering address. Create a new VPN connection that supports IPv6 connectivity. Add an egress-only internet gateway. Update any affected VPC security groups and route tables to provide connectivity within the VPC and between the VPC and the on-premises devices
❌ Sai vì: "Update the Direct Connect transit VIF" vi phạm yêu cầu không thay đổi hạ tầng hiện tại (có thể gây downtime BGP/IPv4 existing). AWS khuyến nghị tạo VIF mới thay vì update để tránh disruption. -
[SAI] Update the Direct Connect transit VIF and configure BGP peering with the AWS assigned IPv6 peering address. Update the existing VPN connection to support IPv6 connectivity. Add an egress-only internet gateway. Update any affected VPC security groups and route tables to provide connectivity within the VPC and the on-premises devices.
❌ Sai vì: Cả "Update Direct Connect transit VIF" và "Update existing VPN" đều thay đổi hạ tầng hiện tại, rủi ro cao (downtime BGP/VPN tunnel). Không efficient, vi phạm rõ ràng yêu cầu. -
[ĐÚNG] Create a Direct Connect transit VIF and configure BGP peering with the AWS assigned IPv6 peering address. Create a new VPN connection that supports IPv6 connectivity. Add an egress-only internet gateway. Update any affected VPC security groups and route tables to provide connectivity within the VPC and between the VPC and the on-premises devices.
✅ Đúng như giải thích ở trên: Tạo mới hoàn toàn (không update), dùng EIGW chuẩn IPv6, efficient nhất với Transit Gateway. -
[SAI] Create a Direct Connect transit VIF and configure BGP peering with the AWS assigned IPv6 peering address. Create a new VPN connection that supports IPv6 connectivity. Add a NAT gateway. Update any affected VPC security groups and route tables to provide connectivity within the VPC and the on-premises devices.
❌ Sai vì: "Add a NAT gateway" không hỗ trợ IPv6 egress (NAT chỉ cho IPv4 private-to-public). Không block inbound IPv6 đúng cách, và instances cần public subnet/IGW cho IPv6 outbound – vi phạm yêu cầu security và IPv6 support.
🛡️ Lời khuyên triển khai: Test trong sandbox VPC trước, monitor CloudWatch cho Transit Gateway IPv6 routes. Giải pháp này scale tốt cho hybrid multi-VPC!
What should the network engineer do to meet this requirement?
- A Change the ALB security policy to a policy that supports TLS 1.2 protocol only
- B Use AWS Key Management Service (AWS KMS) to encrypt session keys
- C Associate an AWS WAF web ACL with the ALBs. and create a security rule to enforce forward secrecy (FS)
- D Change the ALB security policy to a policy that supports forward secrecy (FS)
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 tập trung vào việc một kỹ sư mạng cần triển khai thêm các biện pháp bảo vệ cho dữ liệu đã mã hóa tại Application Load Balancers (ALBs) trên AWS. Yêu cầu cụ thể là sử dụng unique random session key (khóa phiên ngẫu nhiên duy nhất) để tăng cường bảo mật.
✅ Mục tiêu chính: Đảm bảo Forward Secrecy (FS) – hay còn gọi là Perfect Forward Secrecy (PFS) – trong giao thức TLS/SSL. FS sử dụng khóa phiên tạm thời (ephemeral keys, như ECDHE hoặc DHE) được tạo ngẫu nhiên cho từng kết nối client-server. Điều này bảo vệ dữ liệu mã hóa ngay cả khi khóa riêng tư dài hạn của server bị lộ sau này, vì mỗi session có khóa riêng biệt không thể suy ngược từ khóa master.
🛠️ Ngữ cảnh AWS: ALB hỗ trợ HTTPS listeners với các security policies (chính sách bảo mật) định nghĩa cipher suites và protocol versions. Một số policy như ELBSecurityPolicy-TLS-1-2-2017-01 hoặc mới hơn (cập nhật 2023-2026: ELBSecurityPolicy-TLS13-1-2-2021-06 trở lên) hỗ trợ FS bằng cách ưu tiên cipher suites ephemeral (ví dụ: ECDHE-RSA-AES128-GCM-SHA256). Không thay đổi policy, ALB mặc định có thể dùng non-FS ciphers như RSA key exchange, kém an toàn hơn.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Change the ALB security policy to a policy that supports forward secrecy (FS)
Lý do chi tiết:
✅ ALB cho phép tùy chỉnh security policy qua AWS Console, CLI hoặc CDK/Terraform để kích hoạt FS. Các policy hỗ trợ FS (như ELBSecurityPolicy-FS-1-2-Res-2020-10 hoặc ELBSecurityPolicy-TLS-1-3-2021-2022 – cập nhật mới nhất 2026) buộc sử dụng ephemeral Diffie-Hellman (DHE/ECDHE) cho session keys ngẫu nhiên, đáp ứng chính xác yêu cầu "unique random session key".
🛠️ Cách thực hiện: Sử dụng aws elbv2 modify-load-balancer-attributes hoặc Console > Listeners > Edit > Security policy. Kết quả: Tăng bảo mật dữ liệu encrypted tại ALB mà không cần thay đổi code ứng dụng.
📘 Tài liệu tham khảo:
- AWS Docs: Security policies for Application Load Balancers (cập nhật 2024-2026, liệt kê policy FS).
- AWS Well-Architected Framework: Security Pillar – TLS Best Practices.
❌ Phân tích tất cả các phương án (đúng/sai)
-
Change the ALB security policy to a policy that supports TLS 1.2 protocol only
❌ Sai: TLS 1.2 hỗ trợ FS nhưng không bắt buộc sử dụng ephemeral session keys. Policy chỉ TLS 1.2 (nhưELBSecurityPolicy-TLS-1-2-Ext-2018-06) vẫn cho phép non-FS ciphers (RSA key exchange). Không đáp ứng yêu cầu "unique random session key" vì không enforce FS. -
Use AWS Key Management Service (AWS KMS) to encrypt session keys
❌ Sai: AWS KMS dùng cho data at rest (mã hóa lưu trữ, ví dụ EBS/S3), không liên quan đến TLS session keys tại runtime của ALB. ALB tự quản lý TLS handshake và session keys qua security policy; KMS không hỗ trợ encrypt ephemeral keys động. Sử dụng KMS ở đây sẽ không khả thi và phức tạp hóa không cần thiết. -
Associate an AWS WAF web ACL with the ALBs. and create a security rule to enforce forward secrecy (FS)
❌ Sai: AWS WAF (Web Application Firewall) bảo vệ chống web exploits (SQLi, XSS), không kiểm soát TLS handshake hoặc enforce FS. WAF rules chỉ inspect HTTP/HTTPS traffic sau TLS termination, không can thiệp cipher suites hay session keys. Không có rule WAF nào hỗ trợ FS. -
Change the ALB security policy to a policy that supports forward secrecy (FS)
✅ Đúng: Như đã giải thích ở trên, đây là cách trực tiếp và chuẩn AWS để kích hoạt unique random session keys qua ephemeral ciphers. Hiệu quả cao, dễ triển khai, tuân thủ best practices bảo mật TLS 1.3/1.2 với FS (khuyến nghị AWS 2026).
A network engineer plans to deploy AWS Transit Gateway Connect and two SD-WAN virtual appliances to provide this connectivity. According to company policies, only a single SD-WAN virtual appliance can handle traffic from AWS workloads at a given time.
How should the network engineer configure routing to meet these requirements?
- A Add a static default route in the transit gateway route table to point to the secondary SD-WAN virtual appliance. Add routes that are more specific to point to the primary SD-WAN virtual appliance.
- B Configure the BGP community tag 7224:7300 on the primary SD-WAN virtual appliance for BGP routes toward the transit gateway.
- C Configure the AS_PATH prepend attribute on the secondary SD-WAN virtual appliance for BGP routes toward the transit gateway.
- D Disable equal-cost multi-path (ECMP) routing on the transit gateway for Transit Gateway Connect.
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi xoay quanh việc mở rộng giải pháp SD-WAN (software-defined WAN) để kết nối các workloads trên AWS. Công ty đã triển khai SD-WAN để kết nối các văn phòng, nay đang migrate workloads lên AWS và cần extend SD-WAN hỗ trợ kết nối này. Kỹ sư mạng dự định sử dụng AWS Transit Gateway Connect cùng hai SD-WAN virtual appliances (VA) để cung cấp connectivity.
📌 Yêu cầu chính từ chính sách công ty: Chỉ một SD-WAN VA duy nhất được phép xử lý traffic từ workloads AWS tại một thời điểm (tức là mô hình active/passive, ưu tiên primary VA, fallback sang secondary nếu primary fail).
🛠️ Vấn đề cần giải quyết: Cấu hình routing trên Transit Gateway Connect (sử dụng BGP peering với SD-WAN appliances) sao cho traffic từ AWS luôn ưu tiên đi qua primary VA, chỉ chuyển sang secondary VA khi cần thiết. Transit Gateway Connect hỗ trợ BGP dynamic routing, cho phép multiple peers nhưng cần cơ chế prefer route để tránh ECMP (equal-cost multi-path) load balancing giữa hai VA.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Configure the AS_PATH prepend attribute on the secondary SD-WAN virtual appliance for BGP routes toward the transit gateway.
Lý do chi tiết 🏆:
- Trong BGP (Border Gateway Protocol), AS_PATH prepend là kỹ thuật thêm nhiều AS number lặp lại vào AS_PATH attribute của route advertisement từ secondary VA. Điều này làm cho AS_PATH length của routes từ secondary dài hơn so với primary.
- Transit Gateway ưu tiên route có AS_PATH ngắn nhất (theo BGP best path selection algorithm). Do đó, routes từ primary VA (AS_PATH ngắn) sẽ luôn được chọn trước cho traffic từ AWS workloads.
- Khi primary fail, routes từ secondary sẽ được chọn (vì primary không advertise nữa). Đây là cách active/passive chuẩn cho SD-WAN với Transit Gateway Connect, đảm bảo chỉ một VA handle traffic tại một thời điểm mà không cần can thiệp thủ công.
- Phù hợp với kiến thức AWS mới nhất (2024-2026): Transit Gateway Connect hỗ trợ BGP attributes đầy đủ, bao gồm AS_PATH manipulation từ appliances.
📋 Giải thích tất cả các phương án
Dưới đây là phân tích từng phương án một cách chi tiết, giữ nguyên văn bản gốc bằng tiếng Anh. Tôi đánh dấu ✅ đúng / ❌ sai và giải thích rõ lý do bằng tiếng Việt:
-
Add a static default route in the transit gateway route table to point to the secondary SD-WAN virtual appliance. Add routes that are more specific to point to the primary SD-WAN virtual appliance.
❌ Sai: Static routes trên Transit Gateway route table không linh hoạt cho dynamic environments như SD-WAN. Default route (0.0.0.0/0) trỏ secondary sẽ override các specific routes từ primary nếu có conflict prefix, dẫn đến traffic không nhất quán. Hơn nữa, Transit Gateway Connect ưu tiên BGP dynamic routes over static, và việc mix static/dynamic dễ gây loop hoặc blackhole. Không đáp ứng active/passive tự động. -
Configure the BGP community tag 7224:7300 on the primary SD-WAN virtual appliance for BGP routes toward the transit gateway.
❌ Sai: BGP community 7224:7300 là AWS-specific community cho Transit Gateway nghĩa là "Restrict to Transit Gateway Local" (không advertise ra ngoài local TGW). Áp dụng lên primary sẽ ngăn routes từ primary propagate, khiến secondary được chọn trước – trái ngược yêu cầu ưu tiên primary. Community này dùng để control advertisement, không phải path selection/preference. -
Configure the AS_PATH prepend attribute on the secondary SD-WAN virtual appliance for BGP routes toward the transit gateway.
✅ Đúng: Như giải thích ở trên, prepend AS_PATH trên secondary làm routes kém hấp dẫn hơn (dài hơn), đảm bảo primary luôn thắng trong BGP best path. Hoàn hảo cho failover tự động mà chỉ một VA active, phù hợp policy. -
Disable equal-cost multi-path (ECMP) routing on the transit gateway for Transit Gateway Connect.
❌ Sai: Disable ECMP trên Transit Gateway Connect chỉ ngăn load balancing khi routes equal cost (ví dụ cùng MED, AS_PATH). Nhưng nếu cả hai VA advertise routes với cost bằng nhau, TGW vẫn chọn một path ngẫu nhiên hoặc fallback không controlled. Không đảm bảo primary preferred; cần thêm cơ chế như AS_PATH prepend để tạo unequal paths. ECMP disable không hỗ trợ active/passive rõ ràng.
📘 Tài liệu tham khảo (AWS cập nhật mới nhất 2024-2026)
- AWS Transit Gateway Connect Guide: Transit Gateway Connect attachments – Chi tiết BGP peering và path selection.
- BGP Best Path Algorithm: AWS BGP Communities for Transit Gateway – Giải thích AS_PATH, communities (7224:xxxx).
- SD-WAN Integration Best Practices: AWS Well-Architected Framework - Networking Pillar (2024 update), đề cập active/passive với AS_PATH prepend cho appliances như Cisco, VMware.
- Transit Gateway Developer Guide: Xác nhận hỗ trợ AS_PATH manipulation từ peer appliances (không thay đổi đến 2026).
Hy vọng phân tích này giúp bạn ôn thi DOP-C02 hiệu quả! 🚀 Nếu cần thêm ví dụ config, hỏi nhé!
Which solution will meet these requirements?
- A Create a new VPC for the SD-WAN hub virtual appliance. Create two IPsec VPN connections between the SD-WAN hub virtual appliance and the transit gateway. Configure BGP over the IPsec VPN connections
- B Assign a new CIDR block to the transit gateway. Create a new VPC for the SD-WAN hub virtual appliance. Attach the new VPC to the transit gateway with a VPC attachment. Add a transit gateway Connect attachment. Create a Connect peer and specify the GRE and BGP parameters. Create a route in the appropriate VPC for the SD-WAN hub virtual appliance to route to the transit gateway.
- C Create a new VPC for the SD-WAN hub virtual appliance. Attach the new VPC to the transit gateway with a VPC attachment. Create two IPsec VPN connections between the SD-WAN hub virtual appliance and the transit gateway. Configure BGP over the IPsec VPN connections.
- D Assign a new CIDR block to the transit gateway. Create a new VPC for the SD-WAN hub virtual appliance. Attach the new VPC to the transit gateway with a VPC attachment. Add a transit gateway Connect attachment. Create a Connect peer and specify the VXLAN and BGP parameters. Create a route in the appropriate VPC for the SD-WAN hub virtual appliance to route to the transit gateway.
Xem giải thích
🧩 Phân tích nội dung câu hỏi
Câu hỏi tập trung vào việc triển khai SD-WAN hub virtual appliance (thiết bị ảo trung tâm SD-WAN) trong môi trường AWS sử dụng AWS Transit Gateway. Công ty đang lên kế hoạch triển khai nhiều site SD-WAN, đã có Transit Gateway ở Region cần thiết. Nhiệm vụ của network engineer là đặt appliance này vào một VPC kết nối với Transit Gateway, và giải pháp phải đảm bảo throughput ít nhất 5 Gbps từ SD-WAN hub đến các VPC khác được attach vào Transit Gateway.
🔑 Yêu cầu chính:
- Kết nối hiệu quả giữa VPC chứa appliance và Transit Gateway.
- Hỗ trợ băng thông cao (≥5 Gbps), không bị giới hạn bởi các phương thức kết nối thông thường như IPsec VPN (thường chỉ ~1.25 Gbps/tunnel).
- Phù hợp với kiến thức AWS mới nhất (2024-2026): Transit Gateway Connect là giải pháp tối ưu cho virtual appliances như SD-WAN, hỗ trợ GRE encapsulation + BGP để đạt throughput lên đến 25 Gbps/peer (theo AWS Transit Gateway quotas).
📘 Tài liệu tham khảo:
- AWS Transit Gateway Connect Documentation (cập nhật 2024).
- Transit Gateway Quotas (throughput Connect peer: up to 25 Gbps).
- SD-WAN Integration with Transit Gateway.
✅ Đáp án đúng và lý do lựa chọn
Đáp án đúng: Phương án thứ 2 (Assign a new CIDR block to the transit gateway. Create a new VPC for the SD-WAN hub virtual appliance. Attach the new VPC to the transit gateway with a VPC attachment. Add a transit gateway Connect attachment. Create a Connect peer and specify the GRE and BGP parameters. Create a route in the appropriate VPC for the SD-WAN hub virtual appliance to route to the transit gateway.)
🛠️ Lý do chọn đáp án này:
- Transit Gateway Connect attachment + Connect peer với GRE và BGP là cách chuẩn để kết nối virtual appliances (như SD-WAN hub) với Transit Gateway, hỗ trợ throughput cao (≥5 Gbps, lên đến 25 Gbps/peer).
- Assign CIDR block mới cho Transit Gateway để tránh overlap route.
- VPC attachment cho phép traffic từ VPC đến Transit Gateway, kết hợp Connect peer (GRE tunnel) đảm bảo peering BGP hiệu quả.
- Route trong VPC hướng traffic đến Transit Gateway hoàn thiện luồng dữ liệu.
- Đây là best practice cho SD-WAN hub theo AWS Well-Architected Framework (2024+).
📋 Giải thích chi tiết từng phương án
-
Phương án 1 [SAI]
Create a new VPC for the SD-WAN hub virtual appliance. Create two IPsec VPN connections between the SD-WAN hub virtual appliance and the transit gateway. Configure BGP over the IPsec VPN connections
❌ Sai vì: Sử dụng IPsec VPN connections (Site-to-Site VPN) chỉ đạt throughput tối đa ~1.25 Gbps/tunnel (ngay cả với 2 tunnel cũng không đảm bảo 5 Gbps ổn định, do giới hạn AWS VPN). Không tận dụng Transit Gateway Connect, dẫn đến latency cao và không scale tốt cho SD-WAN hub. -
Phương án 2 [ĐÚNG]
Assign a new CIDR block to the transit gateway. Create a new VPC for the SD-WAN hub virtual appliance. Attach the new VPC to the transit gateway with a VPC attachment. Add a transit gateway Connect attachment. Create a Connect peer and specify the GRE and BGP parameters. Create a route in the appropriate VPC for the SD-WAN hub virtual appliance to route to the transit gateway.
✅ Đúng vì: Hoàn hảo khớp yêu cầu! Transit Gateway Connect với GRE encapsulation + BGP hỗ trợ high-throughput (25 Gbps/peer), lý tưởng cho SD-WAN. CIDR mới tránh conflict, VPC attachment + route đảm bảo kết nối full-mesh đến các VPC khác. -
Phương án 3 [SAI]
Create a new VPC for the SD-WAN hub virtual appliance. Attach the new VPC to the transit gateway with a VPC attachment. Create two IPsec VPN connections between the SD-WAN hub virtual appliance and the transit gateway. Configure BGP over the IPsec VPN connections.
❌ Sai vì: Kết hợp VPC attachment với IPsec VPN vẫn bị giới hạn throughput VPN (~1.25 Gbps/tunnel x2 = chưa đủ 5 Gbps ổn định). Không dùng Connect peer, nên không tối ưu cho appliance-based routing như SD-WAN. -
Phương án 4 [SAI]
Assign a new CIDR block to the transit gateway. Create a new VPC for the SD-WAN hub virtual appliance. Attach the new VPC to the transit gateway with a VPC attachment. Add a transit gateway Connect attachment. Create a Connect peer and specify the VXLAN and BGP parameters. Create a route in the appropriate VPC for the SD-WAN hub virtual appliance to route to the transit gateway.
❌ Sai vì: Transit Gateway Connect không hỗ trợ VXLAN encapsulation cho Connect peers (chỉ hỗ trợ GRE hoặc IPsec theo docs AWS 2024-2026). VXLAN dùng cho các use case khác (như VMware TGM), nên phương án này sẽ fail khi config, không đạt throughput yêu cầu.