0
0
Azurecloud~20 mins

ARM template outputs in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
ARM Template Outputs Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
1:30remaining
What is the output value of this ARM template?

Given the following ARM template snippet, what will be the value of the output named storageAccountName after deployment?

{
  "outputs": {
    "storageAccountName": {
      "type": "string",
      "value": "myStorage123"
    }
  }
}
A"storageAccountName"
B"myStorage123"
C"string"
D"outputs"
Attempts:
2 left
💡 Hint

The output value is the value field inside the output definition.

🧠 Conceptual
intermediate
1:30remaining
Which output type is valid in ARM templates?

ARM templates support several output types. Which of the following is NOT a valid output type?

Astring
Bsecurestring
Cfloat
Dint
Attempts:
2 left
💡 Hint

Think about the basic data types ARM templates support for outputs.

Configuration
advanced
2:00remaining
What is the output of this ARM template snippet with nested outputs?

Consider this ARM template outputs section:

{
  "outputs": {
    "nestedOutput": {
      "type": "object",
      "value": {
        "name": "appService",
        "id": "12345"
      }
    }
  }
}

What is the exact JSON output value for nestedOutput after deployment?

A{"name": "appService", "id": "12345"}
B"{\"name\": \"appService\", \"id\": \"12345\"}"
C"appService12345"
D{"nestedOutput": {"name": "appService", "id": "12345"}}
Attempts:
2 left
💡 Hint

Outputs of type object return JSON objects, not strings.

security
advanced
1:30remaining
Which output type should you use to avoid exposing sensitive data?

You want to output a secret value from your ARM template without exposing it in deployment logs or UI. Which output type should you use?

Asecurestring
Bstring
Cobject
Dint
Attempts:
2 left
💡 Hint

Think about how ARM templates handle sensitive data in outputs.

Architecture
expert
2:00remaining
What happens if an ARM template output references a non-existent resource property?

In an ARM template, an output references a property of a resource that does not exist or is misspelled. What will be the deployment output behavior?

ADeployment succeeds but output is an empty string.
BOutput returns null without failing deployment.
CDeployment succeeds and output returns the property name as string.
DDeployment fails with a template validation error.
Attempts:
2 left
💡 Hint

Consider how ARM template validation works before deployment completes.