0
0
Azurecloud~20 mins

ARM template resources section in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
ARM Template Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Configuration
intermediate
2: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"
    }
  ]
}
A3
B4
C1
D2
Attempts:
2 left
💡 Hint
Count each resource object inside the resources array.
service_behavior
intermediate
2: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?
AResource B deploys before resource A
BResource B deploys after resource A
CResource B deployment is skipped if resource A fails
DResources A and B deploy simultaneously
Attempts:
2 left
💡 Hint
dependsOn controls deployment sequence.
Architecture
advanced
2: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?
AMicrosoft.Compute/virtualNetworks
BMicrosoft.Storage/virtualNetworks
CMicrosoft.Network/virtualNetworks
DMicrosoft.Network/virtualMachines
Attempts:
2 left
💡 Hint
Virtual networks belong to the Network provider namespace.
security
advanced
2:00remaining
Identify the security risk in ARM template parameters
Which practice is a security risk when defining parameters in an ARM template?
AHardcoding passwords directly in the template parameters section
BUsing secureString type for passwords
CReferencing Key Vault secrets in parameters
DUsing parameters without default values
Attempts:
2 left
💡 Hint
Think about exposing secrets in code.
Best Practice
expert
3: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?
AUse names with spaces and special characters for readability
BUse fixed names like 'storageaccount' for all deployments
CUse random GUIDs as resource names without context
DUse unique names by combining parameters, resource group name, and a suffix
Attempts:
2 left
💡 Hint
Think about uniqueness and clarity in resource names.