Docsity

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

Toggle sidebar
bg1
WGU D608- ETL Pipeline Implementation Complete AWS,
Apache Airflow, Python & SQL Project with Data Quality Tests
2026/2027 Updated
This exam assesses mastery of end-to-end ETL pipeline implementation using AWS services, Apache Airflow,
Python, and SQL, with a focus on data quality testing. It covers pipeline design, orchestration, transformation
logic, validation, monitoring, and deployment best practices aligned with 2026 industry standards. It contains 197
multiple-choice questions, each with four distractors and a fully worked rationale that explains why the keyed
answer is correct. Questions are organized into clearly labelled sections that mirror the major content areas of
the course. Targeted learning outcomes include: 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 quality testing in pipeline contexts.; Implement data quality checks and monitoring to ensure
pipeline reliability and data integrity.. Every item has been reviewed for clinical accuracy, current guidelines, and
clarity so that students can study with confidence and self-correct as they work through the bank. Use it as a
high-yield review immediately before the exam, or as a structured practice tool during the unit - the rationales
double as concise teaching notes. The recommended writing time is 3 hours, with a passing score of 80%. Aligned
with This exam adheres to US university standards for graduate-level data engineering courses and aligns with
WGU D608 competencies and performance assessment rubrics (2026/2027). standards and reflects the question
Section 1: General (Questions 1-197)
1In 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.
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.
Answer: A
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.
2When loading data into Amazon Redshift, which approach minimizes impact on
concurrent queries while ensuring atomicity?
A) Use COPY from S3 directly into the target table.
B) Use a staging table and then perform a transaction with DELETE and INSERT.
C) Use CREATE TABLE AS (CTAS) to replace the target table.
D) Use INSERT INTO ... SELECT from an external schema.
Answer: B
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

This exam assesses mastery of end-to-end ETL pipeline implementation using AWS services, Apache Airflow, Python, and SQL, with a focus on data quality testing. It covers pipeline design, orchestration, transformation logic, validation, monitoring, and deployment best practices aligned with 2026 industry standards. It contains 197 multiple-choice questions, each with four distractors and a fully worked rationale that explains why the keyed answer is correct. Questions are organized into clearly labelled sections that mirror the major content areas of the course. Targeted learning outcomes include: 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 quality testing in pipeline contexts.; Implement data quality checks and monitoring to ensure pipeline reliability and data integrity.. Every item has been reviewed for clinical accuracy, current guidelines, and clarity so that students can study with confidence and self-correct as they work through the bank. Use it as a high-yield review immediately before the exam, or as a structured practice tool during the unit - the rationales double as concise teaching notes. The recommended writing time is 3 hours, with a passing score of 80%. Aligned with This exam adheres to US university standards for graduate-level data engineering courses and aligns with WGU D608 competencies and performance assessment rubrics (2026/2027). standards and reflects the question

Section 1: General (Questions 1-197)

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

Answer: A 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.

2 When loading data into Amazon Redshift, which approach minimizes impact on concurrent queries while ensuring atomicity?

A) Use COPY from S3 directly into the target table. B) Use a staging table and then perform a transaction with DELETE and INSERT. C) Use CREATE TABLE AS (CTAS) to replace the target table. D) Use INSERT INTO ... SELECT from an external schema.

Answer: B

Rationale: Loading into a staging table and then using a transaction to swap or merge data ensures atomicity and minimizes locking on the target table. Direct COPY or CTAS can lock the table and impact concurrency, and INSERT from external schema may not be atomic.

3 A data quality test fails on a column expecting unique values. Which Great Expectations expectation is most appropriate?

A) expect_column_values_to_be_unique B) expect_column_values_to_not_be_null C) expect_column_values_to_be_in_set D) expect_column_values_to_match_regex

Answer: A Rationale: expect_column_values_to_be_unique specifically checks for uniqueness. The other expectations check for nulls, set membership, or pattern matching, which do not enforce uniqueness.

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

Answer: D 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.

5 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

Answer: D 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;

B) The foreign key used in join conditions. C) The column with highest cardinality. D) The column used in WHERE clauses most often.

Answer: B Rationale: Choosing distribution key as the join key (often foreign key) ensures that matching rows are co-located, reducing network traffic during joins. Primary key may not be join key; cardinality affects skew; WHERE columns benefit from sort keys.

10 Which AWS Well-Architected Framework pillar emphasizes automating ETL pipeline deployments for consistency?

A) Operational Excellence B) Security C) Reliability D) Performance Efficiency

Answer: A Rationale: Operational Excellence focuses on automating operations, including deployment pipelines, to improve consistency and reduce errors. Security, Reliability, and Performance Efficiency address different aspects.

11 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'

Answer: D 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.

12 Which AWS Glue feature automatically detects schema changes and updates the Data Catalog during ETL jobs?

A) Crawler with schema change policy B) Job bookmark with schema inference C) Glue DataBrew profile D) AWS Lake Formation governed tables

Answer: A 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.

13 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 C) decorator that logs exceptions D) assert statement for connection validity

Answer: B 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.

14 Which SQL clause is most efficient for deduplicating rows in a large table while preserving the latest record per key?

A) SELECT DISTINCT ON (key) ... ORDER BY key, timestamp DESC B) GROUP BY key with MAX(timestamp) and self-join C) ROW_NUMBER() OVER (PARTITION BY key ORDER BY timestamp DESC) = 1

D) DELETE FROM table USING table t2 WHERE ...

Answer: C Rationale: Using ROW_NUMBER() in a subquery or CTE filtered to 1 is a standard, efficient deduplication pattern that works across many SQL engines. DISTINCT ON (A) is PostgreSQL-specific and may not scale as well. GROUP BY with self-join (B) is often less efficient. DELETE with self-join (D) is for removal, not selection, and can be costly.

15 Which data quality test best validates that a foreign key in a fact table exists in the dimension table?

A) Uniqueness test on the dimension primary key B) Referential integrity test using a left join and null check C) Not-null test on the fact table foreign key

Answer: B 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).

19 Which Airflow feature allows defining tasks dynamically based on a list of tables at DAG parse time?

A) Dynamic task mapping B) BranchPythonOperator C) XComs D) SubDAGs

Answer: A 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.

20 Which logging practice is most effective for debugging a failed Airflow task in production?

A) Writing logs only to local files on the worker B) Using Airflow's remote logging to S3 or CloudWatch C) Relying solely on the Airflow UI's task instance logs D) Disabling logging to reduce overhead

Answer: B Rationale: Remote logging centralizes logs and persists them beyond worker lifecycle, aiding debugging. Local files (A) are ephemeral. UI logs (C) are limited and may not capture full context. Disabling logging (D) removes diagnostic information.

21 Which Airflow 2.7+ scheduling parameter best prevents duplicate DAG runs after a scheduler restart?

A) max_active_runs= B) catchup=False C) depends_on_past=True D) schedule_interval=@once

Answer: A Rationale: max_active_runs=1 limits concurrent DAG runs, preventing overlapping or duplicate executions when the scheduler restarts and re-evaluates schedules.

catchup=False only affects historical backfills, not duplicate runs. depends_on_past enforces sequential task dependencies but does not limit concurrent DAG runs. schedule_interval=@once runs only once and does not prevent duplicates on restart.

22 In an AWS Glue PySpark job, which action ensures only new S3 objects are processed on subsequent runs?

A) Enable job bookmarks B) Set --continuous-log-logGroup C) Use DynamicFrame.fromDF with a catalog table D) Increase DPU allocation

Answer: A 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.

23 Which SQL pattern correctly implements an idempotent upsert into a Redshift target table?

A) DELETE then INSERT within a transaction B) MERGE statement C) INSERT with ON CONFLICT DO UPDATE D) TRUNCATE then INSERT

Answer: A 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.

24 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 B) Drop the null rows and continue C) Replace nulls with default values D) Disable the test to unblock the pipeline

Answer: A 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

C) To create dynamic DAGs from YAML D) To enforce task retries

Answer: A 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.

29 Which S3 feature should be enabled to track all object-level API operations for security auditing?

A) AWS CloudTrail data events B) S3 server access logging C) S3 Inventory D) S3 Analytics

Answer: A 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.

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

A) Foreign key B) Surrogate key C) Natural key D) Composite key

Answer: A 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.

31 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

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

Answer: B 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.

32 A Glue job reads S3 Parquet with pushdown predicates but scans full partitions; which fix most directly reduces bytes scanned?

A) Enable job bookmarks and increase DPU count B) Partition the S3 prefix and add partition filters in the Glue DynamicFrame C) Convert Parquet to CSV and enable compression D) Increase the Glue worker type to G.2X and enable auto-scaling

Answer: B Rationale: Partitioning the S3 layout and applying partition predicates lets Glue prune partitions so only relevant data is read, reducing bytes scanned. Bookmarks track processed data for incremental runs but do not prune partitions. CSV conversion removes columnar pruning, and larger workers do not reduce scanned bytes.

33 Which Airflow 2.x feature best enforces a data-quality gate before publishing a dataset to downstream consumers?

A) Using a PythonSensor that polls an external API for approval B) Setting retries=3 on the transformation task C) A task using SQLCheckOperator that fails the DAG on non-zero rows D) Configuring SLA misses to email the on-call engineer

Answer: C Rationale: SQLCheckOperator (or a custom check) raises AirflowException when the SQL returns a failing result, blocking downstream tasks-an explicit quality gate. Sensors poll for conditions but do not validate data content. Retries and SLA alerts do not prevent bad data from propagating.

34 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

Answer: B 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.

38 In a SQL transformation, ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY updated_at DESC) is used; what does this produce?

A) A cumulative count of rows per customer B) The rank of each row by updated_at with ties sharing a rank C) A sequential number per customer, with 1 assigned to the most recent row D) The total number of rows per customer repeated on each row

Answer: C Rationale: ROW_NUMBER assigns unique sequential integers within each partition based on the ORDER BY; DESC puts the latest updated_at first, so it gets 1. RANK would share ranks on ties, and COUNT/SUM would produce cumulative or total counts, not sequential numbering.

39 Which AWS service combination best implements idempotent, exactly-once S3-to-Redshift loads with minimal custom code in 2026?

A) Lambda triggering Glue crawler then Redshift Spectrum queries B) Kinesis Firehose with Lambda transformation and Redshift COPY C) AWS Glue with job bookmarks and MERGE into Redshift staging D) Step Functions orchestrating EC2 scripts with S3 manifest checks

Answer: C Rationale: Glue job bookmarks track processed S3 objects, and MERGE into a staging table provides idempotent upserts, minimizing custom code. Firehose is for streaming and does not guarantee exactly-once. Spectrum queries external data without loading, and EC2 scripts require more custom logic.

40 A pipeline must retry transient S3 throttling but not retry schema validation failures; which Airflow pattern implements this?

A) Set retries=5 globally and rely on task timeouts B) Use retry_exponential_backoff with max_retry_delay on all tasks C) Raise AirflowFailException for validation errors and AirflowException for throttling

D) Wrap all exceptions in a custom retryable exception and set retries=

Answer: C Rationale: AirflowFailException marks the task failed immediately without retries,

so schema validation errors should raise it. Transient errors like throttling should raise a normal exception (or AirflowException) to trigger retries. Global retries and blanket backoff would also retry non-transient failures.

41 Which Airflow 2.x scheduling parameter prevents a DAG from backfilling all historical runs upon unpausing?

A) catchup=False B) depends_on_past=True C) max_active_runs= D) schedule_interval=None

Answer: A Rationale: Setting catchup=False limits the scheduler to the most recent interval, preventing backfill of all past runs. depends_on_past controls task dependency on prior runs, max_active_runs limits concurrency, and schedule_interval=None disables scheduling entirely.

42 In AWS Glue, which mechanism best ensures exactly-once processing when writing to Redshift from a JDBC source?

A) Job bookmarks with a primary key and preactions/postactions B) Spark accumulators to track processed rows C) Glue DynamicFrame repartitioning D) Setting spark.task.maxFailures to 1

Answer: A Rationale: Job bookmarks track processed data, and using a primary key with preactions/postactions (e.g., staging table swap) ensures idempotent, exactly-once writes. Accumulators are for metrics, repartitioning affects performance, and maxFailures controls retries, not exactly-once semantics.

43 Which Python library provides the most robust schema validation for Pandas DataFrames in production ETL?

A) pandera B) pytest C) mypy D) black

Answer: A Rationale: Pandera is designed for statistical and schema validation of DataFrames, offering declarative schemas and checks. pytest is a testing framework, mypy is a static type checker, and black is a code formatter.

B) Increasing memory allocation C) Using a larger deployment package D) Enabling X-Ray tracing

Answer: A Rationale: Provisioned concurrency pre-initializes execution environments, eliminating cold starts. Increasing memory can reduce duration but not cold-start frequency, larger packages increase cold-start time, and X-Ray tracing aids observability, not latency.

48 In data quality testing, which Great Expectations expectation best validates that a column's values fall within a specified set?

A) expect_column_values_to_be_in_set B) expect_column_values_to_not_be_null C) expect_column_mean_to_be_between D) expect_table_row_count_to_be_between

Answer: A Rationale: expect_column_values_to_be_in_set checks that all values belong to a given set. The others check nullity, mean range, and row count, respectively.

49 Which Airflow feature enables defining a DAG's tasks using Python functions without explicit operator instantiation?

A) TaskFlow API B) XComs C) SubDAGs D) Pool slots

Answer: A Rationale: The TaskFlow API uses the @task decorator to convert Python functions into tasks, simplifying DAG authoring. XComs handle inter-task communication, SubDAGs group tasks, and pool slots manage resource concurrency.

50 When implementing idempotent SQL transformations, which pattern best ensures safe re-runs?

A) MERGE (upsert) with a unique key B) INSERT INTO with SELECT * C) TRUNCATE followed by INSERT D) CREATE TABLE AS SELECT without WHERE

Answer: A

Rationale: MERGE (upsert) updates existing rows and inserts new ones based on a unique key, making re-runs idempotent. INSERT INTO with SELECT * can duplicate data, TRUNCATE+INSERT is not atomic and loses data on failure, and CREATE TABLE AS SELECT without WHERE may duplicate or overwrite incorrectly.

