Courseiva

DP-203 Practice Question: Secure, monitor, and optimize data storage and data processing

Exhibit

Refer to the exhibit.
$storageAccount = Get-AzStorageAccount -ResourceGroupName 'rg-datalake' -Name 'stdatalake001'
$ctx = $storageAccount.Context
$fileSystem = 'data'
$path = 'sales/2024/01/'
$acl = Set-AzDataLakeGen2ItemAclObject -EntityId 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' -Permission 'rwx' -AccessControlType 'user' -DefaultScope
Update-AzDataLakeGen2Item -FileSystem $fileSystem -Path $path -Acl $acl -Context $ctx

You are reviewing an Azure PowerShell script that sets permissions on a directory in Azure Data Lake Storage Gen2. The script sets a default ACL for a user on the path 'sales/2024/01/'. What is the effect of the -DefaultScope parameter?

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

The ACL is inherited by all new child items created under this directory.

The -DefaultScope parameter in Azure Data Lake Storage Gen2 sets a default ACL entry. Default ACLs do not set permissions on the current directory; instead, they define permissions that are inherited by new child items (files and subdirectories) created under that directory. Therefore, option B is correct. Option A is incorrect because default ACLs do not replace the access ACL; access ACLs are set separately without -DefaultScope. Option C is incorrect because default ACLs do not apply to existing items; they only affect future items. Option D is incorrect because default ACLs apply to both new files and new subdirectories.

Answer analysis

Option-by-option breakdown

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

  • The ACL replaces the existing access ACL on the directory.

    Why it's wrong here

    The script sets a default ACL, not replacing the access ACL.

  • The ACL is inherited by all new child items created under this directory.

    Why this is correct

    Default ACLs set permissions that are inherited by new items.

  • The ACL is applied to all existing files and subdirectories recursively.

    Why it's wrong here

    Default ACLs do not apply to existing items; they are for future items.

  • The ACL is applied only to files, not subdirectories.

    Why it's wrong here

    Default ACLs apply to both files and subdirectories.

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

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

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.