- A
Enable auditing on the database and set the audit log destination to an Azure Storage account.
Auditing captures data modifications and can be stored in storage.
- B
Configure diagnostic settings to stream query store data to an event hub.
Why wrong: Query store data is not audit logs.
- C
Enable Microsoft Defender for SQL and configure security alerts to be sent to a storage account.
Why wrong: Defender for SQL provides security alerts, not audit logs.
- D
Enable SQL Vulnerability Assessment and export the results to a storage account.
Why wrong: Vulnerability assessment scans for security weaknesses, not audit logs.
Quick Answer
The correct answer is to enable auditing on the database and set the audit log destination to an Azure Storage account. This works because Azure SQL Database’s built-in auditing feature captures all data modifications—INSERT, UPDATE, and DELETE operations—by default when configured at the database level, and it writes those audit records directly to a specified Azure Storage blob container, providing a centralized, durable, and immutable log for compliance. On the DP-300 exam, this scenario tests your understanding of native auditing versus more complex solutions like Azure Monitor or Event Hubs, which are often overkill for simple storage-based compliance; a common trap is choosing “server-level auditing” instead of database-level, but only database-level auditing captures granular DML changes like INSERT, UPDATE, and DELETE. Remember the mnemonic: “DB for DML”—database-level auditing for data modification logs.
DP-300 Implement a secure environment Practice Question
This DP-300 practice question tests your understanding of implement a secure environment. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Your Azure SQL Database contains sensitive financial data. You need to audit all data modifications (INSERT, UPDATE, DELETE) and store the audit logs in a central Azure Storage account for compliance. What should you configure?
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 database and set the audit log destination to an Azure Storage account.
Option A is correct because Azure SQL Database's built-in auditing feature can be configured to capture all data modifications (INSERT, UPDATE, DELETE) and write audit logs directly to an Azure Storage account. This meets the compliance requirement for centralized, durable storage of audit records without additional services or complex pipelines.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Enable auditing on the database and set the audit log destination to an Azure Storage account.
Why this is correct
Auditing captures data modifications and can be stored in storage.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
Configure diagnostic settings to stream query store data to an event hub.
Why it's wrong here
Query store data is not audit logs.
- ✗
Enable Microsoft Defender for SQL and configure security alerts to be sent to a storage account.
Why it's wrong here
Defender for SQL provides security alerts, not audit logs.
- ✗
Enable SQL Vulnerability Assessment and export the results to a storage account.
Why it's wrong here
Vulnerability assessment scans for security weaknesses, not audit logs.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is confusing security monitoring tools (Defender for SQL, Vulnerability Assessment) or performance diagnostics (query store) with the specific auditing feature required for capturing data modification logs for compliance.
Detailed technical explanation
How to think about this question
Azure SQL Database auditing uses extended events to capture DML operations and writes them to .xel files in the specified Azure Storage account. The audit logs include detailed information such as the exact T-SQL statement, affected rows, session details, and timestamps, which are essential for compliance audits. A real-world scenario is meeting PCI DSS or SOX requirements, where you must retain immutable audit records for a defined retention period, which Azure Storage supports via immutable blob policies.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Implement a secure environment — study guide chapter
Learn the concepts, then practise the questions
- →
Implement a secure environment practice questions
Targeted practice on this topic area only
- →
All DP-300 questions
953 questions across all exam domains
- →
Microsoft Azure Database Administrator Associate DP-300 study guide
Full concept coverage aligned to exam objectives
- →
DP-300 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related DP-300 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Plan and configure a high availability and disaster recovery environment practice questions
Practise DP-300 questions linked to Plan and configure a high availability and disaster recovery environment.
Plan and implement data platform resources practice questions
Practise DP-300 questions linked to Plan and implement data platform resources.
Monitor, configure, and optimize database resources practice questions
Practise DP-300 questions linked to Monitor, configure, and optimize database resources.
Configure and manage automation of tasks practice questions
Practise DP-300 questions linked to Configure and manage automation of tasks.
Plan and configure high availability and disaster recovery practice questions
Practise DP-300 questions linked to Plan and configure high availability and disaster recovery.
Implement a secure environment practice questions
Practise DP-300 questions linked to Implement a secure environment.
DP-300 fundamentals practice questions
Practise DP-300 questions linked to DP-300 fundamentals.
DP-300 scenario practice questions
Practise DP-300 questions linked to DP-300 scenario.
DP-300 troubleshooting practice questions
Practise DP-300 questions linked to DP-300 troubleshooting.
Practice this exam
Start a free DP-300 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this DP-300 question test?
Implement a secure environment — This question tests Implement a secure environment — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Enable auditing on the database and set the audit log destination to an Azure Storage account. — Option A is correct because Azure SQL Database's built-in auditing feature can be configured to capture all data modifications (INSERT, UPDATE, DELETE) and write audit logs directly to an Azure Storage account. This meets the compliance requirement for centralized, durable storage of audit records without additional services or complex pipelines.
What should I do if I get this DP-300 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
2 more ways this is tested on DP-300
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. You have an Azure SQL Database that stores financial data. You need to audit all SELECT operations on the 'Transactions' table and store the audit logs in an Azure Storage account. What should you use?
easy- A.Enable Microsoft Defender for Cloud on the server and review security insights.
- B.Create a server audit using SQL Server Audit and specify a file destination.
- C.Enable diagnostic settings for the database and send to a Log Analytics workspace.
- ✓ D.Configure server-level auditing to log to an Azure Storage account.
Why D: Option D is correct because Azure SQL Database supports server-level auditing that can write audit logs directly to an Azure Storage account. This meets the requirement to audit SELECT operations on the 'Transactions' table and store logs in Azure Storage. Server-level auditing captures all database events, including SELECT statements, and can be configured to target a storage container.
Variation 2. Your Azure SQL Managed Instance stores sensitive financial data. You must prevent unauthorized access from Azure services and ensure that only specific virtual networks can connect. You also need to audit all failed login attempts. Which combination of configurations should you implement?
hard- A.Enable Microsoft Defender for SQL and set up anomaly detection alerts.
- ✓ B.Create a private endpoint, set 'Public network access' to 'Deny', and enable Azure SQL Auditing with a log analytics workspace.
- C.Enable SQL vulnerability assessment and configure email notifications.
- D.Configure VNet service endpoints and set the firewall to allow only your VNet.
Why B: Option B is correct because creating a private endpoint for Azure SQL Managed Instance ensures that traffic to the instance traverses the Microsoft backbone network and is only accessible from within the specified virtual network. Setting 'Public network access' to 'Deny' explicitly blocks all public internet traffic, including traffic from other Azure services that do not originate from the approved VNet. Enabling Azure SQL Auditing with a Log Analytics workspace captures all failed login attempts, meeting the audit requirement. This combination directly addresses the need to prevent unauthorized access from Azure services and enforce VNet-only connectivity while auditing failed logins.
Keep practising
More DP-300 practice questions
- A DBA needs to create a new Azure SQL Database and wants to ensure that the database automatically fails over to a secon…
- A company uses Azure SQL Managed Instance for its line-of-business applications. They need to ensure that backups are re…
- Refer to the exhibit. A DBA is creating an Azure SQL Managed Instance using the ARM template snippet shown. The DBA need…
- A company is planning to migrate their on-premises SQL Server databases to Azure SQL Managed Instance. They have a datab…
- A company has an Azure SQL Database with a large table that is frequently updated. They notice performance degradation d…
- Which THREE of the following are valid options for migrating an on-premises SQL Server database to Azure SQL Database?
Last reviewed: Jun 24, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.