Ngân hàng đề — AWS Certified Solutions Architect Professional

Tìm thấy 1221 câu.

Câu 921
A solutions architect is planning to migrate critical Microsoft SQL Server databases to AWS. Because the databases are legacy systems, the solutions architect will move the databases to a modern data architecture. The solutions architect must migrate the databases with near-zero downtime.

Which solution will meet these requirements?
  1. A Use AWS Application Migration Service and the AWS Schema Conversion Tool (AWS SCT). Perform an in-place upgrade before the migration. Export the migrated data to Amazon Aurora Serverless after cutover. Repoint the applications to Amazon Aurora.
  2. B Use AWS Database Migration Service (AWS DMS) to rehost the database. Set Amazon S3 as a target. Set up change data capture (CDC) replication. When the source and destination are fully synchronized, load the data from Amazon S3 into an Amazon RDS for Microsoft SQL Server DB instance.
  3. C Use native database high availability tools. Connect the source system to an Amazon RDS for Microsoft SQL Server DB instance. Configure replication accordingly. When data replication is finished, transition the workload to an Amazon RDS for Microsoft SQL Server DB instance.
  4. D Use AWS Application Migration Service. Rehost the database server on Amazon EC2. When data replication is finished, detach the database and move the database to an Amazon RDS for Microsoft SQL Server DB instance. Reattach the database and then cut over all networking.
Xem giải thích

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

Câu hỏi yêu cầu một giải pháp architect để di chuyển (migrate) các cơ sở dữ liệu Microsoft SQL Server quan trọng từ hệ thống legacy (cũ kỹ) sang AWS, đồng thời chuyển đổi sang kiến trúc dữ liệu hiện đại (modern data architecture). Yêu cầu then chốt là thực hiện migration với near-zero downtime (thời gian gián đoạn gần như bằng không), nghĩa là ứng dụng phải tiếp tục hoạt động mà không bị ngừng đột ngột.

  • Bối cảnh chính:
    • Database là SQL Server legacy → Cần migrate lên AWS (có thể là RDS for SQL Server để giữ tương thích).
    • Modern data architecture: Có thể ngụ ý tối ưu hóa, nhưng ưu tiên là rehost/replatform với HA (high availability) để hỗ trợ zero-downtime.
    • Near-zero downtime: Giải pháp phải hỗ trợ replication liên tục (change data capture - CDC hoặc native replication) để đồng bộ dữ liệu thời gian thực, sau đó cutover (chuyển đổi) nhanh chóng mà không mất dữ liệu.

Mục tiêu: Chọn giải pháp sử dụng công cụ AWS hỗ trợ replication native của SQL Server, đảm bảo tính sẵn sàng cao và downtime tối thiểu (dưới vài phút).

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

Đáp án đúng: Use native database high availability tools. Connect the source system to an Amazon RDS for Microsoft SQL Server DB instance. Configure replication accordingly. When data replication is finished, transition the workload to an Amazon RDS for Microsoft SQL Server DB instance.

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

  • Sử dụng native HA tools của SQL Server (như Always On Availability Groups - AG, Database Mirroring, Log Shipping) để thiết lập replication từ on-premises source sang Amazon RDS for SQL Server (target trên AWS).
  • RDS for SQL Server hỗ trợ native replication từ phiên bản SQL Server 2016 trở lên, cho phép CDC và continuous replication với lag thấp (gần real-time).
  • Quy trình: Kết nối source → Cấu hình replication → Đồng bộ đầy đủ → Cutover nhanh (failover/switch connection string), đạt near-zero downtime (thường <5 phút).
  • Phù hợp modern architecture: RDS cung cấp managed service với auto-scaling, backup, Multi-AZ, dễ mở rộng sang serverless hoặc tích hợp Aurora sau (nhưng giữ SQL Server để tương thích legacy).
  • Cập nhật 2026: AWS tiếp tục hỗ trợ RDS SQL Server v15+ với AG cross-region, tích hợp DMS nếu cần hybrid replication.

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

  • ❌ Phương án SAI: Use AWS Application Migration Service and the AWS Schema Conversion Tool (AWS SCT). Perform an in-place upgrade before the migration. Export the migrated data to Amazon Aurora Serverless after cutover. Repoint the applications to Amazon Aurora.

    • Lý do sai: AWS Application Migration Service (MGN - trước là MGN) dùng cho lift-and-shift VM/server, không tối ưu cho database migration (chỉ replicate block-level, không handle transaction consistency). SCT chỉ convert schema (cho non-compatible DB như Oracle→Aurora), không cần ở đây vì giữ SQL Server. In-place upgrade + export to Aurora Serverless gây downtime lớn (export/import mất hàng giờ/ngày), không near-zero. Cutover repoint app dễ mất dữ liệu nếu không sync.
  • ❌ Phương án SAI: Use AWS Database Migration Service (AWS DMS) to rehost the database. Set Amazon S3 as a target. Set up change data capture (CDC) replication. When the source and destination are fully synchronized, load the data from Amazon S3 into an Amazon RDS for Microsoft SQL Server DB instance.

    • Lý do sai: DMS hỗ trợ SQL Server → RDS SQL với CDC (full load + ongoing replication), nhưng S3 không phải target chuẩn cho DMS rehost (S3 chỉ dùng cho data unload/export, không replication real-time). Quy trình load từ S3 vào RDS sau sync gây downtime cao (batch load lớn). DMS trực tiếp target RDS mới đạt near-zero (validate + cutover), cách này lằng nhằng và không hiệu quả.
  • ✅ Phương án ĐÚNG: Use native database high availability tools. Connect the source system to an Amazon RDS for Microsoft SQL Server DB instance. Configure replication accordingly. When data replication is finished, transition the workload to an Amazon RDS for Microsoft SQL Server DB instance.

    • Lý do đúng (như phần trên): Native tools (AG/Mirroring) + RDS hỗ trợ zero-data-loss replication, cutover seamless. Tối ưu cho legacy SQL, dễ scale modern (Multi-AZ, read replicas).
  • ❌ Phương án SAI: Use AWS Application Migration Service. Rehost the database server on Amazon EC2. When data replication is finished, detach the database and move the database to an Amazon RDS for Microsoft SQL Server DB instance. Reattach the database and then cut over all networking.

    • Lý do sai: MGN rehost server lên EC2 tốt cho VM, nhưng detach/attach database gây downtime lớn (phải offline DB, copy files, reattach - mất hàng giờ cho DB lớn). Không replication transaction-safe, dễ corrupt data. Cutover networking thêm phức tạp, không near-zero.

📘 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 an toàn, hiệu quả cho DevOps migration! 🚀 Nếu cần demo Terraform/CloudFormation, hỏi thêm nhé!

Câu 922 Chọn nhiều đáp án
A company's solutions architect is analyzing costs of a multi-application environment. The environment is deployed across multiple Availability Zones in a single AWS Region. After a recent acquisition, the company manages two organizations in AWS Organizations. The company has created multiple service provider applications as AWS PrivateLink-powered VPC endpoint services in one organization. The company has created multiple service consumer applications in the other organization.

Data transfer charges are much higher than the company expected, and the solutions architect needs to reduce the costs. The solutions architect must recommend guidelines for developers to follow when they deploy services. These guidelines must minimize data transfer charges for the whole environment.

Which guidelines meet these requirements? (Choose two.)
  1. A Use AWS Resource Access Manager to share the subnets that host the service provider applications with other accounts in the organization.
  2. B Place the service provider applications and the service consumer applications in AWS accounts in the same organization.
  3. C Turn off cross-zone load balancing for the Network Load Balancer in all service provider application deployments.
  4. D Ensure that service consumer compute resources use the Availability Zone-specific endpoint service by using the endpoint's local DNS name.
  5. E Create a Savings Plan that provides adequate coverage for the organization's planned inter-Availability Zone data transfer usage.
Xem giải thích

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

