DP-203 Exam QuestionsBrowse all questions from this exam

DP-203 Exam - Question 120


You have an Azure Data Factory instance that contains two pipelines named Pipeline1 and Pipeline2.

Pipeline1 has the activities shown in the following exhibit.

Pipeline2 has the activities shown in the following exhibit.

You execute Pipeline2, and Stored procedure1 in Pipeline1 fails.

What is the status of the pipeline runs?

Show Answer
Correct Answer: A

A

Activities are linked together via dependencies. A dependency has a condition of one of the following: Succeeded, Failed, Skipped, or Completed.

Consider Pipeline1:

If we have a pipeline with two activities where Activity2 has a failure dependency on Activity1, the pipeline will not fail just because Activity1 failed. If Activity1 fails and Activity2 succeeds, the pipeline will succeed. This scenario is treated as a try-catch block by Data Factory.

The failure dependency means this pipeline reports success.

Note:

If we have a pipeline containing Activity1 and Activity2, and Activity2 has a success dependency on Activity1, it will only execute if Activity1 is successful. In this scenario, if Activity1 fails, the pipeline will fail.

Reference:

https://datasavvy.me/category/azure-data-factory/

Discussion

17 comments
Sign in to comment
SaferSephyOption: A
Sep 8, 2021

Correct answer is A. The trick is the fact that pipeline 1 only has a Failure dependency between de activity's. In this situation this results in a Succeeded pipeline if the Stored procedure failed. If also the success connection was linked to a follow up activity, and the SP would fail, the pipeline would be indeed marked as failed. So A.

BK10
Feb 13, 2022

well explained! A is right

Ram0202
May 28, 2023

correct ,Execute pipeline explained here https://youtu.be/Jkz1dtLrBE4

echerishOption: D
Aug 24, 2021

Pipeline 2 executes Pipeline 1 if success set variable. Since Pipeline 1 exists it's a success Pipeline 1 Stored procedure fails. If fails set variable. Since the expected outcome is fail the job runs successfully and sets variable1. At least that's how I understand it

AngelJPOption: A
Mar 16, 2022

A correct: Pipeline 1 is in try catch sentence --> Success Pipeline 2 --> Success https://docs.microsoft.com/en-us/azure/data-factory/tutorial-pipeline-failure-error-handling#try-catch-block

AvSUN
Sep 6, 2023

Thanks

PallaviPatelOption: A
Jan 29, 2022

A correct. I agree with SaferSephy's comments below.

dev2devOption: A
Jan 17, 2022

A is correct. Pipeline 1 is connected to Set variable to Failure node/event. Its like handling exceptions/errors in programming language. Without Failure node, it would be treated as failed.

mamahaniOption: A
May 11, 2023

A is correct answer

joponluOption: A
May 25, 2023

Correct!!!

azaspirantOption: B
Aug 17, 2023

How do we know which is the default behaviour? Its not mentioned anywhere wether there is a success dependency or failure dependency

VeroDonOption: A
Jan 2, 2022

Correct

SebKOption: A
Mar 22, 2022

Correct

Deeksha1234Option: A
Jul 30, 2022

A is correct

NoobTesterOption: D
Sep 26, 2022

Answer is correct. This article helped: https://www.sqlshack.com/dependencies-in-azure-data-factory/

Billybob0604Option: A
Dec 2, 2022

So the default behaviour is Failed dependency ? If so the answer is A. But it doesn't say this anywhere in the question.

akhil5432Option: A
Aug 7, 2023

OPTION "A"

kkk5566Option: A
Sep 5, 2023

Correct answer is A.

moneytimeOption: D
Feb 9, 2024

I chose D There are two paths defined in the question. For pipeline1, upon failure For pipeline2; Upon success. Now ,for pipeline1, to respond to the run of pipeline 2 simply showed that they were connected. This is a case of Upon if else block condition. When previous activity (procedure)failed : node Upon Success is skipped and its parent node failed; overall pipeline1 failed When previous activity succeeds: node Upon Success succeeded and node Upon Failure is skipped (and its parent node succeeds); overall pipeline succeeds. Hence ,pipeline 2 succeeds The pipeline2 can be visualized as thus P2->P1

DanweoOption: A
Jul 13, 2024

A is correct