Microsoft Power Platform Developer — Question 32
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result these questions will not appear on the review screen.
You are designing an integration that sends created records from a custom Dataverse table to an exposed REST API.
When the REST API is unavailable, you must be able to retry if the response status code is 500.
You need to select a solution that meets the requirement.
Solution: Register a synchronous plug-in that makes an HTTP request to the REST API. Raise an InvalidPluginExecutionException when the request fails.
Does the solution meet the goal?
Answer options
- A. Yes
- B. No
Correct answer: B
Explanation
The proposed solution does not meet the goal because raising an InvalidPluginExecutionException does not facilitate a retry mechanism for handling a 500 status code. Instead, it terminates the execution, preventing any retries from occurring. A more appropriate approach would involve implementing a retry logic that specifically handles the 500 status code to allow for repeated attempts to connect to the REST API.