Câu hỏi xoay quanh việc một công ty đang phân tích chi phí môi trường multi-application triển khai trên nhiều Availability Zones (AZ) trong một AWS Region duy nhất. Sau khi mua lại, công ty quản lý hai AWS Organizations riêng biệt:

  • Organization 1: Chứa các ứng dụng service provider được triển khai dưới dạng AWS PrivateLink-powered VPC endpoint services (dịch vụ endpoint để expose services qua PrivateLink).
  • Organization 2: Chứa các ứng dụng service consumer (ứng dụng tiêu thụ dịch vụ từ provider).

Vấn đề chính: Chi phí data transfer (chuyển dữ liệu) cao hơn mong đợi, chủ yếu do traffic giữa provider và consumer qua PrivateLink. Solutions Architect cần đưa ra hướng dẫn cho developers khi deploy services để giảm thiểu tối đa chi phí data transfer toàn môi trường. Yêu cầu chọn TWO guidelines đúng (chọn 2).

Nguyên nhân chi phí cao (dựa kiến thức AWS 2024-2026):

  • PrivateLink traffic intra-Region thường miễn phí nếu intra-AZ, nhưng cross-AZ trong cùng Region có phí (khoảng 0.01 USD/GB theo pricing mới nhất).
  • Với hai Organizations, PrivateLink vẫn hỗ trợ cross-account/cross-org qua VPC Endpoint Service (không cần public internet, an toàn), nhưng config sai dẫn đến cross-AZ traffic → phí cao.
  • Mục tiêu: Hướng dẫn deploy để ưu tiên intra-AZ traffic giữa provider và consumer.

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

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

Hai hướng dẫn đúng là:

  • Turn off cross-zone load balancing for the Network Load Balancer in all service provider application deployments.
  • Ensure that service consumer compute resources use the Availability Zone-specific endpoint service by using the endpoint's local DNS name.

Lý do lựa chọn: 🛠️ Giải pháp cốt lõi: Để giảm cross-AZ data transfer, cần đảm bảo traffic giữ nguyên trong cùng AZ giữa provider (NLB endpoint service) và consumer (VPC Endpoint).

  • Provider: Tắt cross-zone load balancing trên NLB (mặc định ON từ 2022, nhưng có thể tắt để target chỉ nhận traffic local AZ → giảm cross-AZ).
  • Consumer: Sử dụng AZ-specific DNS name (ví dụ: vpce-xxx-zzzz.az1.us-east-1.vpce-svc-xxx.provider-account.vpce-svc-uuid) thay vì global DNS → route traffic chỉ intra-AZ, tránh phí cross-AZ.
  • Kết quả: Traffic local AZ miễn phí 100% intra-Region (theo AWS pricing 2026), giảm chi phí đáng kể mà không cần thay đổi Organizations.

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

  • ❌ [SAI] Use AWS Resource Access Manager to share the subnets that host the service provider applications with other accounts in the organization. 🧩 Phân tích: RAM dùng để share resources như subnets cross-account trong cùng Organization (không hỗ trợ cross-Organizations dễ dàng). Share subnets không giải quyết data transfer fees (vẫn cross-AZ nếu traffic không local). Hơn nữa, PrivateLink không yêu cầu share subnets; nó dùng endpoint service name để connect. Không giảm chi phí trực tiếp, chỉ phức tạp hóa networking.

  • ❌ [SAI] Place the service provider applications and the service consumer applications in AWS accounts in the same organization. 🧩 Phân tích: Di chuyển apps sang cùng Organization có thể đơn giản hóa sharing (qua RAM), nhưng không giảm data transfer cross-AZ (vẫn phí nếu config sai). Hai Organizations hiện tại vẫn hỗ trợ PrivateLink cross-org (qua service principal names). Việc migrate lớn (post-acquisition) không phải "guideline deploy" đơn giản, và không giải quyết root cause cross-AZ.

  • ✅ [ĐÚNG] Turn off cross-zone load balancing for the Network Load Balancer in all service provider application deployments. 🛠️ Phân tích: NLB thường dùng cho VPC Endpoint Service (PrivateLink). Cross-zone LB ON (mặc định) forward traffic cross-AZ → phí data transfer cao. Tắt nó (qua console/CLI: EnableCrossZoneLoadBalancing=off) đảm bảo targets chỉ nhận traffic từ cùng AZ → ưu tiên intra-AZ, giảm phí. Best practice AWS 2024+ cho cost-optimized PrivateLink.

  • ✅ [ĐÚNG] Ensure that service consumer compute resources use the Availability Zone-specific endpoint service by using the endpoint's local DNS name. 🛠️ Phân tích: VPC Endpoint có local DNS name AZ-specific (enable khi create endpoint). Sử dụng nó (thay vì global) resolve chỉ tới AZ local → traffic intra-AZ only, miễn phí. Consumer instances (EC2/Fargate) phải query DNS đúng AZ để tránh cross-AZ routing → guideline deploy quan trọng cho developers.

  • ❌ [SAI] Create a Savings Plan that provides adequate coverage for the organization's planned inter-Availability Zone data transfer usage. 🧩 Phân tích: Savings Plans (Compute/Instance/EC2) chỉ discount compute usage (EC2, Lambda, Fargate), KHÔNG cover data transfer fees (theo AWS pricing 2026). Data transfer cross-AZ là "pay-as-you-go" riêng, không có Savings Plan/Savings Bundle nào bao gồm. Không phải giải pháp gốc rễ, chỉ "che đậy" phí thay vì giảm.

🎯 Kết luận & Best Practices bổ sung

Hai đáp án đúng tập trung config PrivateLink intra-AZ là cách tối ưu nhất (giảm 100% cross-AZ fees). Developers nên:

  • Deploy NLB với cross-zone OFF.
  • Hardcode AZ-specific DNS trong app config. Monitor bằng CloudWatch Metrics (DataProcessed bytes) và Cost Explorer (VPC-DataTransfer-AZ).

📘 Nguồn bổ sung: AWS re:Post - PrivateLink Cost Optimization, Well-Architected Framework - Cost Pillar.

Câu 923
A company has an on-premises Microsoft SQL Server database that writes a nightly 200 GB export to a local drive. The company wants to move the backups to more robust cloud storage on Amazon S3. The company has set up a 10 Gbps AWS Direct Connect connection between the on-premises data center and AWS.

Which solution meets these requirements MOST cost-effectively?
  1. A Create a new S3 bucket. Deploy an AWS Storage Gateway file gateway within the VPC that is connected to the Direct Connect connection. Create a new SMB file share. Write nightly database exports to the new SMB file share.
  2. B Create an Amazon FSx for Windows File Server Single-AZ file system within the VPC that is connected to the Direct Connect connection. Create a new SMB file share. Write nightly database exports to an SMB file share on the Amazon FSx file system. Enable nightly backups.
  3. C Create an Amazon FSx for Windows File Server Multi-AZ file system within the VPC that is connected to the Direct Connect connection. Create a new SMB file share. Write nightly database exports to an SMB file share on the Amazon FSx file system. Enable nightly backups.
  4. D Create a new S3 bucket. Deploy an AWS Storage Gateway volume gateway within the VPC that is connected to the Direct Connect connection. Create a new SMB file share. Write nightly database exports to the new SMB file share on the volume gateway, and automate copies of this data to an S3 bucket.
Xem giải thích

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

Câu hỏi tập trung vào một công ty đang sử dụng Microsoft SQL Server on-premises, hàng đêm export backup 200 GB ra ổ đĩa local. Họ muốn chuyển các backup này lên Amazon S3 để lưu trữ bền vững hơn (robust cloud storage). Kết nối giữa on-premises và AWS là 10 Gbps AWS Direct Connect (kết nối dedicated, tốc độ cao, thấp latency).

Yêu cầu chính: Tìm giải pháp cost-effective nhất (tiết kiệm chi phí nhất), tận dụng Direct Connect để truyền dữ liệu lớn (200 GB/đêm) từ on-premises đến S3 qua giao thức SMB (phù hợp với Windows/SQL Server).

🛠️ Thách thức: Backup lớn cần truyền nhanh, lưu trữ rẻ (S3 là object storage rẻ nhất), tránh chi phí cao từ file system managed hoặc caching không cần thiết. Giải pháp phải hỗ trợ SMB file share để SQL Server write trực tiếp mà không thay đổi workflow nhiều. Kiến thức cập nhật đến 2026: AWS Storage Gateway và FSx vẫn là lựa chọn chính, với S3 Intelligent-Tiering/Glacier cho backup dài hạn để tối ưu chi phí.

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

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

Đáp án đúng:
Create a new S3 bucket. Deploy an AWS Storage Gateway file gateway within the VPC that is connected to the Direct Connect connection. Create a new SMB file share. Write nightly database exports to the new SMB file share.

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

  • AWS Storage Gateway File Gateway là giải pháp cost-effective nhất cho việc expose S3 bucket như SMB file share (hỗ trợ Windows/SQL Server). Dữ liệu write trực tiếp đến S3 (không cache local full data, chỉ metadata ~MB), truyền qua Direct Connect 10Gbps nhanh chóng (200GB chỉ ~5-10 phút).
  • Tiết kiệm chi phí: Chỉ trả phí S3 storage + Gateway giờ (~$0.045/giờ) + data transfer qua Direct Connect (thấp). Không tốn EBS/FSx đắt đỏ. Phù hợp backup lớn, scale vô hạn.
  • Tích hợp hoàn hảo: Deploy trong VPC kết nối Direct Connect, SMB share mount từ on-premises như local drive. ✅ Hoàn toàn khớp yêu cầu "write nightly exports to SMB share".

📋 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, ❌ sai, và giải thích chi tiết bằng tiếng Việt:

  • ✅ Create a new S3 bucket. Deploy an AWS Storage Gateway file gateway within the VPC that is connected to the Direct Connect connection. Create a new SMB file share. Write nightly database exports to the new SMB file share.
    🏆 Đúng tuyệt đối: Như giải thích trên. File Gateway tối ưu chi phí cho large file backups đến S3 qua SMB, không overhead lưu trữ local.

  • ❌ Create an Amazon FSx for Windows File Server Single-AZ file system within the VPC that is connected to the Direct Connect connection. Create a new SMB file share. Write nightly database exports to an SMB file share on the Amazon FSx file system. Enable nightly backups.
    Sai vì chi phí cao: FSx Single-AZ dùng EBS storage (~$0.125/GB/tháng), đắt gấp 5x S3. Backup là snapshot AWS Backup, vẫn tốn thêm phí. Không trực tiếp đến S3, chỉ là managed file system (overkill cho backup). 🛠️ Phù hợp shared workloads, không cost-effective cho 200GB nightly export.

  • ❌ Create an Amazon FSx for Windows File Server Multi-AZ file system within the VPC that is connected to the Direct Connect connection. Create a new SMB file share. Write nightly database exports to an SMB file share on the Amazon FSx file system. Enable nightly backups.
    Sai nặng hơn Single-AZ: Multi-AZ HA (redundancy tự động), chi phí cao hơn nữa (~2x Single-AZ do replica). Vẫn lưu trên EBS, không phải S3 native. Nightly backups tốn thêm, không economical cho backup-only. ❌ Không đáp ứng "MOST cost-effectively".

  • ❌ Create a new S3 bucket. Deploy an AWS Storage Gateway volume gateway within the VPC that is connected to the Direct Connect connection. Create a new SMB file share. Write nightly database exports to the new SMB file share on the volume gateway, and automate copies of this data to an S3 bucket.
    Sai vì Volume Gateway không hỗ trợ SMB file share: Đây là block storage (iSCSI cho volumes), không phải file share (SMB/NFS). Cached/Stored mode cache data local (tốn dung lượng on-premises cho 200GB), chỉ async snapshot đến S3. Phải automate copy thủ công, phức tạp và kém hiệu quả hơn File Gateway. 💸 Chi phí tương đương nhưng không khớp SMB requirement trực tiếp.

Kết luận 🎯: File Gateway là lựa chọn tối ưu nhất về chi phí, tốc độ và đơn giản cho backup large-scale đến S3! Nếu implement, enable S3 Lifecycle để tier xuống Glacier Deep Archive tiết kiệm thêm 75%.

Câu 924
A company needs to establish a connection from its on-premises data center to AWS. The company needs to connect all of its VPCs that are located in different AWS Regions with transitive routing capabilities between VPC networks. The company also must reduce network outbound traffic costs, increase bandwidth throughput, and provide a consistent network experience for end users.

Which solution will meet these requirements?
  1. A Create an AWS Site-to-Site VPN connection between the on-premises data center and a new central VPC. Create VPC peering connections that initiate from the central VPC to all other VPCs.
  2. B Create an AWS Direct Connect connection between the on-premises data center and AWS. Provision a transit VIF, and connect it to a Direct Connect gateway. Connect the Direct Connect gateway to all the other VPCs by using a transit gateway in each Region.
  3. C Create an AWS Site-to-Site VPN connection between the on-premises data center and a new central VPUse a transit gateway with dynamic routing. Connect the transit gateway to all other VPCs.
  4. D Create an AWS Direct Connect connection between the on-premises data center and AWS. Establish an AWS Site-to-Site VPN connection between all VPCs in each Region. Create VPC peering connections that initiate from the central VPC to all other VPCs.
Xem giải thích

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

Câu hỏi này xoay quanh việc thiết lập kết nối từ data center on-premises đến AWS, đồng thời kết nối tất cả các VPC nằm ở các Region AWS khác nhau với khả năng transitive routing (định tuyến chuyển tiếp giữa các VPC). Các yêu cầu chính bao gồm:

  • Kết nối on-premises với AWS một cách đáng tin cậy.
  • Transitive routing giữa VPCs cross-Region: Nghĩa là traffic có thể đi từ VPC này sang VPC khác qua các Region mà không cần peering trực tiếp (peering thông thường không hỗ trợ transitive hoặc cross-Region dễ dàng).
  • Giảm chi phí traffic outbound (outbound từ AWS ra internet/on-prem thường đắt với VPN).
  • Tăng bandwidth throughput (băng thông cao hơn).
  • Trải nghiệm mạng nhất quán cho end-users (low latency, stable private connection).

🛠️ Giải pháp lý tưởng theo best practices AWS (cập nhật đến 2024-2026): Sử dụng AWS Direct Connect cho kết nối private cao performance từ on-prem, kết hợp Direct Connect Gateway (DXGW) với Transit VIF để mở rộng, và AWS Transit Gateway (TGW) multi-Region cho transitive routing giữa VPCs. TGW hỗ trợ dynamic routing (BGP), scale lớn, và giảm chi phí so với VPN (Direct Connect tiết kiệm ~50-70% outbound data transfer costs).

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

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

Đáp án đúng: Create an AWS Direct Connect connection between the on-premises data center and AWS. Provision a transit VIF, and connect it to a Direct Connect gateway. Connect the Direct Connect gateway to all the other VPCs by using a transit gateway in each Region.

Lý do:

  • 🛤️ Direct Connect + Transit VIF + DX Gateway: Cung cấp kết nối private từ on-prem đến AWS với bandwidth lên đến 100 Gbps+, latency thấp, ổn định (không qua public internet như VPN).
  • 🔄 Transit Gateway (TGW) ở mỗi Region: Attach tất cả VPCs vào TGW, hỗ trợ transitive routing cross-VPC/Region qua TGW Inter-Region Peering (cập nhật 2023+). DXGW associate với TGW để route traffic từ on-prem lan tỏa đến tất cả VPCs.
  • 💰 Giảm chi phí outbound: Direct Connect tính phí data transfer thấp hơn VPN (không tính egress internet rates).
  • ⚡ Tăng throughput & consistent experience: Private dedicated circuit, hỗ trợ BGP dynamic routing.
  • Hoàn hảo match tất cả yêu cầu, scale cho multi-Region.

