Courseiva
Implement and Manage Virtual NetworkingeasyMultiple SelectObjective-mapped

Private Endpoint vs Service Endpoint: What's the Difference?

A company wants an Azure Storage account to be reachable privately from a virtual network. Which two statements about a private endpoint are correct? Select two.

Quick Answer

The correct answer is that a private endpoint assigns the Azure Storage service a private IP address from your virtual network’s subnet, and a private DNS zone is commonly used so the service name resolves to that private IP. This works because the private endpoint effectively brings the storage account into your virtual network via a network interface, ensuring all traffic stays on the Microsoft backbone and never touches the public internet. On the AZ-104 exam, this concept tests your understanding of secure connectivity options, often appearing in scenario-based questions where you must choose between private and service endpoints. A common trap is confusing service endpoints, which only extend the network boundary over the internet without assigning a private IP, with private endpoints that provide true isolation. Remember the memory tip: “Private endpoint = private IP inside your VNet; service endpoint = public IP with a direct route.”

⚠ Common exam trap

Candidates often confuse private endpoints with service endpoints, thinking both provide a private IP address, but only private endpoints assign a private IP from the VNet, while service endpoints rely on public IPs with network security group (NSG) restrictions.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The storage service gets a private IP address in the selected virtual network.

A private endpoint assigns the Azure Storage service a private IP address from the subnet of the selected virtual network, effectively bringing the service into the VPC-like environment. This ensures that traffic to the storage account stays within the Microsoft backbone network and never traverses the public internet, meeting private connectivity requirements.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The storage service gets a private IP address in the selected virtual network.

    Why this is correct

    Correct because a private endpoint creates a network interface in your virtual network and maps the Azure service to a private IP address there.

  • The virtual machine that reaches the service must have its own public IP address.

    Why it's wrong here

    False because private endpoint access is designed for private network connectivity, so the client VM does not need a public IP.

    When this WOULD be correct

    In a scenario where a virtual machine must access an Azure service that does not support private endpoints (e.g., a legacy service) and the only connectivity option is via the internet, the VM would need a public IP address for outbound traffic.

  • A private endpoint replaces the need for any DNS configuration.

    Why it's wrong here

    False because DNS still matters. Administrators usually configure private DNS so the service name resolves to the private endpoint address.

    When this WOULD be correct

    In a scenario where the question asks about a feature that eliminates the need for public DNS resolution for Azure PaaS services, and the correct answer is 'Azure Private Link automatically handles DNS configuration for private endpoints,' but that is not accurate; however, if the question were 'Which feature allows you to use a custom DNS server to resolve the storage account name to a private IP without manual DNS records?' the answer would be 'private DNS zone,' not the endpoint itself.

  • A private DNS zone is commonly used so the service name resolves to the private IP.

    Why this is correct

    Correct because private DNS helps clients resolve the service FQDN to the private endpoint IP instead of the public endpoint.

  • A private endpoint and a service endpoint are the same feature.

    Why it's wrong here

    False because service endpoints and private endpoints work differently. Only private endpoints place a private IP in the VNet.

    When this WOULD be correct

    If the question asked 'Which two statements about service endpoints are correct?' and included an option stating 'A service endpoint and a private endpoint are the same feature,' this would be incorrect; however, no scenario makes this statement correct.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.

The storage service gets a private IP address in the selected virtual network.Correct answer

Why this is correct

Correct because a private endpoint creates a network interface in your virtual network and maps the Azure service to a private IP address there.

The virtual machine that reaches the service must have its own public IP address.Wrong answer — click to see why

Why this is wrong here

A private endpoint does not require the virtual machine to have a public IP address; traffic stays within the Microsoft backbone and never traverses the internet.

★ When this WOULD be the correct answer

In a scenario where a virtual machine must access an Azure service that does not support private endpoints (e.g., a legacy service) and the only connectivity option is via the internet, the VM would need a public IP address for outbound traffic.

Why candidates choose this

Candidates may confuse private endpoints with traditional internet-based access, assuming that private connectivity still requires a public IP for the client.

A private endpoint replaces the need for any DNS configuration.Wrong answer — click to see why

Why this is wrong here

A private endpoint does not replace DNS configuration; it requires DNS resolution to map the storage account's FQDN to the private IP, often using a private DNS zone.

★ When this WOULD be the correct answer

In a scenario where the question asks about a feature that eliminates the need for public DNS resolution for Azure PaaS services, and the correct answer is 'Azure Private Link automatically handles DNS configuration for private endpoints,' but that is not accurate; however, if the question were 'Which feature allows you to use a custom DNS server to resolve the storage account name to a private IP without manual DNS records?' the answer would be 'private DNS zone,' not the endpoint itself.

Why candidates choose this

Candidates may think that because the private endpoint assigns a private IP, DNS configuration is automatically handled, overlooking that DNS resolution still needs explicit setup to ensure the service name resolves to the private IP.

A private endpoint and a service endpoint are the same feature.Wrong answer — click to see why

Why this is wrong here

Private endpoints and service endpoints are distinct features: private endpoints provide a private IP in the VNet, while service endpoints extend the VNet's identity to the service over the public endpoint.

★ When this WOULD be the correct answer

If the question asked 'Which two statements about service endpoints are correct?' and included an option stating 'A service endpoint and a private endpoint are the same feature,' this would be incorrect; however, no scenario makes this statement correct.

Why candidates choose this

Candidates may confuse the two features because both are used to secure Azure services to a virtual network, leading to the mistaken belief they are identical.

Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Visual reference

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

About these practice questions

Courseiva writes every AZ-104 question from scratch — 1,049 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on AZ-104

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A storage account must remain on its public endpoint, but only one Azure subnet named AppSubnet should be allowed to access it from Azure. No private IP is required. Which two actions should the administrator take? Select two.

medium
  • A.Enable the Microsoft.Storage service endpoint on AppSubnet.
  • B.Configure the storage account networking firewall to allow the selected virtual network and subnet.
  • C.Create a private endpoint and disable public network access.
  • D.Link a private DNS zone to AppSubnet.
  • E.Assign the Reader RBAC role to AppSubnet.

Why A: Enabling the Microsoft.Storage service endpoint on AppSubnet allows traffic from that subnet to the storage account over the Azure backbone network, using the public endpoint while restricting access to only that subnet. Option B is correct because configuring the storage account's networking firewall to allow the selected virtual network and subnet explicitly permits traffic from AppSubnet while blocking all other public access, meeting the requirement to keep the public endpoint but limit access to one subnet.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.