Development with AWS Services I
Understand how to design efficient AWS applications using DynamoDB’s key strategies, Aurora’s global database for low latency, Athena for serverless SQL queries on S3, Kinesis for real-time data streams, and ECS task definitions for container settings.
We'll cover the following...
Question 1
A developer is designing a new social media application to store user posts in Amazon DynamoDB. Each post includes a UserId and a PostTimestamp. The application frequently needs to retrieve all posts by a specific user, ordered chronologically by post time per user, and query posts across all users based on hashtags.
Which primary key and indexing strategy should the developer implement to efficiently support these access patterns?
A. Primary key: Partition key: PostTimestamp, sort key: UserId
Indexing: ...