Blocking Specific App Outbound Traffic with Windows Defender Firewall

AZ-801 By islever Editorial Last updated

Secure Windows Server operating system

Short answer

A Implement an outbound program rule in Windows Defender Firewall to block App1 from accessing external SMTP servers while preserving access for other applications.

Question

You have a server that runs Windows Server and hosts an app named App1.
You need to prevent App1 from accessing external SMTP servers. The solution must meet the following requirements:
• Minimize the impact on App1's access to external HTTP servers.
• Minimize the impact on other apps on the server.
• Minimize administrative effort.
What should you implement in Windows Defender Firewall?
  1. an outbound program rule Correct Answer
  2. an inbound custom rule
  3. an outbound custom rule
  4. an inbound program rule
  5. an outbound port rule

Key Takeaways

Program rules allow firewall restrictions to be applied based on the executing application, providing precise isolation without affecting unrelated services.

To prevent App1 from accessing external SMTP servers while minimizing impact on other apps and admin effort, use an outbound program rule in Windows Defender Firewall.

Common mistake: Choosing an outbound custom rule (C) often leads to overly broad configurations or unnecessary complexity compared to the targeted simplicity of a program rule.

Expert Analysis

The scenario requires blocking App1 from accessing external SMTP servers while minimizing impact on other apps and administrative effort. In Windows Defender Firewall, rules can be scoped by program, port, or custom criteria. An outbound program rule (Option A) targets traffic generated specifically by a designated executable file. This allows precise control over App1's outbound connections without affecting other applications running on the server, satisfying the "minimize impact on other apps" requirement. It also minimizes administrative effort because you only need to specify the application path once, rather than configuring complex filters for every potential port or protocol.

An outbound custom rule (Option C) is more flexible but typically involves defining specific protocols, ports, or addresses, which may require more configuration steps or broader scoping that could inadvertently affect other services if not carefully restricted. While a custom rule could work, it is less targeted than a program rule when the constraint is tied to a specific application.

Inbound rules (Options B and D) are irrelevant here because the restriction is on outgoing traffic from the server to external SMTP servers. An outbound port rule (Option E) would block all traffic on those ports regardless of the source application, violating the requirement to minimize impact on other apps.

Community comments suggest Option A is correct because it isolates the restriction to the specific program. The confusion with Option C arises from misunderstanding the granularity: program rules are the most efficient way to restrict a single app's network behavior.

Exam Strategy

When asked to restrict network access for a specific application while leaving others unaffected, prioritize 'program' scoped rules over 'port' or 'custom' rules. Program rules inherently isolate the policy to the target executable, directly meeting requirements for minimal impact on other apps and reduced administrative overhead. Always verify the direction (inbound vs. outbound) matches the traffic flow described in the scenario.

Frequently Asked Questions

Why not use an outbound port rule?

An outbound port rule blocks traffic on specific ports for all applications on the server. This violates the requirement to minimize impact on other apps, as they would also lose access to those ports.

What is the difference between a program rule and a custom rule?

A program rule is automatically scoped to a specific executable file. A custom rule allows you to define various conditions like protocol, port, IP address, etc., but requires more manual configuration to achieve the same level of application-specific targeting.

More AZ-801 FAQ →

Community Votes

A
67%
C
33%

67% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 3 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 3

  1. VirtuaTech 👍 5 Answered A
    Outbound program rule that blocks App1 from using SMTP ports.
  2. 5faabfa 👍 3 Answered A
    I think is an outbound program rule. After creation of the rule, we can specify Protocol and port
  3. examtaker2026 👍 1 Answered C
    Why not "C. an outbound custom rule"?

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

← Back to AZ-801 Study Guide