Understanding the Defence-in-Depth Model
This lesson explains the purpose of defence in depth, each of its security layers and the controls that apply at each layer.
Learning outcomes
After completing this lesson, you will be able to:
- Describe the purpose of the defence-in-depth model.
- Identify the layers of defence in depth in order.
- Match a security control to its layer.
The purpose of defence in depth
The objective of defence in depth is to protect information and prevent it from being stolen by those who are not authorized to access it. A defence-in-depth strategy uses a series of mechanisms to slow the advance of an attack that aims at acquiring unauthorized access to data. If one layer is breached, a subsequent layer is already in place to prevent further exposure, and each layer gives defenders another chance to detect the attack. This approach removes reliance on any single layer of protection.
The layers
Defence in depth is often visualized as a set of concentric layers with data at the centre. Each layer provides protection so that if one is breached, the next layer prevents further exposure. The following table describes the layers from the outside in.
| Layer | Purpose | Example controls |
|---|---|---|
| Physical security | Limit access to datacentres and hardware | Building access controls, security staff (Microsoft's responsibility) |
| Identity and access | Control access to infrastructure and change control | SSO, MFA, Conditional Access, auditing sign-ins |
| Perimeter | Protect against large-scale network attacks | Azure DDoS Protection, perimeter firewalls such as Azure Firewall |
| Network | Limit communication between resources | Segmentation, network security groups, deny-by-default rules |
| Compute | Secure access to virtual machines | Patching, endpoint protection, closing management ports, Azure Bastion |
| Application | Keep applications free of vulnerabilities | Secure development, storing secrets in Azure Key Vault |
| Data | Protect the data itself | Encryption at rest and in transit, access controls on databases and storage |
The following diagram shows the layers around the data with example controls.

Layers from the outside in
Layers and responsibilities
Different layers are protected by different parties. Microsoft secures the physical layer for every Azure service, while customers secure the layers above it to the extent the service type requires: with IaaS, the customer secures the compute layer by patching VMs; with PaaS, Microsoft does much of that. Every layer has a role for the customer in configuration, such as choosing who can access data and which network traffic is allowed.
Defence in depth and Zero Trust complement each other. Defence in depth describes where to place controls, in layers around the data; Zero Trust describes how to decide on access, by verifying every request and never assuming trust.
Controls in layers
Placing controls in layers
A security review recommends three controls for a web application: protection against distributed denial-of-service attacks on its public IP address, rules that allow the database subnet to receive traffic only from the web subnet, and encryption of the customer data in the database. Which defence-in-depth layer does each control belong to?
DDoS protection guards against large-scale network attacks at the edge of the environment, so it belongs to the perimeter layer. Rules that limit traffic between subnets belong to the network layer. Encrypting customer data belongs to the data layer, the innermost layer. Together they illustrate defence in depth: an attacker who bypasses the perimeter still faces network restrictions and encrypted data.
Which defence-in-depth layer is at the centre of the model?
Show answer
Data. Every other layer exists to protect it.
Exam Tips
Remember for the exam
- Defence in depth uses layered protections so that a breach of one layer is stopped by the next.
- Layers from outside in: physical, identity and access, perimeter, network, compute, application, data.
- DDoS protection is a perimeter control; NSGs and segmentation are network controls; encryption is a data control.