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
-
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?
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.
-
Question 2. Which resource links managed disks to a customer-managed key in Key Vault?
Show answer
Answer: D. A disk encryption set
Disk encryption sets reference the Key Vault key and use a managed identity to access it.
-
Question 3. Azure Disk Encryption (ADE) is scheduled for retirement. What should new designs generally use instead?
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.
-
Question 4. A key used for disk encryption must be protected by an HSM and never exported. Which Key Vault key type fits?
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.
-
Question 5. A Key Vault key should rotate every 90 days automatically, with a notification before expiry. What should be configured?
Show answer
Answer: D. A key rotation policy
Rotation policies create new key versions on a schedule and can notify before expiration.
-
Question 6. Key Vault currently uses access policies. Microsoft recommends a different authorization model. What is it?
Show answer
Answer: C. Azure RBAC for the data plane
RBAC gives consistent, auditable, scope-based access and supports PIM for the data plane.
-
Question 7. Which Key Vault setting prevents a deleted vault or key from being permanently removed during the retention period?
Show answer
Answer: C. Purge protection
With purge protection, not even an administrator can purge before the retention period ends.
-
Question 8. Key Vault audit logs must show who accessed which secret. What should be configured?
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.
-
Question 9. A VM must run only verified boot loaders and kernels, and detect rootkits. Which VM security type fits?
Show answer
Answer: B. Trusted launch with Secure Boot and vTPM
Trusted launch adds Secure Boot, a virtual TPM, and boot integrity monitoring.
-
Question 10. Data in memory on a VM must be protected from the host and cloud operator. What should be deployed?
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.
-
Question 11. Which Defender for Servers feature finds OS vulnerabilities on VMs without deploying an agent?
Show answer
Answer: D. Agentless machine scanning
Agentless scanning takes disk snapshots and analyzes them for vulnerabilities, secrets, and malware.
-
Question 12. Changes to critical system files and registry keys on servers must be detected. Which feature fits?
Show answer
Answer: C. File integrity monitoring
FIM tracks changes to files and registry entries and raises alerts on suspicious changes.
-
Question 13. VM patching must be assessed and scheduled across Azure and Arc-enabled servers. Which service should be used?
Show answer
Answer: C. Azure Update Manager
Update Manager assesses missing updates and runs scheduled or on-demand patching.
-
Question 14. Container images in Azure Container Registry must be scanned for vulnerabilities. Which Defender plan provides this?
Show answer
Answer: D. Defender for Containers
Container vulnerability assessment scans registry images and running images in Kubernetes.
-
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?
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.
-
Question 16. AKS pods must be blocked from running privileged containers. What should be used?
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.
-
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?
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.
-
Question 18. Pod-to-pod traffic in AKS must be restricted so only the frontend can reach the backend. What should be applied?
Show answer
Answer: C. Kubernetes network policies
Network policies, enforced by Azure network policy manager, Calico, or Cilium, control pod traffic.
-
Question 19. A container registry must be reachable only from the company's VNets. What should be configured?
Show answer
Answer: C. Premium ACR with a private endpoint, public access off
Private endpoints and network rules require the Premium tier.
-
Question 20. Which ACR setting should be disabled to avoid a shared username and password for the registry?
Show answer
Answer: D. The admin user account
Use Entra identities or tokens with scope maps instead of the admin user.
-
Question 21. Only signed container images should be deployed to AKS. Which approach supports this?
Show answer
Answer: A. Sign with Notation and verify with Ratify and Azure Policy
Signing plus admission-time verification blocks unsigned or tampered images.
-
Question 22. An App Service app must only be reachable over HTTPS with TLS 1.2 or later. Which settings should be set?
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.
-
Question 23. FTP deployment to an App Service app is a risk. What is the recommended setting?
Show answer
Answer: C. Disable FTP (or allow FTPS only) and basic publishing auth
Disabling basic publishing credentials forces Entra-based deployment.
-
Question 24. Shared Key authorization must be blocked on a storage account so all requests use Entra ID. Which setting does this?
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.
-
Question 25. Which SAS type is signed with Entra credentials and is the recommended SAS for Blob Storage?
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.
-
Question 26. A service SAS must be revocable without rotating the account key. What should it be tied to?
Show answer
Answer: B. A stored access policy on the container
Changing or deleting the stored access policy invalidates SAS tokens that reference it.
-
Question 27. Anonymous read access to blobs must be prevented across all storage accounts in a subscription. What should be used?
Show answer
Answer: C. An Azure Policy setting allowBlobPublicAccess to false
Policy enforces the account-level setting so no container can be made public.
-
Question 28. Storage encryption must use a customer-managed key, and a different key per customer's container. What supports this?
Show answer
Answer: A. Encryption scopes with customer-managed keys
Encryption scopes let different containers or blobs use different keys in one account.
-
Question 29. Data in a storage account must be encrypted twice at rest with separate algorithms and keys. What should be enabled?
Show answer
Answer: A. Infrastructure encryption
Infrastructure encryption adds a second layer of AES-256 encryption at the infrastructure level.
-
Question 30. Which Defender plan detects malware uploaded to blobs and unusual access to storage accounts?
Show answer
Answer: D. Microsoft Defender for Storage
Defender for Storage offers activity monitoring, on-upload malware scanning, and sensitive data threat detection.
-
Question 31. Azure Files shares must authorize users with their on-premises AD identities and NTFS permissions. What should be enabled?
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.
-
Question 32. Which SMB security setting should be enforced for Azure Files to prevent older, weaker protocols?
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.
-
Question 33. An Azure SQL logical server must accept only Entra ID authentication. What should be enabled?
Show answer
Answer: C. Microsoft Entra-only authentication
Entra-only authentication disables SQL logins, so central identity controls such as MFA apply.
-
Question 34. Transparent Data Encryption for Azure SQL must use a key the company can revoke. What should be configured?
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.
-
Question 35. Credit card columns must stay encrypted even from database administrators, with queries run on the client side. What should be used?
Show answer
Answer: B. Always Encrypted
Always Encrypted keeps keys on the client, so the SQL engine only sees ciphertext.
-
Question 36. Azure SQL auditing records must be kept in a log workspace for correlation with other logs. Where should auditing write?
Show answer
Answer: D. A Log Analytics workspace
Server-level auditing applies to all databases on the server and can target several destinations.
-
Question 37. Which Defender plan detects SQL injection attempts and anomalous database access patterns?
Show answer
Answer: B. Microsoft Defender for SQL
Defender for SQL adds vulnerability assessment and advanced threat protection for SQL.
-
Question 38. A vulnerability assessment of Azure SQL flags excessive permissions. Where can a baseline be set to accept known findings?
Show answer
Answer: B. In the vulnerability assessment results, by setting a baseline
Baselines mark accepted results so later scans only report deviations.
-
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?
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.
-
Question 40. What is the security concern with the "Allow Azure services and resources to access this server" setting?
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.
-
Question 41. Support staff should see only masked values of email addresses in query results. What should be used?
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.
-
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?
Show answer
Answer: B. disableLocalAuth set to true, with data-plane RBAC
Disabling local auth blocks primary and secondary keys for data operations.
-
Question 43. A Cosmos DB account must only be reachable from specific VNets over private IPs. What should be configured?
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.
-
Question 44. A PostgreSQL flexible server must be isolated from the internet. Which networking option provides this at creation?
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.
-
Question 45. Storage account traffic must use HTTPS and TLS 1.2 or later only. Which settings apply?
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.
-
Question 46. Which Key Vault feature lets an application get a certificate that renews automatically from a supported CA?
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.
-
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?
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.
-
Question 48. Backups of critical VMs must be protected even if an attacker gains Backup Contributor rights. Which features help?
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.