Azure Security Engineer · Domain 3 of 4 · 24% of the exam

Azure Security Engineer Domain 3: Secure Compute, Storage, and Databases

48 free practice questions for Secure Compute, Storage, and Databases in the Microsoft Azure Security Engineer Associate (AZ-500) exam. Try each question first, then open "Show answer" for the correct option and explanation.

Secure Compute, Storage, and Databases practice questions

  1. Question 1. VM OS and data disks must be encrypted with keys the company controls, including the temp disk and caches. What should be used?

    1. Platform-managed keys only
    2. BitLocker inside the VM with keys in a text file
    3. Storage account SSE with Microsoft keys
    4. Encryption at host with customer-managed keys in a disk encryption set
    Show answer

    Answer: D. Encryption at host with customer-managed keys in a disk encryption set

    Encryption at host encrypts temp disks and caches too, and a disk encryption set points to the customer's key.

  2. Question 2. Which resource links managed disks to a customer-managed key in Key Vault?

    1. A recovery services vault
    2. A storage account encryption scope
    3. An application security group
    4. A disk encryption set
    Show answer

    Answer: D. A disk encryption set

    Disk encryption sets reference the Key Vault key and use a managed identity to access it.

  3. Question 3. Azure Disk Encryption (ADE) is scheduled for retirement. What should new designs generally use instead?

    1. No encryption for data disks
    2. File-level encryption with a shared password
    3. Encryption at host or confidential disk encryption
    4. Storage account access keys
    Show answer

    Answer: C. Encryption at host or confidential disk encryption

    Microsoft recommends encryption at host for most VMs, and confidential disk encryption for confidential VMs.

  4. Question 4. A key used for disk encryption must be protected by an HSM and never exported. Which Key Vault key type fits?

    1. A software-protected RSA key in Standard
    2. An RSA-HSM key in Key Vault Premium or Managed HSM
    3. A secret containing a password
    4. A certificate with an exportable private key
    Show answer

    Answer: B. An RSA-HSM key in Key Vault Premium or Managed HSM

    HSM-protected keys are generated and stay inside FIPS-validated hardware modules.

  5. Question 5. A Key Vault key should rotate every 90 days automatically, with a notification before expiry. What should be configured?

    1. Soft delete only
    2. A resource lock
    3. An access review
    4. A key rotation policy
    Show answer

    Answer: D. A key rotation policy

    Rotation policies create new key versions on a schedule and can notify before expiration.

  6. Question 6. Key Vault currently uses access policies. Microsoft recommends a different authorization model. What is it?

    1. Shared access signatures
    2. Storage account keys
    3. Azure RBAC for the data plane
    4. Anonymous access
    Show answer

    Answer: C. Azure RBAC for the data plane

    RBAC gives consistent, auditable, scope-based access and supports PIM for the data plane.

  7. Question 7. Which Key Vault setting prevents a deleted vault or key from being permanently removed during the retention period?

    1. Soft delete disabled
    2. Public network access enabled
    3. Purge protection
    4. Access policies
    Show answer

    Answer: C. Purge protection

    With purge protection, not even an administrator can purge before the retention period ends.

  8. Question 8. Key Vault audit logs must show who accessed which secret. What should be configured?

    1. An NSG flow log on the Key Vault subnet
    2. Diagnostic settings sending AuditEvent logs to Log Analytics
    3. Activity log only
    4. Azure Advisor alerts
    Show answer

    Answer: B. Diagnostic settings sending AuditEvent logs to Log Analytics

    The activity log covers management operations only. Data-plane access is in the AuditEvent category.

  9. Question 9. A VM must run only verified boot loaders and kernels, and detect rootkits. Which VM security type fits?

    1. Standard security type with no options
    2. Trusted launch with Secure Boot and vTPM
    3. Spot priority
    4. A Dedicated Host
    Show answer

    Answer: B. Trusted launch with Secure Boot and vTPM

    Trusted launch adds Secure Boot, a virtual TPM, and boot integrity monitoring.

  10. Question 10. Data in memory on a VM must be protected from the host and cloud operator. What should be deployed?

    1. Confidential VMs using AMD SEV-SNP or Intel TDX
    2. Trusted launch VMs only
    3. B-series burstable VMs
    4. VMs with encryption at host only
    Show answer

    Answer: A. Confidential VMs using AMD SEV-SNP or Intel TDX

    Confidential VMs encrypt memory with hardware-based keys that the hypervisor can't access.

  11. Question 11. Which Defender for Servers feature finds OS vulnerabilities on VMs without deploying an agent?

    1. Just-in-time VM access
    2. Adaptive network hardening
    3. File integrity monitoring only
    4. Agentless machine scanning
    Show answer

    Answer: D. Agentless machine scanning

    Agentless scanning takes disk snapshots and analyzes them for vulnerabilities, secrets, and malware.

  12. Question 12. Changes to critical system files and registry keys on servers must be detected. Which feature fits?

    1. Just-in-time access
    2. Update Manager
    3. File integrity monitoring
    4. Adaptive application controls
    Show answer

    Answer: C. File integrity monitoring

    FIM tracks changes to files and registry entries and raises alerts on suspicious changes.

  13. Question 13. VM patching must be assessed and scheduled across Azure and Arc-enabled servers. Which service should be used?

    1. Azure Automation State Configuration
    2. Azure Site Recovery
    3. Azure Update Manager
    4. Azure Backup
    Show answer

    Answer: C. Azure Update Manager

    Update Manager assesses missing updates and runs scheduled or on-demand patching.

  14. Question 14. Container images in Azure Container Registry must be scanned for vulnerabilities. Which Defender plan provides this?

    1. Defender for Storage
    2. Defender for Key Vault
    3. Defender for DNS
    4. Defender for Containers
    Show answer

    Answer: D. Defender for Containers

    Container vulnerability assessment scans registry images and running images in Kubernetes.

  15. Question 15. An AKS cluster must use Entra ID for users and Kubernetes RBAC based on Entra groups, with local accounts disabled. What should be configured?

    1. Basic authentication with one shared kubeconfig file
    2. A public API server restricted by IP ranges only
    3. Entra ID integration with RBAC, and local accounts disabled
    4. A single cluster-admin certificate for every engineer
    Show answer

    Answer: C. Entra ID integration with RBAC, and local accounts disabled

    Disabling local accounts forces all access through Entra identities and audit logs.

  16. Question 16. AKS pods must be blocked from running privileged containers. What should be used?

    1. An NSG on the node subnet that blocks root users
    2. Azure Policy for AKS with pod security initiatives
    3. A Key Vault access policy for the cluster identity
    4. A larger VM size for every node in the cluster
    Show answer

    Answer: B. Azure Policy for AKS with pod security initiatives

    Azure Policy uses Gatekeeper to enforce admission rules such as disallowing privileged pods.

  17. Question 17. AKS pods need to get secrets from Key Vault mounted as files, without storing them in Kubernetes secrets by default. What should be used?

    1. Environment variables with plain text values
    2. The Key Vault Secrets Store CSI driver with workload identity
    3. A ConfigMap containing the secret
    4. The node's system-assigned identity for all pods
    Show answer

    Answer: B. The Key Vault Secrets Store CSI driver with workload identity

    The CSI driver mounts secrets as volumes, and workload identity authenticates the pod.

  18. Question 18. Pod-to-pod traffic in AKS must be restricted so only the frontend can reach the backend. What should be applied?

    1. NSG rules on the API server
    2. Azure Front Door rules
    3. Kubernetes network policies
    4. A private DNS zone
    Show answer

    Answer: C. Kubernetes network policies

    Network policies, enforced by Azure network policy manager, Calico, or Cilium, control pod traffic.

  19. Question 19. A container registry must be reachable only from the company's VNets. What should be configured?

    1. Basic ACR with the admin user account enabled
    2. Standard ACR with anonymous pull enabled
    3. Premium ACR with a private endpoint, public access off
    4. Any ACR tier with a firewall rule allowing Any
    Show answer

    Answer: C. Premium ACR with a private endpoint, public access off

    Private endpoints and network rules require the Premium tier.

  20. Question 20. Which ACR setting should be disabled to avoid a shared username and password for the registry?

    1. Content trust
    2. Geo-replication
    3. Zone redundancy
    4. The admin user account
    Show answer

    Answer: D. The admin user account

    Use Entra identities or tokens with scope maps instead of the admin user.

  21. Question 21. Only signed container images should be deployed to AKS. Which approach supports this?

    1. Sign with Notation and verify with Ratify and Azure Policy
    2. Disable image scanning to speed up deployments
    3. Use the latest tag for every image in the cluster
    4. Allow anonymous pulls from all container registries
    Show answer

    Answer: A. Sign with Notation and verify with Ratify and Azure Policy

    Signing plus admission-time verification blocks unsigned or tampered images.

  22. Question 22. An App Service app must only be reachable over HTTPS with TLS 1.2 or later. Which settings should be set?

    1. HTTPS Only enabled and minimum TLS 1.2
    2. FTP state set to All allowed for deployments
    3. Client affinity (ARR) cookie enabled on the app
    4. Remote debugging enabled for Visual Studio
    Show answer

    Answer: A. HTTPS Only enabled and minimum TLS 1.2

    HTTPS Only redirects HTTP, and the minimum TLS setting blocks older protocol versions.

  23. Question 23. FTP deployment to an App Service app is a risk. What is the recommended setting?

    1. Enable plain FTP for all users of the web app
    2. Share the publishing credentials with the team by email
    3. Disable FTP (or allow FTPS only) and basic publishing auth
    4. Enable remote debugging on the production slot
    Show answer

    Answer: C. Disable FTP (or allow FTPS only) and basic publishing auth

    Disabling basic publishing credentials forces Entra-based deployment.

  24. Question 24. Shared Key authorization must be blocked on a storage account so all requests use Entra ID. Which setting does this?

    1. Allow storage account key access set to Disabled
    2. Secure transfer required set to Enabled
    3. Hierarchical namespace enabled
    4. Blob versioning enabled
    Show answer

    Answer: A. Allow storage account key access set to Disabled

    Disabling Shared Key also blocks account and service SAS tokens, leaving Entra and user delegation SAS.

  25. Question 25. Which SAS type is signed with Entra credentials and is the recommended SAS for Blob Storage?

    1. Account SAS
    2. Service SAS signed with an account key
    3. Anonymous public access
    4. User delegation SAS
    Show answer

    Answer: D. User delegation SAS

    User delegation SAS relies on an Entra identity, so it can be revoked by revoking the delegation key.

  26. Question 26. A service SAS must be revocable without rotating the account key. What should it be tied to?

    1. The storage account name only
    2. A stored access policy on the container
    3. A resource lock
    4. A private DNS zone
    Show answer

    Answer: B. A stored access policy on the container

    Changing or deleting the stored access policy invalidates SAS tokens that reference it.

  27. Question 27. Anonymous read access to blobs must be prevented across all storage accounts in a subscription. What should be used?

    1. An NSG associated with each storage account
    2. A private DNS zone for the blob endpoint
    3. An Azure Policy setting allowBlobPublicAccess to false
    4. Blob inventory reports run every day
    Show answer

    Answer: C. An Azure Policy setting allowBlobPublicAccess to false

    Policy enforces the account-level setting so no container can be made public.

  28. Question 28. Storage encryption must use a customer-managed key, and a different key per customer's container. What supports this?

    1. Encryption scopes with customer-managed keys
    2. One account key per container
    3. Blob soft delete
    4. Immutable storage
    Show answer

    Answer: A. Encryption scopes with customer-managed keys

    Encryption scopes let different containers or blobs use different keys in one account.

  29. Question 29. Data in a storage account must be encrypted twice at rest with separate algorithms and keys. What should be enabled?

    1. Infrastructure encryption
    2. Secure transfer required
    3. Soft delete
    4. Change feed
    Show answer

    Answer: A. Infrastructure encryption

    Infrastructure encryption adds a second layer of AES-256 encryption at the infrastructure level.

  30. Question 30. Which Defender plan detects malware uploaded to blobs and unusual access to storage accounts?

    1. Defender for Servers
    2. Defender for App Service
    3. Defender CSPM only
    4. Microsoft Defender for Storage
    Show answer

    Answer: D. Microsoft Defender for Storage

    Defender for Storage offers activity monitoring, on-upload malware scanning, and sensitive data threat detection.

  31. Question 31. Azure Files shares must authorize users with their on-premises AD identities and NTFS permissions. What should be enabled?

    1. Anonymous SMB access to the file share
    2. Storage account key access for every user
    3. NFS access with no authentication at all
    4. Identity-based auth with AD DS or Entra Kerberos
    Show answer

    Answer: D. Identity-based auth with AD DS or Entra Kerberos

    Identity-based auth maps share-level RBAC and NTFS ACLs to domain users.

  32. Question 32. Which SMB security setting should be enforced for Azure Files to prevent older, weaker protocols?

    1. SMB 1 with NTLMv1 authentication allowed
    2. SMB 3.x with AES-256-GCM, and SMB 1 not allowed
    3. Plain HTTP access to the file share's data
    4. Anonymous guest access over any SMB version
    Show answer

    Answer: B. SMB 3.x with AES-256-GCM, and SMB 1 not allowed

    Azure Files security settings can restrict protocol versions, channel encryption, and authentication methods.

  33. Question 33. An Azure SQL logical server must accept only Entra ID authentication. What should be enabled?

    1. SQL authentication with strong passwords
    2. A server firewall rule allowing all Azure services
    3. Microsoft Entra-only authentication
    4. Transparent Data Encryption
    Show answer

    Answer: C. Microsoft Entra-only authentication

    Entra-only authentication disables SQL logins, so central identity controls such as MFA apply.

  34. Question 34. Transparent Data Encryption for Azure SQL must use a key the company can revoke. What should be configured?

    1. TDE with a service-managed key only
    2. Always Encrypted with deterministic encryption
    3. TDE with a customer-managed key (TDE protector) in Key Vault
    4. Dynamic data masking
    Show answer

    Answer: C. TDE with a customer-managed key (TDE protector) in Key Vault

    With BYOK, revoking access to the key makes the database inaccessible.

  35. Question 35. Credit card columns must stay encrypted even from database administrators, with queries run on the client side. What should be used?

    1. Transparent Data Encryption
    2. Always Encrypted
    3. Row-level security
    4. Auditing to Log Analytics
    Show answer

    Answer: B. Always Encrypted

    Always Encrypted keeps keys on the client, so the SQL engine only sees ciphertext.

  36. Question 36. Azure SQL auditing records must be kept in a log workspace for correlation with other logs. Where should auditing write?

    1. The VM's local temporary disk
    2. The Microsoft Entra sign-in logs
    3. A CSV file on the admin's laptop
    4. A Log Analytics workspace
    Show answer

    Answer: D. A Log Analytics workspace

    Server-level auditing applies to all databases on the server and can target several destinations.

  37. Question 37. Which Defender plan detects SQL injection attempts and anomalous database access patterns?

    1. Defender for Storage
    2. Microsoft Defender for SQL
    3. Defender for DNS
    4. Defender for Key Vault
    Show answer

    Answer: B. Microsoft Defender for SQL

    Defender for SQL adds vulnerability assessment and advanced threat protection for SQL.

  38. Question 38. A vulnerability assessment of Azure SQL flags excessive permissions. Where can a baseline be set to accept known findings?

    1. In the Microsoft Entra audit logs for the server
    2. In the vulnerability assessment results, by setting a baseline
    3. In the storage account firewall for audit logs
    4. In the NSG rules for the database subnet
    Show answer

    Answer: B. In the vulnerability assessment results, by setting a baseline

    Baselines mark accepted results so later scans only report deviations.

  39. Question 39. An Azure SQL database must be reachable only on a private IP from a VNet, with public access denied. What should be configured?

    1. A server firewall rule for 0.0.0.0
    2. A private endpoint and Deny public network access set to Yes
    3. Allow Azure services and resources to access this server
    4. A service endpoint policy
    Show answer

    Answer: B. A private endpoint and Deny public network access set to Yes

    With public access denied, connections are only accepted through private endpoints.

  40. Question 40. What is the security concern with the "Allow Azure services and resources to access this server" setting?

    1. It blocks all traffic coming from Azure services
    2. It disables Transparent Data Encryption on the server
    3. It allows connections from any Azure IP, even other customers'
    4. It turns off auditing for every database on the server
    Show answer

    Answer: C. It allows connections from any Azure IP, even other customers'

    The rule is broad, so use private endpoints or VNet rules instead.

  41. Question 41. Support staff should see only masked values of email addresses in query results. What should be used?

    1. Always Encrypted with enclaves
    2. Dynamic data masking with an email mask
    3. TDE with a customer-managed key
    4. SQL auditing
    Show answer

    Answer: B. Dynamic data masking with an email mask

    Dynamic data masking hides data in results for non-privileged users without changing stored data.

  42. Question 42. Azure Cosmos DB must reject key-based data access so that only Entra identities with data-plane roles can connect. What should be set?

    1. An IP firewall that allows access from all networks
    2. disableLocalAuth set to true, with data-plane RBAC
    3. Read-only account keys shared with each app
    4. Anonymous access with a resource token
    Show answer

    Answer: B. disableLocalAuth set to true, with data-plane RBAC

    Disabling local auth blocks primary and secondary keys for data operations.

  43. Question 43. A Cosmos DB account must only be reachable from specific VNets over private IPs. What should be configured?

    1. Allow access from the Azure portal only
    2. A tag on the account
    3. A service endpoint policy
    4. Private endpoints with public network access disabled
    Show answer

    Answer: D. Private endpoints with public network access disabled

    Private endpoints give Cosmos DB private IPs, and disabling public access blocks the public endpoint.

  44. Question 44. A PostgreSQL flexible server must be isolated from the internet. Which networking option provides this at creation?

    1. Public access with 0.0.0.0-255.255.255.255 allowed
    2. Private access with VNet integration, or a private endpoint
    3. Public access with no firewall rules and SSL disabled
    4. A public IP on the database
    Show answer

    Answer: B. Private access with VNet integration, or a private endpoint

    Private access places the server in a delegated subnet with no public endpoint.

  45. Question 45. Storage account traffic must use HTTPS and TLS 1.2 or later only. Which settings apply?

    1. Hierarchical namespace for the account
    2. Large file shares enabled on the account
    3. Blob change feed enabled for auditing
    4. Secure transfer required and minimum TLS 1.2
    Show answer

    Answer: D. Secure transfer required and minimum TLS 1.2

    Secure transfer rejects HTTP, and the minimum TLS setting blocks older TLS versions.

  46. Question 46. Which Key Vault feature lets an application get a certificate that renews automatically from a supported CA?

    1. A secret with an expiry date and a reminder
    2. Soft delete with a 90-day retention period
    3. A key rotation policy applied to RSA keys
    4. An issuance policy with an integrated CA and auto-renewal
    Show answer

    Answer: D. An issuance policy with an integrated CA and auto-renewal

    Key Vault can request and renew certificates from integrated CAs like DigiCert or GlobalSign.

  47. Question 47. A key vault must be reachable only from trusted Azure services, like Azure Backup, and a private endpoint. What should be enabled with the firewall?

    1. Public network access allowed from all networks
    2. Allow trusted Microsoft services to bypass this firewall
    3. Anonymous read access to secrets for Azure services
    4. Legacy access policies instead of Azure RBAC
    Show answer

    Answer: B. Allow trusted Microsoft services to bypass this firewall

    The trusted services exception lets listed Azure services reach the vault despite network rules.

  48. Question 48. Backups of critical VMs must be protected even if an attacker gains Backup Contributor rights. Which features help?

    1. Locally redundant storage for the vault only
    2. Disabling backup alerts to reduce noise
    3. Immutable vault, soft delete, and multi-user authorization
    4. Sharing the vault credentials with all admins
    Show answer

    Answer: C. Immutable vault, soft delete, and multi-user authorization

    These features stop deletion or weakening of backups without extra approval.

Microsoft and Azure are trademarks of the Microsoft group of companies. These questions are original study material, not questions from the real exam.