Question 342 of 953
Implement a secure environmenthardMultiple ChoiceObjective-mapped

Quick Answer

The correct approach is to configure the server's system-assigned managed identity and grant it access to the storage account. This eliminates the need to store a secure storage account access key in the Azure SQL audit policy, as the managed identity provides an Azure AD-backed identity that can be assigned RBAC permissions like Storage Blob Data Contributor on the target storage account. By using managed identity, you avoid the security risks of static key exposure and rotation failures, which is a core concept tested on the Microsoft Azure Database Administrator Associate DP-300 exam. A common trap is assuming a connection string or access key is required for audit log destinations, but the exam emphasizes that managed identities are the recommended, keyless method for secure storage account access. Remember the mnemonic "MIA for Keyless Audit" — Managed Identity Access replaces the storage key in your audit policy configuration.

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.

Exhibit

Refer to the exhibit.
```json
{
  "properties": {
    "name": "myAuditPolicy",
    "type": "Microsoft.Sql/servers/databases/auditingSettings",
    "apiVersion": "2023-02-01-preview",
    "properties": {
      "state": "Enabled",
      "auditActionsAndGroups": [
        "SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP",
        "FAILED_DATABASE_AUTHENTICATION_GROUP"
      ],
      "storageEndpoint": "https://mystorage.blob.core.windows.net",
      "storageAccountAccessKey": "...",
      "retentionDays": 90,
      "isAzureMonitorTargetEnabled": true
    }
  }
}
```

You are reviewing an Azure SQL Database audit policy configuration. The policy is set to audit successful and failed database authentication events. You notice that audit logs are being written to both Azure Blob Storage and Azure Monitor. However, you are concerned about security of the storage account access key in the policy. What is the recommended approach to securely reference the storage account?

Question 1hardmultiple choice
Full question →

Exhibit

Refer to the exhibit.
```json
{
  "properties": {
    "name": "myAuditPolicy",
    "type": "Microsoft.Sql/servers/databases/auditingSettings",
    "apiVersion": "2023-02-01-preview",
    "properties": {
      "state": "Enabled",
      "auditActionsAndGroups": [
        "SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP",
        "FAILED_DATABASE_AUTHENTICATION_GROUP"
      ],
      "storageEndpoint": "https://mystorage.blob.core.windows.net",
      "storageAccountAccessKey": "...",
      "retentionDays": 90,
      "isAzureMonitorTargetEnabled": true
    }
  }
}
```

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

Configure the server's system-assigned managed identity and grant it access to the storage account.

Option D is correct because using a system-assigned managed identity for the Azure SQL Database logical server eliminates the need to store a storage account access key in the audit policy configuration. Managed identities provide a secure, Azure AD-backed identity that can be granted specific permissions (e.g., Storage Blob Data Contributor) on the storage account, ensuring that access is controlled via RBAC rather than a static key. This approach aligns with security best practices by removing the risk of key exposure or rotation failures.

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.

  • Remove the storageAccountAccessKey property and rely on the storage endpoint.

    Why it's wrong here

    The key is required for Blob Storage destination.

  • Use a different storage account with a key that expires daily.

    Why it's wrong here

    Still exposes the key in the policy.

  • Disable the Azure Monitor destination and only use Blob Storage.

    Why it's wrong here

    Does not remove the key requirement.

  • Configure the server's system-assigned managed identity and grant it access to the storage account.

    Why this is correct

    Managed identity eliminates the need for access keys.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may think removing the access key property (Option A) is sufficient, not realizing that Azure SQL Database audit requires explicit authentication to the storage account and will fail without a valid access key or managed identity configuration.

Detailed technical explanation

How to think about this question

Under the hood, when you enable managed identity for Azure SQL Database audit, the logical server's identity is used to authenticate against Azure Storage via Azure AD OAuth 2.0 tokens. The storage account must have the appropriate RBAC role (e.g., 'Storage Blob Data Contributor') assigned to the server's managed identity. This eliminates the need for a shared access key, which is a static secret that could be compromised if exposed in configuration files or logs. In a real-world scenario, this is critical for compliance frameworks like SOC 2 or PCI DSS that require secrets to be rotated or avoided entirely.

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.

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.

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: Configure the server's system-assigned managed identity and grant it access to the storage account. — Option D is correct because using a system-assigned managed identity for the Azure SQL Database logical server eliminates the need to store a storage account access key in the audit policy configuration. Managed identities provide a secure, Azure AD-backed identity that can be granted specific permissions (e.g., Storage Blob Data Contributor) on the storage account, ensuring that access is controlled via RBAC rather than a static key. This approach aligns with security best practices by removing the risk of key exposure or rotation failures.

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 →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 24, 2026

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.

Loading comments…

Sign in to join the discussion.

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.