Azure Data Factory interview questions and answers: pipelines, runtimes and triggers

Azure Data Factory interview questions start with the building blocks: pipelines group activities, linked services hold connections, datasets describe the data, and integration runtimes decide where the work runs. Interviewers then test trigger choice (schedule, tumbling window, storage event), parameterized and metadata-driven pipelines, incremental loads with a watermark, error handling and moving pipelines between environments with Git and ARM templates. Strong answers explain why a self-hosted runtime or a tumbling window was the right call for a specific scenario.

By Published 9 min read

Where Azure Data Factory shows up in interviews

ADF questions appear in Azure data engineer, ETL developer and BI developer interviews, and in consulting roles that move on-premises SQL Server workloads to Azure. The questions are practical. Interviewers describe a source, a target and a schedule, and ask which activities, which integration runtime and which trigger you would use, then how you would make it reusable, restartable and deployable. Because Synapse pipelines and the Data Factory experience in Microsoft Fabric share many of the same ideas, ADF answers often carry over to those questions too, with differences you should check for the tool the team uses.

  1. ScreenCore components, integration runtime types, trigger types, Copy activity versus mapping data flow.
  2. Scenario roundDesign a pipeline for a stated load: on-premises SQL to a data lake, hundreds of tables, daily increments, failure handling.
  3. Platform roundSecurity with managed identity and Key Vault, private networking, monitoring and alerts, and CI/CD across dev, test and prod.

Fundamentals: the building blocks

ADF basics
QuestionWhat it testsWhat a strong answer shows
What is a pipeline in ADF?Core conceptA logical group of activities that together do one job, such as load a table. It has parameters, variables and a run history, and can call other pipelines.
What is the difference between a linked service and a dataset?Connections versus dataA linked service is the connection: server, account, authentication. A dataset points to specific data through that connection: a table, a folder or a file pattern, with its format.
What kinds of activities exist?Activity typesData movement (Copy), transformation (mapping data flow, Databricks notebook, stored procedure, Azure Function) and control flow (Lookup, Get Metadata, ForEach, If Condition, Switch, Until, Execute Pipeline, Wait, Web, Set Variable, Fail).
What is an integration runtime?ComputeThe compute that runs activities and connects to data stores. Its type and location decide what the pipeline can reach and where data moves.
What is the difference between ADF and SSIS?PositioningSSIS is an on-premises ETL tool with packages run by SQL Server. ADF is a managed cloud orchestration and data movement service. ADF can run existing SSIS packages through the Azure-SSIS integration runtime during a migration.
Is ADF an ETL or an ELT tool?ArchitectureBoth. Copy activity often lands raw data first and a warehouse or Spark engine transforms it (ELT). Mapping data flows transform data inside ADF on managed Spark (ETL).
What is the difference between a parameter and a variable?StateParameters are set when a run starts and stay fixed. Variables can change during the run with Set Variable or Append Variable. Neither persists between runs.
What do activity dependency conditions mean?Control flowAn activity can run after another Succeeded, Failed, Completed or Skipped. Combining them builds try-catch and always-run cleanup paths.
ADF basics. Scroll sideways on a small screen.

Integration runtimes

Integration runtime questions
QuestionWhat it testsWhat a strong answer shows
What are the three integration runtime types?IR typesAzure IR (fully managed, for cloud sources and data flows), self-hosted IR (software you install on a machine that can see private sources) and Azure-SSIS IR (a managed cluster that runs SSIS packages).
When do you need a self-hosted IR?NetworkingWhen the source sits on-premises or in a private network the cloud runtime cannot reach, such as a SQL Server behind a firewall. It only needs outbound connections to Azure.
How do you make a self-hosted IR highly available?ResilienceInstall it on more than one machine and register them as nodes of the same IR, so work continues when one machine is down. Size the machines for concurrent copy jobs.
Can one self-hosted IR be used by several factories?SharingYes, through a shared integration runtime linked to other factories, which avoids installing more agents on the same network.
What does a managed virtual network change?SecurityThe Azure IR runs inside a network managed by ADF and reaches sources through managed private endpoints, so traffic does not go over public endpoints.
Why do mapping data flows take time to start, and what helps?Spark clustersEach run needs a Spark cluster on the Azure IR. A time-to-live setting keeps the cluster warm for the next data flow, which cuts start-up time for back-to-back runs.
Integration runtime questions. Scroll sideways on a small screen.

