Courseiva

Azure SQL Database Auditing Policy: ARM Template with Blob Storage Destination

Exhibit

Refer to the exhibit.

{
    "Name": "audit-policy",
    "Type": "Microsoft.Sql/servers/auditingSettings",
    "ApiVersion": "2021-11-01",
    "Properties": {
        "state": "Enabled",
        "storageEndpoint": "https://auditlogs.blob.core.windows.net",
        "retentionDays": 90,
        "auditActionsAndGroups": [
            "DATABASE_LOGOUT_GROUP",
            "DATABASE_ROLE_MEMBER_CHANGE_GROUP"
        ]
    }
}

You are reviewing an Azure Resource Manager template for an Azure SQL Database auditing policy. Based on the exhibit, which of the following is true?

Quick Answer

Reading an auditing configuration in an ARM template comes down to matching each property to what it actually controls, and the storageEndpoint property is the one that determines where audit logs get written. When a template's auditing policy includes a storageEndpoint value alongside state set to Enabled, that combination specifically means the audit feature is turned on and configured to send its logs to an Azure Blob Storage account at that endpoint; that property would not be present or meaningful if the destination were somewhere else, like Log Analytics, which is configured through an entirely different property. The other properties rule out other conclusions: a retentionDays value of 90 means logs are kept for a fixed 90-day window, not indefinitely, so any option claiming permanent retention is wrong. The presence of an explicit auditActionsAndGroups list means the template is defining specific categories of actions to audit rather than falling back on whatever default set SQL Database would otherwise use. The general skill here is reading an ARM template's auditing block property by property rather than assuming one overall behavior: state tells you whether auditing is on, storageEndpoint tells you the destination, retentionDays tells you retention length, and the action list tells you whether defaults are in effect. Look at each property individually rather than inferring behavior from the feature's name alone.

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

Audit logs will be written to Azure Blob Storage.

The template shows the 'state' property set to 'Enabled' and includes a 'storageEndpoint' property, which indicates that audit logs are configured to be written to Azure Blob Storage. Option A is incorrect because 'retentionDays' is set to 90 days, so logs are not retained indefinitely. Option B is incorrect because 'auditActionsAndGroups' is specified in the template, meaning default audit actions and groups are not used. Option C is incorrect because the destination is Blob Storage, not Azure Log Analytics, as indicated by the 'storageEndpoint' property.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Audit logs will be retained indefinitely.

    Why it's wrong here

    retentionDays is 90, so logs are retained for 90 days, not indefinitely.

  • The audit policy will use default audit actions and groups.

    Why it's wrong here

    Custom auditActionsAndGroups are specified, so default actions are not used.

  • Audit logs will be sent to Azure Log Analytics.

    Why it's wrong here

    The storageEndpoint points to blob storage, not Log Analytics.

  • Audit logs will be written to Azure Blob Storage.

    Why this is correct

    The storageEndpoint property specifies the blob storage account for audit logs.

Quick reference

Azure Blob Storage Tier Comparison

TierStorage CostRetrieval CostLatencyUse Case
HotHighestLowestImmediateActive data, frequent reads
CoolLowerHigherImmediateData accessed < once / month
ColdLower stillHigherImmediateData accessed < once / quarter
ArchiveLowestHighest + rehydration delayHoursLong-term compliance retention

About these practice questions

This DP-203 question is part of Courseiva's 760-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on DP-203

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. Your company uses Azure SQL Database and needs to audit all data modifications, including SELECT operations on sensitive columns, for compliance. Which feature should you enable?

easy
  • A.Enable SQL auditing and configure to log SELECT operations.
  • B.Enable Transparent Data Encryption (TDE).
  • C.Enable Azure Defender for SQL.
  • D.Enable SQL vulnerability assessment.

Why A: Azure SQL Database auditing captures database events including SELECT statements. Option B is wrong because TDE encrypts data at rest, not audit. Option C is wrong because Azure Defender for SQL provides security alerts but not detailed audit logs. Option D is wrong because vulnerability assessment scans for security issues but does not audit.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DP-203 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-203 exam.