Suspend/Pause Pipelines in Azure Data Engineering | DP-203 Exam | Microsoft

Suspend/Pause Pipelines

Question

While running and managing your pipelines, you want to ensure that your pipelines don't run until an issue/error is fixed.

Which of the following PowerShell cmdlet would you use to suspend/pause your pipelines?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answer: E

Pipelines can be paused/suspended using the PowerShell cmdlet Suspend-AzDataFactoryPipeline.

This command helps a lot when you do not want to run the pipelines until an error/issue is resolved.

The syntax for the command is:

Suspend-AzDataFactoryPipeline [-ResourceGroupName] <String> [-DataFactoryName] <String> [-Name] <String>

Option A is incorrect.

Pause- AzDataFactoryPipeline is not the right command to suspend/pause the pipeline.

Option B is incorrect.

Stop- AzDataFactoryPipeline is not the right command to suspend/pause the pipeline.

Option C is incorrect.

Resume- AzDataFactoryPipeline is used to resume the pause/suspended pipeline but is used to suspend/pause the pipeline.

Option D is incorrect.

There is no command like Skip- AzDataFactoryPipeline.

Option E is correct.

Suspend-AzDataFactoryPipeline is the right command to suspend/pause the pipelines.

To know more about monitoring and managing pipelines, please visit the below-given link:

The correct PowerShell cmdlet to suspend/pause pipelines in Azure Data Factory is "Suspend-AzDataFactoryPipeline" which is option E in the given answers.

The Suspend-AzDataFactoryPipeline cmdlet stops the pipeline's execution and sets the pipeline status to Paused. This is useful when you want to stop pipeline execution to investigate issues/errors or to perform maintenance on pipeline resources. Once the pipeline is suspended, you can edit and fix any issues, and then resume pipeline execution.

The other options are:

  • Pause-AzDataFactoryPipeline: This cmdlet is not a valid cmdlet in Azure PowerShell. Therefore, this option is incorrect.
  • Stop-AzDataFactoryPipeline: This cmdlet stops pipeline execution and sets the pipeline status to Stopped. This is useful when you want to stop pipeline execution permanently or if you no longer need the pipeline. This option is not the best choice if you want to ensure that the pipeline doesn't run until an issue/error is fixed because it will stop pipeline execution permanently.
  • Resume-AzDataFactoryPipeline: This cmdlet resumes pipeline execution after it has been paused or stopped. This is not the correct option to use to suspend/pause pipelines.
  • Skip-AzDataFactoryPipeline: This cmdlet skips pipeline execution for a specified time range. This option is not relevant for suspending/pausing pipelines.

In conclusion, the correct PowerShell cmdlet to suspend/pause pipelines in Azure Data Factory is Suspend-AzDataFactoryPipeline (option E).