Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Secure Secrets in ETL Pipelines

EasyPipelines00:00
Practice interviewer
In session
5 left
00:00

Your question is Secure Secrets in ETL Pipelines. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Context

FinLedger, a fintech company, runs batch and streaming data pipelines on AWS using Apache Airflow, dbt, Spark, and Kubernetes. Today, many credentials are stored as CI/CD variables and injected into deployment jobs, but the platform team has found hardcoded secrets in DAGs, leaked .env files in build artifacts, and inconsistent rotation practices across environments.

You need to design a secure approach for handling secrets and sensitive configuration data across deployment pipelines and runtime execution for data workloads.

Scale Requirements

  • Pipelines: 250 Airflow DAGs, 40 dbt jobs, 15 Spark applications
  • Deployments: ~120 CI/CD runs per day across dev, staging, and prod
  • Secrets: ~180 managed secrets (database passwords, API tokens, Snowflake keys, Kafka SASL credentials)
  • Latency target: secret retrieval must add < 200 ms per task startup on average
  • Rotation target: critical credentials rotated every 30 days with zero manual code changes
  • Audit retention: 1 year of access logs for compliance reviews

Requirements

  1. Design a deployment pipeline that never stores plaintext secrets in source control, container images, or CI logs.
  2. Separate build-time, deploy-time, and runtime secret access patterns for Airflow, Spark, and dbt workloads.
  3. Support environment-specific configuration with strict access boundaries between dev, staging, and prod.
  4. Implement automated secret rotation and rollout without requiring DAG or application redeploys where possible.
  5. Provide a strategy for short-lived credentials, least-privilege IAM, and service-to-service authentication.
  6. Define monitoring, auditing, and alerting for secret access anomalies, failed retrievals, and expired credentials.
  7. Include failure recovery for secret manager outages and misconfigured permissions.

Constraints

  • AWS is the primary cloud; GitHub Actions is the CI/CD platform.
  • Existing tools must remain: Airflow 2.x, dbt Core, Spark on EKS, Snowflake.
  • SOC 2 and PCI-related controls require auditability and separation of duties.
  • The team is small: 3 data engineers, 1 platform engineer, so the solution should minimize operational overhead.