51 An Airflow DAG ingests files from S3 and must not reprocess a file if its checksum already exists in a control table. Which approach best enforces this idempotency?

A) Use a Sensor to wait for file arrival, then rely on the DAG run's execution_date to skip duplicates.

B) Query the control table for the checksum before ingestion; branch to skip if present, else ingest and record.

C) Set max_active_runs=1 and use catchup=False to prevent duplicate processing. D) Store the checksum in XCom and compare it in the next DAG run's task.

Answer: B Rationale: Idempotency requires checking a persistent control table for the checksum before ingestion; branching ensures no duplicate processing. Execution_date and max_active_runs do not prevent reprocessing the same file content. XCom is ephemeral and not reliable for cross-run state.

52 In an AWS Glue ETL job, a Python script must handle schema evolution where new columns appear in source Parquet files. Which job parameter ensures new columns are added to the catalog?

A) --enable-metrics B) --job-language python C) --enable-update-datacatalog true D) --continuous-log-logGroup

Answer: C Rationale: The --enable-update-datacatalog true parameter allows Glue to update the Data Catalog with new columns when schema evolution is detected. Other options control metrics, language, or logging, not catalog updates.

53 A SQL transformation uses ROW_NUMBER() OVER (PARTITION BY customer_id ORDER BY updated_at DESC) to deduplicate. Which condition ensures only the latest record per customer is kept?

A) WHERE rn = 1 B) WHERE rn = MAX(rn)

57 A Python transformation must process a 50 GB CSV without loading it entirely into memory. Which approach is most appropriate?

A) Use pandas.read_csv with low_memory=False. B) Use Dask or chunked pandas with chunksize. C) Load into a list and use multiprocessing. D) Convert to JSON and use json.load.

Answer: B Rationale: Chunked reading or Dask enables out-of-core processing. pandas with low_memory=False still loads all data; lists and json.load also load fully into memory.

58 In Airflow, which mechanism ensures a task only runs after a specific upstream task succeeds, not merely after the DAG run starts?

A) Setting task dependencies via bitshift operators (>>). B) Using TriggerDagRunOperator. C) Setting depends_on_past=True. D) Using a Sensor with mode='reschedule'.

Answer: A Rationale: Bitshift operators define explicit task dependencies, ensuring downstream tasks wait for upstream success. TriggerDagRunOperator triggers another DAG; depends_on_past relates to previous runs; sensors wait for external conditions.

59 A SQL query must merge data from staging into a target table, updating existing rows and inserting new ones. Which statement is most efficient in a modern cloud warehouse?

A) Use MERGE INTO target USING staging ON key WHEN MATCHED THEN UPDATE WHEN NOT MATCHED THEN INSERT.

B) Use DELETE followed by INSERT. C) Use UPDATE with a subquery and separate INSERT for new rows. D) Use TRUNCATE and reload all data.

Answer: A Rationale: MERGE (upsert) efficiently handles both updates and inserts in one statement. Delete+insert or truncate+reload are less efficient and may cause downtime; separate update/insert requires multiple passes.

60 Which AWS service is best suited for orchestrating a serverless ETL workflow that triggers on S3 object creation and runs Python code without managing servers?

A) AWS Glue with a Python shell job triggered by S3 event B) Amazon EC2 with a cron job C) AWS Lambda triggered by S3 event D) Amazon EMR with a step function

Answer: C Rationale: AWS Lambda is serverless and can be triggered directly by S3 events to run Python code. Glue Python shell jobs are not natively triggered by S3 events without additional orchestration; EC2 and EMR require server management.

61 In Airflow 2.7+, which trigger rule ensures a task runs only after all upstream tasks succeed or are skipped?

A) all_success B) all_done C) all_done_min_one_success D) none_failed

Answer: D Rationale: The none_failed trigger rule allows a task to run when all upstream tasks have no failed states (success or skipped). all_success requires every upstream task to succeed, all_done runs regardless of state, and all_done_min_one_success requires at least one success but all done.

62 Which AWS Glue DataBrew feature best enforces column-level data quality rules before loading to Redshift?

A) Recipe steps with aggregate functions B) Data quality rules with threshold actions C) Job bookmarks for incremental loads D) Crawlers to infer schemas

Answer: B Rationale: DataBrew data quality rules define column-level constraints (e.g., uniqueness, range) and can trigger actions like failing the job if thresholds are breached. Recipes transform data but do not enforce quality gates; bookmarks manage incremental processing; crawlers infer schemas but do not validate data quality.

63 A Python transformation must handle a 50 GB CSV without loading it fully into memory. Which approach is most appropriate?

A) Use pandas.read_csv with chunksize and process iteratively B) Load with csv.reader into a list then transform