Microsoft Azure Security Engineer Associate AZ-500 Practice Question
You manage an Azure Key Vault named ContosoKV that contains an RSA key named DatabaseKey created with default settings. The security team now requires the key to expire after 365 days and automatically generate a new version every 180 days. You want to meet the requirement with a single Azure CLI command. Which command should you run?
The az keyvault key rotation-policy update command configures both the key's lifetime actions and its expiry period. Using --expiry P365D sets the new versions of the key to expire 365 days after they are created. The syntax Rotate@P180D in the --lifetime-actions parameter tells Azure Key Vault to automatically create a new key version 180 days after the current version is created, satisfying the rotation requirement. The Notify action in the second option would only send an event and would not create a new key version. The third option calls a different CLI command that does not configure the rotation policy, and the fourth option uses invalid parameter names and an incorrect sub-command, so neither would apply the required policy.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Azure Key Vault used for?
Open an interactive chat with Bash
What does the --expiry parameter mean in the CLI command?
Open an interactive chat with Bash
What does the Rotate@P180D syntax do in key rotation-policy actions?
Open an interactive chat with Bash
Microsoft Azure Security Engineer Associate AZ-500
Secure Azure using Microsoft Defender for Cloud and Microsoft Sentinel
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .