exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 1 question 52 discussion

Actual exam question from Microsoft's AI-102
Question #: 52
Topic #: 1
[All AI-102 Questions]

HOTSPOT
-

You have an Azure Cognitive Search resource named Search1 that is used by multiple apps.

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 specific queries.

What should you do? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Mike19D
Highly Voted 1 year, 7 months ago
Create Private Endpoint Use Azure Roles
upvoted 40 times
...
zellck
Highly Voted 1 year, 5 months ago
1. Create a private endpoint 2. Use Azure roles https://learn.microsoft.com/en-us/azure/search/service-create-private-endpoint#why-use-a-private-endpoint-for-secure-access Private Endpoints for Azure Cognitive Search allow a client on a virtual network to securely access data in a search index over a Private Link. The private endpoint uses an IP address from the virtual network address space for your search service. Network traffic between the client and the search service traverses over the virtual network and a private link on the Microsoft backbone network, eliminating exposure from the public internet. https://learn.microsoft.com/en-us/azure/search/search-security-rbac?tabs=config-svc-portal%2Croles-portal%2Ctest-portal%2Ccustom-role-portal%2Cdisable-keys-portal#grant-access-to-a-single-index In some scenarios, you may want to limit application's access to a single resource, such as an index. The portal doesn't currently support role assignments at this level of granularity, but it can be done with PowerShell or the Azure CLI.
upvoted 28 times
nimeshshroti11
3 months, 1 week ago
2nd question - For granularity, we need azure roles. Query Keys - Query Keys provide read-only access to the entire index. While they are easy to manage and distribute, they do not offer the granularity to limit access to specific queries or parts of the index. Azure Roles (RBAC) - Azure Role-Based Access Control (RBAC) allows you to define roles and permissions at a more granular level. You can create custom roles that limit access to specific operations or data within the index. This can be particularly useful if you need to restrict certain applications to only access specific queries or subsets of data.
upvoted 1 times
...
zellck
1 year, 5 months ago
Gotten this in Jul 2023 exam.
upvoted 8 times
...
rdemontis
1 year, 1 month ago
thanks for explanation
upvoted 2 times
...
...
krzkrzkra
Most Recent 4 months, 3 weeks ago
1. Create a private endpoint 2. Use Azure roles
upvoted 1 times
...
SAMBIT
4 months, 3 weeks ago
https://learn.microsoft.com/en-us/azure/search/keyless-connections?tabs=csharp%2Cazure-cli
upvoted 1 times
...
Ultron00
4 months, 4 weeks ago
Azure Cognitive Search primarily relies on API keys for authentication and authorization. By generating different API keys, you can control and restrict the access each app has to specific queries. Azure Roles are not used directly for query-level permissions in Azure Cognitive Search. So, the complete solution would be: Prevent access to Search1 from the internet: Configure a Private Endpoint for Search1 Limit the access of each app to specific queries: Use key authentication
upvoted 1 times
JakeCallham
3 months, 1 week ago
there ar eionly two keys and they dont have granular contyroll. With RBAC you do have that controll
upvoted 1 times
...
...
rookiee1111
5 months, 2 weeks ago
Create private endpoint use key auth - basically using query key will restrict the queries to data itself and will not retrieve system level info..
upvoted 2 times
...
gary_cooper
5 months, 3 weeks ago
1. Create a private endpoint 2. Use Azure roles
upvoted 1 times
...
NagaoShingo
6 months ago
1. Create a private endpoint 2. Use Azure roles
upvoted 2 times
...
demonite
6 months, 2 weeks ago
you can configure IP firewall and only allow the apps in. Implementing private endpoint requires the apps to be on the same vnet or a s2s vpn which adds complexity. https://learn.microsoft.com/en-us/azure/search/service-configure-firewall https://learn.microsoft.com/en-us/azure/search/search-security-api-keys?tabs=rest-use%2Cportal-find%2Cportal-query IP Firewall Use Key authentication.
upvoted 1 times
...
reiwanotora
6 months, 2 weeks ago
Create a private endpoint & Use key authentication.
upvoted 2 times
...
michaelmorar
7 months, 3 weeks ago
- Private endpoint - Azure Roles There is only one Cognitive Search instance; keys will not control access at the correct level of granularity.
upvoted 1 times
...
NullVoider_0
8 months ago
Create Private Endpoint Use Key authentication. Azure roles, specifically Azure Role-Based Access Control (RBAC), are designed to manage who has access to Azure resources and what they can do with those resources. While RBAC is effective for controlling access at the resource level (e.g., who can manage the search service, indexes, or data sources), it does not provide the granularity needed to limit access to specific queries within Azure Cognitive Search.
upvoted 2 times
...
varinder82
8 months, 2 weeks ago
Final Answer: 1. Create a private endpoint 2. Use Azure roles
upvoted 1 times
...
Ody
8 months, 2 weeks ago
In this article, learn how to secure an Azure AI Search service so that it can't be accessed over a public internet connection: https://learn.microsoft.com/en-us/azure/search/service-create-private-endpoint
upvoted 1 times
...
evangelist
9 months, 3 weeks ago
prevent Azure services to be accessed from internet? ==>create private endpoint of that service limit the service to a specific queries?-->using Azure roles
upvoted 1 times
...
sca88
1 year ago
Should be 1. Create Private Endpoint 2. Use Azure Roles
upvoted 1 times
...
shahnawazkhot
1 year, 2 months ago
Folks, the correct answer is - Create a Private Endpoint for Preventing access from Internet. - Use Azure Roles to limit access.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...