<ul data-eligibleForWebStory="true">Amazon DynamoDB is a fully managed NoSQL database service designed for high availability and low latency at any scale.It uses key-value and document data models, ideal for serverless and scalable applications.DynamoDB query can be performed using a hash key and range key.Two types of primary keys: simple (partition key) and composite (partition key + sort key).Querying with a composite primary key allows for efficient data retrieval and range queries.Setting up DynamoDB on Docker locally involves running the DynamoDB Local Docker image.Creating a table with a composite primary key involves defining attributes, key schema, and provisioning throughput.Inserting sample data is done using batch-write-item command.Querying DynamoDB using Java requires adding AWS SDK for DynamoDB dependency and crafting query requests.The Java code example provided demonstrates querying a DynamoDB table with local data.