aws DEA-C01: AWS Certified Data Engineer – Associate · Practice questions

Domain 2: Data Store Management Practice Questions

Review 10 sample questions with their correct answers and explanations. Sign up free to continue with the full topic quiz.

Sign up free for the full quiz

Question 1

A company needs a managed graph database to analyze relationships between customers, accounts, and transactions for fraud detection. Which service fits BEST?

  1. Amazon Redshift
  2. Amazon Neptune — Correct
  3. Amazon ElastiCache
  4. Amazon Timestream

Correct answer

Amazon Neptune

Explanation

Neptune is a managed graph database for relationship queries. Redshift is analytics, Timestream is for time series, and ElastiCache is an in-memory cache.

Question 2

A company wants to combine its S3 data lake and Redshift warehouse in a single analytics environment with unified governance and tools for SQL, Spark, and ML. Which offering fits BEST?

  1. AWS Elastic Beanstalk with a custom analytics application
  2. Amazon Lightsail with a database bundle for each team
  3. Amazon SageMaker Unified Studio with the lakehouse architecture — Correct
  4. Amazon WorkSpaces with analytics tools installed on each desktop

Correct answer

Amazon SageMaker Unified Studio with the lakehouse architecture

Explanation

SageMaker Unified Studio provides a unified environment over lakehouse data with governance. The other options are not integrated analytics platforms.

Question 3

A data engineer needs to choose a storage option for a feature store that serves ML features to an online application with single-digit millisecond latency. Which option fits BEST?

  1. Amazon S3 Glacier Flexible Retrieval with expedited retrievals for each request
  2. Amazon DynamoDB, or the SageMaker Feature Store online store for features — Correct
  3. Amazon Redshift with a provisioned cluster for every online request
  4. Amazon Athena queries over Parquet files for every online prediction

Correct answer

Amazon DynamoDB, or the SageMaker Feature Store online store for features

Explanation

DynamoDB and the Feature Store online store serve low-latency lookups. Glacier, Redshift, and Athena are not designed for millisecond online serving.

Question 4

A data engineer must reduce the storage used by a Redshift table and improve scan performance. Which action is recommended?

  1. Convert all numeric columns to VARCHAR so that they compress better.
  2. Remove the table's sort key so that new rows are appended faster.
  3. Store the entire table in a single column of JSON text.
  4. Use proper compression encodings and run VACUUM and ANALYZE. — Correct

Correct answer

Use proper compression encodings and run VACUUM and ANALYZE.

Explanation

Column encodings reduce storage and I/O, and maintenance keeps data sorted with fresh statistics. VARCHAR numbers, no sort key, and single JSON columns hurt performance.

Question 5

A company stores 500 TB of historical sales data in S3 and runs ad hoc SQL queries a few times a month. It also needs complex joins with high concurrency for daily dashboards on the most recent 2 TB. Which design is MOST cost-effective?

  1. Store all data in Amazon RDS for PostgreSQL with read replicas for the dashboard queries.
  2. Keep recent data in Redshift for dashboards, and query historical data in S3 with Spectrum or Athena. — Correct
  3. Store all data in DynamoDB and run Scan operations for the dashboards and ad hoc queries.
  4. Load all 500 TB into a large provisioned Redshift cluster with dense compute nodes that runs 24/7.

Correct answer

Keep recent data in Redshift for dashboards, and query historical data in S3 with Spectrum or Athena.

Explanation

Keeping hot data in Redshift and querying cold data in S3 balances performance and cost. Loading everything into Redshift is costly. RDS and DynamoDB are not suited to petabyte analytics.

Question 6

A company wants to store and query vector embeddings alongside relational data for a generative AI search feature, using its existing PostgreSQL skills. Which option fits BEST?

  1. Amazon Redshift with the SUPER data type for each vector value
  2. Aurora PostgreSQL or RDS for PostgreSQL with the pgvector extension — Correct
  3. Amazon Neptune with each vector dimension stored as a graph edge
  4. Amazon Timestream with a measure for each vector dimension

Correct answer

Aurora PostgreSQL or RDS for PostgreSQL with the pgvector extension

Explanation

pgvector adds vector storage and similarity search to PostgreSQL. The other options are not designed for vector similarity search.

Question 7

Analysts complain that a Redshift query that joins two large tables is slow. The EXPLAIN plan shows DS_BCAST_INNER and DS_DIST_BOTH steps. What do these indicate?

  1. The tables are stored in S3 and are being read through Redshift Spectrum.
  2. The query is using result caching, so it returns cached results from an earlier run.
  3. Data is broadcast or redistributed between nodes because the distribution keys do not match. — Correct
  4. The query is running on a concurrency scaling cluster instead of the main cluster.

Correct answer

Data is broadcast or redistributed between nodes because the distribution keys do not match.

Explanation

These steps indicate costly data movement because the tables are not collocated on the join key. The other options do not relate to these plan steps.

Question 8

A data engineer needs a durable, low-cost store for a few hundred million small JSON events per day that will be queried in bulk by analytics engines. Which design fits BEST?

  1. Batch events through Firehose into larger compressed S3 objects — Correct
  2. Store events in ElastiCache with no persistence for later analysis
  3. Write each event as its own small S3 object as soon as it arrives
  4. Store all events in a single DynamoDB item that grows over time

Correct answer

Batch events through Firehose into larger compressed S3 objects

Explanation

Batching into larger compressed objects reduces request costs and improves analytics performance. Per-event objects are inefficient. A single item cannot grow without limits. A cache without persistence is not durable.

Question 9

A company wants to share live Redshift data with another business unit's Redshift warehouse without copying or moving the data. Which feature should it use?

  1. Amazon Redshift COPY from S3
  2. Amazon Redshift cross-Region snapshots
  3. Amazon Redshift data sharing — Correct
  4. Amazon Redshift UNLOAD to S3

Correct answer

Amazon Redshift data sharing

Explanation

Data sharing gives live, read access to data across warehouses without copying. UNLOAD and COPY move data. Snapshots copy the whole cluster.

Question 10

A data engineer must design an Amazon DynamoDB table for a workload with uneven access where a few keys receive most writes. Which design reduces hot partitions?

  1. Use a local secondary index on the hot partition key values
  2. Use a single fixed partition key value for all items in the table
  3. Add a random or calculated suffix to the partition key (write sharding) — Correct
  4. Use a low-cardinality attribute, such as country, as the partition key

Correct answer

Add a random or calculated suffix to the partition key (write sharding)

Explanation

Write sharding spreads writes across partitions. A single or low-cardinality key concentrates traffic. LSIs share the partition key and do not spread writes.

Ready for the full quiz?

Create a free QuizAnalyst account to practice the complete question set and save your progress.

Sign up free for the full quiz