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

Tìm thấy 358 câu.

Câu 51
A Database Specialist is creating Amazon DynamoDB tables, Amazon CloudWatch alarms, and associated infrastructure for an Application team using a development AWS account. The team wants a deployment method that will standardize the core solution components while managing environment-specific settings separately, and wants to minimize rework due to configuration errors.
Which process should the Database Specialist recommend to meet these requirements?
  1. A Organize common and environmental-specific parameters hierarchically in the AWS Systems Manager Parameter Store, then reference the parameters dynamically from an AWS CloudFormation template. Deploy the CloudFormation stack using the environment name as a parameter.
  2. B Create a parameterized AWS CloudFormation template that builds the required objects. Keep separate environment parameter files in separate Amazon S3 buckets. Provide an AWS CLI command that deploys the CloudFormation stack directly referencing the appropriate parameter bucket.
  3. C Create a parameterized AWS CloudFormation template that builds the required objects. Import the template into the CloudFormation interface in the AWS Management Console. Make the required changes to the parameters and deploy the CloudFormation stack.
  4. D Create an AWS Lambda function that builds the required objects using an AWS SDK. Set the required parameter values in a test event in the Lambda console for each environment that the Application team can modify, as needed. Deploy the infrastructure by triggering the test event in the console.
Xem giải thích

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

Câu hỏi mô tả tình huống một Database Specialist đang xây dựng các tài nguyên AWS như Amazon DynamoDB tables, Amazon CloudWatch alarms, và hạ tầng liên quan cho đội Application team trong một development AWS account. Yêu cầu chính là tìm phương pháp triển khai (deployment method) giúp:

  • Chuẩn hóa (standardize) các thành phần cốt lõi (core solution components) của giải pháp.
  • Quản lý riêng biệt các thiết lập cụ thể theo môi trường (environment-specific settings), ví dụ: dev, staging, prod.
  • Giảm thiểu rework (làm lại) do lỗi cấu hình (configuration errors).

🛠️ Mục tiêu cốt lõi: Sử dụng Infrastructure as Code (IaC) với AWS CloudFormation làm nền tảng, kết hợp cách quản lý tham số (parameters) linh hoạt, tự động hóa cao để tránh lỗi thủ công và dễ scale theo môi trường. Đây là best practice trong DevOps trên AWS (cập nhật đến 2026 với CloudFormation hỗ trợ dynamic references vào SSM Parameter Store).

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

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

Đáp án đúng: Organize common and environmental-specific parameters hierarchically in the AWS Systems Manager Parameter Store, then reference the parameters dynamically from an AWS CloudFormation template. Deploy the CloudFormation stack using the environment name as a parameter.

Lý do chi tiết:

  • Phương pháp này chuẩn hóa core components qua một CloudFormation template duy nhất, chỉ thay đổi tham số theo môi trường (env name như "dev", "prod").
  • SSM Parameter Store hỗ trợ cấu trúc phân cấp (hierarchical) như /app/common/db-instance (chung) và /env/dev/db-capacity (riêng env), cho phép reference động trong CF template bằng cú pháp {{resolve:ssm:/path/to/param:}}.
  • Triển khai đơn giản qua stack với parameter env name, tự động pull đúng giá trị → minimize config errors và rework, hỗ trợ CI/CD pipeline (như CodePipeline).
  • Phù hợp best practice AWS 2026: Tích hợp SSM SecureString cho secrets, versioning parameters, dễ audit và rollback. ✅ Hoàn hảo cho multi-env IaC!

🧩 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, giữ nguyên văn bản gốc:

  • ✅ Organize common and environmental-specific parameters hierarchically in the AWS Systems Manager Parameter Store, then reference the parameters dynamically from an AWS CloudFormation template. Deploy the CloudFormation stack using the environment name as a parameter.
    Đúng vì: Như giải thích trên, đây là cách tối ưu nhất với hierarchical params trong SSM (hỗ trợ nested paths như /env/dev/...), dynamic ref trong CF tránh hardcode, deploy linh hoạt chỉ cần env name. Giảm rework 100% nhờ tự động hóa, scale dễ dàng cho nhiều env. Best practice DevOps AWS hiện đại!

  • ❌ Create a parameterized AWS CloudFormation template that builds the required objects. Keep separate environment parameter files in separate Amazon S3 buckets. Provide an AWS CLI command that deploys the CloudFormation stack directly referencing the appropriate parameter bucket.
    Sai vì: Mặc dù dùng CF parameterized, nhưng lưu params riêng ở S3 buckets khác nhau per env gây phức tạp quản lý (phải tạo/maintain nhiều bucket, ACL, versioning). Không hierarchical, dễ lỗi khi CLI command sai bucket → tăng rework config errors. SSM tốt hơn S3 cho params động/shared.

  • ❌ Create a parameterized AWS CloudFormation template that builds the required objects. Import the template into the CloudFormation interface in the AWS Management Console. Make the required changes to the parameters and deploy the CloudFormation stack.
    Sai vì: Hoàn toàn manual qua Console (import, edit params tay mỗi lần) → không tự động, dễ config errors lặp lại (nhập sai giá trị env), không chuẩn hóa (phải làm lại toàn bộ stack per env). Vi phạm IaC principle, rework cao, không phù hợp team lớn hoặc CI/CD.

  • ❌ Create an AWS Lambda function that builds the required objects using an AWS SDK. Set the required parameter values in a test event in the Lambda console for each environment that the Application team can modify, as needed. Deploy the infrastructure by triggering the test event in the console.
    Sai vì: Dùng Lambda + SDK là imperative scripting (không declarative như CF), test event manual qua Console per env → cực kỳ dễ lỗi, không idempotent, khó audit/rollback. Team phải edit event tay → maximize rework, không standardize core components. Không phải IaC chuẩn AWS!

🛠️ Kết luận: Phương pháp đúng tận dụng SSM + CloudFormation dynamic refs là golden standard cho multi-env deployments trên AWS, giúp team focus vào app thay vì infra hassle! 🚀

