0
0
Azurecloud~20 mins

ARM template structure 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!
🧠 Conceptual
intermediate
2:00remaining
Identify the main sections of an ARM template
Which of the following lists the main sections you will find in a valid ARM template?
Asettings, modules, scripts, outputs
Bparameters, variables, resources, outputs
Cinputs, functions, services, results
Dconfigurations, templates, deployments, logs
Attempts:
2 left
💡 Hint
Think about the parts that define inputs, reusable values, what to create, and what to return.
Configuration
intermediate
2:00remaining
Determine the output value from an ARM template snippet
Given this ARM template output section, what will be the value of the output named 'storageAccountName' after deployment?
{
  "outputs": {
    "storageAccountName": {
      "type": "string",
      "value": "mystorageaccount123"
    }
  }
}
Anull
B"storageAccountName"
C"mystorageaccount123"
DAn error occurs because the value is not a parameter
Attempts:
2 left
💡 Hint
Outputs return the value specified in the 'value' field.
Architecture
advanced
2:00remaining
Choose the correct resource declaration in an ARM template
Which option correctly declares a resource of type 'Microsoft.Storage/storageAccounts' with API version '2022-09-01' and name 'mystorageaccount'?
A
{
  "type": "Microsoft.Storage/storageAccounts",
  "apiVersion": "2022-09-01",
  "name": "mystorageaccount",
  "location": "eastus",
  "properties": {}
}
B
{
  "resourceType": "Microsoft.Storage/storageAccounts",
  "version": "2022-09-01",
  "resourceName": "mystorageaccount",
  "region": "eastus",
  "settings": {}
}
C
{
  "type": "Microsoft.Storage/storageAccounts",
  "apiVersion": "2022-09-01",
  "name": "storageaccount",
  "location": "eastus",
  "properties": {}
}
D
{
  "type": "Microsoft.Storage/storageAccounts",
  "apiVersion": "2021-04-01",
  "name": "mystorageaccount",
  "location": "eastus",
  "properties": {}
}
Attempts:
2 left
💡 Hint
Check the exact property names and values for resource declaration.
security
advanced
2:00remaining
Identify the security risk in an ARM template snippet
What is the main security risk in this ARM template parameter declaration?
{
  "parameters": {
    "adminPassword": {
      "type": "string",
      "defaultValue": "P@ssw0rd123",
      "metadata": {
        "description": "Admin password"
      }
    }
  }
}
AThere is no security risk in this declaration
BThe parameter type should be 'secureString' instead of 'string'
CThe metadata description reveals the password
DThe password is hardcoded as a default value, exposing sensitive data
Attempts:
2 left
💡 Hint
Think about how sensitive information should be handled in templates.
service_behavior
expert
2:00remaining
Predict the deployment behavior with missing required properties
If an ARM template resource declaration for a virtual machine omits the 'location' property, what will happen during deployment?
ADeployment fails with an error indicating the missing 'location' property
BAzure assigns a default location automatically
CDeployment succeeds but the VM is created in an undefined location
DDeployment is queued until the location is specified manually
Attempts:
2 left
💡 Hint
Consider required properties for Azure resources in ARM templates.