Triggers and scheduling

  • What trigger types does ADF have? Schedule, tumbling window, storage event and custom event triggers, plus manual or API-started runs.
  • Schedule or tumbling window trigger? A schedule trigger fires on a clock and can start several pipelines, with no memory of past runs. A tumbling window trigger slices time into fixed, non-overlapping windows, passes each window's start and end to one pipeline, can backfill past windows, retry failed ones, and depend on other tumbling windows.
  • How does a pipeline know which time window to load? From trigger outputs passed into pipeline parameters, for example the window start and end times of a tumbling window trigger, so a rerun of yesterday's window loads yesterday's data.
  • How do you start a pipeline when a file lands? A storage event trigger on blob created in a container and path, built on Event Grid. The file path and name come through as trigger outputs.
  • What is a custom event trigger for? Starting pipelines from events your own systems publish to an Event Grid topic, such as an upstream job finishing.
  • How do you stop two runs of the same load from overlapping? Set pipeline concurrency to one, or use a tumbling window trigger, which runs windows in order with a configurable concurrency.

Parameterization and metadata-driven pipelines

{
  "name": "pl_copy_tables_incremental",
  "properties": {
    "parameters": {
      "windowStart": { "type": "string" },
      "windowEnd": { "type": "string" }
    },
    "activities": [
      {
        "name": "GetTableList",
        "type": "Lookup",
        "typeProperties": {
          "source": {
            "type": "AzureSqlSource",
            "sqlReaderQuery": "SELECT schema_name, table_name, watermark_column FROM etl.control_table WHERE enabled = 1"
          },
          "dataset": { "referenceName": "ds_control_db", "type": "DatasetReference" },
          "firstRowOnly": false
        }
      },
      {
        "name": "ForEachTable",
        "type": "ForEach",
        "dependsOn": [ { "activity": "GetTableList", "dependencyConditions": [ "Succeeded" ] } ],
        "typeProperties": {
          "items": { "value": "@activity('GetTableList').output.value", "type": "Expression" },
          "isSequential": false,
          "batchCount": 8,
          "activities": [
            {
              "name": "CopyChangedRows",
              "type": "Copy",
              "policy": { "retry": 2, "retryIntervalInSeconds": 60 },
              "typeProperties": {
                "source": {
                  "type": "SqlServerSource",
                  "sqlReaderQuery": {
                    "value": "SELECT * FROM @{item().schema_name}.@{item().table_name} WHERE @{item().watermark_column} >= '@{pipeline().parameters.windowStart}' AND @{item().watermark_column} < '@{pipeline().parameters.windowEnd}'",
                    "type": "Expression"
                  }
                },
                "sink": { "type": "ParquetSink" }
              },
              "inputs": [ { "referenceName": "ds_onprem_sql", "type": "DatasetReference" } ],
              "outputs": [
                {
                  "referenceName": "ds_lake_parquet",
                  "type": "DatasetReference",
                  "parameters": {
                    "folder": {
                      "value": "@concat('raw/', item().table_name, '/', formatDateTime(pipeline().parameters.windowStart, 'yyyy/MM/dd'))",
                      "type": "Expression"
                    }
                  }
                }
              ]
            }
          ]
        }
      }
    ]
  }
}
Pipeline JSON: a Lookup reads a control table, a ForEach copies each table's changed rows in parallel batches, and a parameterized dataset writes to a dated lake folder. Parsed as JSON only; not deployed.
  • What does @{...} mean inside a string? String interpolation: the expression inside the braces is evaluated and inserted, as in the SQL query above. A value that starts with @ and no braces is a whole expression.
  • What is item() in a ForEach? The current element of the items array, here one row from the control table. Inside the loop, item().table_name reads that row's column.
  • How do you parameterize a linked service? Add parameters such as server and database name to the linked service and pass them from the dataset, so one linked service serves many databases of the same type.
  • What are global parameters? Factory-level constants, such as an environment name or a storage account, shared by every pipeline and overridden per environment during deployment.
  • What does firstRowOnly: false change on a Lookup? It returns all rows as output.value, an array, instead of a single row as output.firstRow. Lookup output is capped (by default at a few thousand rows and a few megabytes), so larger lists should be paged or split.
  • Why use a control table? Adding a table to the load becomes a row insert, not a pipeline change. Columns can hold the watermark column, load type, target path and an enabled flag.
  • What limits matter on ForEach? It runs in parallel unless set to sequential, with batchCount capping concurrency (the documented maximum is 50). A ForEach cannot directly contain another ForEach, so nested loops call a child pipeline with Execute Pipeline.
  • Is it safe to set a variable inside a parallel ForEach? No. Variables are pipeline-scoped, so parallel iterations overwrite each other. Use a sequential loop, a child pipeline, or write results to a table.

