nerdexam
MicrosoftMicrosoft

PL-400 · Question #375

PL-400 Question #375: Real Exam Question with Answer & Explanation

The correct answer is D: Set the HTTP connection KeepAlive property to false.. To mitigate timeouts in a plug-in making multiple external web service requests, especially when the service is slow, setting the HTTP connection's KeepAlive property to false can help prevent issues with persistent connections.

Submitted by jian89· Apr 18, 2026

Question

A company requires a plug-in that makes multiple requests to an external web service. The plug- in must not time out when the web service has issues or is slow to respond. You need to create the plug-in. What should you do?

Options

  • AAssign the IOrganizationService object to a member variable.
  • BRegister the plug-in to run synchronously.
  • CRegister the plug-in step once for each web service request.
  • DSet the HTTP connection KeepAlive property to false.

Explanation

To mitigate timeouts in a plug-in making multiple external web service requests, especially when the service is slow, setting the HTTP connection's KeepAlive property to false can help prevent issues with persistent connections.

Common mistakes.

  • A. Assigning the IOrganizationService object to a member variable is an anti-pattern as IOrganizationService instances are not thread-safe and should be obtained per execution context; it does not affect external web service timeouts.
  • B. Registering the plug-in synchronously means it runs within the transaction and is subject to the Dataverse plug-in execution timeout (typically 2 minutes), increasing the likelihood of a timeout if the external service is slow.
  • C. Registering the plug-in step once for each web service request would not resolve a timeout issue for a single, long-running external call within one plug-in's execution.

Concept tested. Plug-in external service call timeouts

Reference. https://learn.microsoft.com/en-us/power-apps/developer/data-platform/best-practices/business-logic/use-web-services

Community Discussion

No community discussion yet for this question.

Full PL-400 PracticeBrowse All PL-400 Questions