Your company's security policy requires auditing all read, write, and delete operations on blobs in a production storage account named `storeprod1`. The audit logs must be queryable using KQL and retained for exactly 365 days. You need to configure the monitoring solution while minimizing management overhead and ensuring cost-effectiveness. Which configuration should you implement?
- AConfigure a diagnostic setting on the `storeprod1` storage account resource to send `StorageRead`, `StorageWrite`, and `StorageDelete` logs to the `law-prod1` Log Analytics workspace, and set the retention policy in the diagnostic setting to 365 days.
- BConfigure a diagnostic setting on the `storeprod1/blobServices/default` resource to send transaction metrics to the `law-prod1` Log Analytics workspace, and set the retention policy in the diagnostic setting to 365 days.
- Configure a diagnostic setting on the `storeprod1/blobServices/default` resource to send `StorageRead`, `StorageWrite`, and `StorageDelete` logs to the `law-prod1` Log Analytics workspace, and set the data retention of `law-prod1` to 365 days.Cevap
- DCreate a lifecycle management rule on the `storeprod1` storage account to tier log blobs, and assign the Storage Blob Data Reader role to the `law-prod1` system-assigned managed identity.
Cevap
Configure a diagnostic setting on the `storeprod1/blobServices/default` resource to send `StorageRead`, `StorageWrite`, and `StorageDelete` logs to the `law-prod1` Log Analytics workspace, and set the data retention of `law-prod1` to 365 days.
To collect blob-level transaction logs (read, write, delete), the diagnostic setting must be configured on the service-specific sub-resource `storeprod1/blobServices/default` rather than the parent storage account. Additionally, since the retention setting in diagnostic settings has been deprecated, the 365-day retention requirement must be configured directly on the destination Log Analytics workspace (`law-prod1`).
Adım Adım Çözüm
Anahtar Kavram
Configuring diagnostic settings for Azure Storage account resource logs and managing log retention at the destination.
Tahmini Süre:3m 0s