exam questions

Exam DP-201 All Questions

View all questions & answers for the DP-201 exam

Exam DP-201 topic 1 question 29 discussion

Actual exam question from Microsoft's DP-201
Question #: 29
Topic #: 1
[All DP-201 Questions]

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You plan to store delimited text files in an Azure Data Lake Storage account that will be organized into department folders.
You need to configure data access so that users see only the files in their respective department folder.
Solution: From the storage account, you disable a hierarchical namespace, and you use access control lists (ACLs).
Does this meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Azure Data Lake Storage implements an access control model that derives from HDFS, which in turn derives from the POSIX access control model.
Blob container ACLs does not support the hierarchical namespace, so it must be disabled.
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-known-issues https://docs.microsoft.com/en-us/azure/data-lake-store/data-lake-store-access-control

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
passnow
Highly Voted 4 years, 9 months ago
sometimes u guys commenting confuse people
upvoted 37 times
...
kempstonjoystick
Highly Voted 5 years, 1 month ago
The question is unclear in this instance, as it doesn't specify whether the ADLS is v1 or v2. For v1, Hierarchical namespaces must be off, for v2 they need to be on: "Do I have to enable support for ACLs? No. Access control via ACLs is enabled for a storage account as long as the Hierarchical Namespace (HNS) feature is turned ON." https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-access-control
upvoted 35 times
samok
5 years, 1 month ago
You are correct. I believe this is an old question, before Gen2 was available. In current exams, they ought to specify which Gen they are referring to.
upvoted 6 times
M0e
4 years, 7 months ago
I think Gen 1 is not covered in the exams any more. So having the assumption that the question talks about Gen 2, the answer here is No.
upvoted 7 times
...
...
...
satyamkishoresingh
Most Recent 3 years, 9 months ago
Solution: From the storage account, you disable a hierarchical namespace, and you use access control lists (ACLs). if disable hierarchical namespace , then the case has to be NO
upvoted 1 times
...
eurekamike
3 years, 10 months ago
enable hierarchical namespace, then access control lists
upvoted 1 times
...
azurenav
3 years, 11 months ago
Enable HNS and ACL -- This is 100% correct
upvoted 1 times
...
Ous01
3 years, 12 months ago
One the storage account is created. We can't enable or disable Namespace. The storage account must be re-created. I don't understand why the answer is Yes. It should be no in my opinion.
upvoted 1 times
...
cadio30
4 years ago
From the question standpoint, it is pertaining to ADLS Gen 2 in which is it requires to enable the "hierarchical namespace" to utilize the functionality of Data Lake then we could configure the ACL in the folder level. Therefore, the answer is NO.
upvoted 1 times
...
Apox
4 years ago
I believe the answer should be "YES": The requirement is that data is organized into folders (hence, you have to enable hierarchical namespace") and the users should only see their respective folders. The only way to give users fine-grained access to folders in ADLS Gen2 is to use Access Control Lists. If this is not used you will have to use RBAC and this can only give access to ALL of the data in a storage account or ALL of the data in the container, which will not fulfill the requirement. It is also unlikely that Shared Access Signatures (SAS) should be used. The reason is that this is internal and you want to have a concept of who actually access what (and they likely have users set up in AAD). SAS is more often used in the context of applications than users, and therefore this is not the right answer either. Hence, hierarchical namespace and ACL should be used and the answer to this question is "YES".
upvoted 1 times
BobFar
4 years ago
what about this ? Do I have to enable support for ACLs? No. Access control via ACLs is enabled for a storage account as long as the Hierarchical Namespace (HNS) feature is turned ON. If HNS is turned OFF, the Azure Azure RBAC authorization rules still apply. in the below link? https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-access-control
upvoted 1 times
...
...
sdas1
4 years, 3 months ago
Refer: https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-access-control Access control via ACLs is enabled for a storage account as long as the Hierarchical Namespace (HNS) feature is turned ON. If HNS is turned OFF, the Azure Azure RBAC authorization rules still apply.
upvoted 4 times
BobFar
4 years ago
that is exactly what I found https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-access-control
upvoted 1 times
...
...
sd_dp200
4 years, 3 months ago
isn't hierarchical namespace a fundamental property of data lake storage that separates it from blob storage type? why are they saying disable HNS then?
upvoted 1 times
cadio30
3 years, 11 months ago
in ADLS Gen 1, there is no such feature that could disable the HNS while in Gen 2 this is possible.
upvoted 1 times
...
...
sturcu
4 years, 4 months ago
The Question n is out dated, it refresh to gen1. In gen2 there is no need to Disable Hierarchical Namespace
upvoted 1 times
...
mohowzeh
4 years, 4 months ago
In storage V2, you can only create ACL's on a container with hierarchical namespace enabled. You cannot disable hierarchical namespace and have an ACL at the same time. Hence, the goal is not met. Test this yourself in Azure. Create two storage accounts: one with hierarchical namespace disabled (the "blob account"), and one with it enabled (the "data lake account"). Create a container in each. Install Azure Data Explorer on your local machine, then follow the instructions on this page: https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-explorer#managing-access You will see that ACL's are an option on the data lake container, but not on the blob container. Hence, disabling the hierarchical namespace makes it impossible to have an ACL on the containers in that account. The configuration as given in the question is therefore not meeting the goal.
upvoted 3 times
BobFar
4 years ago
Do I have to enable support for ACLs? No. Access control via ACLs is enabled for a storage account as long as the Hierarchical Namespace (HNS) feature is turned ON. If HNS is turned OFF, the Azure Azure RBAC authorization rules still apply. https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-access-control
upvoted 1 times
...
...
BungyTex
4 years, 5 months ago
It clearly says the data is arranged into folders by department. If you don't have HNS you don't have the folders.
upvoted 1 times
...
syu31svc
4 years, 5 months ago
Answer is No; enable not disable the namespace
upvoted 1 times
...
rmk4ever
4 years, 8 months ago
New update: https://docs.microsoft.com/en-us/azure/storage/blobs/recursive-access-control-lists?tabs=azure-powershell
upvoted 1 times
...
yilpiz
4 years, 8 months ago
Question clearly states Azure Data Lake Storage. Why he is talking about blob?
upvoted 1 times
...
Yaswant
4 years, 9 months ago
Enable heirarchial namespace and use ACL's This is the one of the option i got in recent exam.
upvoted 14 times
Porus
4 years, 8 months ago
whats the answer
upvoted 1 times
treebeard
4 years, 7 months ago
This is what I found @ MS Docs: 'Access control via ACLs is enabled for a storage account as long as the Hierarchical Namespace (HNS) feature is turned ON. If HNS is turned OFF, the Azure RBAC authorization rules still apply.' Ref: https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-access-control
upvoted 4 times
...
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...