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

CertStreak
Menu

Define an IaC strategy, including source control and automation of testing and deployment

A worked example

Multiple answers

A company deploys Azure virtual machines by using Azure Resource Manager (ARM) templates stored in a Git repository. The development, staging, and production environments each have their own template file. The files were meant to differ only in VM size, but other settings have drifted between them over time. In addition, the same virtual network resources are copied into the templates of four projects.

You need to redesign the templates to meet the following requirements:

  • A single template must define the VMs for all three environments, with the VM size selected for each environment.
  • A change to the virtual network definition must be made in one place and apply to all four projects.
  • All templates must remain in the Git repository.

Which two actions should you perform? Each correct answer presents part of the solution.

Choose 2 answers.
Why

A vmSize parameter lets one ARM template serve development, staging and production with different VM sizes. This removes the separate per-environment files that had drifted apart. Moving the shared virtual network resources into their own linked template lets all four projects use the updated definition in subsequent deployments. Both changes keep the templates in Git, so they stay versioned and reviewable.

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