exam questions

Exam SC-300 All Questions

View all questions & answers for the SC-300 exam

Exam SC-300 topic 3 question 45 discussion

Actual exam question from Microsoft's SC-300
Question #: 45
Topic #: 3
[All SC-300 Questions]

You have an Azure subscription named Sub1 that contains a resource group named RG1. RG1 contains an Azure Cosmos DB database named DB1 and an Azure Kubernetes Service (AKS) cluster named AKS1. AKS1 uses a managed identity.

You need to ensure that AKS1 can access DB1. The solution must meet the following requirements:

• Ensure that AKS1 uses the managed identity to access DB1.
• Follow the principle of least privilege.

Which role should you assign to the managed identity of AKS1?

  • A. For Sub1, assign the Owner role.
  • B. For DB1, assign the Azure Cosmos DB Account Reader Role role.
  • C. For RG1, assign the Azure Cosmos DB Data Reader Role role.
  • D. For RG1, assign the Reader role.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Doinitza
Highly Voted 1 year, 3 months ago
I think its B, in my lab, I have created an Azure Cosmos DB for NoSQL, then, in its "Access control (IAM)" blade, I can assign the role "Cosmos DB Account Reader Role" to a Managed Identity.
upvoted 8 times
...
indope94
Most Recent 2 weeks ago
Selected Answer: C
Ik ga voor C. Bis niet goed want deze rol geeft toegang tot account metadata (niet tot de daadwerkelijke documenten/data). Niet geschikt om de inhoud van de database te lezen.
upvoted 1 times
...
Obi_Wan_Jacoby
2 weeks, 4 days ago
Selected Answer: B
Answer B (considering this exam is based in security): After multiple back and forths with copilot, I got the following: Yes, there could be cases where AKS1 only needs the Azure Cosmos DB Account Reader Role. This role provides read access to the account metadata and settings, which might be sufficient for certain administrative or monitoring tasks. Here are a few scenarios where this role might be appropriate: Monitoring and Reporting: If AKS1 needs to monitor the status and configuration of DB1 without accessing the actual data, the Account Reader Role would be sufficient. Configuration Management: For tasks that involve reviewing account settings or configurations without interacting with the data, this role is appropriate. Security Audits: If AKS1 is used for security audits that require access to account details but not the data itself, the Account Reader Role would meet the requirements. However, if AKS1 needs to interact with the data within DB1, the Azure Cosmos DB Data Reader Role would be necessary to provide the required permissions.
upvoted 1 times
Obi_Wan_Jacoby
2 weeks, 4 days ago
Azure Cosmos DB Account Reader Role: This role provides read access to the account metadata and settings. You can find it in the Azure portal under the Access control (IAM) section of your Azure Cosmos DB account. Azure Cosmos DB Data Reader Role: This role provides read access to the data within the Azure Cosmos DB account. You can locate it in the Azure portal under the Access control (IAM) section of your Azure Cosmos DB account or resource group
upvoted 1 times
...
...
anonymousarpanch
2 months, 3 weeks ago
Selected Answer: B
Both Azure Cosmos DB Account Reader and Azure Cosmos DB Data Reader roles exist. The Account Reader role is for management plane settings (viewing configurations without data access), while the Data Reader role is for data plane access (reading stored data). Typically, security, IT, and compliance teams use the Account Reader role, while microservices, APIs, and developers use the Data Reader role. Since Azure Kubernetes Service (AKS) needs database access but not configuration settings, the least privilege approach applies, granting access only to DB1, not the entire RG1—making option 'B' correct.
upvoted 1 times
anonymousarpanch
2 months, 3 weeks ago
Both Azure Cosmos DB Account Reader and Azure Cosmos DB Data Reader roles exist. The Account Reader role is for management plane settings (viewing configurations without data access), while the Data Reader role is for data plane access (reading stored data). Typically, security, IT, and compliance teams use the Account Reader role, while microservices, APIs, and developers use the Data Reader role. Since Azure Kubernetes Service (AKS) needs database access but not configuration settings, doesnt make sense to go with Account reader role. Also with the least privilege approach that applies, granting access only to DB1, not the entire RG1—making option 'B' correct.
upvoted 1 times
...
...
Oskarma
3 months ago
Selected Answer: C
The Azure Cosmos DB Account Reader Role allows read access to the account's metadata and configuration, not the data itself. Cannot Access Data: AKS1 would be able to read properties like account keys and settings but not the actual database content.
upvoted 1 times
...
02b144e
4 months ago
Selected Answer: C
The built-in role "Cosmos DB data reader" does exist https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/security/reference-data-plane-roles
upvoted 2 times
...
02b144e
4 months ago
Selected Answer: C
The built-in role Cosmos DB reader does exist https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/security/reference-data-plane-roles
upvoted 2 times
...
RemmyT
11 months ago
Selected Answer: B
Built-in roles supported by Azure Cosmos DB DocumentDB Account Contributor - Can manage Azure Cosmos DB accounts Cosmos DB Account Reader Role - Can read Azure Cosmos DB account data CosmosBackupOperator - Can submit a restore request in the Azure portal for a periodic backup enabled database or a container. Can modify the backup interval and retention in the Azure portal. Cannot access any data or use Data Explorer CosmosRestoreOperator - Can perform a restore action for an Azure Cosmos DB account with continuous backup mode. Cosmos DB Operator - Can provision Azure Cosmos DB accounts, databases, and containers. Cannot access any data or use Data Explorer https://learn.microsoft.com/en-us/azure/cosmos-db/role-based-access-control
upvoted 2 times
...
penatuna
11 months, 3 weeks ago
Selected Answer: B
It's got to be B. Answers A and D give too much privileges (A is for subscription scope and D is for Resource group scope). As for answer C, such role does not exist.
upvoted 2 times
...
Alcpt
12 months ago
Be careful! remember that RBAC in Azure Cosmos DB applies to either a data plane operations (database) or a management plane operations (outside of the database / account level only). The Data Reader Role is for those who need to work with the data stored in Cosmos DB (data plane), while the Account Reader Role is for those who need to manage the account itself without accessing the data within it. AKS1 needs to access DB1 data plane to read the data, else whats the point? I think the answer is Azure Cosmos DB Data Reader Role role = C
upvoted 2 times
...
JuanZ
1 year ago
Selected Answer: B
https://learn.microsoft.com/en-us/azure/cosmos-db/role-based-access-control
upvoted 2 times
...
klayytech
1 year ago
Selected Answer: B
In IAM of DB1: Assign the Managed Identity of AKS1 as CDB Account Reader Role
upvoted 3 times
...
blanco00555
1 year, 1 month ago
Selected Answer: B
In IAM of DB1: Assign the Managed Identity of AKS1 as CDB Account Reader Role
upvoted 3 times
...
Ody
1 year, 2 months ago
If a Azure Cosmos DB Data Reader Role exists I can't find it. I think B has to be correct.
upvoted 1 times
Obi_Wan_Jacoby
2 weeks, 4 days ago
Azure Cosmos DB Account Reader Role: This role provides read access to the account metadata and settings. You can find it in the Azure portal under the Access control (IAM) section of your Azure Cosmos DB account. Azure Cosmos DB Data Reader Role: This role provides read access to the data within the Azure Cosmos DB account. You can locate it in the Azure portal under the Access control (IAM) section of your Azure Cosmos DB account or resource group
upvoted 1 times
...
...
Siraf
1 year, 2 months ago
Correct Answer is B
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago