Module 1 · Platform, Identity and Storage · Lesson 1 of 8
Cloud & Platform Fundamentals
Start with the failure
A design review multiplies three provider SLA percentages and calls the result a contractual application SLA. Another design puts two replicas in one failure domain and assumes their failures are independent. State the assumptions before doing either calculation.
Compute the model, then question its assumptions
| Simplified model | Calculation | Result |
|---|---|---|
| Three independent required components | 0.9995×0.9999×0.999 | 99.840064995% |
| Two independent redundant 99% components | 1−(1−0.99)² | 99.99% |
| Two replicas sharing a required failed dependency | That dependency remains in the request path | Replica count alone does not establish the parallel result |
These are illustrative availability models, not combined provider contracts or a prediction of your real deployment. Include shared failures, routing, surviving capacity and the actual service objective.
Interview reference
Question 1. What is the difference between a Region, an Availability Zone, and a Region Pair, and how do they affect high availability and disaster recovery?
A Region is a geographic area containing one or more datacenters (e.g. Central India). An Availability Zone (AZ) is a separated grouping of one or more datacenters within a region, with independent power, cooling and networking. Zone-aware deployments reduce the effect of datacenter/zone failures; not every region or service supports the same zonal features. A Region Pair is two associated regions, usually in the same geography (e.g. Central India ↔ South India) used for cross-region replication and coordinated platform updates. Configure supported zone-redundant service features and sufficient surviving capacity; simply selecting a region with zones does not create HA or guarantee application-wide zero data loss. For regional DR, choose supported secondary regions and explicit replication/failover arrangements. Many regions are unpaired, and many services allow nonpaired-region DR. Pairing alone does not replicate your app or fail it over. Azure aims to stagger planned updates across pairs; that is not a universal guarantee that paired regions cannot fail together. Region pairs, zones.
Question 2. Explain the Azure resource hierarchy and the role of Azure Resource Manager (ARM).
The hierarchy is Management Group → Subscription → Resource Group → Resource. Management groups apply policy and access across many subscriptions; a subscription is a billing and isolation boundary; a resource group is a lifecycle and permission container for resources that share a fate (deploy/delete together).
ARM is the deployment and management control plane. Azure resource-management requests through the portal/CLI/SDK/REST use ARM; this does not include every Microsoft cloud administration API (for example, Microsoft Graph). Data-plane requests go to the service endpoints. ARM evaluates management access/policy and orchestrates resource-provider deployments with declared dependencies. Repeatability depends on the resource operation and template: not every arbitrary control-plane action is idempotent, and redeployment is not proof that there can be no side effects. ARM overview. This is why infrastructure-as-code (Bicep/ARM templates) is declarative and repeatable.
Question 3. Walk through the Azure Storage redundancy options. When would you choose each?
LRS keeps 3 copies in one datacenter — cheapest, protects only against disk/node failure. ZRS synchronously replicates across at least three availability zones in the primary region for zone-failure resilience. GRS replicates to the paired region asynchronously (6 copies total) for regional disaster recovery, but the secondary is not readable until failover. RA-GRS adds a read-only secondary endpoint, whose data may lag the primary. GZRS combines zone redundancy in the primary with geo-replication; RA-GZRS also makes the secondary readable. The geo-secondary is locally redundant, not automatically zone-redundant because the primary uses GZRS. Supported redundancy choices vary by storage service/account type and region. Storage redundancy.
Pick LRS for easily-reconstructable or dev data, ZRS for production needing in-region resilience, and GZRS/RA-GZRS for critical data needing both zone resilience and regional DR. Geo-replication is asynchronous, so a regional failure can lose writes not yet replicated. Ordinary geo-replication often has an RPO under 15 minutes, but that is not guaranteed; any SLA-backed replication option has its own eligibility and terms.
Question 4. What is a composite SLA and why does it matter when designing a multi-service system?
A composite availability calculation is a simplified model, not a combined contractual SLA or a prediction obtained by multiplying provider SLA percentages. If component availabilities are treated as independent, series availabilities multiply: if your API depends on a 99.95% App Service and a 99.99% database and a 99.9% downstream call, the composite is roughly 0.9995 × 0.9999 × 0.999 ≈ 99.84% — lower than any single component. You improve the modeled availability by reducing serial dependencies, adding redundancy (so a component is in parallel rather than in series), and degrading gracefully (queues, caches, circuit breakers) so one slow dependency doesn't fail the whole request.
Example
Under the independent-failure model, two components in series multiply; two independent redundant components in parallel give combined availability = 1 − (1 − 0.99)² = 99.99%. Shared failures and the load balancer must be modeled too; two instances alone do not establish that availability.
Question 5. Vertical vs horizontal scaling, and what does autoscale actually do?
Vertical (scale up/down) means a bigger or smaller instance (more CPU/RAM) — simple but capped by the largest SKU and usually requires a restart. Horizontal (scale out/in) means more or fewer identical instances behind a load balancer — bounded by service quotas, regional capacity, cost and application bottlenecks, but requires a plan for shared or partitioned state; stateless instances simplify it. Autoscale adjusts instance count automatically against metrics (CPU, memory, queue length) or a schedule. Rules should scale out aggressively and scale in conservatively to avoid flapping, and you set minimum/maximum desired instance counts. Those bounds limit that scaling target, not the entire bill or guaranteed healthy capacity: startup delays, quotas and regional capacity can impede scale-out. Protect dependencies and handle scale-in/draining; not every Azure service uses the same Azure Monitor autoscale mechanism. Autoscale.
Question 6. Compare ARM templates, Bicep, and Terraform for infrastructure-as-code on Azure.
ARM templates are the native JSON format — verbose and hard to read but able to address resource-provider API versions directly. Bicep is Microsoft's domain-specific language that transpiles to ARM: far cleaner syntax, modules, type safety, and day-zero support for new resources, while staying Azure-only. Terraform is multi-cloud with a huge provider ecosystem and explicit state management (a state file you must store and lock, e.g. in a blob).
Bicep can target newly exposed ARM resource types/API versions without waiting for a Terraform provider release; preview/regional support and API behavior still need checking. Bicep.
Choose Bicep for Azure-focused teams preferring its native authoring model; choose Terraform when you span multiple clouds or already have Terraform expertise and tooling. Both describe desired state, but review deployment plans/what-if results and provider semantics rather than assuming every apply is harmless. Terraform multi-cloud support means multiple provider ecosystems, not that an Azure resource definition becomes portable unchanged. Protect remote state and use a backend with locking; state/plan artifacts can contain sensitive values even if console output is marked sensitive. Azure state backend, sensitive data.
Check your decision
Under an explicitly independent-failure model, two redundant 99% components succeed if either works. What modeled availability follows?
Show answer
Correct answer: A
The modeled outage occurs only when both independent components fail:0.01²=0.0001. The resulting 99.99% does not include a shared router/dependency, insufficient capacity or correlated failures, and it creates no contractual SLA.
Hint: For parallel redundancy, calculate the chance that both are unavailable.
Practice before reading the answers
- An account uses GZRS. Does that make its geo-secondary zone-redundant, synchronously current and automatically readable?
- A region is paired with another region. Which application recovery steps still need an explicit design?
Answer check
- No. GZRS uses zone redundancy in the primary and asynchronous replication to a locally redundant secondary. Read access requires the read-access variant; failover/data-loss behavior still matters.
- Choose/configure supported replication, secondary compute/dependencies, traffic routing, credentials/configuration, failover/reconciliation procedures and tests. Pairing alone neither replicates nor fails over the app.
TechInterviewNotes Editorial Team · Updated 28 Oct 2026 ·