0
0
DynamoDBquery~20 mins

AWS Console and DynamoDB setup - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
DynamoDB Setup Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
DynamoDB Table Read Capacity Behavior

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?

AThe table will throttle the extra read requests, causing some reads to fail with a ProvisionedThroughputExceededException.
BDynamoDB will automatically increase the read capacity to 10 units to handle the load without errors.
CAll read requests will succeed without any throttling because DynamoDB queues them internally.
DThe table will switch to eventually consistent reads automatically to handle the extra load.
Attempts:
2 left
💡 Hint

Think about how provisioned capacity limits affect request throughput and what happens when limits are exceeded.

Architecture
intermediate
2:00remaining
Choosing Partition Key for DynamoDB Table

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?

AUse a constant string as the partition key for all items.
BUse the session ID as the partition key only.
CUse the user ID as the partition key and session ID as the sort key.
DUse the user ID concatenated with the session ID as the partition key.
Attempts:
2 left
💡 Hint

Consider how partition keys affect data distribution and query patterns.

security
advanced
2:00remaining
IAM Policy for DynamoDB Table Access

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?

A{"Effect": "Deny", "Action": ["dynamodb:GetItem"], "Resource": "arn:aws:dynamodb:*:*:table/UserData"}
B{"Effect": "Allow", "Action": ["dynamodb:PutItem"], "Resource": "arn:aws:dynamodb:*:*:table/UserData"}
C{"Effect": "Allow", "Action": ["dynamodb:*"], "Resource": "arn:aws:dynamodb:*:*:table/*"}
D{"Effect": "Allow", "Action": ["dynamodb:GetItem", "dynamodb:Query", "dynamodb:Scan"], "Resource": "arn:aws:dynamodb:*:*:table/UserData"}
Attempts:
2 left
💡 Hint

Focus on actions that allow reading data and the resource ARN for the specific table.

Best Practice
advanced
2:00remaining
DynamoDB Table Backup Strategy

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?

AUse DynamoDB point-in-time recovery (PITR) to continuously back up data and restore to any second in the last 35 days.
BExport the table data to S3 every day using a custom script.
CEnable on-demand backups manually each day during off-peak hours.
DCreate a global table in another region and use it as a backup.
Attempts:
2 left
💡 Hint

Consider backup automation, recovery options, and cost efficiency.

🧠 Conceptual
expert
2:00remaining
DynamoDB Consistency Models Impact

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?

ADynamoDB automatically upgrades eventually consistent reads to strongly consistent when needed.
BReads may return stale data for a short time after a write, causing potential inconsistency.
CEventually consistent reads are slower but always accurate.
DReads will always return the latest data immediately after a write.
Attempts:
2 left
💡 Hint

Think about the difference between eventually consistent and strongly consistent reads.