Docsity

WGU D608 ETL Pipeline Implementation Complete AWS, Apache Airflow, Python & SQL Project w, Exams of Nursing

Toggle sidebar
bg1
Page 1
WGU D608- ETL PIPELINE IMPLEMENTATION COMPLETE
AWS, APACHE AIRFLOW, PYTHON & SQL PROJECT WITH
DATA QUALITY TESTS 2026/2027 UPDATED
197 QUESTIONS
TABLE OF CONTENTS
# 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 D608
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
ABSTRACT
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download WGU D608 ETL Pipeline Implementation Complete AWS, Apache Airflow, Python & SQL Project w and more Exams Nursing in PDF only on Docsity!

WGU D608- ETL PIPELINE IMPLEMENTATION COMPLETE

AWS, APACHE AIRFLOW, PYTHON & SQL PROJECT WITH

DATA QUALITY TESTS 2026/2027 UPDATED

197 QUESTIONS

TABLE OF CONTENTS

# 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

ABSTRACT

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.

Q1 DESIGN AND IMPLEMENT SCALABLE ETL/ELT PIPELINES USING AWS SERVICES SUCH

AS S3, GLUE, REDSHIFT, AND LAMBDA

In an Airflow DAG, a task fails intermittently due to transient S3 errors. Which

configuration best ensures resilience?

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.

Q4 DESIGN AND IMPLEMENT SCALABLE ETL/ELT PIPELINES USING AWS SERVICES SUCH

AS S3, GLUE, REDSHIFT, AND LAMBDA

In a Python transformation, you need to process a large CSV without loading it

entirely into memory. Which approach is best?

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.

Q5 DESIGN AND IMPLEMENT SCALABLE ETL/ELT PIPELINES USING AWS SERVICES SUCH

AS S3, GLUE, REDSHIFT, AND LAMBDA

Which AWS service is best suited for orchestrating a serverless ETL workflow

triggered by S3 events?

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.

Q6 DESIGN AND IMPLEMENT SCALABLE ETL/ELT PIPELINES USING AWS SERVICES SUCH

AS S3, GLUE, REDSHIFT, AND LAMBDA

In SQL, which window function clause allows ranking without gaps for ties?

A. ROW_NUMBER()

B. RANK()

C. DENSE_RANK() CORRECT

D. NTILE()

RATIONALE: DENSE_RANK() assigns consecutive ranks without gaps for ties. RANK() leaves gaps, ROW_NUMBER() gives unique sequential numbers, and NTILE() divides into buckets.

Q7 DESIGN AND IMPLEMENT SCALABLE ETL/ELT PIPELINES USING AWS SERVICES SUCH

AS S3, GLUE, REDSHIFT, AND LAMBDA

An Airflow DAG uses a PythonOperator that reads a config file from S3. Which

Airflow feature ensures the file is fetched only once per DAG run?

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.

Q10 DESIGN AND IMPLEMENT SCALABLE ETL/ELT PIPELINES USING AWS SERVICES SUCH

AS S3, GLUE, REDSHIFT, AND LAMBDA

Which AWS Well-Architected Framework pillar emphasizes automating ETL

pipeline deployments for consistency?

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.

Q11 DESIGN AND IMPLEMENT SCALABLE ETL/ELT PIPELINES USING AWS SERVICES SUCH

AS S3, GLUE, REDSHIFT, AND LAMBDA

In Airflow 2.x, which trigger rule ensures a task runs only if all upstream tasks

succeed, but is skipped if any upstream is skipped?

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.

Q12 DESIGN AND IMPLEMENT SCALABLE ETL/ELT PIPELINES USING AWS SERVICES SUCH

AS S3, GLUE, REDSHIFT, AND LAMBDA

Which AWS Glue feature automatically detects schema changes and updates the

Data Catalog during ETL jobs?

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.

Q13 DESIGN AND IMPLEMENT SCALABLE ETL/ELT PIPELINES USING AWS SERVICES SUCH

AS S3, GLUE, REDSHIFT, AND LAMBDA

In Python, which construct ensures a database connection is closed even if an

exception occurs during ETL processing?

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.

Q16 ORCHESTRATE COMPLEX DATA WORKFLOWS WITH APACHE AIRFLOW, INCLUDING

DAG DESIGN, SCHEDULING, AND ERROR HANDLING

In Airflow, what is the effect of setting catchup=False on a DAG with a daily

