
Answer-first summary for fast verification
Answer: Configuring a custom policy definition and assigning it to the subscription.
The correct answer is A: Configuring a custom policy definition and assigning it to the subscription. Custom policy definitions in Azure Policy allow you to enforce conventions and manage your resources more effectively by automatically applying rules and restrictions. Since there is no built-in policy that meets the specific requirement of blocking TCP port 8080 between virtual networks, a custom policy definition is necessary.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
In an Azure subscription with 10 virtual networks across different resource groups, ensure that newly created NSGs block TCP port 8080 traffic between these networks. Does implementing a custom policy meet this requirement?
A
Configuring a custom policy definition and assigning it to the subscription.
B
Creating a resource lock and assigning it to the subscription.
C
Unregistering the Microsoft.ClassicNetwork provider from the Resource providers blade.
D
Assigning a built-in policy definition to the subscription.