Challenge - 5 Problems
ARM Template Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Configuration
intermediate2:00remaining
Identify the number of resources deployed
Given the following ARM template resources section, how many resources will be deployed?
Azure
{
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2022-09-01",
"name": "storageaccount1",
"location": "eastus",
"sku": { "name": "Standard_LRS" },
"kind": "StorageV2"
},
{
"type": "Microsoft.Compute/virtualMachines",
"apiVersion": "2022-08-01",
"name": "vm1",
"location": "eastus",
"properties": {
"hardwareProfile": { "vmSize": "Standard_DS1_v2" }
}
},
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2022-09-01",
"name": "storageaccount2",
"location": "westus",
"sku": { "name": "Standard_GRS" },
"kind": "StorageV2"
}
]
}Attempts:
2 left
💡 Hint
Count each resource object inside the resources array.
✗ Incorrect
The resources section contains three resource objects: two storage accounts and one virtual machine. Each object represents one resource to deploy.
❓ service_behavior
intermediate2:00remaining
Determine the deployment behavior with dependsOn
In an ARM template, if resource B has dependsOn set to resource A, what does this mean for deployment order?
Attempts:
2 left
💡 Hint
dependsOn controls deployment sequence.
✗ Incorrect
dependsOn ensures resource B waits until resource A finishes deploying before starting.
❓ Architecture
advanced2:00remaining
Identify the correct resource type for a virtual network
Which resource type string is correct to define a virtual network in an ARM template?
Attempts:
2 left
💡 Hint
Virtual networks belong to the Network provider namespace.
✗ Incorrect
Virtual networks are defined under Microsoft.Network with the resource type virtualNetworks.
❓ security
advanced2:00remaining
Identify the security risk in ARM template parameters
Which practice is a security risk when defining parameters in an ARM template?
Attempts:
2 left
💡 Hint
Think about exposing secrets in code.
✗ Incorrect
Hardcoding passwords in templates exposes secrets and is insecure. Using secureString or Key Vault references is safer.
✅ Best Practice
expert3:00remaining
Choose the best practice for resource naming in ARM templates
Which option follows best practice for naming resources in ARM templates to avoid conflicts and improve clarity?
Attempts:
2 left
💡 Hint
Think about uniqueness and clarity in resource names.
✗ Incorrect
Combining parameters and context ensures unique, meaningful names and avoids deployment conflicts.