AZ-700 · Question #81
You need to configure a security policy. As a process, first you find the name for the resource group containing Front Door profile with the help of Get-AzResourceGroup. Now, which of the following…
The correct answer is A. New-AzFrontDoorWafPolicy. The correct cmdlet is New-AzFrontDoorWafPolicy, which creates a new Web Application Firewall (WAF) policy for Azure Front Door. Since you are creating a new security policy (not modifying an existing one), New- is the appropriate verb prefix. Set-AzFrontDoorWafPolicy (B) is…
Question
You need to configure a security policy. As a process, first you find the name for the resource group containing Front Door profile with the help of Get-AzResourceGroup. Now, which of the following cmdlet would you use to configure a security policy in the identified resource group?
Options
- ANew-AzFrontDoorWafPolicy
- BSet-AzFrontDoorWafPolicy
- CNew-AzFrontDoorPolicry
- DNew-AzureFrontDoorWafPolicy
How the community answered
(23 responses)- A78% (18)
- B13% (3)
- C4% (1)
- D4% (1)
Explanation
The correct cmdlet is New-AzFrontDoorWafPolicy, which creates a new Web Application Firewall (WAF) policy for Azure Front Door. Since you are creating a new security policy (not modifying an existing one), New- is the appropriate verb prefix. Set-AzFrontDoorWafPolicy (B) is used to update an already existing WAF policy. New-AzFrontDoorPolicry (C) contains a typo ('Policry') and is not a valid cmdlet. New-AzureFrontDoorWafPolicy (D) uses the older AzureRM naming convention (Azure prefix) rather than the current Az module naming convention.
Community Discussion
No community discussion yet for this question.