ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 32 - AI-102 discussion

Report
Export

You deploy a web app that is used as a management portal for indexing in Azure Cognitive Search. The app is configured to use the primary admin key. During a security review, you discover unauthorized changes to the search index. You suspect that the primary access key is compromised. You need to prevent unauthorized access to the index management endpoint. The solution must minimize downtime. What should you do next?

A.
Regenerate the primary admin key, change the app to use the secondary admin key, and then regenerate the secondary admin key.
Answers
A.
Regenerate the primary admin key, change the app to use the secondary admin key, and then regenerate the secondary admin key.
B.
Change the app to use a query key, and then regenerate the primary admin key and the secondary admin key.
Answers
B.
Change the app to use a query key, and then regenerate the primary admin key and the secondary admin key.
C.
Regenerate the secondary admin key, change the app to use the secondary admin key, and then regenerate the primary key.
Answers
C.
Regenerate the secondary admin key, change the app to use the secondary admin key, and then regenerate the primary key.
D.
Add a new query key, change the app to use the new query key, and then delete all the unused query keys.
Answers
D.
Add a new query key, change the app to use the new query key, and then delete all the unused query keys.
Suggested answer: A

Explanation:

Regenerate admin keys.

Two admin keys are created for each service so that you can rotate a primary key, using the secondary key for business continuity. 1. In the Settings >Keys page, copy the secondary key.

2. For all applications, update the API key settings to use the secondary key.

3. Regenerate the primary key.

4. Update all applications to use the new primary key.

Note: Two admin api-keys, referred to as primary and secondary keys in the portal, are automatically generated when the service is created and can be individually regenerated on demand. Having two keys allows you to roll over one key while using the second key for continued access to the service.

Reference:

https://docs.microsoft.com/en-us/azure/search/search-security-api-keys#regenerate-admin-keys

asked 26/09/2024
Antonio Agustin Mirano
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first