
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































197 QUESTIONS
# TOPIC 1 Design and implement scalable ETL/ELT pipelines using AWS services such as S3, Glue, Redshift, and Lambda 2 Orchestrate complex data workflows with Apache Airflow, including DAG design, scheduling, and error handling 3 Apply Python and SQL for data transformation, validation, and quality testing in pipeline contexts 4 Implement data quality checks and monitoring to ensure pipeline reliability and data integrity 5 Document and deploy ETL solutions following AWS Well-Architected Framework and current best practices 6 WGU D 7 ETL Pipeline Implementation Complete AWS 8 Apache Airflow 9 Python & SQL Project with Data Quality Tests 2026 10 2027 Updated 11 Foundations of Data Engineering / ETL Pipeline Implementation 12 Applied Data Engineering / ETL Pipeline Implementation 13 Advanced Data Engineering / ETL Pipeline Implementation 14 Data Engineering / ETL Pipeline Implementation Review
This study document brings together 197 carefully worded exam questions drawn from WGU D608- ETL Pipeline Implementation Complete AWS, Apache Airflow, Python & SQL Project with Data Quality Tests 2026/2027 Updated, with the strongest emphasis placed on Design and implement scalable ETL/ELT pipelines using AWS services such as S3, Glue, Redshift, and Lambda, Orchestrate complex data workflows with Apache Airflow, including DAG design, scheduling, and error handling, Apply Python and SQL for data transformation, validation and and quality testing in pipeline contexts. Every item follows the wording style and level of reasoning you meet in the real paper, and each one is paired with a clear rationale so the correct choice is never a guess. Work through the set at your own pace, mark the questions that slow you down, then come back to them until the reasoning feels automatic. Learners who revise this way walk into the exam room recognising the pattern behind the questions instead of meeting them for the first time. Keep going - steady, honest practice is what turns a difficult paper into a comfortable pass.
A. Set retries=3 and retry_delay=timedelta(minutes=5) on the task. CORRECT B. Use a BranchPythonOperator to skip the task on failure. C. Set trigger_rule='all_done' on downstream tasks. D. Increase the DAG's schedule_interval to reduce frequency. RATIONALE: Airflow's retry mechanism with retries and retry_delay is designed for transient failures, allowing tasks to automatically retry after a delay. Branching or trigger rules do not address the root cause, and changing schedule_interval does not improve resilience.
A. Use pandas.read_csv with chunksize parameter. B. Use csv.reader and iterate over rows. C. Use Dask DataFrame for out-of-core computation. D. All of the above are valid; choose based on complexity. CORRECT RATIONALE: All listed methods can handle large files without full memory load: pandas chunksize, csv.reader streaming, and Dask for parallel out-of-core processing. The best choice depends on transformation complexity and available resources.
A. AWS Glue B. AWS Lambda C. Amazon Kinesis D. AWS Step Functions CORRECT RATIONALE: AWS Step Functions provides serverless orchestration with state machines, ideal for coordinating multiple Lambda functions or Glue jobs triggered by S3 events. Glue is for ETL jobs but lacks orchestration; Lambda is compute; Kinesis is for streaming.
RATIONALE: DENSE_RANK() assigns consecutive ranks without gaps for ties. RANK() leaves gaps, ROW_NUMBER() gives unique sequential numbers, and NTILE() divides into buckets.
A. XComs to pass the file path between tasks. B. A Variable to store the file content. C. A Connection to store credentials and a hook to read the file. CORRECT D. A task with trigger_rule='once'. RATIONALE: Using an Airflow Connection to store S3 credentials and an S3Hook to read the file ensures secure, reusable access. XComs are for small data; Variables are for small config; trigger_rule does not control execution frequency.
A. Operational Excellence CORRECT B. Security C. Reliability D. Performance Efficiency RATIONALE: Operational Excellence focuses on automating operations, including deployment pipelines, to improve consistency and reduce errors. Security, Reliability, and Performance Efficiency address different aspects.
A. all_success B. all_done C. all_success with trigger_rule='none_failed' D. all_success with trigger_rule='none_skipped' CORRECT RATIONALE: The 'none_skipped' trigger rule runs only when no upstream tasks are skipped, effectively requiring all to succeed. 'all_success' (A) runs even if some upstream are skipped, as long as none failed. 'all_done' (B) runs regardless of upstream states. 'none_failed' (C) allows skipped upstreams as long as none failed.
A. Crawler with schema change policy CORRECT B. Job bookmark with schema inference C. Glue DataBrew profile D. AWS Lake Formation governed tables RATIONALE: Glue crawlers can be configured with a schema change policy (e.g., update the table in the Data Catalog) to handle evolving schemas. Job bookmarks (B) track processed data but do not update the catalog schema. DataBrew profiles (C) analyze data quality but do not update the catalog. Lake Formation (D) manages permissions, not schema evolution.
A. try/except/finally block B. with statement using a context manager CORRECT C. decorator that logs exceptions D. assert statement for connection validity RATIONALE: The 'with' statement uses context managers to guarantee resource cleanup (e.g., closing connections) even on exceptions. Try/except/finally (A) can achieve this but is more verbose and error-prone; the 'with' statement is the Pythonic best practice. Decorators (C) and asserts (D) do not ensure cleanup.
A. Airflow will not run any scheduled intervals until manually triggered. B. Airflow will skip all past intervals and only run the latest interval. C. Airflow will create runs only for the current and future intervals, not past ones. CORRECT D. Airflow will disable scheduling and rely on external triggers. RATIONALE: With catchup=False, the scheduler creates DAG runs only for the current interval and future ones, ignoring past intervals. It does not prevent all runs (A) or skip only past intervals while running the latest (B). Scheduling remains active (D).
A. AWS Glue Python shell job triggered by S3 event B. Amazon EC2 instance with cron C. AWS Lambda function triggered by S3 event CORRECT D. Amazon EMR cluster with steps RATIONALE: AWS Lambda is serverless and integrates natively with S3 events, ideal for lightweight Python scripts. Glue Python shell (A) is serverless but typically scheduled or triggered via Lambda, not directly by S3 events. EC2 (B) requires server management. EMR (D) is for big data processing and not serverless.
A. Type 1 B. Type 2 CORRECT C. Type 3 D. Type 4 RATIONALE: SCD Type 2 maintains history by inserting new rows with effective dates and version flags. Type 1 overwrites old values (A). Type 3 adds a previous value column (C). Type 4 uses a separate history table (D).
A. Dynamic task mapping CORRECT B. BranchPythonOperator C. XComs D. SubDAGs RATIONALE: Dynamic task mapping (introduced in Airflow 2.3) enables creating tasks dynamically from a list or XCom at runtime. BranchPythonOperator (B) chooses a path but does not create multiple tasks. XComs (C) pass data. SubDAGs (D) are deprecated for this use case.
A. Enable job bookmarks CORRECT B. Set --continuous-log-logGroup C. Use DynamicFrame.fromDF with a catalog table D. Increase DPU allocation RATIONALE: Glue job bookmarks persist state about processed data, so subsequent runs skip already-processed S3 objects. Continuous logging only streams logs to CloudWatch. DynamicFrame.fromDF does not track processed objects. More DPUs increase compute but do not provide incremental processing.
A. DELETE then INSERT within a transaction CORRECT B. MERGE statement C. INSERT with ON CONFLICT DO UPDATE D. TRUNCATE then INSERT RATIONALE: Redshift does not support MERGE or ON CONFLICT; the reliable idempotent pattern is DELETE matching rows then INSERT within a transaction. TRUNCATE then INSERT removes all data and is not idempotent for partial updates. MERGE and ON CONFLICT are unsupported in Redshift.
A. Quarantine the batch and alert the data owner CORRECT B. Drop the null rows and continue C. Replace nulls with default values D. Disable the test to unblock the pipeline RATIONALE: Quarantining the batch preserves data integrity and allows investigation; alerting the owner ensures accountability. Dropping rows or imputing defaults can silently corrupt downstream analytics. Disabling the test violates data quality governance.
A. PythonOperator CORRECT B. BashOperator C. S3ToRedshiftOperator D. DummyOperator RATIONALE: PythonOperator executes a Python callable, ideal for in-memory transformations. BashOperator runs shell commands. S3ToRedshiftOperator is for loading data. DummyOperator does nothing.
A. To define tasks as Python functions with automatic XCom handling CORRECT B. To schedule DAGs with cron syntax C. To create dynamic DAGs from YAML D. To enforce task retries RATIONALE: @task converts a Python function into an Airflow task and automatically manages XComs for data passing. Scheduling is handled by schedule_interval. Dynamic DAGs use other patterns. Retries are set via default_args.
A. AWS CloudTrail data events CORRECT B. S3 server access logging C. S3 Inventory D. S3 Analytics RATIONALE: CloudTrail data events record object-level API activity (e.g., GetObject, PutObject) for auditing. Server access logs are best-effort and not as comprehensive. S3 Inventory lists objects. S3 Analytics provides storage class analysis.
A. Foreign key CORRECT B. Surrogate key C. Natural key D. Composite key RATIONALE: Fact tables contain foreign keys that reference dimension primary keys. Surrogate keys are typically used as dimension primary keys. Natural keys are business keys. Composite keys combine multiple columns.
A. All downstream tasks skip because the failed upstream propagates skip status B. The all_done task runs, and one_success downstream runs if any other upstream succeeds CORRECT C. The DAG marks all tasks failed regardless of trigger rules D. The all_done task is skipped and downstream one_success tasks run only if all succeed RATIONALE: all_done fires once all upstream tasks reach a terminal state (success, failed, or skipped), so it runs despite the failure. A downstream one_success task then runs if at least one of its upstream tasks succeeded, independent of the failed branch. The other options misstate trigger rule semantics-failures do not globally fail the DAG, and all_done is not skipped.
A. Increased storage due to duplicated descriptive attributes B. Loss of referential integrity between fact and dimension tables C. Reduced query performance from additional joins D. Denormalized descriptive text in the fact table increases width and redundancy CORRECT RATIONALE: A degenerate dimension is a dimension key stored directly in the fact table without its own dimension table, avoiding a join but placing descriptive or identifier data in the fact table, increasing width and redundancy. It does not remove referential integrity or add joins; storage grows from redundancy, not duplicated full attributes.
A. Use COPY from S3 with a manifest and gzip compression CORRECT B. Wrap inserts in a single transaction and increase statement_timeout C. Switch to INSERT ... SELECT from a staging table row by row D. Enable autocommit and use smaller batch sizes RATIONALE: Redshift COPY from S3 is the mass-load path, parallelizing across slices and using compression for efficiency. Row-by-row executemany is slow and transaction wrapping does not fix throughput. Smaller batches and INSERT...SELECT do not leverage Redshift's parallel load.
A. expect_column_values_to_not_be_null B. expect_column_values_to_be_in_set C. expect_column_kl_divergence_to_be_less_than CORRECT D. expect_column_mean_to_be_between with static bounds RATIONALE: KL divergence compares the current distribution to a reference distribution, flagging distributional drift. Null and set checks validate membership, not distribution shift. Static mean bounds are brittle and do not capture full distribution changes.
A. Only the latest interval runs; prior intervals are skipped B. All missed intervals are scheduled sequentially, potentially overloading resources CORRECT C. The DAG fails because start_date is in the past D. Airflow creates a single backfill run covering the entire range RATIONALE: With catchup=True, the scheduler creates runs for every interval between start_date and now, which can overwhelm the cluster. Airflow does not skip prior intervals or create a single combined run; past start dates are valid.