Skip to main content
← Back to Apache Airflow Assessments
🎓 APACHE AIRFLOW CERTIFICATION LEARNING STUDIO

Apache Airflow Practice Test 02

50 Comprehensive Questions (Questions 51–100)
✓0 / 50 Mastered
Question 1 of 500 of 50 Checked (0%)
Question 51of 50
🤔 Step: Reason & Select

Question 51

A senior architect reviews 20 different DAGs written by multiple development teams and discovers that every single DAG has copied and pasted identical 40-line Python helper functions for connecting to an internal SFTP server, decrypting files with PGP, and validating file checksums.

What architectural refactoring should be performed to eliminate this code duplication and enforce centralized governance?

💡
Think Before You Check: Take a moment to reason through the scenario, evaluate architectural trade-offs, and choose your option before checking.
A
A. Combine all 20 DAGs into a single massive 800-line DAG file
B
B. Create reusable Custom Operators or Python library modules and import them across DAGs
C
C. Store the Python function inside an Airflow Variable as a text string
D
D. Execute the Python function using OS cron outside Airflow
Question 1 of 50
Question Navigator (Test 02)0 / 50 Checked
Mastered (0) Needs Review (0) Unchecked (50) Current