Câu 52
A company runs online transaction processing (OLTP) workloads on an Amazon RDS for PostgreSQL Multi-AZ DB instance. Tests were run on the database after work hours, which generated additional database logs. The free storage of the RDS DB instance is low due to these additional logs.
What should the company do to address this space constraint issue?
  1. A Log in to the host and run the rm $PGDATA/pg_logs/* command
  2. B Modify the rds.log_retention_period parameter to 1440 and wait up to 24 hours for database logs to be deleted
  3. C Create a ticket with AWS Support to have the logs deleted
  4. D Run the SELECT rds_rotate_error_log() stored procedure to rotate the logs
Xem giải thích

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

Câu hỏi mô tả tình huống một công ty đang chạy các workload Online Transaction Processing (OLTP) trên Amazon RDS for PostgreSQL Multi-AZ DB instance. Sau các bài test ngoài giờ làm việc, lượng logs database tăng đột biến, dẫn đến free storage của RDS instance bị thấp (space constraint).
Vấn đề cốt lõi: Logs PostgreSQL (bao gồm error logs, slow query logs) chiếm dung lượng lưu trữ, và cần giải pháp an toàn, tự động để giải phóng không gian mà không can thiệp thủ công vào managed service RDS.
RDS là dịch vụ fully managed, nên AWS tự động xử lý logs với cơ chế retention period (thời gian lưu giữ). Giải pháp phải tuân thủ best practices AWS, tránh truy cập trực tiếp vào host hoặc phụ thuộc support.

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

Đáp án đúng: Modify the rds.log_retention_period parameter to 1440 and wait up to 24 hours for database logs to be deleted

Lý do:

  • Parameter rds.log_retention_period (đơn vị: phút) kiểm soát thời gian AWS giữ lại database logs trên RDS PostgreSQL. Giá trị mặc định là 1440 phút (1 ngày).
  • Việc modify parameter này xuống mức phù hợp (ví dụ 1440) sẽ kích hoạt RDS tự động xóa logs cũ hơn thời gian đó. Quá trình xóa có thể mất lên đến 24 giờ để hoàn tất (do cơ chế background job của RDS).
  • Đây là cách chuẩn AWS, không yêu cầu downtime, và áp dụng ngay cho Multi-AZ setup. Kiến thức cập nhật đến 2026: Parameter này vẫn là recommended practice trong RDS PostgreSQL (version 16+), hỗ trợ dynamic update mà không reboot instance.
    🛠️ Cách thực hiện: Sử dụng AWS Console/CLI modify DB Parameter Group, sau đó apply vào DB instance.

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

Dưới đây là giải thích chi tiết từng lựa chọn, với giữ nguyên văn bản gốc và phân tích đúng/sai bằng tiếng Việt:

  • ❌ Log in to the host and run the rm $PGDATA/pg_logs/ command*
    Phương án này sai hoàn toàn vì RDS là fully managed service, khách hàng không thể SSH hoặc log in trực tiếp vào host (EC2 underlying). Việc cố gắng xóa thủ công logs ($PGDATA/pg_logs) sẽ vi phạm security best practices và không khả dụng. AWS cấm truy cập host để tránh rủi ro.

  • ✅ Modify the rds.log_retention_period parameter to 1440 and wait up to 24 hours for database logs to be deleted
    Đúng như đã giải thích ở trên. Đây là giải pháp tự động, scalable, phù hợp với OLTP workloads cao tải. Giá trị 1440 phút là mức tối thiểu khuyến nghị để tránh mất logs quan trọng.

  • ❌ Create a ticket with AWS Support to have the logs deleted
    Sai vì AWS Support không thực hiện xóa logs thủ công cho RDS. Đây là self-service task qua parameter group. Chỉ escalate support nếu có bug hệ thống, không phải cho space management thông thường (tiết kiệm chi phí và thời gian).

  • ❌ Run the SELECT rds_rotate_error_log() stored procedure to rotate the logs
    Sai vì stored procedure rds_rotate_error_log() chỉ hỗ trợ RDS for MySQL/MariaDB, không áp dụng cho PostgreSQL. Với PostgreSQL, rotation logs được AWS quản lý tự động qua parameter như rds.log_retention_period hoặc log_rotation_size, không dùng procedure này.

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

  • AWS RDS Documentation: Managing PostgreSQL logs on RDS – Chi tiết về rds.log_retention_period và auto-deletion.
  • RDS Parameter Groups: DB Parameter Groups – Hướng dẫn modify parameters dynamically.
  • RDS Storage Management: Amazon RDS Storage – Best practices xử lý logs và free storage.
  • Exam Topic DOP-C02: Phần RDS Monitoring & Logs trong AWS Certified DevOps Engineer Professional (2024-2026 blueprint).

🛠️ Khuyến nghị bổ sung: Giám sát logs qua CloudWatch Logs, enable performance insights, và set auto-scaling storage để tránh vấn đề tương lai!

Câu 53
A user has a non-relational key-value database. The user is looking for a fully managed AWS service that will offload the administrative burdens of operating and scaling distributed databases. The solution must be cost-effective and able to handle unpredictable application traffic.
What should a Database Specialist recommend for this user?
  1. A Create an Amazon DynamoDB table with provisioned capacity mode
  2. B Create an Amazon DocumentDB cluster
  3. C Create an Amazon DynamoDB table with on-demand capacity mode
  4. D Create an Amazon Aurora Serverless DB cluster
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 người dùng đang sở hữu cơ sở dữ liệu key-value không quan hệ (non-relational key-value database). Họ cần một dịch vụ AWS fully managed (quản lý hoàn toàn), giúp offload gánh nặng hành chính như vận hành và mở rộng các cơ sở dữ liệu phân tán (distributed databases). Giải pháp phải tiết kiệm chi phí (cost-effective) và xử lý được lưu lượng truy cập ứng dụng không dự đoán trước (unpredictable application traffic).

🛠️ Yêu cầu chính từ câu hỏi:

  • Loại dữ liệu: Key-value NoSQL (ví dụ như Redis hoặc tương tự).
  • Fully managed & serverless: Không cần quản lý server, tự động scale.
  • Distributed & scalable: Hỗ trợ phân tán, mở rộng tự động.
  • Cost-effective cho unpredictable traffic: Trả phí theo sử dụng thực tế, tránh lãng phí.

Đây là tình huống điển hình cho các workload NoSQL với traffic biến động cao, nơi DynamoDB tỏa sáng nhờ kiến trúc serverless.

✅ Đáp án đúng: Create an Amazon DynamoDB table with on-demand capacity mode

Lý do lựa chọn (dựa trên tài liệu AWS mới nhất 2024-2026):
DynamoDB là dịch vụ NoSQL key-value và document database fully managed, serverless, tự động scale toàn cầu mà không cần quản lý infrastructure. On-demand capacity mode lý tưởng cho unpredictable traffic vì:

  • Tự động scale reads/writes theo request thực tế (lên đến hàng triệu/sec).
  • Pay-per-request: Chỉ trả phí cho reads/writes thực tế, tiết kiệm chi phí (không cần dự đoán provisioned capacity).
  • Offload hoàn toàn admin burdens: Auto-backup, encryption, multi-AZ, global tables.
    ✅ Phù hợp 100% với key-value non-relational và yêu cầu cost-effective.

📋 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:

  • ❌ Create an Amazon DynamoDB table with provisioned capacity mode
    Phương án này sai vì provisioned mode yêu cầu người dùng dự đoán và đặt trước throughput (RCU/WCU) trước, dẫn đến lãng phí chi phí nếu traffic unpredictable (phải overprovision). Không cost-effective cho workload biến động, dù DynamoDB vẫn fully managed. (Cập nhật 2026: AWS khuyến nghị on-demand cho unpredictable traffic).

  • ❌ Create an Amazon DocumentDB cluster
    Phương án này sai vì DocumentDB là dịch vụ MongoDB-compatible document database (JSON-like), không phải pure key-value. Nó yêu cầu quản lý cluster (dù fully managed), không serverless hoàn toàn, và kém hiệu quả cho key-value đơn giản. Traffic unpredictable vẫn cần tuning instance, không offload tối ưu.

  • ✅ Create an Amazon DynamoDB table with on-demand capacity mode
    Như đã giải thích ở trên: Đúng hoàn hảo! Serverless, auto-scale, pay-per-use cho key-value, xử lý unpredictable traffic xuất sắc.

  • ❌ Create an Amazon Aurora Serverless DB cluster
    Phương án này sai vì Aurora Serverless là relational database (MySQL/PostgreSQL compatible), không hỗ trợ non-relational key-value. Dù serverless v2 (cập nhật 2023-2026) scale tốt cho unpredictable traffic, nó vẫn không phù hợp với key-value workload và kém hiệu quả chi phí cho NoSQL patterns.

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

🛠️ Lời khuyên DevOps: Trong thực tế, dùng DynamoDB on-demand kết hợp Auto Scaling policies và DAX cho cache để tối ưu latency/chi phí! Nếu cần multi-region, kích hoạt Global Tables.

Câu 54
A gaming company is designing a mobile gaming app that will be accessed by many users across the globe. The company wants to have replication and full support for multi-master writes. The company also wants to ensure low latency and consistent performance for app users.
Which solution meets these requirements?
  1. A Use Amazon DynamoDB global tables for storage and enable DynamoDB automatic scaling
  2. B Use Amazon Aurora for storage and enable cross-Region Aurora Replicas
  3. C Use Amazon Aurora for storage and cache the user content with Amazon ElastiCache
  4. D Use Amazon Neptune for storage
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 phát triển ứng dụng game di động (mobile gaming app) được truy cập bởi nhiều người dùng trên toàn cầu (many users across the globe). Yêu cầu chính bao gồm:

  • Replication: Sao chép dữ liệu giữa các vùng (regions) để đảm bảo tính sẵn sàng cao.
  • Full support for multi-master writes: Hỗ trợ đầy đủ ghi dữ liệu (writes) từ nhiều master node ở các vùng khác nhau, tránh bottleneck ở một vùng duy nhất.
  • Low latency và consistent performance: Độ trễ thấp và hiệu suất ổn định cho người dùng toàn cầu, đặc biệt quan trọng với game thời gian thực.

🛠️ Mục tiêu giải pháp: Cần một dịch vụ NoSQL hoặc database hỗ trợ multi-region active-active replication với writes đa vùng, tự động scale, và tối ưu cho workload game cao (high-throughput, global access). Đây là kịch bản điển hình cho DynamoDB Global Tables trong AWS.

✅ Đáp án đúng

Use Amazon DynamoDB global tables for storage and enable DynamoDB automatic scaling

Lý do lựa chọn:

  • DynamoDB Global Tables cung cấp multi-master replication thực sự (active-active), cho phép writes ở bất kỳ region nào và tự động đồng bộ dữ liệu giữa các region với độ trễ thấp (thường dưới 1 giây).
  • DynamoDB automatic scaling (On-Demand hoặc Provisioned Capacity với Auto Scaling) đảm bảo hiệu suất nhất quán, tự động điều chỉnh RCU/WCU theo workload game biến động cao, tránh throttling.
  • Hoàn hảo cho app game toàn cầu: Low latency nhờ endpoint local ở mỗi region, hỗ trợ hàng triệu user mà không cần quản lý thủ công.
  • Kiến thức cập nhật 2026: DynamoDB Global Tables v2 (từ 2020) vẫn là chuẩn gold, hỗ trợ point-in-time recovery (PITR) và streams cross-region.

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

  • ✅ Use Amazon DynamoDB global tables for storage and enable DynamoDB automatic scaling
    🟢 Đúng vì: Như giải thích trên, đây là giải pháp duy nhất đáp ứng multi-master writes full support với replication tự động, low latency global, và auto scaling native. Không cần code phức tạp.

  • ❌ Use Amazon Aurora for storage and enable cross-Region Aurora Replicas
    🔴 Sai vì: Aurora Global Database chỉ hỗ trợ read replicas cross-region (writer ở primary cluster duy nhất), không hỗ trợ multi-master writes đầy đủ (writes chỉ ở một region chính, replicate async sang reader regions). Dẫn đến high latency writes cho user ngoài primary region, không phù hợp game global.

  • ❌ Use Amazon Aurora for storage and cache the user content with Amazon ElastiCache
    🔴 Sai vì: Aurora (Relational DB) không hỗ trợ multi-master writes cross-region, chỉ là single-writer multi-reader. ElastiCache (Redis/Memcached) chỉ cache reads (giảm latency tạm thời), không giải quyết replication writes hoặc consistency global. Workload game cần writes mạnh mẽ hơn cache đơn thuần.

  • ❌ Use Amazon Neptune for storage
    🔴 Sai vì: Neptune là graph database (dành cho relationships phức tạp như social graphs), không tối ưu cho gaming data thông thường (user sessions, scores, leaderboards). Không hỗ trợ multi-master writes cross-region native (chỉ read replicas limited), latency cao hơn DynamoDB cho global scale.

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

🛡️ Kết luận: DynamoDB là lựa chọn tối ưu cho DevOps Engineer xử lý global gaming workloads! Nếu cần deploy thực tế, dùng CDK/Terraform cho IaC.

Câu 55
A Database Specialist needs to speed up any failover that might occur on an Amazon Aurora PostgreSQL DB cluster. The Aurora DB cluster currently includes the primary instance and three Aurora Replicas.
How can the Database Specialist ensure that failovers occur with the least amount of downtime for the application?
  1. A Set the TCP keepalive parameters low
  2. B Call the AWS CLI failover-db-cluster command
  3. C Enable Enhanced Monitoring on the DB cluster
  4. D Start a database activity stream on the DB cluster
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 Amazon Aurora PostgreSQL DB cluster 📘, nơi có một primary instance và ba Aurora Replicas (các bản sao đọc). Failover là quá trình tự động chuyển primary sang một replica khi primary gặp sự cố (như crash, network failure), nhằm đảm bảo tính sẵn sàng cao (high availability).

Vấn đề chính: Tăng tốc failover để giảm downtime cho ứng dụng (application). Trong Aurora, failover thường mất 30 giây đến 2 phút (tùy thuộc vào phát hiện failure và promotion replica). Database Specialist cần phương pháp tối ưu hóa tự động, không can thiệp thủ công, để downtime thấp nhất (ideal là dưới 30 giây).

Kiến thức cập nhật AWS đến 2026: Aurora hỗ trợ fast failover qua cơ chế writer promotion nhanh (dùng quorum voting từ replicas), nhưng TCP keepalive là key parameter để detect failure sớm hơn (theo AWS RDS/Aurora best practices).

✅ Đáp án đúng: Set the TCP keepalive parameters low

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

  • Trong Aurora PostgreSQL, primary instance sử dụng TCP keepalive probes để kiểm tra kết nối client-DB. Giá trị mặc định cao (ví dụ: tcp_keepalive_time ~7200 giây) làm chậm phát hiện primary chết → replicas mất thời gian dài mới promote.
  • Set low (ví dụ: tcp_keepalive_time=30, tcp_keepalive_intvl=5, tcp_keepalive_probes=3 qua parameter group) giúp detect failure trong ~30-60 giây, giảm failover time xuống dưới 30 giây.
  • Đây là best practice tự động từ AWS, không ảnh hưởng performance bình thường, chỉ tăng tốc HA. Áp dụng trên DB cluster parameter group (custom group cho PostgreSQL).
  • Tài liệu tham khảo: AWS Docs - Aurora PostgreSQL High Availability & Parameter Groups for Failover Optimization (cập nhật 2024-2026, khuyến nghị explicit cho PostgreSQL clusters).

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

  • Set the TCP keepalive parameters low
    ✅ Đúng 🏆: Như giải thích trên, tối ưu detect failure nhanh, giảm downtime failover hiệu quả nhất cho auto-failover. Không cần can thiệp thủ công, phù hợp production.

  • Call the AWS CLI failover-db-cluster command
    ❌ Sai ⚠️: Đây là manual failover (lệnh aws rds failover-db-cluster), buộc promote replica cụ thể → tăng downtime (thêm thời gian execute lệnh, ~1-2 phút). Không tự động, không speed up auto-failover. Chỉ dùng cho testing/maintenance.

  • Enable Enhanced Monitoring on the DB cluster
    ❌ Sai 📊: Enhanced Monitoring (dùng CloudWatch agent) chỉ cung cấp metrics chi tiết (CPU, OS-level), giúp observe sau failover chứ không tăng tốc process. Không ảnh hưởng TCP detection hay promotion time.

  • Start a database activity stream on the DB cluster
    ❌ Sai 🔒: Database Activity Streams (DAS) là tính năng audit logging (stream SQL changes qua Kinesis), dùng cho compliance/security. Không liên quan đến failover speed, chỉ tốn resource (CPU/storage) và làm chậm cluster nhẹ.

Kết luận tổng quát 🎯: Phương án đúng tận dụng network-level optimization cho HA tự động của Aurora (Aurora 3.x/MySQL/PostgreSQL versions hỗ trợ tốt nhất đến 2026). Recommend test trên dev cluster trước khi apply! 🚀

Câu 56
A Database Specialist needs to define a database migration strategy to migrate an on-premises Oracle database to an Amazon Aurora MySQL DB cluster. The company requires near-zero downtime for the data migration. The solution must also be cost-effective.
Which approach should the Database Specialist take?
  1. A Dump all the tables from the Oracle database into an Amazon S3 bucket using datapump (expdp). Run data transformations in AWS Glue. Load the data from the S3 bucket to the Aurora DB cluster.
  2. B Order an AWS Snowball appliance and copy the Oracle backup to the Snowball appliance. Once the Snowball data is delivered to Amazon S3, create a new Aurora DB cluster. Enable the S3 integration to migrate the data directly from Amazon S3 to Amazon RDS.
  3. C Use the AWS Schema Conversion Tool (AWS SCT) to help rewrite database objects to MySQL during the schema migration. Use AWS DMS to perform the full load and change data capture (CDC) tasks.
  4. D Use AWS Server Migration Service (AWS SMS) to import the Oracle virtual machine image as an Amazon EC2 instance. Use the Oracle Logical Dump utility to migrate the Oracle data from Amazon EC2 to an Aurora DB cluster.
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 Database Specialist định nghĩa chiến lược di chuyển cơ sở dữ liệu Oracle on-premises sang Amazon Aurora MySQL DB cluster. Các yêu cầu chính bao gồm:

  • Near-zero downtime (thời gian ngừng hoạt động gần như bằng không) cho quá trình di chuyển dữ liệu.
  • Cost-effective (tiết kiệm chi phí).

🔍 Chi tiết vấn đề:

  • Đây là migration heterogeneous (từ Oracle sang MySQL/Aurora), đòi hỏi chuyển đổi schema, dữ liệu và xử lý thay đổi liên tục (CDC - Change Data Capture) để đảm bảo đồng bộ mà không gián đoạn ứng dụng.
  • Aurora MySQL là lựa chọn tối ưu cho workload MySQL với hiệu suất cao, nhưng cần công cụ chuyên dụng để tránh downtime lớn và chi phí cao từ việc rebuild toàn bộ.
    (Kiến thức cập nhật đến 2026: AWS DMS và SCT vẫn là best practice cho migration này theo AWS Database Migration Best Practices, hỗ trợ Aurora PostgreSQL/MySQL Serverless v3 mới nhất).

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

Đáp án đúng: Use the AWS Schema Conversion Tool (AWS SCT) to help rewrite database objects to MySQL during the schema migration. Use AWS DMS to perform the full load and change data capture (CDC) tasks.

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

  • AWS SCT tự động chuyển đổi schema (stored procedures, triggers, views) từ Oracle sang MySQL, hỗ trợ >80% objects tự động, giảm công sức thủ công.
  • AWS DMS thực hiện full load (chuyển dữ liệu ban đầu) + CDC (bắt thay đổi real-time từ source sang target), đảm bảo near-zero downtime vì ứng dụng có thể tiếp tục ghi dữ liệu trên Oracle trong quá trình migrate. Sau full load + CDC cutover, switch chỉ mất giây/phút.
  • Cost-effective: DMS tính phí theo giờ instance + data transfer, SCT miễn phí (chạy trên EC2), không cần hardware đặc biệt hay transform phức tạp.
  • Phù hợp hoàn hảo với heterogeneous migration Oracle → Aurora MySQL theo AWS re:Post và docs 2026.

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

Dưới đây là phân tích chi tiết từng lựa chọn, giữ nguyên văn bản gốc bằng tiếng Anh. Mỗi phương án được đánh giá ✅ (đúng) hoặc ❌ (sai) với giải thích rõ ràng:

  • ❌ Dump all the tables from the Oracle database into an Amazon S3 bucket using datapump (expdp). Run data transformations in AWS Glue. Load the data from the S3 bucket to the Aurora DB cluster.
    Giải thích sai: Phương án này yêu cầu dump toàn bộ tables offline bằng expdp (downtime lớn, có thể hàng giờ/ngày tùy kích thước DB), sau đó transform bằng Glue (phức tạp, tốn kém cho heterogeneous data types Oracle→MySQL), rồi load thủ công. Không hỗ trợ CDC, vi phạm near-zero downtime. Glue phù hợp ETL batch hơn migration real-time, chi phí cao từ compute Glue jobs.

  • ❌ Order an AWS Snowball appliance and copy the Oracle backup to the Snowball appliance. Once the Snowball data is delivered to Amazon S3, create a new Aurora DB cluster. Enable the S3 integration to migrate the data directly from Amazon S3 to Amazon RDS.
    Giải thích sai: Snowball dành cho data transfer lớn offline (physical ship), downtime rất cao (ngày/tuần chờ ship + import). S3 integration với RDS/Aurora chỉ hỗ trợ import full backup (không CDC), không xử lý schema conversion Oracle→MySQL. Không cost-effective cho DB nhỏ/trung bình, chỉ phù hợp petabyte-scale data lake.

  • ✅ Use the AWS Schema Conversion Tool (AWS SCT) to help rewrite database objects to MySQL during the schema migration. Use AWS DMS to perform the full load and change data capture (CDC) tasks.
    Giải thích đúng: Như đã nêu ở phần đáp án đúng. SCT + DMS là AWS-native solution chuẩn cho migration này, hỗ trợ CDC với LogMiner cho Oracle, đảm bảo continuous replication đến cutover. Hỗ trợ Aurora MySQL 3.10+ (2026).

  • ❌ Use AWS Server Migration Service (AWS SMS) to import the Oracle virtual machine image as an Amazon EC2 instance. Use the Oracle Logical Dump utility to migrate the Oracle data from Amazon EC2 to an Aurora DB cluster.
    Giải thích sai: AWS SMS dành cho VM migration (lift-and-shift toàn server), không tối ưu cho DB (tốn chi phí EC2 liên tục). Logical Dump (như Data Pump) vẫn yêu cầu offline export/import, downtime cao, không CDC. Không xử lý schema conversion tự động, phải thủ công – kém hiệu quả và không cost-effective so với DMS.

📘 Tài liệu tham khảo

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 case study, hỏi nhé!

Câu 57
A marketing company is using Amazon DocumentDB and requires that database audit logs be enabled. A Database Specialist needs to configure monitoring so that all data definition language (DDL) statements performed are visible to the Administrator. The Database Specialist has set the audit_logs parameter to enabled in the cluster parameter group.
What should the Database Specialist do to automatically collect the database logs for the Administrator?
  1. A Enable DocumentDB to export the logs to Amazon CloudWatch Logs
  2. B Enable DocumentDB to export the logs to AWS CloudTrail
  3. C Enable DocumentDB Events to export the logs to Amazon CloudWatch Logs
  4. D Configure an AWS Lambda function to download the logs using the download-db-log-file-portion operation and store the logs in Amazon S3
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 Amazon DocumentDB (một dịch vụ cơ sở dữ liệu tương thích MongoDB do AWS cung cấp), nơi một công ty marketing cần kích hoạt database audit logs để theo dõi tất cả các câu lệnh DDL (Data Definition Language) như CREATE, ALTER, DROP... đã thực hiện trên cluster.

📝 Tình huống cụ thể:

  • Database Specialist đã thiết lập tham số audit_logs = enabled trong cluster parameter group (đây là bước đầu tiên để bật tính năng ghi log audit).
  • Mục tiêu: Tự động thu thập (collect) database logs để Administrator có thể xem được một cách dễ dàng, không cần can thiệp thủ công.

🛠️ Vấn đề cốt lõi: Sau khi bật audit_logs, logs sẽ được lưu trữ nội bộ trong DocumentDB, nhưng để tự động hóa việc thu thập và giám sát, cần cấu hình export logs ra dịch vụ bên ngoài. AWS DocumentDB (phiên bản cập nhật đến 2026) hỗ trợ export các loại logs (bao gồm audit logs) một cách native và tự động qua CloudWatch Logs, giúp dễ dàng query, alert và visualize mà không cần script thủ công.

✅ Đáp án đúng: Enable DocumentDB to export the logs to Amazon CloudWatch Logs

Lý do lựa chọn:

  • Đây là phương pháp chuẩn và tự động nhất theo tài liệu AWS mới nhất. Sau khi bật audit_logs = enabled, bạn chỉ cần chỉnh sửa cluster parameter group để kích hoạt enable_cloudwatch_logs_exports với giá trị bao gồm audit (cùng các loại khác như error, general, slowquery).
  • Logs sẽ tự động stream đến CloudWatch Logs group (ví dụ: /aws/docdb/cluster-name/audit), cho phép Admin query bằng CloudWatch Logs Insights, thiết lập metric filters, alarms tự động.
  • ✅ Ưu điểm: Không cần Lambda hay công cụ thủ công, tích hợp liền mạch với AWS monitoring stack, hỗ trợ scale cao và chi phí tối ưu (pay-per-use).

📋 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 giữ nguyên văn bản gốc bằng tiếng Anh, kèm giải thích chi tiết vì sao đúng/sai dựa trên tính năng AWS DocumentDB cập nhật 2026:

  • Enable DocumentDB to export the logs to Amazon CloudWatch Logs
    ✅ Đúng. Như đã giải thích ở trên, DocumentDB hỗ trợ export audit logs trực tiếp đến CloudWatch Logs qua parameter group (enable_cloudwatch_logs_exports=['audit']). Đây là cách tự động, real-time nhất, không yêu cầu polling hay script. Logs có format JSON dễ parse cho DDL statements.

  • Enable DocumentDB to export the logs to AWS CloudTrail
    ❌ Sai. CloudTrail chỉ ghi lại API calls (management events) trên AWS services, không phải database-level logs như DDL statements nội bộ DocumentDB. Audit logs của DocumentDB là engine-level (MongoDB-compatible), không liên quan đến CloudTrail. CloudTrail hữu ích cho trail API nhưng không collect database audit.

  • Enable DocumentDB Events to export the logs to Amazon CloudWatch Logs
    ❌ Sai. DocumentDB Events chỉ là management events (như cluster scale, backup fail), được gửi qua SNS hoặc CloudWatch Events, không bao gồm audit logs chi tiết DDL. Export Events đến CloudWatch Logs không capture được database statements cụ thể mà Specialist cần.

  • Configure an AWS Lambda function to download the logs using the download-db-log-file-portion operation and store the logs in Amazon S3
    ❌ Sai. download-db-log-file-portion là API cho RDS (không phải DocumentDB native cho audit logs tự động). DocumentDB hỗ trợ get-logs metrics nhưng không có operation chính xác này cho audit; cách này không tự động (cần schedule Lambda polling định kỳ, dễ miss logs, tốn chi phí và phức tạp). AWS khuyến nghị dùng CloudWatch export thay vì workaround này.

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

🛡️ Lưu ý: Luôn test trên môi trường dev trước khi apply parameter group (cần reboot instance nếu cần). Nếu cần alert DDL cụ thể, dùng CloudWatch Logs Insights query như fields @timestamp, @message | filter auditType = "DDL". Hy vọng phân tích này giúp bạn ôn thi DOP-C02 hiệu quả! 🚀

Câu 58
A company is looking to move an on-premises IBM Db2 database running AIX on an IBM POWER7 server. Due to escalating support and maintenance costs, the company is exploring the option of moving the workload to an Amazon Aurora PostgreSQL DB cluster.
What is the quickest way for the company to gather data on the migration compatibility?
  1. A Perform a logical dump from the Db2 database and restore it to an Aurora DB cluster. Identify the gaps and compatibility of the objects migrated by comparing row counts from source and target tables.
  2. B Run AWS DMS from the Db2 database to an Aurora DB cluster. Identify the gaps and compatibility of the objects migrated by comparing the row counts from source and target tables.
  3. C Run native PostgreSQL logical replication from the Db2 database to an Aurora DB cluster to evaluate the migration compatibility.
  4. D Run the AWS Schema Conversion Tool (AWS SCT) from the Db2 database to an Aurora DB cluster. Create a migration assessment report to evaluate the migration compatibility.
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 migrate cơ sở dữ liệu IBM Db2 chạy trên hệ điều hành AIX với phần cứng IBM POWER7 sang Amazon Aurora PostgreSQL DB cluster. Lý do chính là chi phí hỗ trợ và bảo trì đang tăng cao. Công ty cần cách nhanh nhất để thu thập dữ liệu về tính tương thích migration (migration compatibility), tức là đánh giá xem schema, objects (như tables, views, procedures) có thể chuyển đổi mượt mà không, bao gồm các vấn đề tiềm ẩn về syntax, data types, functions, v.v.

🔍 Điểm then chốt:

  • Db2 là database proprietary của IBM (LUW hoặc z/OS, ở đây là AIX POWER7 nên là Db2 LUW), trong khi Aurora PostgreSQL là PostgreSQL-compatible trên AWS.
  • Cần đánh giá nhanh schema compatibility trước khi migrate thực tế, không phải full data migration.
  • Theo kiến thức AWS cập nhật đến 2026 (AWS re:Invent 2025 và docs mới nhất), các công cụ như AWS SCT là chuẩn cho việc này vì hỗ trợ >200 nguồn DB, bao gồm Db2 LUW sang PostgreSQL/Aurora.

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

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

Đáp án đúng: Run the AWS Schema Conversion Tool (AWS SCT) from the Db2 database to an Aurora DB cluster. Create a migration assessment report to evaluate the migration compatibility.

Lý do 🛠️:

  • AWS SCT là công cụ chuyên biệt và nhanh nhất để convert schema từ Db2 sang PostgreSQL/Aurora, đồng thời tạo migration assessment report tự động. Report này phân tích chi tiết:
    • % tương thích schema (pros: fully convertible; cons: manual changes needed; actions: not supported).
    • Số lượng objects, data types, functions/stored procedures cần chỉnh sửa.
    • Thời gian ước tính migrate.
  • Quá trình chỉ mất vài phút/giờ tùy schema size, không cần di chuyển data thực tế. SCT hỗ trợ Db2 LUW (AIX/POWER) qua JDBC/ODBC endpoint.
  • Đây là best practice AWS cho heterogeneous migration (Db2 → PostgreSQL), nhanh hơn DMS vì DMS tập trung data replication chứ không phải schema assessment sâu.

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

  • Phương án A (Sai): Perform a logical dump from the Db2 database and restore it to an Aurora DB cluster. Identify the gaps and compatibility of the objects migrated by comparing row counts from source and target tables.
    Giải thích sai ❌: Logical dump của Db2 (EXPORT/LOAD hoặc db2move) tạo file SQL/binary không tương thích trực tiếp với PostgreSQL syntax (ví dụ: Db2 dùng double-quote cho identifiers, data types khác như DECIMAL vs NUMERIC). Restore sẽ fail ngay hoặc mất data integrity. So sánh row counts chỉ check data volume, không đánh giá schema compatibility (như procedures, triggers). Quá trình chậm, thủ công, dễ lỗi – không phải cách "nhanh nhất".

  • Phương án B (Sai): Run AWS DMS from the Db2 database to an Aurora DB cluster. Identify the gaps and compatibility of the objects migrated by comparing the row counts from source and target tables.
    Giải thích sai ❌: AWS DMS (Database Migration Service) giỏi full load/CDC data replication từ Db2 → Aurora PostgreSQL (hỗ trợ Db2 LUW as source từ 2023+), nhưng không chuyên schema assessment. DMS giả định schema đã tương thích (cần SCT trước), và so sánh row counts chỉ verify data completeness, không detect syntax gaps (ví dụ: Db2 functions như DECFLOAT không map trực tiếp). Chạy DMS full sẽ tốn thời gian/data transfer cao, không "nhanh" cho compatibility check.

  • Phương án C (Sai): Run native PostgreSQL logical replication from the Db2 database to an Aurora DB cluster to evaluate the migration compatibility.
    Giải thích sai ❌: PostgreSQL logical replication (pg_logical) chỉ hoạt động giữa các PostgreSQL instances (source/target cùng engine). Db2 không hỗ trợ PostgreSQL replication protocol (dùng WAL-based khác hẳn). Không thể chạy native từ Db2 → Aurora. Đây là phương án không khả thi, sẽ fail ngay kết nối.

  • Phương án D (Đúng): Run the AWS Schema Conversion Tool (AWS SCT) from the Db2 database to an Aurora DB cluster. Create a migration assessment report to evaluate the migration compatibility.
    Giải thích đúng ✅: Như đã nêu ở phần đáp án. SCT là quickest way vì: | Aspect | Lợi ích | |--------|---------| | Tốc độ | Schema-only scan, report trong phút. | | Độ sâu | Phân loại actions: 100% auto, partial, manual. | | Tích hợp | Export script chạy trực tiếp trên Aurora. | Hỗ trợ Db2 LUW → Aurora PostgreSQL full từ AWS 2022+, cập nhật 2025 với AI-assisted conversion.

🧠 Lời khuyên DevOps: Sau SCT assessment, dùng DMS cho data migration + SCT data extract nếu cần. Test trên dev cluster trước production! 🚀

Câu 59
An ecommerce company is using Amazon DynamoDB as the backend for its order-processing application. The steady increase in the number of orders is resulting in increased DynamoDB costs. Order verification and reporting perform many repeated GetItem functions that pull similar datasets, and this read activity is contributing to the increased costs. The company wants to control these costs without significant development efforts.
How should a Database Specialist address these requirements?
  1. A Use AWS DMS to migrate data from DynamoDB to Amazon DocumentDB
  2. B Use Amazon DynamoDB Streams and Amazon Kinesis Data Firehose to push the data into Amazon Redshift
  3. C Use an Amazon ElastiCache for Redis in front of DynamoDB to boost read performance
  4. D Use DynamoDB Accelerator to offload the reads
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 thương mại điện tử đang sử dụng Amazon DynamoDB làm backend cho ứng dụng xử lý đơn hàng. 📈 Số lượng đơn hàng tăng ổn định dẫn đến chi phí DynamoDB tăng cao, chủ yếu do hoạt động order verification (xác thực đơn hàng) và reporting (báo cáo) thực hiện nhiều lệnh GetItem lặp lại trên các tập dữ liệu tương tự. Những read này tiêu tốn nhiều Read Capacity Units (RCUs), góp phần lớn vào chi phí.

Yêu cầu chính: Kiểm soát chi phí mà không cần nỗ lực phát triển lớn (without significant development efforts). 🛠️ Đây là vấn đề phổ biến với DynamoDB khi có workload read-heavy với dữ liệu lặp lại, cần giải pháp caching để offload reads khỏi bảng chính, giảm RCU và chi phí.

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

Đáp án đúng: Use DynamoDB Accelerator to offload the reads
Lý do: DynamoDB Accelerator (DAX) là dịch vụ in-memory caching được AWS thiết kế dành riêng cho DynamoDB (fully managed, serverless). Nó tự động cache kết quả các lệnh GetItem/GetRecords lặp lại, offload 99% reads khỏi DynamoDB chính, giảm RCU xuống mức tối thiểu và tiết kiệm chi phí lên đến 10x. 🔄

  • Không cần dev effort lớn: Chỉ thay đổi endpoint client từ DynamoDB sang DAX (plug-and-play), tương thích hoàn toàn với DynamoDB API.
  • Phù hợp hoàn hảo với yêu cầu: Xử lý repeated reads trên dataset tương tự mà không thay đổi code nhiều.
    (DAX vẫn là giải pháp chuẩn đến 2026, hỗ trợ microsecond latency cho reads.)

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

Dưới đây là phân tích chi tiết từng lựa chọn, với giữ nguyên nội dung gốc bằng tiếng Anh. Tôi đánh dấu ✅ đúng hoặc ❌ sai, kèm lý do bằng tiếng Việt rõ ràng:

  • ❌ Use AWS DMS to migrate data from DynamoDB to Amazon DocumentDB
    Phương án này sai vì AWS Database Migration Service (DMS) không hỗ trợ migrate trực tiếp từ DynamoDB (NoSQL key-value) sang Amazon DocumentDB (document database) một cách seamless. Nó yêu cầu schema transformation lớn, custom ETL, và effort phát triển cao (vi phạm yêu cầu). Hơn nữa, migrate toàn bộ dữ liệu không giải quyết vấn đề read repeated trên DynamoDB hiện tại, chỉ làm phức tạp hệ thống và tăng chi phí vận hành.

  • ❌ Use Amazon DynamoDB Streams and Amazon Kinesis Data Firehose to push the data into Amazon Redshift
    Phương án này sai vì DynamoDB Streams + Kinesis Data Firehose dùng để stream changes (insert/update/delete) vào Amazon Redshift cho analytics/OLAP (báo cáo batch). Nó không hỗ trợ real-time GetItem reads cho order verification, mà chỉ capture mutations. Triển khai yêu cầu dev effort lớn (xây pipeline, schema mapping), không offload reads ngay lập tức, và tăng chi phí storage/query trên Redshift thay vì giảm DynamoDB costs.

  • ❌ Use an Amazon ElastiCache for Redis in front of DynamoDB to boost read performance
    Phương án này sai vì ElastiCache for Redis có thể cache reads, nhưng yêu cầu phát triển custom logic (implement cache-aside/invalidation, key design, TTL, error handling). Không plug-and-play như DAX, vi phạm "without significant development efforts". Redis chỉ boost performance chứ không tối ưu chi phí DynamoDB RCU một cách tự động, và tăng complexity quản lý cluster.

  • ✅ Use DynamoDB Accelerator to offload the reads
    Như đã giải thích ở trên: Giải pháp lý tưởng, zero-config cho repeated reads, giảm chi phí RCU hiệu quả nhất mà không cần code changes lớn.

📘 Tài liệu tham khảo (AWS Documentation mới nhất đến 2026)

  • DynamoDB Accelerator (DAX): AWS Docs - DAX – Chi tiết caching, RCU savings, và integration.
  • DynamoDB Best Practices: AWS Well-Architected - DynamoDB – Khuyến nghị DAX cho read-heavy workloads.
  • DAX vs. ElastiCache: AWS Blogs - Caching Strategies – So sánh rõ ràng ưu điểm DAX.
  • Exam Tips (DOP-C02): DAX thường là đáp án cho DynamoDB read optimization without code changes (AWS Certified DevOps Engineer - Professional blueprint 2024-2026).

Hy vọng phân tích này giúp bạn nắm vững! 🚀 Nếu cần thêm ví dụ code hoặc architecture diagram, hãy hỏi nhé.

Câu 60
An IT consulting company wants to reduce costs when operating its development environment databases. The company's workflow creates multiple Amazon
Aurora MySQL DB clusters for each development group. The Aurora DB clusters are only used for 8 hours a day. The DB clusters can then be deleted at the end of the development cycle, which lasts 2 weeks.
Which of the following provides the MOST cost-effective solution?
  1. A Use AWS CloudFormation templates. Deploy a stack with the DB cluster for each development group. Delete the stack at the end of the development cycle.
  2. B Use the Aurora DB cloning feature. Deploy a single development and test Aurora DB instance, and create clone instances for the development groups. Delete the clones at the end of the development cycle.
  3. C Use Aurora Replicas. From the master automatic pause compute capacity option, create replicas for each development group, and promote each replica to master. Delete the replicas at the end of the development cycle.
  4. D Use Aurora Serverless. Restore current Aurora snapshot and deploy to a serverless cluster for each development group. Enable the option to pause the compute capacity on the cluster and set an appropriate timeout.
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 giảm chi phí tối đa cho môi trường phát triển (development environment) sử dụng Amazon Aurora MySQL DB clusters. 🛠️

  • Công ty tạo nhiều Aurora DB clusters cho từng nhóm phát triển.
  • Các cluster chỉ được sử dụng 8 giờ mỗi ngày, và bị xóa hoàn toàn sau chu kỳ phát triển 2 tuần.
  • Yêu cầu: Tìm giải pháp tiết kiệm chi phí nhất (MOST cost-effective), tận dụng đặc tính của Aurora để tránh lãng phí tài nguyên compute và storage khi không sử dụng.

Vấn đề cốt lõi: Aurora thông thường (provisioned) tính phí compute liên tục, ngay cả khi idle, dẫn đến chi phí cao cho workload không liên tục. Giải pháp cần hỗ trợ tự động pause/tắt compute và scale linh hoạt. 📈 (Kiến thức cập nhật đến 2026: Aurora Serverless v2 là phiên bản mới nhất, hỗ trợ pause/resume nhanh chóng, tối ưu cho dev/test workloads.)

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

Đáp án đúng: Use Aurora Serverless. Restore current Aurora snapshot and deploy to a serverless cluster for each development group. Enable the option to pause the compute capacity on the cluster and set an appropriate timeout.

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

  • Aurora Serverless (v2) tự động pause compute capacity sau thời gian idle (có thể set timeout phù hợp, ví dụ 5-30 phút), chỉ tính phí storage khi paused – lý tưởng cho sử dụng chỉ 8h/ngày.
  • Restore từ snapshot nhanh chóng, deploy cluster serverless riêng cho mỗi nhóm dev, và xóa sau 2 tuần mà không lãng phí.
  • Tiết kiệm nhất: Giảm chi phí compute lên đến 80-90% so với provisioned clusters cho workload sporadic. Không cần quản lý instance size thủ công. 🤑
  • Phù hợp dev cycle ngắn, scale từ 0.5 ACU (Aurora Capacity Unit) đến hàng nghìn ACU tự động.

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

  • Phương án 1: Use AWS CloudFormation templates. Deploy a stack with the DB cluster for each development group. Delete the stack at the end of the development cycle.
    ❌ Sai: CloudFormation chỉ tự động hóa deploy/delete (IaC tốt cho DevOps), nhưng DB cluster vẫn là provisioned, tính phí compute full-time (16h idle/ngày x 14 ngày). Không giải quyết pause, chi phí cao. 🛑 (Chỉ tiện quản lý, không tiết kiệm.)

  • Phương án 2: Use the Aurora DB cloning feature. Deploy a single development and test Aurora DB instance, and create clone instances for the development groups. Delete the clones at the end of the development cycle.
    ❌ Sai: Cloning chia sẻ storage (tiết kiệm storage ~50-90%), nhưng mỗi clone vẫn chạy compute riêng full-time. Không pause tự động, vẫn tốn phí cho 16h idle/ngày. Không phải MOST cost-effective. 🔄 (Tốt cho copy nhanh, nhưng không cho idle workloads.)

  • Phương án 3: Use Aurora Replicas. From the master automatic pause compute capacity option, create replicas for each development group, and promote each replica to master. Delete the replicas at the end of the development cycle.
    ❌ Sai: Aurora Replicas dùng cho HA/read scaling, nhưng không hỗ trợ pause compute trên replicas (chỉ master có thể pause ở Serverless). Promote replica thành master vẫn là provisioned cluster, tính phí liên tục. Quá trình promote gián đoạn, không tiết kiệm. 🚫 (Read replicas vẫn consume compute.)

  • Phương án 4 (Đã nêu ở trên): Use Aurora Serverless. Restore current Aurora snapshot and deploy to a serverless cluster for each development group. Enable the option to pause the compute capacity on the cluster and set an appropriate timeout.
    ✅ Đúng: Như giải thích chi tiết ở trên – pause tự động, restore snapshot nhanh, tối ưu chi phí cho dev workloads ngắn hạn. 💯

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

Giải pháp này align với DevOps best practices: Automate, scale, và optimize cost! 🚀