Home / AWS Certified Data Engineer - Associate (DEA-C01) / Mock exam
AWS Certified Data Engineer - Associate (DEA-C01) Exam-style mock test

AWS Data Engineer Associate (DEA-C01) Practice Exams|Practice test

Full explanations Exam format Pass line 72%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Data Ingestion and Transformation
A global investment bank captures trade execution events from its matching engines. Three independent applications (risk scoring, fraud analytics, and an audit archiver) must each read every event in order per trading account, and compliance requires the ability to re-read the previous 7 days of events after a consumer-side bug is fixed. Which ingestion service meets these requirements?
・Amazon Data Firehose with one delivery stream per application and backup copies kept in Amazon S3
Incorrect. Amazon Data Firehose is a delivery service, not a consumable stream; applications cannot attach as consumers and replay records from it, and ordering per key is not preserved for readers.
・Amazon SNS fanning out events to one SQS queue per application
Incorrect. Amazon SQS standard queues delete messages after successful consumption and do not guarantee ordering, so a fixed consumer cannot replay the previous 7 days of events.
✓Amazon Kinesis Data Streams with the retention period extended to 7 days
Correct. Kinesis Data Streams supports multiple consumer applications reading the same stream, preserves order within each partition key (trading account), and extended retention lets consumers rewind and reprocess up to 7 days of data.
・AWS DMS tasks replicating trade events into a separate database for each application
Incorrect. AWS DMS replicates data between databases; it is not designed to fan out ordered event streams to multiple consumer applications with replay semantics.
Explanation
The combination of multiple independent consumers, per-key ordering, and 7-day replay is exactly the Kinesis Data Streams model with extended retention. Firehose has no consumer replay, SQS standard loses ordering and consumed messages, and DMS targets database replication rather than event streaming.
Example2 · Data Store Management
A global payments company runs a fraud-screening service that must retrieve a device-trust profile by device ID during every checkout. The lookup must return in under 10 ms at the 99th percentile, traffic peaks at several million requests per minute across three AWS Regions, and the profile attributes vary by device type. Which data store meets these requirements?
✓Amazon DynamoDB global tables using the device ID as the partition key replicated to each Region
Correct. DynamoDB delivers consistent single-digit-millisecond reads at virtually any request rate, its flexible item model handles attributes that differ per device, and global tables replicate the data for low-latency access in each Region.
・Amazon RDS for PostgreSQL with cross-Region read replicas serving the lookups through indexed queries
Incorrect. RDS read replicas can spread read load, but a relational engine cannot guarantee single-digit-millisecond p99 latency at millions of requests per minute, and the rigid table schema fits poorly with attributes that vary by device type.
・Amazon Redshift with concurrency scaling and a sort key on the device ID column
Incorrect. Amazon Redshift is an OLAP warehouse optimized for scanning large datasets; even with concurrency scaling, per-query latency is measured in hundreds of milliseconds or more, not single digits.
・Amazon OpenSearch Service with profiles indexed for term queries on the device ID
Incorrect. OpenSearch Service is built for search and analytics; it can serve term queries, but it is not designed as a primary key-value store sustaining millions of sub-10 ms lookups per minute at the lowest cost.
Explanation
Key-value lookups by a known identifier with strict single-digit-millisecond latency and massive, multi-Region throughput are the signature DynamoDB access pattern. Global tables add active-active replication so each Region reads locally, while the schemaless item model absorbs per-device attribute differences.
Example3 · Data Operations and Support
A global payments company ingests trade confirmation files into Amazon S3, and each new object asynchronously invokes an AWS Lambda function that validates records and calls a partner settlement API. The partner API has intermittent outages, so some invocations exhaust both automatic retries. Compliance requires that every failed event payload be captured so the events can be replayed after the outage ends. What should a data engineer do?
・Increase the Lambda function timeout to the 15-minute maximum so each invocation can keep waiting until the partner settlement API has fully recovered.
Incorrect. A longer timeout cannot outlast an outage that exceeds 15 minutes, keeps paying for idle execution time, and still drops the payload when the invocation finally fails.
・Enable S3 Versioning on the ingestion bucket so objects tied to failed invocations can be located and manually reprocessed later.
Incorrect. S3 Versioning preserves object revisions; it does not record which invocations failed or retain the triggering event payloads, so there is nothing to replay.
✓Configure an Amazon SQS queue as an on-failure destination for the function and replay the captured events from the queue.
Correct. An on-failure destination for asynchronous invocations sends the full event payload to SQS after retries are exhausted, durably capturing every failure for replay.
・Raise the function's reserved concurrency so retry invocations run in parallel during the degraded period.
Incorrect. Reserved concurrency controls how many instances run at once; it does not add retries or persist failed event payloads anywhere.
Explanation
For asynchronous Lambda invocations, an on-failure destination (or DLQ) such as an SQS queue durably captures the event payload after built-in retries are exhausted. The events can then be replayed once the partner API recovers. Timeout, versioning, and concurrency changes do not persist the failed events.
Example4 · Data Security and Governance
A healthcare analytics company runs an AWS Glue ETL job that reads clinical trial records from Amazon S3 and loads them into Amazon Redshift. The job currently authenticates with long-term IAM user access keys stored in the job parameters. A security audit requires that all static credentials be eliminated from the pipeline within one sprint, with minimal code changes. What should a data engineer do?
・Store the access keys as a SecureString parameter in Parameter Store and read them at job start.
Incorrect. Parameter Store protects the keys at rest, but the pipeline still depends on long-term IAM user credentials, which the audit requires eliminating.
・Keep the access keys in the job parameters but deploy a scheduled AWS Lambda function that rotates the key pair automatically every 30 days.
Incorrect. Rotation shortens the exposure window, but long-term access keys still exist in the job parameters, so the audit finding of static credentials remains unresolved.
✓Replace the stored keys with an IAM service role attached to the Glue job that grants least-privilege S3 and Amazon Redshift access.
Correct. AWS Glue jobs assume an IAM role and receive short-lived credentials automatically, so attaching a least-privilege role removes all static keys without rewriting job logic.
・Encrypt the job parameters with a customer managed AWS KMS key and restrict kms:Decrypt so only the ETL operators can read the values.
Incorrect. Encrypting the parameters controls who can read the keys, but the static credentials themselves are still present and still used by the pipeline.
Explanation
AWS Glue jobs natively assume an IAM role, which provides automatically rotated short-lived credentials via AWS STS. Attaching a least-privilege role eliminates static access keys entirely, whereas encrypting, vaulting, or rotating long-term keys only mitigates rather than removes them.
Example5 · Data Ingestion and Transformation
A media streaming service collects playback quality events from millions of client players. The analytics team and the ML team each run independent consumer applications that read the events in near real time, and the ML team must reprocess the prior 7 days of events whenever a model is retrained. Which ingestion approach meets these requirements?
・Deliver the events through Amazon Data Firehose into Amazon S3 and have both teams read the newly delivered objects from the bucket
Incorrect. Firehose is a delivery service with buffering, not a stream that consumer applications read directly; the teams would lose near-real-time consumption and could not reposition a stream iterator to replay 7 days of events.
・Publish the events to an Amazon SQS standard queue with a 7-day message retention period
Incorrect. SQS deletes a message once a consumer processes it, so two applications cannot each receive every event from one queue, and there is no way to replay messages that were already consumed.
✓Ingest the events into Amazon Kinesis Data Streams and extend the stream retention period to 7 days
Correct. Kinesis Data Streams supports multiple independent consumer applications reading the same stream, and extending retention up to 7 days (or longer) lets the ML team restart its consumer from an earlier position to replay events.
・Send the events to an Amazon EventBridge event bus with rules that route them onward to each team's application
Incorrect. EventBridge pushes events to targets and does not retain them for re-consumption unless a separate archive and replay is configured; it is not a durable, repositionable log suited to high-volume telemetry replay.
Explanation
Kinesis Data Streams is the right fit when several consumers must read the same stream independently and replay historical records. Extending retention to 7 days allows the ML team to reset its iterator and reprocess events, which Firehose, SQS, and a plain EventBridge bus cannot provide.
Example6 · Data Ingestion and Transformation
A hospital network streams vital-sign readings from 8,000 patient monitors. Compliance requires the readings to be written to Amazon S3 as compressed objects no more than 60 seconds after capture. The two-person data team wants a fully managed pipeline and cannot write or operate consumer code. Which solution meets these requirements?
・Create an Amazon MSK cluster and deploy a Kafka Connect S3 sink connector to the bucket
Incorrect. Amazon MSK requires the team to size and operate a Kafka cluster and manage the Kafka Connect sink connector, which conflicts with the requirement for a fully managed pipeline run by a two-person team.
・Write the readings to Amazon Kinesis Data Streams and build a KCL consumer on Amazon EC2 that batches and stores records
Incorrect. A KCL application on EC2 is exactly the custom consumer code the team cannot write or operate, and it adds instances to patch and scale.
✓Send the readings to Amazon Data Firehose with GZIP compression enabled and a 60-second buffering interval that targets an Amazon S3 destination bucket
Correct. Amazon Data Firehose is fully managed, can apply GZIP compression, and a 60-second buffer interval guarantees objects land in the Amazon S3 destination bucket within the required one-minute window with no consumer code.
・Replicate the readings with an AWS DMS change data capture task that streams the monitor output into Amazon S3
Incorrect. AWS DMS reads from supported database sources through replication endpoints; patient monitors emitting telemetry are not a database source that DMS can capture.
Explanation
Firehose buffering hints (time and size) directly control how quickly records are flushed to S3, so a 60-second interval satisfies the compliance window. Because Firehose also handles compression and scaling natively, no consumer applications or clusters are needed, unlike the KDS, MSK, and DMS alternatives.
Example7 · Data Ingestion and Transformation
A machine-tool manufacturer streams vibration telemetry from 20,000 CNC machines. One application must detect anomalies within one second of each reading, and a data science team must be able to re-read the previous 24 hours of raw readings whenever they retrain a model. Which ingestion approach meets both needs?
・Deliver the telemetry through Amazon Kinesis Data Firehose into Amazon S3 and have both of the applications read the delivered objects from the bucket
Incorrect. Firehose buffers records before delivery, so the anomaly application would see data only after the buffer flushes, which cannot satisfy a one-second detection requirement.
・Publish each reading to an Amazon SNS topic that immediately fans the telemetry out to both applications through HTTPS subscriptions
Incorrect. Amazon SNS delivers each message once to current subscribers and does not retain data, so the team cannot replay the previous 24 hours after a model update.
・Send the readings to one Amazon SQS standard queue that the anomaly detector and the retraining jobs both poll for messages
Incorrect. In an SQS standard queue the two applications would compete for the same messages, and consumed messages are deleted, so there is no 24-hour replay.
✓Ingest the readings into an Amazon Kinesis Data Streams stream configured with a 24-hour retention window, and register both the anomaly detector and the retraining jobs as independent consumers of that stream
Correct. Kinesis Data Streams supports multiple concurrent consumers with sub-second propagation, and its retention window lets the data science team re-read the last 24 hours from any point in the stream.
Explanation
Kinesis Data Streams is the fit when the same records must serve a low-latency consumer and a replay-driven consumer, because retained records can be re-read by position for the full retention window. Firehose adds buffering latency, while SNS and SQS do not provide replayable retention.
Example8 · Data Ingestion and Transformation
A logistics carrier collects GPS pings from 40,000 trucks. Analysts query the pings with Amazon Athena and need data that is at most 2 minutes old, stored as Apache Parquet. The two-person data team wants to avoid writing or operating any consumer code. Which solution meets the requirements?
・Use Amazon Kinesis Data Streams with an AWS Lambda consumer function that converts each batch to Parquet and writes the result into Amazon S3
Incorrect. A Lambda consumer is custom code the small team must write, monitor, and patch, which violates the requirement to avoid operating consumer code.
・Run an AWS Glue streaming ETL job that reads the pings continuously and writes Parquet files into partitioned Amazon S3 prefixes
Incorrect. A Glue streaming job requires authoring and maintaining ETL script code and keeps DPUs running continuously, so it does not avoid consumer code.
・Land the raw JSON pings in Amazon S3 and schedule an hourly AWS Glue batch job that rewrites the accumulated data as Parquet
Incorrect. An hourly batch rewrite means Athena queries see data up to an hour old, which misses the 2-minute freshness requirement.
✓Use Amazon Kinesis Data Firehose with record format conversion to Parquet and a 60-second buffer interval delivering into Amazon S3
Correct. Firehose record format conversion produces Parquet natively, and a 60-second buffer keeps delivered data well inside the 2-minute freshness target with no consumer code to run.
Explanation
Kinesis Data Firehose is a fully managed delivery service that can convert incoming records to Parquet and flush on a configurable buffer, so a short buffer interval satisfies the freshness SLA without any code. The streaming alternatives all require the team to own code, and the batch option is too stale.
Example9 · Data Ingestion and Transformation
A supply-chain operator runs its warehouse management system on an on-premises Oracle database. The data platform team must land a full copy of the order tables in Amazon S3 and then keep S3 current with changes within minutes, while keeping extra load on the production database low. What should the team use?
・Schedule a nightly AWS Glue job that connects to the Oracle database over JDBC and writes complete table extracts into Amazon S3
Incorrect. A nightly full extract leaves S3 up to a day behind and repeatedly scans entire tables over JDBC, adding heavy periodic load on the production database.
・Export the Oracle tables to CSV files each day and have database administrators upload them through AWS Transfer Family into Amazon S3
Incorrect. Daily manual CSV exports cannot keep S3 current within minutes and introduce an operator-driven process that does not scale.
✓Use AWS Database Migration Service with a full-load-plus-CDC task that reads ongoing changes from the Oracle logs into Amazon S3
Correct. A DMS full-load-plus-CDC task performs the initial copy and then captures ongoing changes from the database transaction logs, keeping S3 current within minutes with little impact on the source.
・Create a scheduled Amazon AppFlow flow that pulls the Oracle order tables into Amazon S3
Incorrect. Amazon AppFlow integrates with SaaS applications such as Salesforce; it is not a connector for an on-premises Oracle database.
Explanation
AWS DMS is the purpose-built service for continuously replicating a self-managed relational database into AWS: the full-load phase seeds S3 and the CDC phase tails the transaction logs so changes arrive within minutes without repeated full scans. Batch extracts and AppFlow either miss the latency goal or do not support this source.
Example10 · Data Ingestion and Transformation
A mobile gaming company streams match telemetry into an Amazon Kinesis Data Streams stream that uses the default 24-hour retention. The fraud team frequently updates its detection logic and wants the ability to re-process up to 7 days of past events with its existing KCL application, without asking game servers to resend any data. Which combination of actions meets these requirements? (Choose TWO.)
・Deliver the records to Amazon S3 with Amazon Data Firehose and replay by writing the stored objects back into the stream
Incorrect. Writing S3 objects back into the stream is re-ingestion: it duplicates records for all other consumers and requires a new producer pipeline rather than replaying from the stream itself.
✓Increase the retention period setting of the stream from the 24-hour default to 168 hours
Correct. Kinesis Data Streams retention can be raised to up to 365 days; 168 hours keeps 7 days of records available in the stream for re-reads.
・Enable enhanced fan-out so that every registered consumer keeps its own durable copy of the records
Incorrect. Enhanced fan-out provides dedicated read throughput per consumer; it does not store separate copies or extend how long records are retained.
✓Launch the KCL application with an AT_TIMESTAMP initial position set to the start of the replay window
Correct. The KCL can start from AT_TIMESTAMP, so the existing application can re-read the stream from the chosen point in the 7-day window without new ingestion.
・Mirror every record into an Amazon SQS standard queue and have the fraud team re-read that queue during each replay
Incorrect. SQS deletes messages once a consumer processes and removes them, so the queue cannot be re-read repeatedly; it does not provide stream-style replay.
Explanation
Replayability in Kinesis Data Streams comes from its retention window plus the ability of consumers to choose a starting position. Raising retention to 168 hours keeps 7 days of records in the stream, and restarting the KCL application with AT_TIMESTAMP re-processes them without any re-ingestion from producers.
Example11 · Data Ingestion and Transformation
A multi-tenant B2B SaaS provider runs its billing database on self-managed PostgreSQL in an on-premises data center. The data platform team must keep an Amazon S3 data lake synchronized with inserts, updates, and deletes from this database, with no more than a few minutes of lag and minimal additional load on the source. Which solution meets these requirements?
・Run nightly AWS Glue JDBC jobs that extract full snapshots of every table and overwrite the existing S3 datasets
Incorrect. Nightly full snapshots mean up to 24 hours of lag and repeated full-table scans that put heavy read load on the production source.
・Configure Amazon AppFlow with a scheduled flow that pulls changed rows from the PostgreSQL database into S3
Incorrect. Amazon AppFlow integrates SaaS applications such as Salesforce with AWS services; a self-managed on-premises PostgreSQL database is not a supported source.
・Use AWS Transfer Family to receive compressed database dump files over SFTP from the data center every hour
Incorrect. Hourly dump files exceed the lag requirement, and producing full dumps every hour imposes significant load on the source database.
✓Create an AWS DMS task with full load plus ongoing CDC into S3
Correct. AWS DMS reads the PostgreSQL write-ahead log for CDC, so changes land in S3 within minutes while the source only serves lightweight log reads.
Explanation
AWS DMS with full load plus CDC is the standard way to keep S3 continuously synchronized with a self-managed relational database. Log-based CDC delivers changes within minutes and avoids the heavy scans that snapshot-based extraction places on the source.
Example12 · Data Ingestion and Transformation
A municipal electric utility ingests telemetry from 40,000 smart meters at roughly 2 MB/s. Downstream consumer applications occasionally discover processing bugs and must re-read the previous 7 days of records from the stream in their original order. Which ingestion approach meets the replay requirement?
✓Publish the telemetry to a Kinesis Data Streams stream and extend the retention period to 7 days.
Correct. Kinesis Data Streams retains records for a configurable period (up to 365 days), and consumers can reset their iterator to replay the last 7 days in shard order.
・Send the telemetry to Amazon Data Firehose and let the consumers read records back from the Firehose delivery stream after each bug fix.
Incorrect. Amazon Data Firehose is a delivery service that pushes data to destinations; consumers cannot attach to a Firehose stream and re-read previously delivered records.
・Write the telemetry to an Amazon SQS standard queue and retain messages until consumers finish reprocessing them.
Incorrect. Amazon SQS deletes messages once they are consumed and acknowledged, and a standard queue does not preserve ordering, so consumers cannot replay past records.
・Push the telemetry through Amazon MQ using persistent queues sized to hold one week of messages.
Incorrect. Amazon MQ uses queue semantics in which consumed messages are removed from the broker, so applications cannot re-read a week of already processed records.
Explanation
Replayability is a core property of Kinesis Data Streams: records stay in the stream for the configured retention period, so consumers can rewind and reprocess them in order after a fix. Firehose, SQS, and Amazon MQ all remove or push data onward after delivery, so none of them supports rewinding the stream.
Example13 · Data Ingestion and Transformation
A state department of education streams exam-submission events through Amazon Data Firehose into Amazon S3 for a near-real-time dashboard. Analysts report that data appears about 5 minutes after submission, but the SLA requires files to land within 90 seconds. The team wants to keep the existing pipeline unchanged apart from configuration. What should a data engineer do?
・Raise the Firehose buffering size to 128 MB so each batch fills up faster during peak exam submission windows.
Incorrect. A larger buffering size makes Firehose wait for more data before flushing, which increases end-to-end latency rather than reducing it at this event volume.
・Enable dynamic partitioning so objects land in keyed prefixes as events arrive.
Incorrect. Dynamic partitioning controls the S3 prefix layout of delivered objects; it does not shorten the buffering interval that determines when data lands.
✓Lower the Firehose buffering interval to 60 seconds so batches flush to Amazon S3 more frequently.
Correct. Firehose flushes when either the buffering size or the buffering interval is reached; reducing the interval to 60 seconds guarantees delivery within the 90-second SLA using only a configuration change.
・Replace Firehose with a custom Kinesis Data Streams consumer application that writes every record to Amazon S3 individually.
Incorrect. A custom consumer could meet the latency target, but it rebuilds the pipeline with new code to operate, violating the requirement to keep the existing pipeline.
Explanation
Firehose delivery latency is governed by buffering hints: data is flushed when the buffer size or the buffer interval is hit, whichever comes first. Lowering the interval to 60 seconds meets the 90-second SLA with a pure configuration change, whereas enlarging the buffer or rebuilding the pipeline either worsens latency or breaks the constraint.
Example14 · Data Ingestion and Transformation
An insurance carrier ingests telematics events from 400,000 vehicles. Two real-time applications consume the feed concurrently, and the fraud team must periodically re-read the previous 7 days of events in their original order to retrain a scoring model. Which ingestion service meets these requirements?
・Amazon SQS standard queue with 14-day retention and two consumers
Incorrect. SQS removes a message once a consumer deletes it, so the same ordered 7-day history cannot be re-read, and standard queues do not preserve order or support consumer groups.
・Amazon Data Firehose continuously delivering the captured events to an S3 bucket partitioned by hour
Incorrect. Firehose is a delivery service with no consumer API; once records land in S3 the original shard ordering is lost and there is no stream to replay from.
・Amazon EventBridge default event bus with rules routing events to both applications
Incorrect. The default event bus does not retain events for later consumption; replay requires a separate archive and the bus is not designed for high-volume ordered stream replay.
✓Amazon Kinesis Data Streams with the stream retention period extended to 7 full days
Correct. Kinesis Data Streams supports multiple concurrent consumers and extended retention up to 365 days, so consumers can rewind and re-read 7 days of records in per-shard order.
Explanation
Replayability with ordering and multiple consumers is the discriminator. Kinesis Data Streams retains records (extendable well past 7 days) and lets any consumer re-read from a past position, while SQS, Firehose, and the default EventBridge bus cannot replay an ordered stream.
Example15 · Data Ingestion and Transformation
A hospitality company streams booking events through Amazon Data Firehose into Amazon S3, where Athena dashboards read them. Events currently appear in S3 about 5 minutes after capture, but revenue managers need them available within 90 seconds. The team wants the smallest possible change. What should the data engineer do?
・Replace Firehose with Kinesis Data Streams and build a custom consumer that writes to S3
Incorrect. A custom Kinesis consumer could meet the latency target but replaces the whole pipeline, which contradicts the requirement for the smallest possible change.
・Attach a Lambda transformation to the delivery stream to flush records on arrival
Incorrect. A transformation Lambda processes records inside the existing buffering cycle; it does not force earlier delivery and actually adds processing latency.
・Enable dynamic partitioning so objects are written to more granular S3 prefixes
Incorrect. Dynamic partitioning changes the S3 key layout for query pruning; it does not shorten how long Firehose buffers before writing objects.
✓Lower the Firehose buffering interval to 60 seconds and reduce the buffering size hint accordingly so objects flush sooner
Correct. Firehose delivers when either the buffering interval or the buffering size is reached first; lowering both hints makes objects land in S3 within the 90-second target with a configuration-only change.
Explanation
Firehose delivery latency is governed by its buffering hints, which flush on whichever threshold is hit first. Tuning the interval down to 60 seconds is a pure configuration change, whereas rebuilding on Kinesis Data Streams or adding transformations changes far more than required.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)