mediumMultiple ChoiceObjective-mapped
AZ-400 Practice Question: Refer to the exhibit
Network Topology
Refer to the exhibit. You run an ARM template deployment and get the error shown. What is the most likely cause?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The template references a resource that already exists and conflicts with the deployment.
The error details show a Conflict with message 'User 'adminuser' already exists in this resource group.' This indicates the template tries to create a resource that already exists, causing a conflict.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
The template references a resource that already exists and conflicts with the deployment.
Why this is correct
During resource provisioning, Azure Resource Manager attempts to create the resource defined in the template. If a resource of the same name already exists in the target resource group and the deployment is not able to reconcile it as an idempotent update, ARM returns an 'InvalidTemplateDeployment' error with an inner error, such as the user 'adminuser' already exists. This indicates the template itself is valid and passed parsing; the failure occurs at the resource creation step because the named resource conflicts with an existing object in the environment.
- ✗
The deployment name already exists in the resource group.
Why it's wrong here
Reusing a deployment name is allowed within a resource group's deployment history; ARM treats a redeployment as an update, not an error. A duplicate deployment name would produce a conflict on the deployment record itself (e.g., 'Deployment 'X' already exists'), not an InvalidTemplateDeployment error with a resource-level inner error like user conflict.
- ✗
The resource group location does not match the template location.
Why it's wrong here
The resource group location is not compared to the template location because ARM templates are region-agnostic and can deploy resources to any location supported by the subscription. A location mismatch would surface during resource creation as a 'NoRegisteredProviderFound' or 'InvalidLocation' error, not as an InvalidTemplateDeployment error with an inner user conflict.
- ✗
The template has a syntax error in the JSON.
Why it's wrong here
A JSON syntax error in the template would prevent the deployment from being parsed and would return an 'InvalidTemplate' error code, not 'InvalidTemplateDeployment'. Since the error message references a resource conflict, the template must have passed syntax validation and failed during resource provisioning.
Go deeper
Related to this question
About these practice questions
One of 823 original AZ-400 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-400 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-400 exam.