Incremental loads, data flows and error handling

Scenario questions for experienced ADF developers
QuestionWhat it testsWhat a strong answer shows
How do you load only changed rows from a SQL source?Watermark patternLook up the last stored watermark, look up the current maximum of the change column, copy rows between the two, then update the stored watermark with a stored procedure only if the copy succeeded.
What if the source has no reliable modified column?Change captureUse the database's change tracking or change data capture, or the CDC features ADF offers for some sources; as a last resort, full loads with a hash comparison downstream.
How do you copy only new files from a folder?File loadsFilter by last modified time using the trigger window, use a storage event trigger per file, or record processed file names in a control table.
When do you use a mapping data flow instead of Copy?Transformation choiceCopy moves data with light mapping and is fast and simple. Data flows handle joins, aggregates, derived columns, deduplication and slowly changing dimensions visually on Spark, at the cost of cluster start-up and compute.
How do you speed up a slow Copy activity?PerformanceCheck where time goes in the copy monitoring details, raise data integration units or parallel copies, partition the source read, use staged copy into a warehouse that loads fast from storage, and move the self-hosted IR closer to the source.
How do you handle bad rows without failing the whole copy?Fault toleranceEnable fault tolerance to skip incompatible rows and log them to storage, then alert when the skipped count is above zero.
How do you build try-catch logic?Error handlingConnect a failure path from the risky activity to a logging or alerting activity, set retries and timeouts on each activity, and use a Fail activity to end the run with a clear message when needed.
Why might a pipeline show success even though an activity failed?Run statusThe pipeline result depends on how its last activities ended. If a failure path handled the error and succeeded, the run can be marked succeeded; add a Fail activity on that path when the run should still fail.
Scenario questions for experienced ADF developers. Scroll sideways on a small screen.

Security, monitoring and CI/CD

  • Where should connection secrets live? In Azure Key Vault, referenced from linked services, with the factory's managed identity granted access. Even better, use managed identity authentication to the source so there is no secret at all.
  • How do you monitor pipelines? The Monitor hub for run history and rerun from the failed activity, Azure Monitor alerts on failed runs, and diagnostic settings sending logs to Log Analytics for longer retention and queries.
  • How does Git integration work in ADF? You develop on feature branches connected to Azure DevOps or GitHub and merge into a collaboration branch. Publishing generates ARM templates, traditionally into an adf_publish branch, or through an automated build in a pipeline.
  • How do you deploy from dev to test to prod? Deploy the generated ARM template with a parameter file per environment that overrides linked service connection details and global parameters. Only the dev factory is connected to Git.
  • Why stop triggers before a deployment? Deploying over an active trigger can fail or leave it in an odd state. Microsoft provides a sample pre- and post-deployment script that stops triggers, deploys, removes deleted resources and restarts triggers.
  • How do you keep ADF costs under control? Fewer, larger activity runs instead of thousands of tiny ones, right-sized data integration units, data flow clusters with a sensible time-to-live, and triggers that do not poll more often than the data changes.

