Skip to main content

AI-200 practice question · Secure, Monitor, and Troubleshoot Azure Solutions

An Azure Cosmos DB for NoSQL account has key-based authentication disabled, and all applications connect by using…

An Azure Cosmos DB for NoSQL account has key-based authentication disabled, and all applications connect by using managed identities with Cosmos DB data-plane RBAC roles. A security team needs to find out which identity wrote a specific item to a container, and when it happened. What should the team configure and query?

  • AA diagnostic setting that sends the DataPlaneRequests log category to Log Analytics, then query the AadPrincipalId column
  • BThe subscription's Azure Activity log, filtered on the Cosmos DB account and the write operation
  • CA diagnostic setting that sends the ControlPlaneRequests log category to Log Analytics, then query the caller
  • DThe Total Requests metric in Azure Monitor, split by operation type and filtered to the container
Show the answer and explanation

Correct answer: A) A diagnostic setting that sends the DataPlaneRequests log category to Log Analytics, then query the AadPrincipalId column

Item-level reads and writes are data-plane operations, so they appear in Cosmos DB's DataPlaneRequests resource logs, not in the Activity log or control-plane logs. With Entra authentication, the AadPrincipalId column identifies the caller.

Why each option is right or wrong

  • A) Correct. DataPlaneRequests resource logs record each data-plane operation (create, update, delete, read) with the operation name, container, timestamp, and the Microsoft Entra principal ID of the caller. Because the apps authenticate with Entra identities, the log shows which identity made the write and when.
  • B) Incorrect. The Activity log records Azure Resource Manager (control-plane) operations, such as changes to account settings. It doesn't record individual item writes made through the Cosmos DB data-plane endpoint.
  • C) Incorrect. ControlPlaneRequests covers account and resource management operations, such as adding a region, updating throughput, or creating or updating a container. It doesn't capture individual item writes inside a container.
  • D) Incorrect. Platform metrics are numeric counts aggregated over time intervals. They can show how many write requests occurred, but they don't record per-request details such as which identity made a particular write.
Question type
Multiple choice (one answer)

Practise the full AI-200 exam

This question is one of a small free sample from the CertRidge AI-200 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with Microsoft; never copied from the real exam.