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

CertStreak
Menu

Deploy virtual machines to availability zones and availability sets

A worked example

Single answer

You are deploying a two-tier application to Azure:

  • Web tier: two identical VMs running the same web software
  • Database tier: two identical VMs running the same database software

For each tier, a failure affecting one fault domain or planned maintenance rebooting one update domain must leave at least one VM available. Each availability set will use two fault domains and five update domains.

How should you configure the availability sets?

Choose one answer
Why

Use a separate availability set for each application tier so that Azure distributes that tier's VMs across fault domains and update domains. With two VMs per tier and the specified domain counts, a failure affecting one fault domain or maintenance rebooting one update domain does not affect both VMs in that tier. Larger sets can contain multiple VMs in the same domain.

  • Correct: Create two availability sets: one for the two web VMs and one for the two database VMs. Each tier gets its own availability set. With the specified domain counts, Azure separates each tier's two VMs across fault domains and update domains.
  • Not correct: Create one availability set for each fault domain, and place one web VM and one database VM in each set. Azure assigns fault domains within each availability set. Creating separate sets does not dedicate each set to a particular fault domain.
  • Not correct: Create one availability set and place all four VMs in it. Azure distributes the four VMs as one group without considering their application tiers. This does not ensure that each tier's two VMs occupy different fault domains.
  • Not correct: Create four availability sets, each with one VM. A single-VM set provides no redundancy within the set. Separate sets do not coordinate placement to ensure that a tier's VMs occupy different domains.

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