Question 916 of 999
Design data storage solutionshardMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is that this policy enforces that all containers must use a specific customer-managed encryption scope named 'customEncryptionScope' to allow write operations. This is because the Azure Policy definition uses the denyAction effect to block any write operation on a storage container unless the request includes that exact encryption scope, effectively making the scope a mandatory condition for data modification. On the AZ-305 exam, this scenario tests your understanding of how denyAction differs from other effects like deny or audit, and it often appears in questions about data sovereignty or compliance at the container level. A common trap is confusing denyAction with a simple deny—remember that denyAction only blocks the specific action (write) while allowing reads, and it requires the scope to be explicitly passed in the request. Memory tip: think "denyAction = block the write, not the container" and associate "customEncryptionScope" with a key that unlocks write permissions.

AZ-305 Design data storage solutions Practice Question

This AZ-305 practice question tests your understanding of design data storage solutions. 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.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Deny",
      "Action": [
        "Microsoft.Storage/storageAccounts/blobServices/containers/write"
      ],
      "Resource": "/subscriptions/sub123/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storage1/blobServices/default/containers/*",
      "Condition": {
        "BoolIfExists": {
          "Microsoft.Storage/encryptionScope": "false"
        },
        "StringNotEquals": {
          "Microsoft.Storage/encryptionScope": "customEncryptionScope"
        }
      }
    }
  ]
}

You are reviewing the above Azure Policy definition assigned to a storage account. What does this policy enforce?

Question 1hardmultiple choice
Full question →

Exhibit

Refer to the exhibit.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Deny",
      "Action": [
        "Microsoft.Storage/storageAccounts/blobServices/containers/write"
      ],
      "Resource": "/subscriptions/sub123/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storage1/blobServices/default/containers/*",
      "Condition": {
        "BoolIfExists": {
          "Microsoft.Storage/encryptionScope": "false"
        },
        "StringNotEquals": {
          "Microsoft.Storage/encryptionScope": "customEncryptionScope"
        }
      }
    }
  ]
}

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

All containers must use a specific customer-managed encryption scope named 'customEncryptionScope' to allow write operations.

The Azure Policy definition uses the 'denyAction' effect to block write operations unless the storage account's containers are configured with a specific customer-managed encryption scope named 'customEncryptionScope'. This enforces that all containers must use that exact encryption scope for write operations, ensuring data is encrypted with a customer-managed key at the container level.

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.

  • Containers can be written to only if they use the default encryption scope.

    Why it's wrong here

    The condition requires the encryption scope to be 'customEncryptionScope', not default.

  • All containers must use a specific customer-managed encryption scope named 'customEncryptionScope' to allow write operations.

    Why this is correct

    The policy denies writes unless the encryption scope matches the specified one.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Write operations are allowed only when encryption scope is not specified.

    Why it's wrong here

    The policy denies when encryption scope is false (not specified) and also when it's not equal to the specific scope.

  • Reading from containers is denied unless a specific encryption scope is used.

    Why it's wrong here

    The policy only denies write actions, not read.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse the 'denyAction' effect with the standard 'deny' effect, or assume the policy applies to read operations, when in fact it specifically targets write operations and requires a precise encryption scope name.

Detailed technical explanation

How to think about this question

The 'denyAction' effect in Azure Policy is a newer capability that blocks specific API operations (like write) based on conditions, unlike the traditional 'deny' effect which blocks resource creation or modification. In this case, the condition checks the 'encryptionScope' property of the container write request, and if it does not match 'customEncryptionScope', the write is denied. This is useful for compliance scenarios where data must be encrypted with a customer-managed key at rest, enforced at the container level rather than the storage account level.

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 AZ-305 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 AZ-305 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 AZ-305 question test?

Design data storage solutions — This question tests Design data storage solutions — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: All containers must use a specific customer-managed encryption scope named 'customEncryptionScope' to allow write operations. — The Azure Policy definition uses the 'denyAction' effect to block write operations unless the storage account's containers are configured with a specific customer-managed encryption scope named 'customEncryptionScope'. This enforces that all containers must use that exact encryption scope for write operations, ensuring data is encrypted with a customer-managed key at the container level.

What should I do if I get this AZ-305 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

Same concept, more angles

1 more ways this is tested on AZ-305

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 are reviewing the encryption settings of an Azure Storage account using the above JSON output. What is the current encryption status for files stored in Azure Files shares in this account?

hard
  • A.Files are encrypted because defaultEncryption is false
  • B.Files are encrypted at rest using Azure Storage encryption
  • C.Files are encrypted using customer-managed keys
  • D.Files are not encrypted at rest

Why D: The JSON output shows `"defaultEncryption": false` for the Azure Files share. In Azure Storage, when `defaultEncryption` is set to `false`, it means that server-side encryption (SSE) is not enabled by default for that file share. Therefore, files stored in this Azure Files share are not encrypted at rest. Option D correctly identifies this unencrypted state.

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 AZ-305 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 AZ-305 exam.