0
0
Azurecloud~20 mins

Azure Resource Manager (ARM) concept - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
ARM Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
What happens when you deploy an ARM template with a missing required property?

You deploy an ARM template that defines a virtual machine but forget to include the vmSize property. What will Azure Resource Manager do?

Azure
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "resources": [
    {
      "type": "Microsoft.Compute/virtualMachines",
      "apiVersion": "2022-03-01",
      "name": "myVM",
      "location": "eastus",
      "properties": {
        "hardwareProfile": {
        },
        "storageProfile": {
          "imageReference": {
            "publisher": "MicrosoftWindowsServer",
            "offer": "WindowsServer",
            "sku": "2019-Datacenter",
            "version": "latest"
          }
        },
        "osProfile": {
          "computerName": "myVM",
          "adminUsername": "adminUser",
          "adminPassword": "Password123!"
        },
        "networkProfile": {
          "networkInterfaces": [
            {
              "id": "/subscriptions/xxx/resourceGroups/myRG/providers/Microsoft.Network/networkInterfaces/myNIC"
            }
          ]
        }
      }
    }
  ]
}
AThe deployment will succeed but the VM will not start until vmSize is manually set later.
BAzure will assign a default vmSize automatically and complete the deployment.
CThe deployment will fail with a validation error indicating the missing vmSize property.
DThe deployment will partially succeed but the VM resource will be in a failed state.
Attempts:
2 left
💡 Hint

Think about how ARM validates templates before creating resources.

Architecture
intermediate
2:00remaining
How does ARM handle resource dependencies during deployment?

You have an ARM template that creates a storage account and a virtual machine that uses that storage account. How does ARM ensure the VM is created only after the storage account is ready?

AARM automatically detects dependencies based on resource types and deployment order in the template.
BYou must explicitly declare dependencies using the <code>dependsOn</code> property in the VM resource.
CARM deploys all resources in parallel without waiting for dependencies.
DARM uses tags on resources to determine deployment order.
Attempts:
2 left
💡 Hint

Consider how you tell ARM about resource order when one resource needs another.

security
advanced
2:00remaining
What is the best practice to secure sensitive data in ARM templates?

You need to deploy a database with a password using an ARM template. Which approach ensures the password is not exposed in the template or logs?

AUse Azure Key Vault references in the ARM template to retrieve the password securely at deployment.
BHardcode the password directly in the ARM template parameters section.
CStore the password in a plain text file and reference it in the template.
DSend the password as a deployment parameter in the Azure portal without encryption.
Attempts:
2 left
💡 Hint

Think about how to keep secrets safe and not visible in templates or logs.

Configuration
advanced
2:00remaining
What is the output of this ARM template deployment command with the --what-if flag?

You run the following Azure CLI command to deploy an ARM template with the --what-if flag:

az deployment group create --resource-group myRG --template-file template.json --what-if

What will be the result?

AThe command shows a preview of changes that would be made without applying them.
BThe command deploys the template and applies all changes immediately.
CThe command validates the template syntax but does not show any changes.
DThe command deletes existing resources before deploying the template.
Attempts:
2 left
💡 Hint

What does the --what-if flag do in Azure CLI deployments?

Best Practice
expert
3:00remaining
Which approach best supports modular and reusable ARM templates for large infrastructure?

You manage a large Azure environment and want to organize your ARM templates for easier maintenance and reuse. Which approach follows best practices?

ACreate one large ARM template with all resources defined inline.
BWrite separate templates for each resource and deploy them independently without coordination.
CUse only Azure portal to create resources and avoid templates.
DSplit resources into multiple smaller templates and use nested or linked templates with parameters.
Attempts:
2 left
💡 Hint

Think about how to keep templates manageable and reusable.