0
0
DynamoDBquery~20 mins

Cross-region replication (Global Tables) in DynamoDB - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Global Tables Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How does DynamoDB Global Tables handle data replication?

Which statement best describes how DynamoDB Global Tables replicate data across regions?

AData is asynchronously replicated between regions with eventual consistency.
BData is synchronously replicated with strong consistency across all regions.
CData replication happens only when manually triggered by the user.
DData is replicated only for read operations, not writes.
Attempts:
2 left
💡 Hint

Think about how DynamoDB balances latency and consistency in global replication.

query_result
intermediate
2:00remaining
Result of a write conflict in DynamoDB Global Tables

Given two concurrent writes to the same item in different regions, what is the expected outcome in DynamoDB Global Tables?

AThe write in the primary region always overwrites the other.
BAn error is returned to the client indicating a conflict.
CBoth writes are merged automatically without conflicts.
DThe last write based on timestamp wins and overwrites the other.
Attempts:
2 left
💡 Hint

Consider how DynamoDB resolves conflicts using timestamps.

📝 Syntax
advanced
2:00remaining
Identify the error in creating a Global Table

Which option contains a valid AWS CLI command to create a DynamoDB Global Table with two regions?

DynamoDB
aws dynamodb create-global-table --global-table-name MyGlobalTable --replication-group RegionName=us-east-1 RegionName=eu-west-1
Aaws dynamodb create-global-table --global-table-name MyGlobalTable --replication-group '[{"RegionName":"us-east-1"},{"RegionName":"eu-west-1"}]'
Baws dynamodb create-global-table --global-table-name MyGlobalTable --replication-group RegionName=us-east-1 RegionName=eu-west-1
Caws dynamodb create-global-table --global-table-name MyGlobalTable --replication-group RegionName=us-east-1,RegionName=eu-west-1
Daws dynamodb create-global-table --global-table-name MyGlobalTable --replication-group '[RegionName=us-east-1,RegionName=eu-west-1]'
Attempts:
2 left
💡 Hint

Check the correct JSON format for the replication group parameter.

optimization
advanced
2:00remaining
Optimizing read latency with Global Tables

You want to minimize read latency for users in multiple regions using DynamoDB Global Tables. Which strategy is best?

AAlways read from the us-east-1 region regardless of user location.
BDirect reads to the nearest regional replica of the Global Table.
CUse a single region Global Table and replicate data manually.
DDisable Global Tables and use local tables with periodic batch sync.
Attempts:
2 left
💡 Hint

Think about how Global Tables distribute data for low latency.

🔧 Debug
expert
3:00remaining
Diagnosing replication lag in DynamoDB Global Tables

You notice that updates made in one region are not appearing promptly in another region's replica. Which is the most likely cause?

AStrong consistency setting enabled causing replication to block.
BWrites are being rejected due to exceeding provisioned throughput.
CNetwork issues causing delayed asynchronous replication.
DGlobal Table is configured with only one region.
Attempts:
2 left
💡 Hint

Consider how replication works and what can delay it.