Microsoft AZ-500: Application Security and DevSecOps — Study Guide

Part of the Microsoft Azure Security Engineer Associate AZ-500 — Study Guide. Practice with verified answers in the Microsoft exam hub, or take timed practice tests on ExamRoll.io.

Overview

Application Security and DevSecOps in Azure focus on preventing identity misuse, protecting ingress and APIs, shifting security left in pipelines, securing secrets at rest and in transit, and enforcing robust release governance. Effective designs eliminate long‑lived secrets, use least privilege, validate every caller, and institutionalize continuous detection and remediation across code, dependencies, infrastructure, and runtime.

Secure Application Identity, Ingress, and API Protection

Secure application identity in Microsoft Entra ID (Azure AD) starts with a well‑scoped app registration and the correct OAuth 2.0 flow:

Application Gateway WAF v2 and Azure Front Door WAF protect public ingress against OWASP Top 10 threats:

API Management (APIM) enforces a multilayer security posture:

Example APIM policy for JWT scope enforcement and throttling:

<policies>
  <inbound>
    <base />
    <validate-jwt header-name="Authorization" failed-validation-httpcode="401" require-scheme="Bearer">
      <openid-config url="https://login.microsoftonline.com/<tenant>/v2.0/.well-known/openid-configuration" />
      <audiences>
        <audience>api://your-api-app-id</audience>
      </audiences>
      <required-claims>
        <claim name="scp">
          <value>read.items</value>
        </claim>
      </required-claims>
    </validate-jwt>
    <rate-limit-by-key calls="100" renewal-period="60" counter-key="@(context.Subscription?.Key ?? context.Request.IpAddress)" />
  </inbound>
  <backend><base /></backend>
  <outbound><base /></outbound>
  <on-error><base /></on-error>
</policies>

DevSecOps Pipeline Hardening and Defender for DevOps

Azure DevOps and GitHub Actions must authenticate to Azure without long‑lived secrets:

Create a federated credential with Azure CLI (GitHub OIDC example):

az ad app federated-credential create \
  --id <app-object-id> \
  --parameters '{
    "name":"github-oidc-main",
    "issuer":"https://token.actions.githubusercontent.com",
    "subject":"repo:org/repo:ref:refs/heads/main",
    "audiences":["api://AzureADTokenExchange"]
  }'

Microsoft Defender for DevOps integrates with Azure Repos and GitHub to surface:

Secrets Management and Platform Integration

Key Vault provides centralized secret, key, and certificate management with comprehensive controls:

App Service Key Vault reference example:

Name: DbConn
Value: @Microsoft.KeyVault(SecretUri=https://kv-prod.vault.azure.net/secrets/DbConnString/23a1...)

AKS SecretProviderClass (abridged):

apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
  name: kv-secrets
spec:
  provider: azure
  parameters:
    usePodIdentity: "false"
    useVMManagedIdentity: "false"
    useWorkloadIdentity: "true"
    keyvaultName: kv-prod
    tenantId: <tenant-id>
    objects: |
      array:
        - | 
          objectName: api-key
          objectType: secret

Pipelines should fetch secrets at job runtime:

Secure SDLC, Containers, Logging, and Releases

Secure SDLC practices reduce risk before deployment:

Container image security is foundational to supply chain integrity:

Application logging must not leak secrets or PII:

Secure release practices enforce controlled promotion:

Practical Problem Scenario

Fabrikam, Inc. is publishing a multi‑tenant SaaS API to the internet. Requirements: block OWASP Top 10 attacks, validate OAuth scopes per operation, prevent secrets in repos, throttle abusive clients, and ensure only signed container images run in production.

  1. Fronting and WAF
  1. API Gateway Policy
  1. Identity and Consent
  1. DevSecOps with OIDC
  1. Container Supply Chain
  1. Registry and Runtime Controls
  1. Secrets and Configuration
  1. Release Governance
  1. Observability Hygiene

Microsoft Sentinel and Security Operations · All domains · Hybrid and Multi-Cloud Security

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