Soru

Zorluk: OrtaAzure Monitor Metrics and Diagnostic Settings

A company deploys a Network Security Group (NSG) named `NSG-Secure`. You are tasked with configuring a diagnostic setting on `NSG-Secure` to meet the following requirements:
- Route NSG rule evaluation events to a storage account named `storeauditprod`.
- Avoid routing any performance metrics or flow logs to the storage account.
- Ensure that the configuration uses the minimum required log categories.

Which configuration should you apply to the diagnostic setting?

  1. Enable the NetworkSecurityGroupEvent log category and select the Archive to a storage account destination, choosing storeauditprod.Cevap
  2. B
    Enable the NetworkSecurityGroupRuleCounter log category and select the Archive to a storage account destination, choosing storeauditprod.
  3. C
    Enable the NetworkSecurityGroupEvent log category and select the Send to Log Analytics workspace destination, choosing storeauditprod.
  4. D
    Enable the NetworkSecurityGroupEvent log category, select the Archive to a storage account destination choosing storeauditprod, and assign the Storage Blob Data Contributor role to the NSG on storeauditprod.

Cevap

Enable the NetworkSecurityGroupEvent log category and select the Archive to a storage account destination, choosing storeauditprod.
The correct configuration enables the NetworkSecurityGroupEvent log category and selects the 'Archive to a storage account' destination, choosing the storeauditprod storage account. This satisfies all requirements: NetworkSecurityGroupEvent contains the rule evaluation events, archiving to a storage account is the correct destination type for storeauditprod, and no unnecessary metrics or roles are configured.

Adım Adım Çözüm

1
Identify the required log data category.
NetworkSecurityGroupEvent contains the logs for NSG rule evaluations, whereas NetworkSecurityGroupRuleCounter contains rule statistics.
Choosing the correct log category ensures that rule evaluations are captured.
2
Select the correct destination type.
The requirement is to route the logs to a storage account named storeauditprod.
Choosing the 'Archive to a storage account' option maps to the storage account destination, whereas 'Send to Log Analytics workspace' is used for querying logs.
3
Configure the destination target.
Select storeauditprod as the target storage account.
This completes the diagnostic settings configuration without requiring manual RBAC role assignments on the storage account for the resource.

Anahtar Kavram

Azure Monitor Diagnostic Settings routing and NSG log categories configuration.
Bu soruyu puanla