
Answer-first summary for fast verification
Answer: Web
## Explanation To invoke an Azure Synapse Analytics pipeline from an Azure Data Factory pipeline, the **Web Activity** is the correct choice. Here's why: ### Why Web Activity is Optimal: - **Direct HTTP Trigger**: The Web Activity allows you to make HTTP requests to REST API endpoints. Azure Synapse Analytics pipelines expose REST APIs that can be triggered via HTTP POST requests. - **Cross-Service Integration**: Since Azure Data Factory and Azure Synapse Analytics are separate services, you need an activity that can communicate across service boundaries. The Web Activity provides this capability. - **Authentication Support**: The Web Activity supports various authentication methods (including Managed Identity, Service Principal, and access tokens) that can securely authenticate with the Synapse Analytics workspace. - **Pipeline Execution**: You can configure the Web Activity to call the Synapse pipeline's REST API endpoint with the appropriate parameters to start pipeline execution. ### Why Other Options Are Less Suitable: - **Spark Activity**: This is designed specifically for running Apache Spark jobs in Azure Databricks or HDInsight clusters, not for invoking Synapse pipelines. - **Custom Activity**: This is used for running custom code or applications in Azure Batch, which is overkill and inefficient for simply triggering another pipeline. - **Notebook Activity**: This is used for executing notebooks within the same Azure Data Factory or Synapse workspace, not for invoking entire pipelines across different services. ### Implementation Approach: To use the Web Activity effectively: 1. Configure the URL to point to the Synapse Analytics pipeline's REST API endpoint 2. Set the HTTP method to POST 3. Configure appropriate authentication (typically Managed Identity) 4. Include any required parameters in the request body 5. Handle response codes and potential errors appropriately This approach follows Azure best practices for cross-service pipeline orchestration and ensures reliable execution of the Synapse pipeline from Data Factory.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have an Azure Data Factory named ADF1 and an Azure Synapse Analytics workspace containing a pipeline named SynPipeLine1. You create a pipeline in ADF1 named ADFPipeline1.
You need to invoke SynPipeLine1 from ADFPipeline1.
Which activity type should you use?
A
Web
B
Spark
C
Custom
D
Notebook
No comments yet.