schedule?

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).

Q17 ORCHESTRATE COMPLEX DATA WORKFLOWS WITH APACHE AIRFLOW, INCLUDING

DAG DESIGN, SCHEDULING, AND ERROR HANDLING

Which AWS service is best suited for running a Python ETL script in response to

S3 object creation events without managing servers?

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.

Q18 ORCHESTRATE COMPLEX DATA WORKFLOWS WITH APACHE AIRFLOW, INCLUDING

DAG DESIGN, SCHEDULING, AND ERROR HANDLING

In a star schema, which slowly changing dimension (SCD) type preserves full

history by adding new rows with versioning?

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).

Q19 ORCHESTRATE COMPLEX DATA WORKFLOWS WITH APACHE AIRFLOW, INCLUDING

DAG DESIGN, SCHEDULING, AND ERROR HANDLING

Which Airflow feature allows defining tasks dynamically based on a list of tables at

DAG parse time?

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.

Q22 ORCHESTRATE COMPLEX DATA WORKFLOWS WITH APACHE AIRFLOW, INCLUDING

DAG DESIGN, SCHEDULING, AND ERROR HANDLING

In an AWS Glue PySpark job, which action ensures only new S3 objects are

processed on subsequent runs?

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.

Q23 ORCHESTRATE COMPLEX DATA WORKFLOWS WITH APACHE AIRFLOW, INCLUDING

DAG DESIGN, SCHEDULING, AND ERROR HANDLING

Which SQL pattern correctly implements an idempotent upsert into a Redshift

target table?

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.

Q24 ORCHESTRATE COMPLEX DATA WORKFLOWS WITH APACHE AIRFLOW, INCLUDING

DAG DESIGN, SCHEDULING, AND ERROR HANDLING

A data quality test fails on 5% nulls in a NOT NULL column. What is the best

immediate action?

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.

Q25 ORCHESTRATE COMPLEX DATA WORKFLOWS WITH APACHE AIRFLOW, INCLUDING

DAG DESIGN, SCHEDULING, AND ERROR HANDLING

Which Airflow operator is best for running a Python function that transforms data

in-memory?

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.

Q28 ORCHESTRATE COMPLEX DATA WORKFLOWS WITH APACHE AIRFLOW, INCLUDING

DAG DESIGN, SCHEDULING, AND ERROR HANDLING

What is the primary purpose of the Airflow TaskFlow API decorator @task?

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.

Q29 ORCHESTRATE COMPLEX DATA WORKFLOWS WITH APACHE AIRFLOW, INCLUDING

DAG DESIGN, SCHEDULING, AND ERROR HANDLING

Which S3 feature should be enabled to track all object-level API operations for

security auditing?

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.

Q30 APPLY PYTHON AND SQL FOR DATA TRANSFORMATION, VALIDATION, AND QUALITY

TESTING IN PIPELINE CONTEXTS

In a star schema, which key type in the fact table references dimension primary

keys?

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.

Q31 APPLY PYTHON AND SQL FOR DATA TRANSFORMATION, VALIDATION, AND QUALITY

TESTING IN PIPELINE CONTEXTS

In Airflow 2.x, a task with trigger_rule='all_done' and downstream tasks using

'one_success' will behave how when one upstream fails?

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.

Q34 APPLY PYTHON AND SQL FOR DATA TRANSFORMATION, VALIDATION, AND QUALITY

TESTING IN PIPELINE CONTEXTS

In a star schema, a fact table stores a degenerate dimension to avoid an extra join;

what is the primary trade-off?

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.

Q35 APPLY PYTHON AND SQL FOR DATA TRANSFORMATION, VALIDATION, AND QUALITY

TESTING IN PIPELINE CONTEXTS

A Python ETL job loads 10M rows into Redshift using psycopg2 executemany and

times out; which change most improves throughput?

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.

Q36 APPLY PYTHON AND SQL FOR DATA TRANSFORMATION, VALIDATION, AND QUALITY

TESTING IN PIPELINE CONTEXTS

Which Great Expectations expectation best detects a column whose distribution

shifts beyond historical bounds?

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.

Q37 APPLY PYTHON AND SQL FOR DATA TRANSFORMATION, VALIDATION, AND QUALITY

TESTING IN PIPELINE CONTEXTS

An Airflow DAG with catchup=True and a daily schedule starting a year ago is

deployed; what is the default behavior on first run?

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.