You create a DynamoDB table with a provisioned read capacity of 5 units. What happens if your application tries to read 10 strongly consistent items per second?
Think about how provisioned capacity limits affect request throughput and what happens when limits are exceeded.
DynamoDB enforces the provisioned read capacity. If your application exceeds it, extra requests are throttled and may fail with a ProvisionedThroughputExceededException. DynamoDB does not auto-scale capacity unless configured, and it does not automatically switch consistency models.
You want to create a DynamoDB table to store user sessions. Each user can have multiple sessions. Which partition key design will best distribute data and avoid hot partitions?
Consider how partition keys affect data distribution and query patterns.
Using user ID as partition key and session ID as sort key groups sessions by user and distributes data across partitions. Using session ID alone or a constant key can cause uneven data distribution or hot partitions.
You want to create an IAM policy that allows a Lambda function to read items from a specific DynamoDB table named 'UserData'. Which policy statement correctly grants read-only access to this table?
Focus on actions that allow reading data and the resource ARN for the specific table.
Option D grants read-only actions (GetItem, Query, Scan) on the specific table. Option D allows only writing. Option D allows all actions on all tables, which is too broad. Option D denies read access.
Your company requires daily backups of a DynamoDB table with minimal impact on performance and cost. Which backup method is best suited for this requirement?
Consider backup automation, recovery options, and cost efficiency.
PITR provides continuous backups with minimal performance impact and allows restoring to any point in the last 35 days. Manual on-demand backups require manual effort and may miss backups. Exporting data daily requires custom work and may impact performance. Global tables are for multi-region replication, not backups.
You have a DynamoDB table with eventually consistent reads enabled. Your application requires the most up-to-date data immediately after a write. What is the impact of using eventually consistent reads in this scenario?
Think about the difference between eventually consistent and strongly consistent reads.
Eventually consistent reads may return stale data shortly after a write because replication across storage nodes is asynchronous. Strongly consistent reads guarantee the latest data but consume more capacity.