Fictional example

Answering "Load 300 tables from an on-premises SQL Server to the data lake every night, and rerun any night that fails"
Interviewer
The server is behind the corporate firewall. Some tables have a modified date column, some do not. Operations wants to rerun a specific night without editing anything.
Candidate
First the runtime: the cloud IR cannot reach that server, so I would install a self-hosted IR on two machines inside the network for availability. Then a control table with one row per table: schema, name, load type, watermark column and target folder. The parent pipeline is a Lookup on the control table and a ForEach with a batch count we tune against the source's capacity. Inside, an If Condition sends watermark tables to an incremental Copy and the rest to a full Copy, both writing Parquet to a folder named by table and date. I would drive it with a tumbling window trigger of one day, because then each night is a window with its own start and end, and rerunning a failed night is a rerun of that window, with no edits. Each copy has retries; failures go to a logging activity that writes the table name and error, and an Azure Monitor alert fires on any failed run.

Ten-day Azure Data Factory practice plan

  • Days 1 and 2: in a test subscription, build a Copy pipeline from Blob to Azure SQL and name every component out loud.
  • Days 3 and 4: parameterize the dataset and linked service, then drive ten copies from a control table with Lookup and ForEach.
  • Day 5: build the watermark pattern end to end and rerun it to prove it does not duplicate rows.
  • Day 6: compare schedule and tumbling window triggers, including a backfill of three past windows.
  • Day 7: build one mapping data flow with a join and a derived column, and note the start-up time.
  • Days 8 and 9: connect the factory to Git, publish, and deploy the ARM template to a second factory with a parameter file.
  • Day 10: answer the scenario questions above out loud, two minutes each.

For the cloud platform around ADF, see Azure interview questions. If the team compares orchestrators, Airflow interview questions cover the code-first alternative, and Spark interview questions cover what runs under data flows and Databricks. Pipelines often feed warehouses on other clouds too, as in BigQuery interview questions, and the role-level view is in data engineer interview questions.

Pipeline design answers are long, so it helps to read them back. Natively, an AI interview assistant for Mac and Windows, transcribes a mock ADF scenario round on your computer, so you can see whether you named the integration runtime before the activities. In practice it can read a pipeline diagram or an error from a screenshot and suggest what to check, and with Pro or the free trial it draws on the résumé and job description you add. Transcripts and notes are saved for review.

Questions people ask

What Azure Data Factory questions are asked in interviews?

Expect pipelines, activities, datasets and linked services, the three integration runtime types, schedule versus tumbling window and event triggers, parameters and expressions, Lookup and ForEach, incremental loads, mapping data flows, error handling and CI/CD with Git and ARM templates.

What are the types of integration runtime in Azure Data Factory?

The Azure integration runtime for cloud sources and data flows, the self-hosted integration runtime for on-premises or private network sources, and the Azure-SSIS integration runtime for running existing SSIS packages.

What is the difference between a schedule trigger and a tumbling window trigger?

A schedule trigger fires on a clock with no memory of past runs. A tumbling window trigger runs one pipeline for fixed, non-overlapping time windows, passes each window's start and end, and supports backfill, retries and dependencies.

How do you implement an incremental load in Azure Data Factory?

Use a watermark: look up the last loaded value, look up the current maximum, copy rows between them, and update the stored watermark only after the copy succeeds. Change tracking or CDC replaces the watermark when no reliable column exists.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP