Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Recommend an automated deployment solution for applications

A worked example

Single answer

Fabrikam keeps a library of JSON ARM templates that its platform team finds long and hard to maintain. The team wants to standardize its infrastructure as code (IaC) for all new application deployments. The requirements are:

  • Use a declarative approach, not step-by-step provisioning scripts.
  • Use a simpler authoring syntax than JSON, and migrate the existing templates with minimal manual reauthoring.
  • Support new and updated Azure resource features as soon as they are released.
  • Keep all deployment state in Azure, so the team does not manage a separate state store.
  • Be a product that Microsoft Support fully supports.
  • Run deployments from GitHub Actions workflows.

Which solution should you recommend?

Choose one answer
Why

Bicep provides a simpler declarative syntax for Azure resource deployments. It supports new Azure resource features from day one, keeps deployment state in Azure, and is fully supported by Microsoft Support. The Bicep CLI can decompile the existing JSON templates as a starting point for migration. The resulting templates can be deployed through GitHub Actions workflows.

  • Not correct: Keep the JSON ARM templates, split them into linked templates, and deploy them from GitHub Actions workflows. Linked templates improve modularity and the approach is declarative. However, the team still authors in JSON, so the simpler syntax requirement is not met.
  • Not correct: Rewrite the deployments as PowerShell runbooks in Azure Automation, and start the runbooks from GitHub Actions workflows. Runbooks automate management tasks step by step, which is imperative. The requirements call for a declarative IaC approach.
  • Correct: Decompile the existing JSON templates to Bicep with the Bicep CLI, review the output, and deploy them from GitHub Actions workflows. Bicep provides declarative deployment with simpler syntax, day-one Azure resource support, state stored in Azure, and Microsoft Support. Decompilation provides a starting point for migrating the existing templates, and deployments can run from GitHub Actions.
  • Not correct: Use Azure Automation State Configuration to define the target resources, and apply the configurations from GitHub Actions workflows. State Configuration is for configuration management rather than provisioning Azure resources. It is also retiring, with Azure Machine Configuration as its replacement for new implementations.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free