注: この質問は、同じシナリオを示す一連の質問の一部です。このシリーズの各質問には、指定された目標を達成できる可能性のある独自の解決策が含まれています。一部の質問セットには複数の正しい解決策が含まれる場合がありますが、他の質問セットには正しい解決策がない場合があります。
このセクションの質問に回答すると、その質問に戻ることはできません。そのため、これらの質問はレビュー画面には表示されません。
10 個の仮想ネットワークを含む Azure サブスクリプションがあります。仮想ネットワークは別のリソース グループでホストされます。
別の管理者は、サブスクリプション内に複数のネットワーク セキュリティ グループ (NSG) を作成することを計画しています。
NSG の作成時に、仮想ネットワーク間の TCP ポート 8080 が自動的にブロックされるようにする必要があります。
解決策: カスタム ポリシー定義を構成し、そのポリシーをサブスクリプションに割り当てます。
これは目標を達成していますか?
正解:B
A custom policy definition is a way to define your own rules for using Azure resources. You can use custom policies to enforce compliance, security, cost management, or organization-specific requirements. However, a custom policy definition alone is not enough to meet the goal of automatically blocking TCP port 8080 between the virtual networks. You also need to create a policy assignment that applies the custom policy definition to the scope of the subscription. A policy assignment is the link between a policy definition and an Azure resource. Without a policy assignment, the custom policy definition will not take effect. Therefore, the solution does not meet the goal.
Reference:
Tutorial: Create a custom policy definition
Create and manage policies to enforce compliance