Securing Azure AI Search with Private Endpoints and RBAC

Manage, monitor, and secure AI systems
Answer Create a private endpoint to prevent internet access. Use Azure roles to limit access to specific indexes.

HOTSPOT You have an Azure AI Search resource named Search1 that is used by multiple apps hosted in Azure. You need to secure Search1. The solution must meet the following requirements: • Prevent access to Search1 from the internet. • Limit the access of each app to query specific indexes. What should you do? To answer, select the appropriate options in the answer area. NOTE: Each correct answer is worth one point. exhibit

Community Insight

The common trap is confusing IP firewalls (which filter but don't remove public exposure) with Private Endpoints (which fully isolate the service), and failing to distinguish between management-plane and data-plane permissions.

This question tests securing Azure AI Search by combining network isolation via Private Link with granular access control using Azure RBAC roles.

Candidates often select 'IP firewall' because it restricts access, but this does not meet the strict requirement to prevent internet access. They may also choose 'API keys' for index restriction, which lacks the granularity of role-based access control.

Community Discussion (2 comments)

Srikantha 👍 2
To prevent access from the internet: Create a private endpoint. To limit access to query specific indexes: Use Azure roles. Key Reasons Prevent Public Internet Access: Creating a private endpoint routes traffic over a private IP within your Azure Virtual Network (VNet) using Azure Private Link, blocking direct public internet access to Search1. Index-Level Granular Control: Azure RBAC data-plane roles (such as Search Index Data Reader) can be assigned to individual app managed identities at the scope of a specific index (/indexes/index-name). In contrast, Azure AI Search query keys operate strictly at the service level, granting query access across all indexes in the service.
AngusSzarpidrut 👍 1
• To prevent access from the internet: create a private endpoint. • To limit access to query specific indexes: use Azure roles. Why (from Microsoft Learn): • An IP firewall only allows or blocks specific public IP ranges — the service is still technically reachable over the internet, just filtered — while a private endpoint gives Search1 a private IP inside your virtual network and removes public internet exposure entirely, which is what "prevent access from the internet" actually requires. • For scoping each app to only specific indexes, Azure roles (Azure RBAC data-plane roles for AI Search) let you assign fine-grained, per-resource permissions to each app's identity, whereas the older key-based authentication uses admin/query keys that grant blanket access across the whole search service with no per-index scoping — so only the RBAC/roles approach can satisfy the "specific indexes" requirement.

Comments & Corrections

No comments 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.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

To prevent access from the internet, you must create a Private Endpoint for the Azure AI Search resource. This uses Azure Private Link to expose the service within your Virtual Network (VN) via a private IP address, effectively removing its public endpoint. To limit access to specific indexes, you should assign Azure RBAC roles (such as 'Search Index Data Reader') at the scope of the specific index or application identity. This provides fine-grained, role-based control over who can query which data.

Why Other Candidate Answers Are Wrong

An IP firewall allows you to whitelist specific public IPs, but the service remains publicly accessible; anyone with a whitelisted IP can still reach it over the internet, violating the 'prevent access from the internet' requirement. Using API keys allows access but does not inherently restrict which index an app can query if the same key is used across apps, nor does it provide the auditability and separation of duties that RBAC offers. Management-plane roles like 'Contributor' do not grant data-plane access to search indexes.

Community Comment Notes

Community consensus strongly supports the combination of Private Endpoints and RBAC. As Srikantha noted, "Creating a private endpoint routes traffic over a private IP... blocking direct public internet access." AngusSzarpidrut clarified that "An IP firewall only allows or blocks specific public IP ranges — the service is still technically reachable over the internet," highlighting why Private Endpoint is the only valid choice for complete isolation.

Exam Strategy

Always read 'prevent access from the internet' as a signal for Private Link/Private Endpoint. When 'limit access to specific resources' is paired with security, look for RBAC rather than API keys or network rules, as RBAC offers the necessary granularity.

Frequently Asked Questions

Does an IP firewall secure Azure AI Search from the internet?

No. An IP firewall filters traffic but keeps the service's public endpoint active. A Private Endpoint is required to remove public internet access entirely.

Can API keys restrict which index an app can query?

Generally no. API keys are typically scoped to the entire search service. RBAC roles allow you to assign permissions to specific indexes or collections.

More AI-103 FAQ →

Related Analysis

Practice All AI-103 Questions

Access 88 questions with complete answers and detailed explanations.

View Full AI-103 Practice Test →

← Back to AI-103 Study Guide