Skip to main content
  1. Public practice questions
  2. AZ-104 Practice Exams | Azure Administrator Associate
  3. AZ-104 Case Study Set

Question 19 — AZ-104 Case Study Set

Paideffort's storage resource contains "name": "[parameters('storageAccountType')]" inside the SKU object. What role does the parameters() expression perform in this deployment? (Select one answer)

  1. It retrieves the value supplied or defaulted for storageAccountType and applies that value to the resource SKU.

  2. It returns the deployed storage SKU as an output that later pipeline stages can consume.

  3. It obtains the runtime storage account configuration after Resource Manager finishes provisioning the resource.

  4. It creates a new parameter automatically when the storage resource is evaluated during deployment.

Correct answers

  1. It retrieves the value supplied or defaulted for storageAccountType and applies that value to the resource SKU.

Explanations

Correct Answer:

It retrieves the value supplied or defaulted for storageAccountType and applies that value to the resource SKU.

Explanation:

Paideffort defines storageAccountType in the parameters section and references it from the storage resource. The parameters('storageAccountType') expression retrieves the deployment input, or its default when no override is supplied, and applies it to the SKU.

Wrong Answers:

It returns the deployed storage SKU as an output that later pipeline stages can consume.

Returning a deployment value requires an entry in the outputs section. The parameters() function is being used here to consume an input value within a resource declaration.

It obtains the runtime storage account configuration after Resource Manager finishes provisioning the resource.

Runtime resource state is obtained with functions such as reference(). The parameters() expression retrieves deployment input instead.

It creates a new parameter automatically when the storage resource is evaluated during deployment.

Parameters must be defined in the parameters section before they can be referenced. Calling parameters() does not create a missing parameter definition.