AZ-400 Develop a security and compliance plan • Set 2
AZ-400 Develop a security and compliance plan Practice Test 2 — 15 questions with explanations. Free, no signup.
The exhibit shows a draft Azure Monitor alert rule for Key Vault secret expiry. However, the query fails to return results for secrets that have already expired. What is the most likely reason?
Refer to the exhibit.
```json
{
"alertRule": {
"displayName": "Key Vault Secret Near Expiry",
"query": "// Azure Resource Graph query
resources
| where type == 'microsoft.keyvault/vaults/secrets'
| extend DaysToExpiry = datetime_diff('day', now(), properties.attributes.expiresOn)
| where DaysToExpiry < 30 and DaysToExpiry > 0
| project name, vaultName = resourceGroup, expiresOn = properties.attributes.expiresOn, DaysToExpiry
| limit 10"
}
}
```