exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 4 question 9 discussion

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

DRAG DROP -
You have a web app that uses Azure Cognitive Search.
When reviewing billing for the app, you discover much higher than expected charges. You suspect that the query key is compromised.
You need to prevent unauthorized access to the search endpoint and ensure that users only have read only access to the documents collection. The solution must minimize app downtime.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Reference:
https://docs.microsoft.com/en-us/azure/search/search-security-api-keys

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
guruaws2021
Highly Voted 3 years, 8 months ago
The answer is wrong regenerated secondary key update the app to use the secondary key regenarated the primary key
upvoted 48 times
ziggy1117
1 year, 10 months ago
the app only uses a query key not secondary or primary keys. The answer is CORRECT
upvoted 24 times
...
satishk4u
2 years, 12 months ago
No, it is about query key not admin key.
upvoted 14 times
...
czmiel24
3 years, 8 months ago
Nope, the answer is correct. It's all about query keys which can be up to 50.
upvoted 52 times
...
AnonymousJhb
1 year, 5 months ago
The answer is correct. By default, only 1 query key is created, but as per the answer, a new query key (up to 50) can be generated. More can be created on demand by a search service administrator. Query keys are not admin keys! Dont get caught! https://learn.microsoft.com/en-us/azure/search/search-security-api-keys?tabs=portal-use%2Cportal-find%2Cportal-query
upvoted 8 times
rdemontis
1 year, 5 months ago
exactly, we don't have to confuse Admin Keys with Query keys. They are different things and with a different management
upvoted 5 times
...
...
...
Adedoyin_Simeon
Highly Voted 3 years, 6 months ago
The answer is correct. The question specifically mentioned a read-only access to the documents which is achieved only through query keys. And it is a query key that was compromised. Any of the admin keys (primary and secondary) allows read-write operations. Hence, solution is to create a new query key, switch to the new query key and delete the compromised query key.
upvoted 30 times
...
syupwsh
Most Recent 2 months, 1 week ago
1) Add a new query key is CORRECT. This step ensures that a fresh query key is created to replace the compromised one. Azure AI Search allows you to create up to 50 query keys, specifically designed to give read-only access to the documents in the search index. This method isolates the compromised key without immediately disrupting the application's functionality. 2) Change the app to use the new key is CORRECT. After generating the new query key, it’s crucial to update the application to use this key instead of the compromised one. This ensures that the app continues functioning securely and that only authorized users have access. 3) Delete the compromised key is CORRECT. Once the app is using the new query key, deleting the compromised key prevents any further unauthorized access, securing the system effectively without downtime.
upvoted 3 times
...
19d92c7
5 months, 1 week ago
how can exam topics can be so wrong??
upvoted 2 times
...
3fbc31b
5 months, 1 week ago
Given that the scenario specifically mentions QUERY key, the answer is correct.
upvoted 1 times
...
jolimon
5 months, 2 weeks ago
i chose: regenerated secondary key update the app to use the secondary key regenarated the primary key
upvoted 1 times
...
anto69
8 months, 2 weeks ago
Since access is stated as read-only the answer is correct
upvoted 1 times
...
anto69
8 months, 2 weeks ago
regenerated secondary key update the app to use the secondary key regenarated the primary key
upvoted 1 times
...
PeteColag
10 months, 1 week ago
The stated answer is correct. - Query keys do not have the concept of primary and secondary key. - The concept of primary key and secondary key applies only to admin keys. - You get one key by default, and then you can create additional keys (up to 50).
upvoted 1 times
...
laitoanthang
10 months, 1 week ago
It's a little bit confused when I met similar question in the topic 4 question 2. 2 questions have almost similar contents but different answer. Can you guys check it out
upvoted 1 times
...
reiwanotora
10 months, 3 weeks ago
1. Add a new query key. 2. Change the app to use the new key. 3. Delete the compromised key.
upvoted 6 times
...
sl_mslconsulting
1 year, 6 months ago
Suspecting unauthorized access doesn’t give you a reason to interrupt legit users. Also by looking the read only access requirement to the document collections already tells you this is about query keys.
upvoted 1 times
sl_mslconsulting
1 year, 6 months ago
Two key requirements are read-only access to the document collection and minimum app downtime. Answers are obvious.
upvoted 1 times
...
...
zellck
1 year, 9 months ago
1. Add new query key 2. Change app to use new key 3. Delete compromised key https://learn.microsoft.com/en-us/azure/search/search-security-api-keys?tabs=portal-use%2Cportal-find%2Cportal-query#create-query-keys
upvoted 8 times
...
Pixelmate
1 year, 10 months ago
ChatGPT answer : The answer is correct but in a different order. 1. Revoke the compromised query key immediately to prevent further unauthorized access. 2. Create a new query key for the application to use for authorized access. 3. Update the search endpoint and application to use the new query key and ensure that it is properly secured.
upvoted 2 times
M25
1 year, 7 months ago
F (Delete compromised), A (Add new / “recreate”), D (Change / update app to use new) https://learn.microsoft.com/en-us/rest/api/searchmanagement/2021-04-01-preview/query-keys Delete Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating a query key is to delete and then recreate it.
upvoted 1 times
...
...
aiml
1 year, 11 months ago
The answer is correct. As its about query key and not for admin key.
upvoted 4 times
...
Eltooth
2 years, 9 months ago
Answer is correct. Add a new query key Change the app to use the new key Delete the compromised key
upvoted 4 times
...
mohamedba
2 years, 9 months ago
1. Regenerate 2nd key 2. Change the app to use the regenerated 2nd key 3. Regenerate the 1st key
upvoted 2 times
Eltooth
2 years, 9 months ago
Wrong. There is no mention of primary or secondary key in this question. The provided answer is correct: Add a new query key Change the app to use the new key Delete the compromised key
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago