Question 1
A company needs a managed graph database to analyze relationships between customers, accounts, and transactions for fraud detection. Which service fits BEST?
- Amazon Redshift
- Amazon Neptune — Correct
- Amazon ElastiCache
- 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?
- AWS Elastic Beanstalk with a custom analytics application
- Amazon Lightsail with a database bundle for each team
- Amazon SageMaker Unified Studio with the lakehouse architecture — Correct
- 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?
- Amazon S3 Glacier Flexible Retrieval with expedited retrievals for each request
- Amazon DynamoDB, or the SageMaker Feature Store online store for features — Correct
- Amazon Redshift with a provisioned cluster for every online request
- 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?
- Convert all numeric columns to VARCHAR so that they compress better.
- Remove the table's sort key so that new rows are appended faster.
- Store the entire table in a single column of JSON text.
- 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?
- Store all data in Amazon RDS for PostgreSQL with read replicas for the dashboard queries.
- Keep recent data in Redshift for dashboards, and query historical data in S3 with Spectrum or Athena. — Correct
- Store all data in DynamoDB and run Scan operations for the dashboards and ad hoc queries.
- 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?
- Amazon Redshift with the SUPER data type for each vector value
- Aurora PostgreSQL or RDS for PostgreSQL with the pgvector extension — Correct
- Amazon Neptune with each vector dimension stored as a graph edge
- 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?
- The tables are stored in S3 and are being read through Redshift Spectrum.
- The query is using result caching, so it returns cached results from an earlier run.
- Data is broadcast or redistributed between nodes because the distribution keys do not match. — Correct
- 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?
- Batch events through Firehose into larger compressed S3 objects — Correct
- Store events in ElastiCache with no persistence for later analysis
- Write each event as its own small S3 object as soon as it arrives
- 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?
- Amazon Redshift COPY from S3
- Amazon Redshift cross-Region snapshots
- Amazon Redshift data sharing — Correct
- 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?
- Use a local secondary index on the hot partition key values
- Use a single fixed partition key value for all items in the table
- Add a random or calculated suffix to the partition key (write sharding) — Correct
- 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.