❌ Phân tích tất cả các phương án (A, B, C, D)

  • A. Create an AWS Site-to-Site VPN connection between the on-premises data center and a new central VPC. Create VPC peering connections that initiate from the central VPC to all other VPCs.
    ❌ Sai vì: VPN chỉ đạt bandwidth thấp (~1.25 Gbps max per tunnel), chi phí outbound cao (data transfer out $0.09/GB), không stable (qua public internet). VPC peering không hỗ trợ transitive routing (traffic không đi qua central VPC tự động), và không cross-Region peering trực tiếp (chỉ intra-Region hoặc limited Global Peering). Không đáp ứng multi-Region transitive, throughput cao.

  • B. Create an AWS Direct Connect connection between the on-premises data center and AWS. Provision a transit VIF, and connect it to a Direct Connect gateway. Connect the Direct Connect gateway to all the other VPCs by using a transit gateway in each Region.
    ✅ Đúng vì: Như giải thích trên – Direct Connect cho performance cao, Transit VIF + DX Gateway mở rộng kết nối on-prem đến multi-Region, TGW per Region enable transitive routing giữa tất cả VPCs (qua TGW peering). Giảm chi phí, tăng bandwidth, consistent IPsec-free private network. Best practice AWS cho hybrid multi-Region (xem diagram AWS Well-Architected).

  • C. Create an AWS Site-to-Site VPN connection between the on-premises data center and a new central VPC. Use a transit gateway with dynamic routing. Connect the transit gateway to all other VPCs.
    ❌ Sai vì: VPN vẫn kém về chi phí outbound cao, throughput thấp (không scale như Direct Connect), dù TGW hỗ trợ dynamic routing (BGP) và transitive. "Central VPC" không rõ ràng, và VPN không phải lựa chọn tối ưu cho yêu cầu bandwidth/consistent. Không match "reduce costs, increase throughput".

  • D. Create an AWS Direct Connect connection between the on-premises data center and AWS. Establish an AWS Site-to-Site VPN connection between all VPCs in each Region. Create VPC peering connections that initiate from the central VPC to all other VPCs.
    ❌ Sai vì: Direct Connect tốt cho on-prem, nhưng VPN giữa VPCs thừa thãi (tăng complexity, latency, chi phí), VPC peering không transitive/cross-Region hiệu quả. Không tận dụng TGW/DXGW cho transitive, dẫn đến thiết kế phức tạp, không scale, không giảm chi phí tối ưu.

🛠️ Kết luận: Lựa chọn B là giải pháp enterprise-grade theo AWS Networking Competency (2026 updates nhấn mạnh TGW + DX cho hybrid cloud). Nếu implement, bắt đầu bằng DX location gần nhất và TGW policy tables cho routing control! 🚀

Câu 925
A company is migrating its development and production workloads to a new organization in AWS Organizations. The company has created a separate member account for development and a separate member account for production. Consolidated billing is linked to the management account. In the management account, a solutions architect needs to create an IAM user that can stop or terminate resources in both member accounts.

Which solution will meet this requirement?
  1. A Create an IAM user and a cross-account role in the management account. Configure the cross-account role with least privilege access to the member accounts.
  2. B Create an IAM user in each member account. In the management account, create a cross-account role that has least privilege access. Grant the IAM users access to the cross-account role by using a trust policy.
  3. C Create an IAM user in the management account. In the member accounts, create an IAM group that has least privilege access. Add the IAM user from the management account to each IAM group in the member accounts.
  4. D Create an IAM user in the management account. In the member accounts, create cross-account roles that have least privilege access. Grant the IAM user access to the roles by using a trust policy.
Xem giải thích

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

Câu hỏi xoay quanh việc quản lý quyền truy cập chéo tài khoản (cross-account access) trong AWS Organizations. 🏢

  • Một công ty đang di chuyển workloads phát triển (development) và sản xuất (production) sang tổ chức AWS Organizations mới.
  • Họ đã tạo hai member accounts riêng biệt: một cho development và một cho production.
  • Consolidated billing được liên kết với management account (tài khoản quản lý chính).
  • Yêu cầu: Trong management account, tạo một IAM user có khả năng stop hoặc terminate resources (dừng hoặc xóa tài khoản) ở cả hai member accounts.
    📌 Mục tiêu chính: Đảm bảo IAM user từ management account có quyền hạn chế (least privilege) để thực hiện hành động trên resources ở member accounts, tuân thủ nguyên tắc bảo mật AWS (không chia sẻ credentials trực tiếp, sử dụng role-based access).
    🛠️ Bối cảnh AWS Organizations (cập nhật 2024-2026): Hỗ trợ delegated administration và cross-account IAM roles qua STS AssumeRole, giúp tránh tạo user riêng ở từng account, giảm rủi ro bảo mật.

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

Đáp án đúng:
Create an IAM user in the management account. In the member accounts, create cross-account roles that have least privilege access. Grant the IAM user access to the roles by using a trust policy.

Lý do chi tiết 🏆:

  • Tạo IAM user ở management account (đúng vị trí yêu cầu).
  • Trong mỗi member account, tạo cross-account IAM roles với quyền least privilege (ví dụ: policy chỉ cho phép ec2:StopInstances, ec2:TerminateInstances).
  • Sử dụng trust policy trên role (ở member accounts) để cho phép IAM user từ management account assume role qua AWS STS (Security Token Service).
  • Ưu điểm: An toàn, scalable, tuân thủ AWS best practices (không chia sẻ access keys), hỗ trợ multi-account strategy trong Organizations. User chỉ cần sts:AssumeRole permission từ management account.
    🔄 Quy trình thực hiện:
    1. Tạo role ở member account với trust policy: Principal: { "AWS": "arn:aws:iam::MANAGEMENT-ACCOUNT-ID:user/USER-NAME" }.
    2. Attach policy least privilege vào role.
    3. IAM user sử dụng AWS CLI/SDK: aws sts assume-role --role-arn <role-arn> --role-session-name <session>.

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

Dưới đây là phân tích từng lựa chọn (giữ nguyên văn bản gốc tiếng Anh), với lý do đúng/sai dựa trên tài liệu AWS mới nhất (2024-2026). Sử dụng cross-account IAM roles là standard cho scenarios này.

  • ❌ Create an IAM user and a cross-account role in the management account. Configure the cross-account role with least privilege access to the member accounts.
    Sai vì: Role được tạo ở management account không thể trực tiếp truy cập resources ở member accounts (AWS không hỗ trợ role từ parent account control child accounts theo cách này). Trust policy phải ở member account để chấp nhận assume từ management. Phương án này đảo ngược luồng, dẫn đến lỗi AccessDenied. 🛑

  • ❌ Create an IAM user in each member account. In the management account, create a cross-account role that has least privilege access. Grant the IAM users access to the cross-account role by using a trust policy.
    Sai vì: Tạo IAM user ở member accounts (vi phạm yêu cầu chỉ tạo user ở management account). Role ở management cũng không giải quyết được cross-access; trust policy không thể grant user từ member assume role ở management một cách hiệu quả cho mục tiêu stop/terminate resources ở member. Tăng complexity và rủi ro quản lý nhiều user. 🚫

  • ❌ Create an IAM user in the management account. In the member accounts, create an IAM group that has least privilege access. Add the IAM user from the management account to each IAM group in the member accounts.
    Sai vì: IAM groups chỉ tồn tại trong cùng account; không thể add IAM user từ management account vào group ở member accounts (AWS IAM không hỗ trợ cross-account group membership). Điều này gây lỗi và không an toàn. 🧱

  • ✅ Create an IAM user in the management account. In the member accounts, create cross-account roles that have least privilege access. Grant the IAM user access to the roles by using a trust policy.
    Đúng vì: Như giải thích ở phần đáp án trên – đây là AWS-recommended pattern cho cross-account access trong Organizations. Hỗ trợ least privilege, audit qua CloudTrail, và tích hợp với SCPs (Service Control Policies). 🎯

📘 Tài liệu tham khảo (AWS Docs cập nhật 2024-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 demo CLI, hãy hỏi thêm.

Câu 926
A company wants to use AWS for disaster recovery for an on-premises application. The company has hundreds of Windows-based servers that run the application. All the servers mount a common share.

The company has an RTO of 15 minutes and an RPO of 5 minutes. The solution must support native failover and fallback capabilities.

Which solution will meet these requirements MOST cost-effectively?
  1. A Create an AWS Storage Gateway File Gateway. Schedule daily Windows server backups. Save the data to Amazon S3. During a disaster, recover the on-premises servers from the backup. During tailback, run the on-premises servers on Amazon EC2 instances.
  2. B Create a set of AWS CloudFormation templates to create infrastructure. Replicate all data to Amazon Elastic File System (Amazon EFS) by using AWS DataSync. During a disaster, use AWS CodePipeline to deploy the templates to restore the on-premises servers. Fail back the data by using DataSync.
  3. C Create an AWS Cloud Development Kit (AWS CDK) pipeline to stand up a multi-site active-active environment on AWS. Replicate data into Amazon S3 by using the s3 sync command. During a disaster, swap DNS endpoints to point to AWS. Fail back the data by using the s3 sync command.
  4. D Use AWS Elastic Disaster Recovery to replicate the on-premises servers. Replicate data to an Amazon FSx for Windows File Server file system by using AWS DataSync. Mount the file system to AWS servers. During a disaster, fail over the on-premises servers to AWS. Fail back to new or existing servers by using Elastic Disaster Recovery.
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 giải pháp Disaster Recovery (DR) trên AWS cho một ứng dụng on-premises với hàng trăm server Windows đang chạy ứng dụng và mount một common share chung (có lẽ là file share SMB/NFS). Công ty yêu cầu:

  • RTO (Recovery Time Objective) = 15 phút: Thời gian khôi phục hệ thống sau sự cố phải dưới 15 phút.
  • RPO (Recovery Point Objective) = 5 phút: Mất dữ liệu tối đa chỉ 5 phút (yêu cầu replication gần real-time).
  • Hỗ trợ native failover (chuyển sang AWS tự động) và fallback (chuyển về on-premises).
  • MOST cost-effectively: Giải pháp rẻ nhất, hiệu quả nhất.

🛠️ Thách thức chính:

  • Quy mô lớn (hundreds of servers) → cần tool replication tự động, scalable.
  • Common share → cần replicate file system tương thích Windows (như SMB).
  • Không chỉ backup mà phải replicate liên tục để meet RPO/RTO thấp.
  • Native failover/fallback → không thủ công deploy lại từ đầu.

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

Đáp án đúng: Use AWS Elastic Disaster Recovery to replicate the on-premises servers. Replicate data to an Amazon FSx for Windows File Server file system by using AWS DataSync. Mount the file system to AWS servers. During a disaster, fail over the on-premises servers to AWS. Fail back to new or existing servers by using Elastic Disaster Recovery.

Lý do chọn:

  • AWS Elastic Disaster Recovery (DRS) (phiên bản mới nhất 2024-2026) là dịch vụ chuyên DR, replicate block-level continuous servers on-premises sang AWS với RPO <5 phút (thường 1-2 phút), RTO <15 phút nhờ launch point-in-time instances nhanh chóng.
  • DataSync replicate common share sang Amazon FSx for Windows File Server (tương thích SMB, multi-AZ, scalable cho hundreds servers).
  • Native failover: DRS hỗ trợ drill/test failover, production failover tự động, swap DNS/traffic.
  • Native failback: DRS hỗ trợ replicate ngược về on-premises (new/existing servers).
  • Cost-effective: Pay-per-use (replication + compute on-demand), không cần infra luôn-on như active-active. Tiết kiệm hơn backup hàng ngày hoặc pipeline deploy thủ công.
  • Hoàn hảo cho Windows servers + shared file system.

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

  • Phương án A: Create an AWS Storage Gateway File Gateway. Schedule daily Windows server backups. Save the data to Amazon S3. During a disaster, recover the on-premises servers from the backup. During tailback, run the on-premises servers on Amazon EC2 instances.
    ❌ Sai vì: Storage Gateway File Gateway chỉ sync file theo lịch (không continuous replication), daily backups → RPO ít nhất 24h, không meet 5 phút. Recover từ S3 backup rất chậm (>15 phút cho hundreds servers). Không native failover (phải recover thủ công), failback dùng EC2 không khớp on-premises. Không cost-effective do thời gian recover dài + chi phí backup lớn. 🕒⏳

  • Phương án B: Create a set of AWS CloudFormation templates to create infrastructure. Replicate all data to Amazon Elastic File System (Amazon EFS) by using AWS DataSync. During a disaster, use AWS CodePipeline to deploy the templates to restore the on-premises servers. Fail back the data by using DataSync.
    ❌ Sai vì: DataSync to EFS chỉ hỗ trợ NFS (không native SMB cho Windows servers), không phù hợp common share Windows. CloudFormation + CodePipeline deploy là thủ công/orchestrated, RTO >15 phút (deploy infra + restore data). Không replicate servers (chỉ data), phải rebuild app thủ công → không native failover. Failback chỉ data, không servers. Không cost-effective do pipeline luôn chạy + EFS kém tối ưu Windows. 🏗️🚫

  • Phương án C: Create an AWS Cloud Development Kit (AWS CDK) pipeline to stand up a multi-site active-active environment on AWS. Replicate data into Amazon S3 by using the s3 sync command. During a disaster, swap DNS endpoints to point to AWS. Fail back the data by using the s3 sync command.
    ❌ Sai vì: Active-active luôn-on → chi phí cao (double infra), không "MOST cost-effectively". s3 sync là command-line thủ công, không continuous → RPO kém (manual sync >5 phút). S3 không phải file system mountable SMB cho Windows. CDK pipeline deploy chậm cho hundreds servers, DNS swap không đảm bảo RTO 15 phút. Không replicate servers native, failback thủ công. 💸🚫

  • Phương án D (Đúng): Use AWS Elastic Disaster Recovery to replicate the on-premises servers. Replicate data to an Amazon FSx for Windows File Server file system by using AWS DataSync. Mount the file system to AWS servers. During a disaster, fail over the on-premises servers to AWS. Fail back to new or existing servers by using Elastic Disaster Recovery.
    ✅ Đúng vì: Như giải thích ở trên – DRS handle server replication low RPO/RTO, FSx Windows + DataSync perfect cho shared SMB, native failover/failback, cost-effective (on-demand). Scalable cho hundreds Windows servers (DRS hỗ trợ agentless cho Windows từ 2024). 🎯✨

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

🛠️ Lời khuyên: Trong thực tế, test drill failover định kỳ với DRS để verify RTO/RPO! 🚀

Câu 927 Chọn nhiều đáp án
A company has built a high performance computing (HPC) cluster in AWS for a tightly coupled workload that generates a large number of shared files stored in Amazon EFS. The cluster was performing well when the number of Amazon EC2 instances in the cluster was 100. However, when the company increased the cluster size to 1.000 EC2 instances, overall performance was well below expectations.

Which collection of design choices should a solutions architect make to achieve the maximum performance from the HPC cluster? (Choose three.)
  1. A Ensure the HPC cluster is launched within a single Availability Zone.
  2. B Launch the EC2 instances and attach elastic network interfaces in multiples of four.
  3. C Select EC2 instance types with an Elastic Fabric Adapter (EFA) enabled.
  4. D Ensure the cluster is launched across multiple Availability Zones.
  5. E Replace Amazon EFS with multiple Amazon EBS volumes in a RAID array.
  6. F Replace Amazon EFS with Amazon FSx for Lustre.
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ối ưu hóa hiệu suất cho một cụm tính toán hiệu suất cao (HPC - High Performance Computing) trên AWS. Công ty đã xây dựng cụm HPC cho workload tightly coupled (các tiến trình liên kết chặt chẽ, cần chia sẻ dữ liệu nhanh chóng), sử dụng Amazon EFS để lưu trữ số lượng lớn file chia sẻ.

  • ✅ Hiệu suất ban đầu tốt khi cụm chỉ có 100 EC2 instances.
  • ❌ Hiệu suất kém đáng kể khi scale lên 1.000 EC2 instances.

Vấn đề cốt lõi: EFS là file system chia sẻ có thể truy cập từ nhiều instances, nhưng nó không được thiết kế tối ưu cho workload HPC quy mô lớn vì giới hạn về throughput, IOPS và độ trễ (latency) khi có hàng nghìn instances truy cập đồng thời. Workload HPC tightly coupled đòi hỏi low-latency networking và high-throughput parallel file system để xử lý dữ liệu lớn nhanh chóng.

Mục tiêu: Chọn 3 thiết kế tốt nhất từ solutions architect để đạt hiệu suất tối đa. Đây là câu hỏi kiểu "Choose three" trong kỳ thi AWS Certified Solutions Architect hoặc DevOps Engineer Professional.

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

✅ Đáp án đúng (Chọn 3 phương án sau để đạt hiệu suất tối đa)

Dựa trên best practices AWS mới nhất (2026), các lựa chọn đúng tập trung vào giảm độ trễ mạng, networking chuyên dụng cho HPC, và file system parallel hiệu suất cao. Lý do chọn:

  • Đảm bảo low-latency intra-cluster communication bằng single AZ và EFA.
  • Thay thế EFS bằng FSx for Lustre – file system được thiết kế dành riêng cho HPC, hỗ trợ hàng triệu IOPS và hàng trăm GB/s throughput, scale tốt với 1.000+ instances.

Các đáp án đúng là:

  1. Ensure the HPC cluster is launched within a single Availability Zone.
  2. Select EC2 instance types with an Elastic Fabric Adapter (EFA) enabled.
  3. Replace Amazon EFS with Amazon FSx for Lustre.

🛠️ Phân tích chi tiết từng phương án (Đúng/Sai + Lý do)

Dưới đây là phân tích tất cả 6 phương á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 performance bottlenecks của HPC tightly coupled:

  • ✅ Ensure the HPC cluster is launched within a single Availability Zone.
    Đúng! 🏆 Lý do: Workload HPC tightly coupled yêu cầu giao tiếp low-latency giữa các instances. Cross-AZ traffic có độ trễ cao hơn (khoảng 2-10ms so với <1ms trong single AZ), gây bottleneck khi scale lên 1.000 instances. AWS khuyến nghị single AZ cho HPC clusters để tối ưu RDMA/OS bypass networking. (Nguồn: AWS HPC Best Practices).

  • ❌ Launch the EC2 instances and attach elastic network interfaces in multiples of four.
    Sai! 🚫 Lý do: Đây không phải best practice cho HPC. Multiples of four có thể liên quan đến optimization cho Elastic Network Adapter (ENA) ở một số workload cũ, nhưng với HPC scale lớn, nó không giải quyết vấn đề chính (file sharing latency). Thay vào đó, cần EFA hoặc placement groups. Không có tài liệu AWS chính thức yêu cầu "multiples of four" cho HPC.

  • ✅ Select EC2 instance types with an Elastic Fabric Adapter (EFA) enabled.
    Đúng! ⚡ Lý do: EFA cung cấp RDMA over Converged Ethernet (RoCE) với throughput lên đến hàng trăm Gbps và độ trễ microsecond, lý tưởng cho tightly coupled HPC (như MPI jobs). Các instance như c6gn, p4d hỗ trợ EFA, giúp scale hiệu quả từ 100 lên 1.000 instances mà không bottleneck mạng. (Nguồn: EFA User Guide 2026).

  • ❌ Ensure the cluster is launched across multiple Availability Zones.
    Sai! 🌐 Lý do: Multi-AZ tăng độ trễ cross-zone (traffic routing qua backbone AWS), làm chậm giao tiếp tightly coupled. HPC cần single AZ + Cluster Placement Group để tất cả instances gần nhau nhất. Multi-AZ chỉ phù hợp high availability, không phải performance.

  • ❌ Replace Amazon EFS with multiple Amazon EBS volumes in a RAID array.
    Sai! 💾 Lý do: EBS là block storage gắn cho single instance, không phải shared filesystem như EFS. RAID array trên EBS không hỗ trợ concurrent access từ 1.000 instances, dẫn đến data inconsistency hoặc cần complex software (như DRBD). EBS có IOPS/throughput limits per volume, kém hơn FSx for Lustre cho HPC.

  • ✅ Replace Amazon EFS with Amazon FSx for Lustre.
    Đúng! 🚀 Lý do: FSx for Lustre là parallel distributed file system (dựa Lustre), tối ưu HPC với ~100 GB/s throughput, hàng triệu IOPS, và POSIX-compliant cho shared files. Nó scale linearly với số instances lớn (hỗ trợ S3 backing), khắc phục hoàn toàn hạn chế của EFS (burst-only mode, throughput caps ~10 GB/s). AWS khuyến nghị cho HPC workloads như này. (Nguồn: FSx for Lustre Performance Docs).

📝 Kết luận & Lời khuyên DevOps

🛠️ Kết hợp 3 đáp án đúng: Single AZ + EFA + FSx for Lustre sẽ mang lại hiệu suất tối đa, có thể đạt linear scaling cho 1.000 instances. Sử dụng NVIDIA MPI hoặc AWS ParallelCluster để deploy. Test với CloudWatch + FSx metrics để monitor.

Nếu deploy thực tế, bắt đầu với AWS ParallelCluster (miễn phí, managed HPC orchestrator) cập nhật 2026. Câu hỏi này kiểm tra kiến thức sâu về HPC optimization trong DOP-C02 exam! 💪

Câu 928
A company is designing an AWS Organizations structure. The company wants to standardize a process to apply tags across the entire organization. The company will require tags with specific values when a user creates a new resource. Each of the company's OUs will have unique tag values.

Which solution will meet these requirements?
  1. A Use an SCP to deny the creation of resources that do not have the required tags. Create a tag policy that includes the tag values that the company has assigned to each OU. Attach the tag policies to the OUs.
  2. B Use an SCP to deny the creation of resources that do not have the required tags. Create a tag policy that includes the tag values that the company has assigned to each OU. Attach the tag policies to the organization's management account.
  3. C Use an SCP to allow the creation of resources only when the resources have the required tags. Create a tag policy that includes the tag values that the company has assigned to each OU. Attach the tag policies to the OUs.
  4. D Use an SCP to deny the creation of resources that do not have the required tags. Define the list of tags. Attach the SCP to the OUs.
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 kế cấu trúc AWS Organizations để chuẩn hóa quy trình áp dụng tags trên toàn bộ tổ chức. ✅ Công ty yêu cầu:

  • Bắt buộc người dùng phải thêm tags với giá trị cụ thể khi tạo tài nguyên mới (resources).
  • Mỗi Organizational Unit (OU) sẽ có giá trị tag độc nhất (unique tag values), giúp phân biệt và quản lý tài nguyên theo OU.

🛠️ Yêu cầu chính:

  • Giải pháp phải enforce (thực thi) tags bắt buộc tại thời điểm tạo resource.
  • Hỗ trợ giá trị tag khác nhau cho từng OU.

📘 Kiến thức nền tảng AWS (cập nhật 2026):

  • SCP (Service Control Policy): Chính sách kiểm soát dịch vụ, dùng để deny (chặn) các hành động nếu resource thiếu tags required (sử dụng điều kiện !aws:ResourceTag/<key>).
  • Tag Policies: Chính sách tags mới (ra mắt 2021, cập nhật liên tục), dùng để enforce cấu trúc và giá trị tags (như required keys, allowed values). Có thể attach vào root, OUs hoặc accounts để áp dụng phân cấp, hỗ trợ unique values per OU.
  • Kết hợp SCP + Tag Policies là best practice để mandatory tagging với giá trị cụ thể.

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

Đáp án đúng: Use an SCP to deny the creation of resources that do not have the required tags. Create a tag policy that includes the tag values that the company has assigned to each OU. Attach the tag policies to the OUs.

Lý do:

  • 🛡️ SCP deny thiếu tags: Đảm bảo chặn tạo resource nếu không có tags required (ví dụ: deny ec2:RunInstances nếu !aws:ResourceTag/Environment).
  • 🏷️ Tag Policy với unique values per OU: Xác định chính xác giá trị tags cho từng OU (ví dụ: OU1 yêu cầu Department:Finance, OU2 yêu cầu Department:HR). Attach trực tiếp vào OUs để inherit xuống accounts con, đảm bảo unique và phân cấp.
  • ✅ Hoàn hảo khớp yêu cầu: SCP enforce "bắt buộc tags lúc tạo", Tag Policy enforce "giá trị cụ thể per OU". Không có hạn chế nào (tag policies hỗ trợ điều này từ 2021+).

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

  • ✅ Phương án ĐÚNG (như trên):
    Use an SCP to deny the creation of resources that do not have the required tags. Create a tag policy that includes the tag values that the company has assigned to each OU. Attach the tag policies to the OUs.
    Giải thích: Kết hợp hoàn hảo SCP (deny thiếu tags) + Tag Policy attach OU (unique values). Đảm bảo enforce toàn diện, phân cấp theo OU. Best practice AWS.

  • ❌ Phương án SAI 1:
    Use an SCP to deny the creation of resources that do not have the required tags. Create a tag policy that includes the tag values that the company has assigned to each OU. Attach the tag policies to the organization's management account.
    Giải thích: Attach Tag Policy vào management account chỉ áp dụng cục bộ cho account đó, không inherit xuống OUs/accounts con. Không hỗ trợ unique values per OU, vi phạm yêu cầu phân cấp.

  • ❌ Phương án SAI 2:
    Use an SCP to allow the creation of resources only when the resources have the required tags. Create a tag policy that includes the tag values that the company has assigned to each OU. Attach the tag policies to the OUs.
    Giải thích: SCP là deny-based (restrict permissions), không phải allow-only (SCP không grant quyền, chỉ limit). Sử dụng "allow only" sẽ fail vì SCP không hoạt động như IAM policy thông thường, dẫn đến không enforce được.

  • ❌ Phương án SAI 3:
    Use an SCP to deny the creation of resources that do not have the required tags. Define the list of tags. Attach the SCP to the OUs.
    Giải thích: SCP chỉ deny thiếu tags (required keys), nhưng không enforce giá trị cụ thể (values) hoặc cấu trúc phức tạp. "Define list of tags" trong SCP kém linh hoạt, không hỗ trợ unique values per OU như Tag Policy. Thiếu Tag Policy nên không đáp ứng đầy đủ.

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

Hy vọng phân tích giúp bạn nắm vững! 🚀 Nếu cần ví dụ code SCP/Tag Policy, hỏi thêm nhé!

Câu 929
A company has more than 10,000 sensors that send data to an on-premises Apache Kafka server by using the Message Queuing Telemetry Transport (MQTT) protocol. The on-premises Kafka server transforms the data and then stores the results as objects in an Amazon S3 bucket.

Recently, the Kafka server crashed. The company lost sensor data while the server was being restored. A solutions architect must create a new design on AWS that is highly available and scalable to prevent a similar occurrence.

Which solution will meet these requirements?
  1. A Launch two Amazon EC2 instances to host the Kafka server in an active/standby configuration across two Availability Zones. Create a domain name in Amazon Route 53. Create a Route 53 failover policy. Route the sensors to send the data to the domain name.
  2. B Migrate the on-premises Kafka server to Amazon Managed Streaming for Apache Kafka (Amazon MSK). Create a Network Load Balancer (NLB) that points to the Amazon MSK broker. Enable NLB health checks. Route the sensors to send the data to the NLB.
  3. C Deploy AWS IoT Core, and connect it to an Amazon Kinesis Data Firehose delivery stream. Use an AWS Lambda function to handle data transformation. Route the sensors to send the data to AWS IoT Core.
  4. D Deploy AWS IoT Core, and launch an Amazon EC2 instance to host the Kafka server. Configure AWS IoT Core to send the data to the EC2 instance. Route the sensors to send the data to AWS IoT Core.
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 sở hữu hơn 10.000 cảm biến (sensors) gửi dữ liệu thời gian thực qua giao thức MQTT đến máy chủ Apache Kafka on-premises. Kafka sẽ chuyển đổi (transform) dữ liệu rồi lưu trữ dưới dạng object vào Amazon S3. Vấn đề xảy ra khi Kafka crash, dẫn đến mất dữ liệu trong quá trình khôi phục. Kiến trúc sư giải pháp (solutions architect) cần thiết kế mới hoàn toàn trên AWS, đảm bảo highly available (HA) và scalable để tránh sự cố tương tự.

🔑 Yêu cầu chính:

  • Xử lý lượng lớn dữ liệu từ sensors (MQTT protocol).
  • Chuyển đổi dữ liệu (transformation).
  • Lưu trữ vào S3.
  • HA & scalable: Không có single point of failure, tự động scale theo traffic.

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

Đáp án đúng: Deploy AWS IoT Core, and connect it to an Amazon Kinesis Data Firehose delivery stream. Use an AWS Lambda function to handle data transformation. Route the sensors to send the data to AWS IoT Core.

Lý do chi tiết 🛠️:

  • AWS IoT Core là dịch vụ managed, hỗ trợ MQTT native (giao thức chuẩn của sensors IoT), serverless nên HA toàn cầu (multi-AZ, 99.99% SLA), scalable tự động lên đến hàng triệu kết nối (phù hợp >10k sensors).
  • Kết nối trực tiếp với Amazon Kinesis Data Firehose qua IoT Rule (MQTT topic rule), Firehose buffer dữ liệu, chuyển đổi bằng Lambda (serverless, scale theo nhu cầu), rồi deliver trực tiếp vào S3 (batch, compression tự động).
  • Không mất dữ liệu: IoT Core queue messages, Firehose retry & backup to S3 nếu lỗi.
  • Hoàn toàn managed, không cần quản lý server, tuân thủ best practice AWS IoT 2024-2026 (IoT Rules engine tích hợp Firehose/Lambda).

📋 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, 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 HA, scalability, tương thích MQTT, và tránh mất dữ liệu.

  • Phương án 1: Launch two Amazon EC2 instances to host the Kafka server in an active/standby configuration across two Availability Zones. Create a domain name in Amazon Route 53. Create a Route 53 failover policy. Route the sensors to send the data to the domain name.
    ❌ Sai vì: EC2 self-managed Kafka (active/standby) không scalable cho >10k sensors (cần cluster đầy đủ với Zookeeper, replication), vẫn có rủi ro mất dữ liệu nếu active crash trước khi failover (không queue tự động). Route53 chỉ DNS failover, không xử lý MQTT protocol native (sensors cần broker hỗ trợ MQTT). Không phải giải pháp managed, vi phạm yêu cầu HA thực sự.

  • Phương án 2: Migrate the on-premises Kafka server to Amazon Managed Streaming for Apache Kafka (Amazon MSK). Create a Network Load Balancer (NLB) that points to the Amazon MSK broker. Enable NLB health checks. Route the sensors to send the data to the NLB.
    ❌ Sai vì: Amazon MSK managed Kafka tốt cho HA/scalable, nhưng không hỗ trợ MQTT trực tiếp (Kafka dùng AMQP/Kafka protocol, cần MQTT bridge riêng như Strimzi). NLB chỉ TCP/UDP, không proxy MQTT hiệu quả (health checks không đủ cho streaming), sensors không kết nối được broker MSK public qua NLB mà không config phức tạp. Vẫn có rủi ro mất dữ liệu nếu buffer không đủ.

  • Phương án 3 (Đúng): Deploy AWS IoT Core, and connect it to an Amazon Kinesis Data Firehose delivery stream. Use an AWS Lambda function to handle data transformation. Route the sensors to send the data to AWS IoT Core.
    ✅ Đúng như đã giải thích ở trên: IoT Core + Firehose + Lambda là stack serverless, HA, scalable lý tưởng cho MQTT IoT workloads, tích hợp trực tiếp S3, zero data loss với persistence & retry.

  • Phương án 4: Deploy AWS IoT Core, and launch an Amazon EC2 instance to host the Kafka server. Configure AWS IoT Core to send the data to the EC2 instance. Route the sensors to send the data to AWS IoT Core.
    ❌ Sai vì: Dù IoT Core tốt cho MQTT ingress, nhưng forward đến EC2 Kafka vẫn tạo single point of failure (EC2 không HA tự động, cần cluster phức tạp). Không scalable (EC2 giới hạn), dễ crash như on-premises cũ, mất dữ liệu nếu EC2 down. Không tận dụng managed services đầy đủ.

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

💡 Lời khuyên DevOps: Sử dụng CloudWatch metrics (IoT Fleet Indexing, Firehose throughput) và X-Ray tracing để monitor toàn stack này!

Câu 930 Chọn nhiều đáp án
A company recently started hosting new application workloads in the AWS Cloud. The company is using Amazon EC2 instances. Amazon Elastic File System (Amazon EFS) file systems, and Amazon RDS DB instances.

To meet regulatory and business requirements, the company must make the following changes for data backups:

•Backups must be retained based on custom daily, weekly, and monthly requirements.
•Backups must be replicated to at least one other AWS Region immediately after capture.
•The backup solution must provide a single source of backup status across the AWS environment.
•The backup solution must send immediate notifications upon failure of any resource backup.

Which combination of steps will meet these requirements with the LEAST amount of operational overhead? (Choose three.)
  1. A Create an AWS Backup plan with a backup rule for each of the retention requirements.
  2. B Configure an AWS Backup plan to copy backups to another Region.
  3. C Create an AWS Lambda function to replicate backups to another Region and send notification if a failure occurs.
  4. D Add an Amazon Simple Notification Service (Amazon SNS) topic to the backup plan to send a notification for finished jobs that have any status except BACKUP_JOB_COMPLETED.
  5. E Create an Amazon Data Lifecycle Manager (Amazon DLM) snapshot lifecycle policy for each of the retention requirements.
  6. F Set up RDS snapshots on each database.
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 một công ty đang triển khai ứng dụng trên AWS Cloud sử dụng Amazon EC2 instances, Amazon EFS file systems, và Amazon RDS DB instances. Họ cần thay đổi quy trình sao lưu dữ liệu (backups) để đáp ứng yêu cầu quy định và kinh doanh với ít overhead vận hành nhất (LEAST operational overhead). Các yêu cầu cụ thể bao gồm:

  • ✅ Giữ backups theo lịch tùy chỉnh: hàng ngày (daily), hàng tuần (weekly), hàng tháng (monthly).
  • ✅ Sao chép backups ngay lập tức sang ít nhất một AWS Region khác (cross-region replication).
  • ✅ Cung cấp một nguồn duy nhất để theo dõi trạng thái backups toàn bộ môi trường AWS (single source of backup status).
  • ✅ Gửi thông báo ngay lập tức khi bất kỳ backup nào thất bại (immediate notifications on failure).

Câu hỏi yêu cầu chọn kết hợp 3 bước (Choose three) sử dụng dịch vụ AWS để đáp ứng tất cả yêu cầu trên với ít công sức quản lý nhất. Giải pháp lý tưởng phải tự động hóa cao, hỗ trợ nhiều tài nguyên (EC2, EFS, RDS), và tích hợp sẵn các tính năng như retention rules, cross-region copy, centralized monitoring, notifications. Dịch vụ chính ở đây là AWS Backup – giải pháp sao lưu trung tâm, hỗ trợ phiên bản mới nhất 2026 với các tính năng vault locking, audit manager cho compliance.

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

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

Các đáp án đúng là sự kết hợp hoàn hảo của AWS Backup, đáp ứng tất cả yêu cầu với zero custom code, centralized vault làm single source status, và tự động hóa cao:

  1. Create an AWS Backup plan with a backup rule for each of the retention requirements.
  2. Configure an AWS Backup plan to copy backups to another Region.
  3. Add an Amazon Simple Notification Service (Amazon SNS) topic to the backup plan to send a notification for finished jobs that have any status except BACKUP_JOB_COMPLETED.

Lý do lựa chọn:

  • 🛠️ AWS Backup là dịch vụ native AWS hỗ trợ EC2 (AMI/snapshot), EFS, RDS một cách thống nhất. Một Backup Plan duy nhất có thể định nghĩa nhiều rules cho retention (daily/weekly/monthly), cross-region copy ngay sau backup, centralized dashboard (Backup vault/reports) làm single source status, và SNS integration cho notifications thất bại (status như FAILED, EXPIRED, etc.). Không cần script hay tool ngoài, giảm overhead tối đa. Đây là best practice theo AWS Well-Architected Framework (Reliability pillar).

🧩 Giải thích chi tiết từng phương án

  • ✅ Create an AWS Backup plan with a backup rule for each of the retention requirements.
    Đúng: Backup Plan của AWS Backup cho phép tạo nhiều rules tùy chỉnh (daily: retain 7 days; weekly: 4 weeks; monthly: 12 months), áp dụng chung cho EC2, EFS, RDS qua backup vault. Hỗ trợ lifecycle transitions (cold storage). Đáp ứng retention mà không cần quản lý riêng lẻ.

  • ✅ Configure an AWS Backup plan to copy backups to another Region.
    Đúng: Tính năng cross-region copy built-in trong Backup Plan (phiên bản 2023+), tự động replicate ngay sau capture sang Region khác (e.g., us-east-1 → eu-west-1). Hỗ trợ point-in-time restore, zero overhead so với Lambda custom.

  • ❌ Create an AWS Lambda function to replicate backups to another Region and send notification if a failure occurs.
    Sai: Lambda yêu cầu custom code, trigger phức tạp (EventBridge/CloudWatch), không centralized (phải track riêng), tăng overhead cao. AWS Backup đã có sẵn cross-region copy + notifications, không cần reinvent wheel.

  • ✅ Add an Amazon Simple Notification Service (Amazon SNS) topic to the backup plan to send a notification for finished jobs that have any status except BACKUP_JOB_COMPLETED.
    Đúng: AWS Backup hỗ trợ SNS topic trực tiếp trong Plan, gửi alert cho jobs finished nhưng không COMPLETED (e.g., FAILED, TIMED_OUT, PARTIAL). Immediate notification, tích hợp email/Slack, đáp ứng yêu cầu failure alert với minimal config.

  • ❌ Create an Amazon Data Lifecycle Manager (Amazon DLM) snapshot lifecycle policy for each of the retention requirements.
    Sai: DLM chỉ hỗ trợ EBS volumes (EC2 snapshots), không hỗ trợ EFS hay RDS đầy đủ. Không có cross-region copy native, không centralized cho multi-resource, phải tạo nhiều policy riêng → overhead cao, không cover tất cả workloads.

  • ❌ Set up RDS snapshots on each database.
    Sai: RDS manual snapshots không tự động theo schedule tùy chỉnh (cần Automation hoặc script), không cross-region dễ dàng (phải copy thủ công), không centralized cho EC2/EFS, thiếu notifications built-in. Overhead lớn so với AWS Backup vault thống nhất.

🛠️ Kết luận: Kết hợp 3 đáp án đúng tạo AWS Backup Plan hoàn chỉnh – scalable, compliant, low-overhead. Implement nhanh qua Console/CLI/Terraform! 🚀