You have an Azure Key Vault named KV1. You need to ensure that all secret read and write audit events in KV1 are collected and stored in a Log Analytics workspace named Workspace1. What configuration should you create on KV1?
- Configure a diagnostic setting on KV1 that enables the AuditEvent log category and specifies Workspace1 as the destination.Answer
- BConfigure a diagnostic setting on KV1 that enables only the AllMetrics category and specifies Workspace1 as the destination.
- CConfigure the Azure Activity log for the subscription to export events directly to Workspace1.
- DAssign the Storage Blob Data Reader Role for Workspace1 to KV1.
Answer
Configure a diagnostic setting on KV1 that enables the AuditEvent log category and specifies Workspace1 as the destination.
To collect and store audit data from data-plane transactions inside an Azure resource like Key Vault, you must configure a diagnostic setting on the resource itself. Enabling the AuditEvent log category and choosing Workspace1 as the target Log Analytics workspace satisfies all the requirements.
Step-by-Step Solution
Key Concept
Azure Monitor Diagnostic Settings allow resource logs and metrics to be collected and routed to destinations like Log Analytics workspaces.
Estimated Time:45s