DP-300 Plan and implement data platform resources Practice Question
You need to audit all successful and failed login attempts to an Azure SQL Database server for compliance. The audit logs must be stored in a Log Analytics workspace for analysis and retention. Which two actions should you perform? (Choose two.)
⚠ Common exam trap
Watch out — candidates often confuse on-premises SQL Server audit commands (like ALTER SERVER CONFIGURATION) with Azure SQL Database's cloud-native auditing, which requires diagnostic settings or server-level audit configuration, not T-SQL commands.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Enable auditing on the Azure SQL Database server and configure the audit destination as Log Analytics.
Azure SQL Database server-level auditing can be configured to send audit logs directly to a Log Analytics workspace, which is required for compliance analysis and retention. This captures both successful and failed login attempts at the server level, meeting the audit requirement without needing per-database configuration.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use SQL Server Audit to capture login events.
Why it's wrong here
Azure SQL Database uses built-in auditing, not SQL Server Audit.
- ✓
Enable auditing on the Azure SQL Database server and configure the audit destination as Log Analytics.
Why this is correct
Auditing can send logs to Log Analytics.
- ✓
Configure diagnostic settings to send the SQL security audit events to Log Analytics.
Why this is correct
Diagnostic settings route audit logs to Log Analytics.
- ✗
Enable auditing on each database individually.
Why it's wrong here
Server-level auditing covers all databases; database-level auditing is optional.
- ✗
Enable login auditing by running ALTER SERVER CONFIGURATION SET AUDIT_LOGIN_EVENTS.
Why it's wrong here
Login auditing is automatically enabled with auditing.
Go deeper
Related to this question
Learn chapter
Overview of Azure Data Platform Options
Key term
Azure SQL Performance Tuning
Azure SQL Performance Tuning is the process of optimizing the speed and efficiency of queries and database operations in Microsoft Azure SQL Database or SQL Managed Instance to reduce latency and improve throughput.
About these practice questions
One of 906 original DP-300 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This DP-300 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DP-300 exam.