A workload must store user session data with sub-second read/write and strong consistency, while sessions must expire automatically. Which AWS service/data model is the best fit?

Answer

Use Amazon DynamoDB with a table having a partition key and TTL enabled; ensure strongly consistent reads when needed

Explanation

DynamoDB supports low-latency reads/writes and automatic item expiration via TTL. Strong consistency is supported via strongly consistent reads.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

A customer requires deterministic, user-facing API performance. They expect traffic spikes and want to throttle/shape requests based on usage plans, while integrating authentication. Which service combination is most suitable?

View question →

A company needs to move a monolithic Java app to AWS with minimal downtime. The team must keep RPO under 15 minutes, tolerate a brief RTO during cutover, and handle blue/green traffic shifts. Which approach best fits these constraints?

View question →

A global web application needs a single-certificate HTTPS endpoint with path-based routing to multiple origins. It must also support caching for mostly static assets, while dynamic API responses must not be cached. Which configuration is most appropriate?

View question →

A multi-account organization requires centralized logging, strict encryption, and retention policies. The security team requests that logs never be unencrypted at rest and that only a security OU can access them. Which solution best meets these requirements?

View question →

An application uses S3 for uploads and must trigger asynchronous processing. You need to avoid duplicate processing when the same key is overwritten quickly. Which design is most robust?

View question →

Your architecture uses an Auto Scaling group across multiple subnets. Instances must join an existing Windows domain, download packages from a private repository, and write logs reliably even if the app fails before boot completes. Which approach is best?

View question →

QuestionBack to list