Q: 12
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.
Options
Discussion
A. saw something almost identical on a recent practice exam. Data Reader is what gives AKS access to Cosmos DB data, nothing more.
D imo. Account Reader sounds right if you just want to pull account info about DB1, and it's scoped at the DB resource itself. Not totally positive though, since it might not grant actual data access.
Official study guide covers this type of RBAC mapping pretty well. A
Pretty sure it's A for this one.
Probably A, usually see this in practice sets and the official MS docs recommend Data Reader role. Check your study guide for more RBAC scenarios like this.
Be respectful. No spam.