You need to log all successful and failed connection attempts to VM1. Which three steps should you perform?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an Azure Storage account, Register the Microsoft.Insights resource provider, Enable Azure Network Watcher flow logs.
Why this is the answer
To log all successful and failed connection attempts to VM1, you need to use Azure Network Watcher flow logs. These logs capture information about IP traffic flowing through a Network Security Group (NSG). First, you must Create an Azure Storage account to store the flow log data. Network Watcher flow logs require a storage account for their output. Second, you need to Register the Microsoft.Insights resource provider. This provider is essential for many monitoring and logging services in Azure, including Network Watcher flow logs, as it handles the underlying diagnostic infrastructure. Finally, you must Enable Azure Network Watcher flow logs on the Network Security Group associated with VM1. This action configures the NSG to send traffic flow data to the specified storage account. "Enable Azure Network Watcher in the East US region" is incorrect because Network Watcher is a regional service, but simply enabling it doesn't configure logging. "Add a Network Watcher connection monitor" is incorrect as connection monitors test connectivity between endpoints, not log all traffic attempts. "Register the MicrosoftLogAnalytics provider" is incorrect; while Log Analytics can analyze flow logs, it's not a prerequisite for enabling the logs themselves.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed