Bẫy đề thi: kiến trúc đang dùng VGW muốn "giảm latency/jitter cho VPN" → phải chuyển VPN sang Transit Gateway attachment rồi mới bật Accelerated VPN. Đáp án chỉ "bật acceleration trên VGW" là sai.
Best for:
- Getting started with hybrid
- Lower bandwidth requirements (<1.25 Gbps)
- Quick setup needed
- Backup for Direct Connect
Limitations:
- Performance varies with internet
- Max ~1.25 Gbps per tunnel
Cập nhật 01/2024: Geoproximity trước đây chỉ tạo được qua Traffic Flow (traffic policy, tính phí). Từ tháng 1/2024, geoproximity là routing policy chuẩn — tạo trực tiếp như record thường trong public hoặc private hosted zone, qua console/API/CLI/CloudFormation. Traffic Flow chỉ còn cần khi muốn dùng visual editor hoặc kết hợp nhiều rule trong một traffic policy. Câu hỏi "geoproximity yêu cầu Traffic Flow" là kiến thức lỗi thời.
1. Endpoint Health Checks:
- HTTP/HTTPS/TCP
- Check specific endpoint
- Configure threshold
2. Calculated Health Checks:
- Combine multiple health checks
- AND, OR logic
3. CloudWatch Alarm Health Checks:
- Based on CloudWatch alarm state
- For private resources
2 tunnels per VPN connection — active-active (BGP) hoặc active-standby. Hai tunnels terminate ở 2 endpoints AWS khác nhau (different AZ) để HA. Mỗi tunnel max 1.25 Gbps. Cả hai tunnels nên được config trên Customer Gateway device. Nếu chỉ dùng 1 tunnel: không có redundancy phía AWS side. BGP ưu tiên tunnel với best path; non-BGP (static routing) thường dùng active-standby.
Accelerated VPN khác VPN thường như thế nào?
Xem đáp án
Accelerated VPN (Accelerated Site-to-Site VPN) route traffic qua AWS Global Accelerator anycast IPs — traffic vào AWS network tại Edge Location gần nhất, rồi traverse AWS backbone. Giảm latency và jitter so với routing toàn bộ qua public internet. Phù hợp cho: global on-premises offices cách xa AWS Region, latency-sensitive applications, gaming/VoIP qua VPN. Điều kiện: VPN connection phải attach vào Transit Gateway — Virtual Private Gateway không hỗ trợ accelerated VPN. Chi phí thêm Global Accelerator fee (~$0.025/giờ + data fees).
Client VPN dùng authentication methods nào?
Xem đáp án
3 methods: (1) Active Directory (AWS Managed Microsoft AD hoặc AD Connector — authenticate bằng corporate credentials), (2) Certificate-based (mutual TLS — client và server đều có certificates từ CA), (3) SAML-based federated authentication (Okta, Azure AD, Ping Identity). Có thể kết hợp AD + Certificate. Client VPN dùng OpenVPN protocol — compatible với nhiều VPN clients (AWS VPN Client, OpenVPN Connect).
VPN CloudHub dùng để làm gì?
Xem đáp án
VPN CloudHub cho phép nhiều on-premises sites giao tiếp với nhau qua AWS như một hub. Mỗi site có Site-to-Site VPN kết nối đến cùng VGW (Virtual Private Gateway). Traffic từ Site A → AWS VGW → Site B — AWS đóng vai trò trung gian. Phù hợp cho công ty có nhiều văn phòng cần kết nối với nhau mà không cần MPLS network riêng. Không phải service riêng — chỉ là architecture pattern với existing VPN.
Làm sao để tăng VPN bandwidth?
Xem đáp án
(1) Multiple VPN connections + ECMP qua Transit Gateway — nhiều connections parallel, aggregate bandwidth. (2) Accelerated VPN giảm latency nhưng không tăng throughput per tunnel. (3) Nếu cần > 10 Gbps: migrate sang Direct Connect (1G, 10G, hoặc 100G). Với TGW + ECMP: N VPN connections × 2 tunnels/connection × 1.25 Gbps/tunnel = N × 2.5 Gbps. Cần Customer Gateway device hỗ trợ ECMP và BGP.
8 routing policies của Route 53 là gì?
Xem đáp án
(1) Simple — single resource, no health check, (2) Weighted — % traffic theo weight, A/B testing, (3) Latency-based — route đến Region có lowest latency, (4) Failover — active-passive với health check, (5) Geolocation — route theo country/continent của user, (6) Geoproximity — route theo geographic proximity với bias -99..+99 (từ 01/2024 tạo trực tiếp trong hosted zone, không cần Traffic Flow), (7) Multivalue Answer — multiple healthy IPs, (8) IP-based — route theo client IP CIDR prefix (ra mắt 06/2022).
Geolocation khác Latency routing như thế nào?
Xem đáp án
Geolocation: route dựa trên địa lý vật lý (country, continent, subdivision) — user từ Vietnam luôn đến endpoint được assign cho Vietnam/Asia, bất kể latency. Dùng cho compliance (data residency), localization (show Vietnamese content), content restrictions. Latency-based: route đến Region có latency thấp nhất — user từ Vietnam có thể đến Singapore hay Tokyo tùy latency tốt hơn. Dùng cho performance optimization.
Health check types là gì?
Xem đáp án
3 types: (1) Endpoint health checks — monitor HTTP/HTTPS/TCP endpoint trực tiếp (Route 53 health checkers từ nhiều Regions), (2) Calculated health checks — combine status của multiple health checks (AND/OR logic), (3) CloudWatch alarm health checks — trạng thái dựa trên CloudWatch alarm state. Health check frequency: 30s (standard) hoặc 10s (fast, thêm chi phí). Cơ chế đánh giá: endpoint được coi là healthy khi > 18% health checkers (phân bố nhiều Regions) báo healthy; còn Failure Threshold (mặc định 3) là số lần check fail liên tiếp mà mỗi checker cần thấy trước khi báo unhealthy — hai khái niệm khác nhau, đừng nhầm.
Route 53 Resolver dùng để làm gì?
Xem đáp án
Route 53 Resolver là DNS resolver trong VPC (mặc định tại 169.254.169.253). Resolver Endpoints cho hybrid connectivity: Inbound Endpoint — on-premises DNS forward queries đến AWS để resolve Route 53 private zones; Outbound Endpoint — EC2 trong VPC forward queries đến on-premises DNS servers. Resolver Rules define which domains forward to which DNS servers. Cần cho Split-horizon DNS (same domain, different IPs internal vs external).
ALIAS record khác CNAME như thế nào?
Xem đáp án
CNAME: DNS standard, map hostname → hostname khác, không dùng được tại apex domain (example.com bare domain), tính phí query. ALIAS: Route 53 extension, map hostname → AWS resources (ALB DNS name, CloudFront, S3 website, API GW, Elastic Beanstalk), dùng được tại apex domain, không tính phí query riêng, support health check, AWS auto-update IP nếu resource IP thay đổi. Luôn ưu tiên ALIAS cho AWS resources.