Question 1
A data engineer must choose a file format for an analytics data lake where queries read only a few columns from wide tables. Which format reduces scanned data the MOST?
- CSV with gzip
- JSON lines
- Plain text logs
- Apache Parquet — Correct
Correct answer
Apache Parquet
Explanation
Parquet is columnar, so queries read only needed columns, and it compresses well. CSV, JSON, and text are row-based and require reading full rows.
Question 2
A company receives daily files from partners over SFTP and wants them stored directly in S3 without managing servers. Which service fits BEST?
- AWS DataSync with an on-premises agent
- Amazon AppFlow with an SFTP connector
- Amazon EC2 running an SFTP daemon
- AWS Transfer Family with S3 storage — Correct
Correct answer
AWS Transfer Family with S3 storage
Explanation
Transfer Family provides managed SFTP endpoints backed by S3. AppFlow connects to SaaS apps. DataSync needs agents at the source. An EC2 SFTP server requires management.
Question 3
A data engineer must design a pipeline whose output must be reproducible for audits months later. Which practice fits BEST?
- Delete intermediate and raw data immediately after each pipeline run
- Change transformation code directly in production without version control
- Overwrite the raw data with transformed data after each run to save space
- Keep immutable raw data and versioned code, and use table snapshots — Correct
Correct answer
Keep immutable raw data and versioned code, and use table snapshots
Explanation
Immutable inputs, versioned code, and snapshots allow results to be reproduced. Overwriting raw data, unversioned changes, and deleting inputs prevent reproduction.
Question 4
A data engineer must load data into Amazon Redshift from S3 every hour. Sometimes a load fails because of malformed rows. The team wants to load the good rows and capture the bad rows for review. Which COPY option helps?
- NOLOAD, which loads only the rows that are valid into the target table
- TRUNCATECOLUMNS, which moves bad rows into a separate error table
- MAXERROR with review of the STL_LOAD_ERRORS or SYS_LOAD_ERROR_DETAIL view — Correct
- MANIFEST, which automatically repairs malformed rows during loading
Correct answer
MAXERROR with review of the STL_LOAD_ERRORS or SYS_LOAD_ERROR_DETAIL view
Explanation
MAXERROR allows a number of bad rows, and load error views show the details. NOLOAD validates without loading. TRUNCATECOLUMNS truncates long values. MANIFEST lists files to load.
Question 5
A company wants business analysts to clean and normalize data visually, such as removing duplicates and standardizing date formats, without writing code. Which service fits BEST?
- AWS Glue DataBrew recipes — Correct
- Amazon Redshift stored procedures
- AWS Lambda with Python scripts
- Amazon EMR with Spark notebooks
Correct answer
AWS Glue DataBrew recipes
Explanation
DataBrew provides a visual interface with hundreds of transformations without code. EMR, Lambda, and stored procedures require code.
Question 6
A company needs to migrate 300 TB of historical data from an on-premises Hadoop cluster to S3 within 3 weeks. The available bandwidth is 500 Mbps and shared with business traffic. Which approach fits BEST?
- Use AWS Transfer Family SFTP and ask users to upload the files from the Hadoop cluster
- Use AWS Snowball Edge devices for the bulk transfer and DataSync for ongoing changes — Correct
- Use AWS DataSync over the shared 500 Mbps link for the entire 300 TB within the 3 weeks
- Use Amazon Data Firehose to stream the HDFS files into S3 over the internet connection
Correct answer
Use AWS Snowball Edge devices for the bulk transfer and DataSync for ongoing changes
Explanation
300 TB over a shared 500 Mbps link would take months, so offline transfer is needed, with DataSync for changes. Firehose and SFTP are not designed for bulk migration.
Question 7
A company runs SQL-based transformations in Redshift and wants to manage them as version-controlled, tested models with dependency management. Which approach is commonly used?
- Use Redshift snapshots as the version control system for SQL transformations.
- Store the SQL in a DynamoDB table and run it with a scheduled Lambda function.
- Use dbt (data build tool) with Redshift, run from a scheduler such as MWAA. — Correct
- Write transformations directly in the Redshift console and save them as screenshots.
Correct answer
Use dbt (data build tool) with Redshift, run from a scheduler such as MWAA.
Explanation
dbt manages SQL transformations as tested, versioned models with dependencies, and MWAA can schedule it. Console screenshots, snapshots, and DynamoDB storage are not version control.
Question 8
A Lambda function in a data pipeline fails intermittently when processing S3 events, and some events are lost. Which configuration ensures failed events can be reprocessed?
- Configure an on-failure destination or a dead-letter queue for the function. — Correct
- Disable retries so that failed events are not processed twice.
- Increase the function's memory so that it never fails during processing.
- Reduce the function timeout to 1 second so that failures happen faster.
Correct answer
Configure an on-failure destination or a dead-letter queue for the function.
Explanation
S3 invokes Lambda asynchronously, so an on-failure destination or DLQ captures events that fail after retries. Memory does not guarantee success. Disabling retries and short timeouts lose more events.
Question 9
A data lake receives the same file twice due to producer retries, causing duplicate rows. Which approach makes the ingestion idempotent?
- Disable producer retries so that files are never sent twice.
- Deterministic keys plus MERGE upserts into a transactional table — Correct
- Append every file to the table and remove duplicates manually once a month.
- Increase the S3 bucket's versioning so that duplicates are overwritten automatically.
Correct answer
Deterministic keys plus MERGE upserts into a transactional table
Explanation
Deterministic keys and MERGE upserts prevent duplicates. Monthly cleanup leaves bad data. Versioning keeps both versions. Disabling retries loses data.
Question 10
A company's pipeline must call an external REST API to enrich each record during ETL, but the API allows only 10 requests per second. Which design prevents throttling errors?
- Increase the Lambda function's memory so that each API call finishes in less time.
- Disable retries so that throttled requests fail quickly and do not slow the pipeline.
- Run all enrichment requests at once with maximum parallelism so that the job finishes faster.
- Limit concurrency (for example, Map MaxConcurrency or limited queue consumers) and retry with backoff. — Correct
Correct answer
Limit concurrency (for example, Map MaxConcurrency or limited queue consumers) and retry with backoff.
Explanation
Limiting concurrency and retrying with backoff keeps requests within the API's limit. Maximum parallelism causes throttling. Disabling retries loses data. Memory does not limit request rate.