While you monitor the indexer processing status through the REST calls, you realize that the indexer has failed with status persitentFailure.
After fixing the issue, which REST call would you make to restart the scheduled execution? (select one answer choice)
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer: C.
Option A is incorrect because it is used to get status of the indexer.
Option B is incorrect because it is used to update the indexer definition of an existing indexer.
Option C is correct.
A persitent failure requires human intervention.
After the issue is remediated, the indexer needs to be reset in order to start the scheduled execution.
Option D is incorrect because this command is used to create a new indexer.
However, in this scenario the indexer is already created.
Reference:
To learn more about how to monitor indexer status, use the link given below:
The correct answer is C. POST https://[service name].search.windows.net/indexers/[indexer name]/reset?api-version=2020-06-30.
When an Azure Search indexer fails with a status of persistentFailure, it means that the indexer has encountered a problem that prevents it from processing further. This status is typically caused by an issue with the data source, a failure to access a resource required for indexing, or an error in the indexing pipeline.
To restart the indexer's scheduled execution, you need to reset the indexer using the REST API call. The correct REST API call to restart the scheduled execution is a POST request to the following endpoint:
POST https://[service name].search.windows.net/indexers/[indexer name]/reset?api-version=2020-06-30
This REST API call will reset the indexer's status and restart the scheduled execution. It's important to note that resetting the indexer will also reset the indexer's tracking state, which means that any previously indexed documents will need to be reprocessed.
The other answer choices are incorrect:
A. GET https://[service name].search.windows.net/indexers/[indexer name]/status?api-version=2020-06-30 This REST API call retrieves the current status of the indexer. It doesn't restart the scheduled execution.
B. PUT https://[service name].search.windows.net/indexers/[indexer name]?api-version=2020-06-30 This REST API call updates the configuration of the indexer. It doesn't restart the scheduled execution.
D. POST https://[service name].search.windows.net/indexers?api-version=2020-06-30 This REST API call creates a new indexer. It doesn't restart the scheduled execution.