Microsoft AZ-305: Security Architecture and Zero Trust — Study Guide

Part of the Microsoft Azure Solutions Architect Expert AZ-305 — Study Guide. Practice with verified answers in the Microsoft exam hub, or take timed practice tests on ExamRoll.io.

Overview

Security architecture on Azure is anchored in Zero Trust: never trust, always verify, explicitly authorize, and assume breach. Architectures must enforce identity-driven access, micro-segmentation, strong data protection, and continuous threat detection and response. This section connects the pillars—identity and secrets, data protection, network controls, and cloud-native threat defense—into cohesive designs aligned with Azure platform capabilities.

Identity, Secrets, and Zero Trust Foundations

Zero Trust starts with strong identity verification and least privilege. Every workload and human identity should be evaluated at access time, with conditional controls and short-lived tokens. Enforce least privilege by scoping permissions to the smallest set of actions on the narrowest resource boundary, and prefer just-in-time (JIT) elevation with Privileged Identity Management (PIM) where applicable.

Azure Key Vault is central for secrets and keys. Two data-plane authorization models exist:

Soft delete and purge protection prevent accidental or malicious loss. Soft delete preserves deleted objects for a retention period (configurable 7–90 days, default 90) allowing recovery. Purge protection, when enabled, prevents permanent purge of soft-deleted items until the retention expires, even by highly privileged users. For production vaults, enable both. Managed HSM provides dedicated, FIPS 140-2 Level 3 validated hardware security modules under Azure control. It supports only keys (no secrets/certificates), uses Azure RBAC with roles such as Managed HSM Administrator, Crypto Officer, and Crypto User, and has soft delete and purge protection always on. Use Managed HSM when you require hardware-backed key isolation, quorum-based administration, or regulatory assurance for cryptographic boundary controls.

Azure Managed Identities eliminate credentials for Azure-hosted workloads. System-assigned identities are tied to a single resource’s lifecycle; deleting the resource deletes the identity. They are ideal for singleton resources (a Function App or VM) that need independent authorization boundaries. User-assigned identities are standalone and can be attached to multiple resources; they persist when compute is replaced or scaled out, making them suitable for fleets, blue/green swaps, or when consistent identity is required across instances. Workloads obtain tokens without secrets by calling the instance metadata service (IMDS) at 169.254.169.254 or the platform’s managed identity endpoint, requesting an access token for a resource (for example, https://vault.azure.net for Key Vault). Use Azure RBAC to grant the identity least-privilege roles on target resources; the platform rotates credentials automatically.

Azure AD Workload Identity Federation removes the need to store cloud credentials in external CI/CD and Kubernetes. With GitHub Actions, create a federated credential on the Azure AD application using the GitHub OIDC issuer (token.actions.githubusercontent.com) and constrain by repository, branch, or environment. GitHub exchanges its OIDC token for an Azure AD token at runtime; assign Azure roles to that app and enforce least privilege per workflow. For Kubernetes (AKS), enable OIDC on the cluster and configure Azure AD workload identity. Map a ServiceAccount’s OIDC token to an Azure AD application or user-assigned managed identity via a federated credential, then bind Azure roles to that identity. Pods exchange their projected OIDC token for Azure tokens to call services like Key Vault or Storage—no secrets or node-level agents required and better isolation than legacy aad-pod-identity.

Threat Protection, SIEM/SOAR, and Cloud App Governance

Microsoft Defender for Cloud provides cloud posture management and workload protections. Secure Score quantifies risk by assessing misconfigurations and recommending hardened settings (for example, enabling MFA, enforcing disk encryption, or restricting public endpoints). Drive Secure Score improvements through policy assignments at management group scope to standardize baselines. Workload protections extend to servers, containers, databases, storage, Key Vault, and App Service to deliver threat detections, vulnerability assessments, and capabilities like just-in-time VM access, adaptive application controls, and file integrity monitoring. Regulatory compliance maps your environment to standards (Azure Security Benchmark, CIS, PCI-DSS, ISO 27001) and shows pass/fail against policy controls; use this to track and remediate gaps with governance stakeholders.

Microsoft Sentinel is the cloud-native SIEM and SOAR. Data connectors onboard telemetry from Azure Activity, Azure AD sign-ins and audit, Microsoft 365, Microsoft Defender suite, Azure resources, and non-Azure sources via Syslog/CEF or the AMA/Log Analytics Agents. Analytics rules detect threats using KQL: scheduled rules for periodic correlation, near-real-time rules for low-latency detection, and machine-learning/anomaly templates for behavioral insights. Tune rule thresholds, suppression, and entity mappings to reduce noise and enrich incidents. Automate responses with SOAR playbooks built in Logic Apps; trigger isolation of compromised hosts via Defender for Endpoint, disable suspect accounts in Azure AD, revoke sessions, purge malicious emails, or notify and open tickets. Use automation rules to route incidents, tag by severity, and invoke playbooks based on incident properties.

Microsoft Defender for Cloud Apps governs SaaS usage. Shadow IT discovery ingests firewall/proxy logs and endpoint telemetry to identify unsanctioned apps, risk-ranks them, and lets you sanction/unsanction. Integrate with Defender for Endpoint for continuous discovery. Session controls apply real-time Conditional Access App Control via a reverse proxy to enforce policies such as block download for unmanaged devices, require document labeling before download, apply watermarking, or restrict cut/copy/paste—without modifying the SaaS app.

Data Protection and Confidential Computing

Azure Information Protection operationalizes data classification and protection through sensitivity labels. Labels define classification, visual markings, encryption (Azure Rights Management), and usage rights (view, print, forward, offline access). Publish labels via label policies to selected users and require mandatory labeling where appropriate. Auto-labeling policies can apply labels in Office apps on endpoints based on content inspection (for example, PII patterns, keywords) and at rest/in transit in services through data governance tools, reducing user error and strengthening baseline protection. Use justification prompts for downgrades and audit label changes to support governance.

Azure Confidential Computing protects data in use by executing workloads inside hardware-based Trusted Execution Environments. Confidential VMs (for example, AMD SEV-SNP or Intel TDX) encrypt VM memory and provide integrity, shielding guest workloads from the cloud host and other tenants. Use them for lift-and-shift scenarios needing enclave-grade protections without app changes. Confidential containers on AKS run containerized workloads on confidential node pools; combine with encrypted container images and attestation to enforce only attested workloads run. Attestation is performed using Azure Attestation to verify platform and workload measurements (quotes) before releasing secrets. Integrate attestation checks into your control plane or deployment pipeline; only upon successful attestation should Key Vault or an external KMS release decryption keys to the workload, completing data-in-use protection.

Network Segmentation, Perimeter, and DDoS Defense in Depth

Network micro-segmentation constrains lateral movement and couples with identity verification to enforce Zero Trust. Network Security Groups are stateful packet filters applied to subnets or NICs; use service tags and explicit denies to restrict east-west and north-south flows, default-deny unnecessary ports, and log with NSG flow logs. Application Security Groups abstract dynamic workload groups so you can write NSG rules by application role rather than IPs, enabling intent-based segmentation that scales with autoscaling and ephemeral addresses.

Azure Firewall provides centralized, fully stateful L3–L7 control with application and network rules, FQDN filtering, DNAT/SNAT, threat intelligence–based filtering, and Premium features like TLS inspection and IDPS for deep inspection of outbound and inbound traffic. Use Firewall Policy for intent-based configuration and inheritance across regions. Route egress through Azure Firewall with user-defined routes, and pair with Private Endpoints to keep PaaS traffic off the public internet.

Web-facing applications should be fronted by a Web Application Firewall. Deploy WAF on Application Gateway for regional, VNet-integrated layer 7 load balancing, or on Azure Front Door for global anycast entry and CDN integration. Enable OWASP-managed rules and add custom rules for path/geo/IP filtering and bot defenses, and integrate with DDoS strategies at the edge.

DDoS Protection Standard adds adaptive real-time mitigation for public endpoints in VNets, telemetry, and cost protection for scale-out during an attack. Apply DDoS Protection Plans at the VNet level for all associated public IP resources, test with simulated traffic, and review metrics and alerts. Layer your defense: DDoS at the edge, WAF at L7, Azure Firewall for L3–L7 policy, NSGs/ASGs for micro-segmentation, and Conditional Access plus device compliance for identity-driven enforcement.

Practical Problem Scenario

Starbucks is modernizing a multi-region ordering platform on Azure with AKS, Azure SQL Database, and Event Hubs. The architecture must adopt Zero Trust: eliminate embedded secrets, segment networks, protect data in use, and implement unified threat detection and automated response across cloud and SaaS.

  1. Enforce identity-based access for workloads
  1. Federate CI/CD without stored credentials
  1. Protect keys and secrets with recovery guarantees
  1. Segment networks and centralize egress
  1. Protect the public edge
  1. Govern SaaS access and unmanaged devices
  1. Classify and protect sensitive data
  1. Secure data in use for payment processing
  1. Establish posture management and compliance
  1. Centralize detection and orchestrate response

This design applies Zero Trust end-to-end: identities are verified continuously, privileges are least and just-in-time, networks are micro-segmented with centralized inspection, data is classified and protected both at rest and in use, and continuous threat detection with automated response reduces mean time to contain.


High Availability · All domains · Integration and Messaging Architecture

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Microsoft →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product