Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan

Terraform for Data Platform Pipelines

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

Your question is Terraform for Data Platform 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

Northbeam Analytics runs batch and near-real-time data pipelines on AWS using Airflow, EMR Serverless, S3, and Snowflake. Today, infrastructure for DAGs, IAM roles, S3 buckets, and compute environments is created manually across dev, staging, and prod, causing drift, failed deployments, and inconsistent access controls.

You need to design how the team should manage pipeline infrastructure as code with Terraform so new data pipelines can be provisioned reproducibly, reviewed through Git, and promoted safely across environments.

Scale Requirements

  • Environments: 3 isolated environments (dev, staging, prod)
  • Pipelines: 120 Airflow DAGs, 35 batch Spark jobs, 8 streaming jobs
  • Deployments: 20-30 Terraform applies per week
  • Storage: 1.5 PB in S3 across raw, staging, and curated zones
  • Latency target: Infrastructure changes promoted to prod within 30 minutes after approval
  • Team size: 10 data engineers, 2 platform engineers

Requirements

  1. Define a Terraform structure for reusable modules covering S3, IAM, Airflow connections, EMR Serverless applications, and Snowflake objects.
  2. Support environment-specific configuration without duplicating code.
  3. Design CI/CD for terraform fmt, validate, plan, policy checks, and controlled apply.
  4. Manage remote state, state locking, and secret handling securely.
  5. Prevent destructive changes to production data stores and shared pipeline resources.
  6. Include strategies for drift detection, module versioning, and rollback.
  7. Explain how Terraform changes integrate with pipeline orchestration and deployment workflows.

Constraints

  • AWS is the primary cloud; Terraform Cloud is not approved.
  • Secrets must remain in AWS Secrets Manager and cannot be stored in state in plaintext.
  • Production changes require approval and audit logs.
  • Monthly platform tooling budget is capped at $8K.
  • SOC 2 controls require least-privilege IAM and change traceability.