Courseiva
Workload-Specific Database DesigneasyMultiple ChoiceObjective-mapped

DBS-C01 Workload-Specific Database Design Practice Question

A company uses Amazon DynamoDB to store application logs. The logs have a TTL of 7 days. The operations team needs to run ad-hoc analytical queries on logs older than 7 days, which are automatically deleted by TTL. Which solution should the team implement to retain and analyze old logs?

⚠ Common exam trap

Many exam-takers think AWS Glue can directly query DynamoDB for historical analysis, but Glue is an ETL service that crawls existing data, not a query engine for deleted items, and TTL-deleted logs are permanently removed from DynamoDB.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use DynamoDB Streams to export logs to Amazon S3 and query with Amazon Athena.

DynamoDB Streams can capture item deletions (including TTL-based deletions) and export them to Amazon S3. Once the logs are in S3, Amazon Athena can run ad-hoc SQL queries directly on the data, providing a cost-effective and serverless analytical solution for logs older than 7 days.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use DynamoDB Streams to export logs to Amazon S3 and query with Amazon Athena.

    Why this is correct

    Streams capture data before deletion, and Athena can query S3 data cost-effectively.

  • Disable TTL and use a scheduled Lambda function to archive logs to Amazon S3.

    Why it's wrong here

    Disabling TTL would cause uncontrolled growth.

  • Increase the TTL to 30 days and query the logs directly in DynamoDB.

    Why it's wrong here

    Keeping logs in DynamoDB for 30 days is expensive for analytics.

  • Use AWS Glue to crawl DynamoDB tables and create a data catalog for Athena queries.

    Why it's wrong here

    Glue can crawl DynamoDB but queries would still read from DynamoDB, incurring read costs.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

One of 1,663 original DBS-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DBS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DBS-C01 exam.