nerdexam
MicrosoftMicrosoft

AZ-400 · Question #388

AZ-400 Question #388: Real Exam Question with Answer & Explanation

This question tests knowledge of Azure Resource Manager (ARM) template deployment modes and how to configure an Azure DevOps YAML pipeline to deploy Azure Data Factory without affecting other resources in the resource group.

Submitted by andreas_gr· Mar 6, 2026Design and implement build and release pipelines

Question

Hotspot Question You are creating a YAML-based Azure pipeline to deploy an Azure Data factory instance that has the following requirements: - If a Data Factory instance exists already, the instance must be overwritten. - No other resources in a resource group named Fabrikam must be affected. How should you complete the code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Options

  • __typehotspot
  • variantdropdown

Explanation

This question tests knowledge of Azure Resource Manager (ARM) template deployment modes and how to configure an Azure DevOps YAML pipeline to deploy Azure Data Factory without affecting other resources in the resource group.

Approach. The correct deployment mode is 'Incremental' (not 'Complete'), because Incremental mode only adds or updates the resources defined in the template while leaving other existing resources in the resource group untouched - this satisfies the requirement that no other resources in 'Fabrikam' are affected. To ensure the Data Factory instance is overwritten if it already exists, you should set the 'overrideParameters' or use the AzureResourceManagerTemplateDeployment task with the 'deploymentMode: Incremental' and ensure the ARM template includes the Data Factory resource definition, which ARM will update in place if it already exists. The task type used should be 'AzureResourceManagerTemplateDeployment@3' (or similar), with 'deploymentMode' set to 'Incremental' so existing resources outside the template scope are preserved, and the template itself handles idempotent creation/overwrite of the Data Factory instance.

Concept tested. ARM template deployment modes in Azure Pipelines: 'Complete' mode deletes resources not in the template (destructive to other resources), while 'Incremental' mode only creates or updates resources defined in the template, leaving other resources untouched. This is critical when deploying to a shared resource group like 'Fabrikam' where other resources must not be affected.

Reference. https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deployment-modes

Topics

#YAML pipelines#Azure Data Factory#ARM deployment#deploymentMode

Community Discussion

No community discussion yet for this question.

Full AZ-400 PracticeBrowse All AZ-400 Questions