DP-300 study notes · 20–25% of the exam
Implement a secure environment
First draft for review. Check details against Microsoft Learn before relying on them.
What this area covers
Authentication and permissions, encryption at rest and in transit, network access, and compliance features like auditing, masking, ledger and row-level security.
Authentication and authorisation
- Set a Microsoft Entra admin, then create contained users with CREATE USER ... FROM EXTERNAL PROVIDER. Entra-only authentication turns off SQL logins.
- Apps should use managed identities. Managed Instance and SQL Server 2022 (through Azure Arc) also support Entra logins.
- Grant permissions to roles, not individual users. Use schema-level grants, and remember DENY overrides GRANT.
- Troubleshoot with sys.fn_my_permissions, and check that the user exists in the database you connect to.
Encryption
- TDE encrypts data at rest and is on by default. Use a customer-managed key in Key Vault for control, and protect it with soft delete and purge protection.
- Always Encrypted keeps data encrypted from the database engine. Deterministic allows equality lookups. Secure enclaves allow richer queries.
- Object-level encryption with ENCRYPTBYKEY encrypts specific values in T-SQL.
- Enforce TLS 1.2 or higher for connections.
Network access
- Server-level and database-level firewall rules for Azure SQL Database. Managed Instance uses NSGs and an optional public endpoint on port 3342.
- Private endpoints give private IP access, including from on-premises. Service endpoints work only from Azure subnets.
Compliance controls
- Data discovery and classification labels sensitive columns.
- Auditing writes to storage, Log Analytics or Event Hubs. Server-level auditing covers all databases.
- Change tracking records which rows changed. Change data capture records the values.
- Dynamic data masking hides values from users without UNMASK.
- Ledger gives tamper-evident tables (updatable or append-only).
- Row-level security uses a predicate function and a security policy.
- Defender for SQL adds threat detection and vulnerability assessment.