Timedora
Free Practice Quiz Question List

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.

20 questions
01
Choose one
1 point

An application knows an order's complete primary key and needs to retrieve that specific item. Which DynamoDB operation is designed for this lookup?

  1. A

    Scan

  2. B

    GetItem

  3. C

    Query

  4. D

    A filter expression

02
True or false
1 point

A filter expression makes a broad DynamoDB query efficient by preventing nonmatching items from being read.

  1. A

    True

  2. B

    False

03
Written response
1 point

What response field indicates that a DynamoDB Query or Scan can continue with another request?

04
Fill in the blank
1 point

A DynamoDB Query must specify equality on one value.

05
Choose one
1 point

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?

  1. A

    Use a Scan and filter the results by tracking number.

  2. B

    Use an LSI, which must use a different partition key from the table.

  3. C

    Use a GSI with the tracking number as its partition key.

  4. D

    Use GetItem with the tracking number, even though it is not part of the primary key.

06
Written response
1 point

What type of DynamoDB index uses the table's partition key with an alternate sort key?

07
Choose all
1 point

Select all statements that accurately describe trade-offs between single-table and multi-table DynamoDB designs.

  1. A

    A single-table design can make related data available through a small number of queries, but requires deliberate key conventions.

  2. B

    A single-table design is automatically best for every workload.

  3. C

    A multi-table design can be easier to understand and operate, but reads combining data may require multiple requests and application-side processing.

  4. D

    A multi-table design guarantees that the application never needs to combine results.

08
True or false
1 point

A DynamoDB GSI can serve strongly consistent reads when the request explicitly asks for them.

  1. A

    True

  2. B

    False

09
Fill in the blank
1 point

When items without the GSI key attributes are omitted from that index, the result is a .

10
Choose one
1 point

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?

  1. A

    Provisioned capacity, because it requires no capacity planning for a table or its GSIs.

  2. B

    On-demand capacity, because traffic is unpredictable and changes substantially.

  3. C

    Provisioned capacity, because it adjusts instantly to abrupt peaks without planning.

  4. D

    On-demand capacity, because it guarantees that sudden growth will never require care.

11
Choose all
1 point

Select all statements that correctly describe provisioned read and write capacity units.

  1. A

    One RCU supports one strongly consistent read per second for an item up to 4 KB.

  2. B

    One RCU supports two eventually consistent reads per second for an item up to 4 KB.

  3. C

    One WCU supports one write per second for an item up to 1 KB.

  4. D

    Writes to GSIs require no capacity.

12
Choose one
1 point

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?

  1. A

    Use one shared partition-key value so all requests target the same item collection.

  2. B

    Choose the partition key based only on the number of stored records, not on traffic distribution.

  3. C

    Choose a high-cardinality partition key that spreads requests across many values.

  4. D

    Move frequently used selection criteria into a filter expression so partition-key values do not matter.

13
Choose one
1 point

An application has traffic that varies substantially and is difficult to forecast. Which capacity mode is a practical starting point?

  1. A

    Provisioned capacity, because it automatically adjusts instantly to any traffic change

  2. B

    On-demand capacity, because it avoids choosing read and write capacity in advance

  3. C

    Provisioned capacity, because it eliminates the need to consider item sizes

  4. D

    On-demand capacity, because it guarantees that sudden traffic growth can never cause throttling

14
Written response
1 point

A Query response includes LastEvaluatedKey. What request parameter should the next request use to continue from that point?

15
Choose one
1 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?

  1. A

    A GSI, because it must use the table's partition key

  2. B

    A GSI, because it is specified only when the table is created

  3. C

    An LSI, because it uses the table's partition key with an alternate sort key

  4. D

    An LSI, because it can use a different partition key from the table

16
Written response
1 point

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?

17
Choose one
1 point

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?

  1. A

    Use a strongly consistent read on the GSI; GSIs support strong consistency when provisioned capacity is sufficient.

  2. 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.

  3. C

    Use a Scan on the GSI, because scans provide strong consistency by default.

  4. D

    Increase the GSI's provisioned capacity to enable strongly consistent reads.

18
Choose one
1 point

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?

  1. A

    Use a Scan with a filter for the customer ID and date range; it reads only matching items

  2. B

    Use a Query with equality on the customer's partition key and a sort-key condition for the date range

  3. C

    Use GetItem with the customer partition key alone to return all matching orders

  4. D

    Use a Query with a date-range condition on the sort key but no partition-key value

19
True or false
1 point

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.

  1. A

    True

  2. B

    False

20
Open ended
1 point

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?