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

Question 26 — AZ-104 Case Study Set

Review the server-farm fragment from Paideffort's template.

{
  "type": "Microsoft.Web/serverfarms",
  "apiVersion": "2024-11-01",
  "name": "[concat('plan-', parameters('environmentName'))]",
  "location": "[resourceGroup().location]",
  "sku": {
    "name": "[parameters('functionPlanSku')]"
  }
}

The template's parameters section defines environmentName, storageAccountType, and adminSecret. What should be changed before this resource can use the intended environment-specific plan SKU? (Select one answer)

  1. Define functionPlanSku in the parameters section and provide suitable allowed or default values for Paideffort's environments.

  2. Replace functionPlanSku with storageAccountType because any existing string parameter can supply the App Service plan SKU.

  3. Move the entire SKU object into the outputs section so the deployment can determine the plan size after resource creation.

  4. Replace the parameters expression with reference() so Resource Manager can discover the SKU before the server farm exists.

Correct answers

  1. Define functionPlanSku in the parameters section and provide suitable allowed or default values for Paideffort's environments.

Explanations

Correct Answer:

Define functionPlanSku in the parameters section and provide suitable allowed or default values for Paideffort's environments.

Explanation:

The server-farm resource references parameters('functionPlanSku'), but Paideffort's template does not define that parameter. Because plan capacity is expected to vary by environment, defining an appropriate parameter also aligns with the platform's reusability requirements.

Wrong Answers:

Replace functionPlanSku with storageAccountType because any existing string parameter can supply the App Service plan SKU.

Although both values may be strings, they represent different resource configurations. Reusing the storage SKU parameter for an App Service plan would violate the semantic purpose of Paideffort's parameters.

Move the entire SKU object into the outputs section so the deployment can determine the plan size after resource creation.

Outputs report values after deployment. They do not configure the SKU required to create the server farm.

Replace the parameters expression with reference() so Resource Manager can discover the SKU before the server farm exists.

reference() retrieves runtime information from a resource. It does not provide the deployment input needed to configure a resource before or during creation.