AWS Developer DVA-C02 · Development with AWS Services · hard
A developer is designing indexes for an Amazon DynamoDB Orders table whose base primary key is CustomerId (Partition Key) and OrderDate (Sort Key). Which two statements accurately compare a Local Secondary Index (LSI) and a Global Secondary Index (GSI) in DynamoDB? (Select two.)
Published · Last updated · checked before publication — how we verify questions
Options
Answers: A. An LSI shares the base Partition Key, is created at table creation, and supports strong reads; C. A GSI can use a different Partition Key, be added anytime, and supports eventual reads only
In Amazon DynamoDB: (B) an LSI shares the same Partition Key as the base table (CustomerId) with a different Sort Key, must be created when the table is created, and supports both strongly consistent and eventually consistent reads (A); (C) a GSI can define a completely different Partition Key and Sort Key, can be added or deleted at any time on an existing table, and supports only eventually consistent reads with its own separate RCU/WCU throughput (C).
Why the other options are wrong
- B. An LSI can be added to an existing table anytime and uses a different PK — Only a GSI can be added to an existing table or use a different Partition Key; LSIs are fixed at table creation.
- D. A GSI supports strongly consistent GetItem reads and shares the base table's provisioned WCU quota — GSIs support only eventually consistent Query/Scan reads and maintain their own independent RCU/WCU capacity.
More Development with AWS Services questions
- An Amazon API Gateway REST API fronts a legacy product-catalog backend that takes 800 ms per query. Because 90% of…
- A customer-facing checkout API built on AWS Lambda (Java 21 runtime) experiences a 3.2-second cold-start latency spike…
- An AWS Lambda function polls an Amazon SQS standard queue via an Event Source Mapping with a batch size of 10…
- An order-fulfillment workflow coordinates 6 sequential and parallel steps: reserve inventory, charge credit card…
- Five different AWS Lambda functions written in Python 3.12 share the same 45 MB internal cryptography and…
- A photo-sharing platform stores private user photos in an Amazon S3 bucket (Block Public Access = ON). When an…
- A web application hosted on https://app.example.com makes an XMLHttpRequest / fetch() POST call (with a custom…
- A financial ledger uses Amazon SQS FIFO (First-In-First-Out) queues (orders.fifo) to guarantee strict message ordering…
All Development with AWS Services questions and the topic overview →
AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.