nerdexam
Microsoft

AZ-500 · Question #57

Hotspot Question You have an Azure subscription named Sub1 that is associated to an Azure Active Directory (Azure AD) tenant named contoso.com. You plan to implement an application that will consist…

The correct answer is CosmosDB1:: Create database users and generate resource tokens.; WebApp1:: Authenticate Azure AD users and relay resource tokens. The question describes an application architecture where users authenticate with Azure AD and access an Azure Cosmos DB account (CosmosDB1) using resource tokens, with an Azure web app (WebApp1) serving as the middle tier. For CosmosDB1, as the backend Cosmos DB account, its…

Submitted by hassan_iq· Mar 6, 2026Secure identity and access

Question

Hotspot Question You have an Azure subscription named Sub1 that is associated to an Azure Active Directory (Azure AD) tenant named contoso.com. You plan to implement an application that will consist of the resources shown in the following table. Users will authenticate by using their Azure AD user account and access the Cosmos DB account by using resource tokens. You need to identify which tasks will be implemented in CosmosDB1 and WebApp1. Which task should you identify for each resource? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Exhibits

AZ-500 question #57 exhibit 1
AZ-500 question #57 exhibit 2

Answer Area

  • CosmosDB1:Create database users and generate resource tokens.
    Authenticate Azure AD users and generate resource tokens.Authenticate Azure AD users and relay resource tokens.Create database users and generate resource tokens.
  • WebApp1:Authenticate Azure AD users and relay resource tokens.
    Authenticate Azure AD users and generate resource tokens.Authenticate Azure AD users and relay resource tokens.Create database users and generate resource tokens.

Explanation

The question describes an application architecture where users authenticate with Azure AD and access an Azure Cosmos DB account (CosmosDB1) using resource tokens, with an Azure web app (WebApp1) serving as the middle tier.

For CosmosDB1, as the backend Cosmos DB account, its task is to create database users and generate resource tokens. As the official explanation states, "Azure Cosmos DB resource tokens provide a safe mechanism for allowing clients to read, write, and delete specific resources in an Azure Cosmos DB account according to the granted permissions." This is the responsibility of the Cosmos DB itself or a component directly managing its access.

For WebApp1, described as the middle-tier web app, its task is to authenticate Azure AD users and relay resource tokens. The official explanation clarifies that "A typical approach to requesting, generating, and delivering resource tokens to a mobile application is to use a resource token broker." In this setup, WebApp1 acts as this broker, handling the initial Azure AD authentication for users and then facilitating the secure acquisition and relay of the generated resource tokens from CosmosDB1 to the authenticated users, allowing them to access the Cosmos DB data directly.

Topics

#Cosmos DB resource tokens#Azure AD authentication#Identity and access patterns#Application security architecture

Community Discussion

No community discussion yet for this question.

Full AZ-500 Practice