AWS Certified Data Engineer Associate DEA-C01 Practice Question

An online retailer stores shopping-cart items in a single DynamoDB table. Each record has the attributes userId, productId, quantity, addedAt, and expiresAt (30-day TTL). The application must:

  1. Retrieve and update an entire cart for a given user with one strongly consistent read.
  2. Occasionally return all carts that contain a specific productId. Which table design satisfies these requirements at the lowest cost?
  • Partition key userId and sort key productId with no secondary indexes; the application scans the table to locate carts by productId.

  • Partition key userId and sort key addedAt; create a GSI with productId as the partition key and userId as the sort key; enable TTL on expiresAt.

  • Create a separate DynamoDB table for each user's cart and export data to S3 for cross-product queries.

  • Partition key productId and sort key userId; add an LSI on addedAt for cart lookups; enable TTL on expiresAt.

AWS Certified Data Engineer Associate DEA-C01
Data Store Management
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot