BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft SC-300 Exam - Topic 2 Question 116 Discussion

Posted by Estrella on Jul 07, 2025 at 10:00 AM

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.

Suggested Answer: A

Get Premium SC-300 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
30 comments · newest first
FE
Felix 11 months ago
Option D seems like a good choice too, but not as specific as A.
MA
Marlon 11 months ago
I think option B is overkill, Owner role is too much access.
JU
Jules 12 months ago
Surprised that people would consider the Owner role, that's risky!
JE
Jeanice 12 months ago
Option C just gives read access to the resource group, not DB1.
GA
Gaynell 12 months ago
Definitely go with option A, the Data Reader Role is perfect for this!
OM
Omega 1 year ago
I recall that the Reader role is more about viewing resources, so I doubt that would allow AKS1 to access DB1 properly.
MA
Major 1 year ago
I practiced a similar question, and I think the Azure Cosmos DB Account Reader role could be relevant, but I’m not confident it’s the best fit here.
KA
Kaycee 1 year ago
I'm not entirely sure, but I feel like assigning the Owner role is too broad and doesn't follow the least privilege principle.
SC
Scarlet 1 year ago
I remember studying the roles in Azure Cosmos DB, and I think the Data Reader role might be the right choice for AKS1 to access DB1.
JE
Jeanice 1 year ago
I'm not sure about this one. The question mentions the "principle of least privilege," so I'm wondering if assigning the Owner role to the subscription might be overkill. I'll need to double-check the role definitions to make sure I'm choosing the most appropriate one.
JU
Junita 1 year ago
Okay, I think I've got this. Since the question states that AKS1 needs to access DB1, the correct answer is to assign the Azure Cosmos DB Data Reader role to the AKS1 managed identity. This will give it the necessary permissions to read from the Cosmos DB database.
LE
Leatha 1 year ago
Hmm, I'm a bit confused about the different roles available for Cosmos DB. I'll need to review the documentation to make sure I understand the differences between the Data Reader and Account Reader roles.
WI
Willodean 1 year ago
This looks like a straightforward question about Azure Cosmos DB and AKS permissions. I think the key is to follow the principle of least privilege, so I'll focus on assigning the minimum required role to the AKS managed identity.
GE
Gerardo 1 year ago
I'm not sure, but I think assigning the Reader role at the RG1 level could also work.
AR
Arlean 1 year ago
Option D would give the managed identity too much access. We only need it to read from the DB1 database, not the entire Cosmos DB account.
TE
Teri 1 year ago
↳ replying to Arlean
Option D would give the managed identity too much access. We only need it to read from the DB1 database, not the entire Cosmos DB account.
AL
Altha 1 year ago
↳ replying to Arlean
A) For R61, assign the Azure Cosmos DB Data Reader Role role.
MA
Maryln 1 year ago
Haha, assigning the Owner role to the entire subscription? That's overkill! Option B is definitely not the right choice.
GI
Giovanna 1 year ago
↳ replying to Maryln
C) For RG1, assign the Reader role.
VI
Virgie 1 year ago
↳ replying to Maryln
A) For R61, assign the Azure Cosmos DB Data Reader Role role.
VI
Vincenza 1 year ago
I disagree, I believe the correct answer is D) For DB1, assign the Azure Cosmos DB Account Reader Role role.
CR
Crista 1 year ago
I agree with Mabel. Option A is the way to go here. Giving the managed identity the least amount of permissions required is the best approach.
CY
Cyndy 1 year ago
↳ replying to Crista
Definitely, assigning the Azure Cosmos DB Data Reader Role role to the managed identity of AKS1 is the right way to go.
KI
Kimbery 1 year ago
↳ replying to Crista
I agree, giving the managed identity only the necessary permissions is important.
FL
Fletcher 1 year ago
↳ replying to Crista
I think option A is the best choice. It follows the principle of least privilege.
ER
Eric 1 year ago
I think the answer is A) For R61, assign the Azure Cosmos DB Data Reader Role role.
MA
Mabel 1 year ago
Option A seems the most logical choice. Assigning the Azure Cosmos DB Data Reader Role to the managed identity of AKS1 would allow it to access the DB1 database while following the principle of least privilege.
MY
My 1 year ago
↳ replying to Mabel
Definitely, option A meets the requirements and follows the principle of least privilege.
VI
Vi 1 year ago
↳ replying to Mabel
Assigning the Azure Cosmos DB Data Reader Role to the managed identity of AKS1 is the way to go.
BE
Ben 1 year ago
↳ replying to Mabel
I agree, option A is the best choice for ensuring AKS1 can access DB1.
0/2000 characters

Save Cancel