Courseiva
Design and implement data storagehardMultiple ChoiceObjective-mapped

Folder-Level Access Control in Azure Data Lake Storage Gen2

A company uses Azure Data Lake Storage Gen2 with a hierarchical namespace. They need to secure access to specific directories using RBAC roles. Which RBAC role should be assigned to a user to grant read and write access to a specific folder without giving access to other folders in the same container?

Quick Answer

The correct answer combines two different layers of access control because RBAC alone cannot achieve folder-level restriction in ADLS Gen2. The Storage Blob Data Contributor role is assigned at the storage account or container scope, and by itself it would grant read and write access across every folder in that container; it has no concept of one folder versus another. To narrow that down to a single directory, you layer POSIX-style ACLs on top, setting permission entries directly on the specific folder and its files. ACLs are the mechanism ADLS Gen2 inherited from its hierarchical namespace, and they operate independently of RBAC, checked in addition to it, which is what lets you combine a broad role assignment with a narrow, directory-specific restriction. This differs from trying to solve the problem with RBAC alone, since built-in roles like Storage Blob Data Contributor do not have folder-scoped variants; the granularity RBAC offers stops at the container level. Whenever a scenario describes needing access to one specific folder in a hierarchical namespace account without exposing sibling folders, that is a strong signal the answer involves setting ACLs at the directory level, typically alongside an RBAC role that establishes the baseline data-plane access needed before ACLs can even be evaluated.

⚠ Common exam trap

Test-takers frequently assume RBAC roles alone can be scoped to a folder level, but in Azure Data Lake Storage Gen2, RBAC roles apply to the entire storage account or container, and folder-level security requires ACLs.

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

Storage Blob Data Contributor with ACLs at folder level

Azure Data Lake Storage Gen2 supports POSIX-like access control lists (ACLs) at the directory and file level. Assigning the Storage Blob Data Contributor role at the storage account level grants broad data-plane access, but when combined with ACL entries on a specific folder, you can restrict read and write permissions to only that folder. This allows granular security without affecting other folders in the same container.

Answer analysis

Option-by-option breakdown

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

  • Storage Account Contributor

    Why it's wrong here

    Management access, not data access.

  • Storage Blob Data Contributor with ACLs at folder level

    Why this is correct

    Grants read/write to specific folder.

  • Storage Blob Data Reader

    Why it's wrong here

    Read-only access.

  • Storage Blob Data Owner

    Why it's wrong here

    Grants full access including ACL management, too broad.

Visual reference

Source Router + ACL permit 10.0.0.0/8 deny any Server 10.0.0.5 ✓ 192.168.1.1 ✗ dropped ACLs evaluate top-down; first match wins — implicit deny all at end

Quick reference

Access Control Model Comparison

ModelAcronymWho Controls Access?Best For
Discretionary Access ControlDACResource ownerSmall teams, file shares
Mandatory Access ControlMACSystem / security labelsClassified govt / military
Role-Based Access ControlRBACAdministrator (via roles)Enterprise environments
Attribute-Based Access ControlABACPolicy engine (user + resource attributes)Fine-grained, dynamic policies
Rule-Based Access ControlRuBACSystem rules / ACLsFirewall rules, network ACLs

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 Data Lake Storage Gen2 for a data lake. You need to implement a folder structure that separates data by sensitivity level. Which access control method should you use?

medium
  • A.Use a storage account firewall and virtual network service endpoints
  • B.Use storage account keys for all access
  • C.Use Azure RBAC at the resource group level and ACLs on directories
  • D.Use shared access signatures (SAS) for each folder

Why C: Azure Data Lake Storage Gen2 supports both Azure RBAC at the resource group level for coarse-grained control and POSIX-like ACLs on directories for fine-grained, sensitivity-based access. This combination allows you to assign read/write/execute permissions per directory, enabling a folder structure that separates data by sensitivity level without compromising security.

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.