Download WGU D608– ETL Pipeline Implementation | Complete AWS, Apache Airflow, Python & SQL Project 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/
Updated
Table of Contents | Section | Topic | Questions | | 1 | ETL Fundamentals & Data Pipeline Architecture | 1–35 | | 2 | AWS Services for ETL (S3, Glue, Lambda, Redshift, RDS) | 36– 80 | | 3 | Apache Airflow: DAGs, Operators & Scheduling | 81–125 | | 4 | Python for ETL: Data Transformation & Error Handling | 126– 170 | | 5 | SQL for ETL: Queries, Joins & Window Functions | 171–215 | | 6 | Data Quality Testing & Validation | 216–255 | | 7 | Orchestration, Monitoring & Troubleshooting | 256–280 | | 8 | Security, Cost Optimization & Best Practices | 281–300 |
SECTION 1: ETL FUNDAMENTALS & DATA PIPELINE
ARCHITECTURE (Q1–Q35)
- ETL stands for: A) Extract, Transform, Load B) Evaluate, Test, Launch C) Extract, Transfer, Log D) Encode, Translate, Link Answer: A) Extract, Transform, Load Explanation: ETL is the standard data integration process: Extract data from sources, Transform it into a usable format, and Load it into a target system.
- The primary purpose of an ETL pipeline is to: A) Move and transform data from source systems to a target data warehouse B) Replace all databases C) Eliminate the need for data storage D) Encrypt all data
C) Load D) Archive Answer: A) Transform Explanation: The Transform phase applies business rules, cleans data, aggregates, joins, and enriches it before loading.
- Which ETL phase writes data into the target system? A) Load B) Extract C) Transform D) Validate Answer: A) Load Explanation: The Load phase writes transformed data into the target data warehouse or data lake.
- ELT differs from ETL in that: A) Data is loaded into the target system before transformation B) Data is never transformed C) Data is never extracted
D) Data is only stored in files Answer: A) Data is loaded into the target system before transformation Explanation: ELT loads raw data into the target (often a cloud data warehouse) and transforms it there, leveraging the target system's compute power.
- A data warehouse is optimized for: A) Analytical queries and reporting B) Transactional processing C) Real-time gaming D) File storage only Answer: A) Analytical queries and reporting Explanation: Data warehouses are designed for analytical workloads (OLAP), supporting complex queries and reporting.
- A data lake is characterized by: A) Storing raw data in its native format until needed B) Storing only structured data
C) Processing only real-time streams D) Processing no data Answer: A) Processing data at scheduled intervals Explanation: Batch ETL processes data in scheduled chunks (e.g., hourly, daily), unlike streaming ETL which processes continuously.
- Which of the following is a streaming ETL characteristic? A) Processing data continuously as it arrives B) Processing data at scheduled intervals C) Processing only historical data D) Processing no data Answer: A) Processing data continuously as it arrives Explanation: Streaming ETL processes data in real time as it is generated, enabling low-latency analytics.
- An idempotent ETL job is one that: A) Produces the same result regardless of how many times it runs B) Fails on the first run C) Cannot be rerun
D) Deletes all data Answer: A) Produces the same result regardless of how many times it runs Explanation: Idempotency ensures that rerunning a job produces the same outcome, preventing duplicate data—critical for reliable pipelines.
- A data pipeline is: A) A series of data processing steps that move data from source to destination B) A single SQL query C) A type of database D) A file format Answer: A) A series of data processing steps that move data from source to destination Explanation: A data pipeline is an automated sequence of steps that extract, transform, and load data.
- Which of the following is a common source system for ETL? A) Relational databases, APIs, and flat files
B) The schema is applied when data is read C) There is no schema D) The schema is encrypted Answer: A) The schema is enforced when data is written to the target Explanation: Schema-on-write (used in data warehouses) enforces structure at load time, ensuring data quality and consistency.
- Data lineage refers to: A) Tracking the origin and transformation history of data B) Deleting data C) Encrypting data D) Compressing data Answer: A) Tracking the origin and transformation history of data Explanation: Data lineage documents where data came from and how it was transformed, supporting audits, debugging, and compliance.
- Which of the following is a benefit of a well-designed ETL pipeline?
A) Reliable, timely data for analytics B) Increased manual effort C) More data errors D) Slower reporting Answer: A) Reliable, timely data for analytics Explanation: Well-designed ETL pipelines deliver reliable, timely, and consistent data for decision-making.
- A staging area in ETL is used to: A) Temporarily store extracted data before transformation B) Permanently store final data C) Encrypt data D) Delete data Answer: A) Temporarily store extracted data before transformation Explanation: A staging area holds extracted data temporarily, isolating the source from transformations and enabling validation.
- Which of the following is a common ETL target? A) A cloud data warehouse such as Amazon Redshift
- Incremental loading means: A) Loading only new or changed data since the last run B) Loading all data every time C) Loading no data D) Deleting data Answer: A) Loading only new or changed data since the last run Explanation: Incremental loading processes only new or modified records, reducing load time and resource usage compared to full loads.
- A full load means: A) Loading the entire dataset every time B) Loading only new data C) Loading no data D) Deleting data Answer: A) Loading the entire dataset every time Explanation: A full load replaces the target dataset with the complete source dataset, simpler but more resource-intensive.
- A slowly changing dimension (SCD) is used to: A) Track historical changes to dimension attributes over time B) Delete dimension data C) Encrypt dimension data D) Compress dimension data Answer: A) Track historical changes to dimension attributes over time Explanation: SCDs preserve historical changes to dimension data (e.g., a customer's address changes), enabling accurate historical reporting.
- A Type 1 SCD: A) Overwrites old data with new data, losing history B) Preserves full history with new rows C) Adds new columns for each change D) Deletes all history Answer: A) Overwrites old data with new data, losing history Explanation: Type 1 SCD overwrites existing records with new values, losing historical information.
Explanation: Surrogate keys are system-generated integers that uniquely identify dimension records, independent of source keys.
- A star schema consists of: A) A central fact table surrounded by dimension tables B) Only dimension tables C) Only fact tables D) A snowflake of facts Answer: A) A central fact table surrounded by dimension tables Explanation: A star schema has a central fact table (measures) connected to denormalized dimension tables (descriptive attributes).
- A snowflake schema differs from a star schema in that: A) Dimension tables are normalized into multiple related tables B) There are no dimension tables C) There are no fact tables D) It uses no keys
Answer: A) Dimension tables are normalized into multiple related tables Explanation: A snowflake schema normalizes dimension tables into hierarchies, reducing redundancy but increasing join complexity.
- A fact table typically contains: A) Measures (metrics) and foreign keys to dimensions B) Only descriptive attributes C) Only text data D) Only keys Answer: A) Measures (metrics) and foreign keys to dimensions Explanation: Fact tables store quantitative measures (e.g., sales amount) and foreign keys linking to dimension tables.
- Data orchestration refers to: A) Coordinating and scheduling the execution of data pipeline tasks B) Deleting data C) Encrypting data D) Compressing data
Answer: A) Directed Acyclic Graph Explanation: A DAG (Directed Acyclic Graph) defines the tasks and dependencies in an Airflow workflow, with no cycles.
- Which of the following is a benefit of cloud-based ETL? A) Scalability and reduced infrastructure management B) Increased manual effort C) Higher hardware costs D) Slower processing Answer: A) Scalability and reduced infrastructure management Explanation: Cloud ETL services offer on-demand scalability and reduce the burden of managing physical infrastructure.
- Which of the following is a common ETL challenge? A) Handling data quality issues and schema changes B) Having too much free time C) Having no data sources D) Having no target system Answer: A) Handling data quality issues and schema changes
Explanation: ETL challenges include data quality problems, schema evolution, performance at scale, and error handling. SECTION 2: AWS SERVICES FOR ETL (Q36–Q80)
- Amazon S3 is: A) An object storage service B) A relational database C) A compute service D) A message queue Answer: A) An object storage service Explanation: Amazon S3 (Simple Storage Service) is scalable object storage used for data lakes, backups, and ETL staging.
- Which AWS service is commonly used as a data lake? A) Amazon S B) Amazon RDS C) Amazon EC