nerdexam
Microsoft

PL-400 · Question #422

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…

The correct answer is B. Set the HTTP connection KeepAlive property to false. Setting KeepAlive to false for HTTP connections ensures that a new connection is established for each request, which can prevent timeouts arising from issues with persistent connections to a problematic or slow external web service.

Submitted by miguelv· 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

  • ARegister the plug-in to run synchronously.
  • BSet the HTTP connection KeepAlive property to false.
  • CRegister the plug-in by using isolation mode = none.
  • DAssign the IOrganizationService object to a member variable.

How the community answered

(33 responses)
  • A
    3% (1)
  • B
    76% (25)
  • C
    15% (5)
  • D
    6% (2)

Why each option

Setting `KeepAlive` to `false` for HTTP connections ensures that a new connection is established for each request, which can prevent timeouts arising from issues with persistent connections to a problematic or slow external web service.

ARegister the plug-in to run synchronously.

Registering a synchronous plug-in increases the risk of the *plug-in itself* timing out (2-minute limit) and blocking user operations if the external web service is slow.

BSet the HTTP connection KeepAlive property to false.Correct

When an external web service has issues or responds slowly, a persistent HTTP connection (`KeepAlive = true`) might become stale, hold resources, or experience connection-specific timeouts. By setting `KeepAlive = false`, each request establishes a new connection, potentially mitigating these connection-persistence related timeouts and ensuring more robust communication with a problematic service.

CRegister the plug-in by using isolation mode = none.

Registering a plug-in with `isolation mode = none` is unsupported for Dataverse plug-ins and poses a security risk, offering no solution for external web service timeouts.

DAssign the IOrganizationService object to a member variable.

Assigning `IOrganizationService` to a member variable is a standard coding practice for interacting with Dataverse and does not affect the timeout behavior of external web service requests.

Concept tested: Dataverse plug-in external web service timeout management

Source: https://learn.microsoft.com/en-us/power-apps/developer/dataverse/best-practices/business-logic/external-web-service-callouts

Community Discussion

No community discussion yet for this question.

Full PL-400 Practice