An application knows an order's complete primary key and needs to retrieve that specific item. Which DynamoDB operation is designed for this lookup?
4 Amazon DynamoDB in Practice Online Quiz Questions
Use this free practice quiz with 20 questions to review 4 Amazon DynamoDB in Practice, test your knowledge, and prepare for your next test or exam.
A filter expression makes a broad DynamoDB query efficient by preventing nonmatching items from being read.
- A
True
- B
False
What response field indicates that a DynamoDB Query or Scan can continue with another request?
A DynamoDB Query must specify equality on one value.
Orders are keyed in the base table for customer history, but the application also needs to find an order from its tracking number. Which design directly supports that alternate lookup?
- A
Use a Scan and filter the results by tracking number.
- B
Use an LSI, which must use a different partition key from the table.
- C
Use a GSI with the tracking number as its partition key.
- D
Use GetItem with the tracking number, even though it is not part of the primary key.
What type of DynamoDB index uses the table's partition key with an alternate sort key?
Select all statements that accurately describe trade-offs between single-table and multi-table DynamoDB designs.
- A
A single-table design can make related data available through a small number of queries, but requires deliberate key conventions.
- B
A single-table design is automatically best for every workload.
- C
A multi-table design can be easier to understand and operate, but reads combining data may require multiple requests and application-side processing.
- D
A multi-table design guarantees that the application never needs to combine results.
A DynamoDB GSI can serve strongly consistent reads when the request explicitly asks for them.
- A
True
- B
False
When items without the GSI key attributes are omitted from that index, the result is a .
A service has substantially varying traffic, and its team does not want to choose read and write capacity in advance. Which capacity mode is the most practical starting point?
- A
Provisioned capacity, because it requires no capacity planning for a table or its GSIs.
- B
On-demand capacity, because traffic is unpredictable and changes substantially.
- C
Provisioned capacity, because it adjusts instantly to abrupt peaks without planning.
- D
On-demand capacity, because it guarantees that sudden growth will never require care.
Select all statements that correctly describe provisioned read and write capacity units.
- A
One RCU supports one strongly consistent read per second for an item up to 4 KB.
- B
One RCU supports two eventually consistent reads per second for an item up to 4 KB.
- C
One WCU supports one write per second for an item up to 1 KB.
- D
Writes to GSIs require no capacity.
A table is at risk of concentrating requests on too few partition-key values. Which key-design principle is most likely to improve traffic distribution?
- A
Use one shared partition-key value so all requests target the same item collection.
- B
Choose the partition key based only on the number of stored records, not on traffic distribution.
- C
Choose a high-cardinality partition key that spreads requests across many values.
- D
Move frequently used selection criteria into a filter expression so partition-key values do not matter.
An application has traffic that varies substantially and is difficult to forecast. Which capacity mode is a practical starting point?
- A
Provisioned capacity, because it automatically adjusts instantly to any traffic change
- B
On-demand capacity, because it avoids choosing read and write capacity in advance
- C
Provisioned capacity, because it eliminates the need to consider item sizes
- D
On-demand capacity, because it guarantees that sudden traffic growth can never cause throttling
A Query response includes LastEvaluatedKey. What request parameter should the next request use to continue from that point?
A table's existing partition key identifies the right item collection, but an application needs to query that collection in a different sort order. Which index fits this need?
- A
A GSI, because it must use the table's partition key
- B
A GSI, because it is specified only when the table is created
- C
An LSI, because it uses the table's partition key with an alternate sort key
- D
An LSI, because it can use a different partition key from the table
A GSI has key attributes only on orders requiring escalation, so other orders are absent from the index. What is this kind of index called?
An application needs to look up an item by an alternate key, and a read immediately after a successful write must reflect that write. The alternate lookup is currently provided by a GSI. Which statement correctly describes the design constraint?
- A
Use a strongly consistent read on the GSI; GSIs support strong consistency when provisioned capacity is sufficient.
- B
A GSI cannot provide strongly consistent reads. Use a table or LSI read if that supports the lookup; otherwise change the design to meet the consistency requirement.
- C
Use a Scan on the GSI, because scans provide strong consistency by default.
- D
Increase the GSI's provisioned capacity to enable strongly consistent reads.
A table stores each customer's orders under that customer's partition key, with order dates in the sort key. How should the application retrieve that customer's orders within a date range?
- A
Use a Scan with a filter for the customer ID and date range; it reads only matching items
- B
Use a Query with equality on the customer's partition key and a sort-key condition for the date range
- C
Use GetItem with the customer partition key alone to return all matching orders
- D
Use a Query with a date-range condition on the sort key but no partition-key value
True or false: Projecting only the attributes needed by a query eliminates the additional write work and storage associated with maintaining a global secondary index.
- A
True
- B
False
A team must run a one-time, controlled reconciliation that checks every item in a small DynamoDB table. Which operation is suitable, and why is it generally a poor choice for routine application reads?
Related study packs and tools
- Quiz
1 Networking Fundamentals
A medium-difficulty quiz on networking fundamentals, including communication roles, protocol layers, data units, and network models.
CompTIA A+ NetworkingUpdated - Flashcards
2 Protocols and Ports
Review how TCP and UDP work, what common network ports indicate, and how to interpret port clues cautiously.
CompTIA A+ NetworkingUpdated - Quiz
2 Protocols and Ports
A medium-difficulty quiz on interpreting network protocols, ports, and common traffic patterns.
CompTIA A+ NetworkingUpdated - Quiz
3 Accessories and Peripheral Devices
A medium-difficulty quiz on selecting, connecting, configuring, and troubleshooting laptop accessories and peripheral devices.
CompTIA A+ Mobile DevicesUpdated - Quiz
4 Wi-Fi Networks
A 14-question quiz on Wi-Fi networks, moving from core concepts to applied troubleshooting and explanation.
CompTIA A+ NetworkingUpdated - Quiz
5 Network Operations and Reliability
A medium-difficulty quiz on network operations, monitoring, configuration management, resilience, and recovery planning.
- Quiz
5 Network Services and Name Resolution
A medium-difficulty quiz on diagnosing DHCP, DNS, and network-service problems, progressing from core concepts to multi-step troubleshooting.
- Quiz
5 Other AWS Compute Options
A medium-difficulty quiz on choosing AWS compute services by workload pattern, deployment needs, and level of infrastructure control.
AWS Compute ServicesUpdated - Study guide
6 Security Operations and Incident Response
Learn how security teams monitor activity, manage vulnerabilities, respond to incidents, preserve digital evidence, and restore services safely.
- Quiz
6 SOHO Network Setup and Troubleshooting
A medium-difficulty quiz on setting up, securing, and troubleshooting a small-office/home-office network.
CompTIA A+ NetworkingUpdated - Study guide
8 Comprehensive Security+ Practice and Review
A scenario-focused guide to Security+ SY0-701 concepts, emphasizing evidence-based incident response, access control, cryptography, vulnerability handling, recovery objectives, and risk governance.
- Study guide
8 Security Operations and Incident Response
Learn how to recognize and assess security incidents, preserve evidence, contain and remove threats, restore trustworthy services, and improve security through lessons learned.