PL-400 Exam QuestionsBrowse all questions from this exam

PL-400 Exam - Question 8


A company plans to create an order processing app. When orders are created, the app will perform complex business logic and integrate with several external systems.

Orders that have a large number of line items may take up to six minutes to complete. Processing for each order must be completed in one operation to avoid leaving records in an incomplete state.

You need to recommend a solution for the company.

What should you recommend?

Show Answer
Correct Answer: C

Given the constraints of the problem, the solution must handle potentially long-running operations up to six minutes without leaving records in an incomplete state. Since processing must be completed in one operation, an asynchronous mechanism that can handle long-running transactions is necessary. An asynchronous workflow does not guarantee the operation will complete in one session. Similarly, real-time workflows and custom actions have a timeout that makes them unsuitable for operations exceeding two minutes. Webhooks connecting to an Azure Function are capable of handling longer durations and complex business logic and providing the necessary level of integration with external systems. Thus, a webhook that connects to an Azure Function is the best recommendation for this scenario.

Discussion

28 comments
Sign in to comment
BunkMoreland
Mar 17, 2022

Definitely C. Custom actions have a 2 min timeout. This can be implemented using webhook and Azure function where the Azure function uses batch operations Web API which enables transactional operations and can run more than 2 mins https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/execute-batch-operations-using-web-api

ViipiinTyagiOption: C
Jun 1, 2022

C seems correct

gmanunta81
Sep 5, 2023

I checked also in measure up website teh solution is C webhook and azure functions

omar1988
Mar 4, 2024

what answer is the right answer ? most of websites saying its a realtime and you guys saying here webhook its really confusing and i dont know how i can pass if this website answering wrong or right

Hugolini
Feb 20, 2022

C is the right answer. Both plugins and workflows have a 2 minute execution limit.

asnsdvjksdvsdvnklnkldfnkl
Mar 1, 2022

I agree - C is a better option - the plugin and the custom action will have a 2 minute limit. That said the webhook and azure function won't provide transactional rollback - unless it is coded to do so. This is a typical MS BS question.... overly elaborate question set up and then none of the answers are very good.

DenisRossiOption: B
Jul 9, 2023

"Processing for each order must be completed in one operation to avoid leaving records in an incomplete state" Real-time workflow action is the only option that will roll back if it fails and avoid leaving record in an incomplete state.

PL900_Kopi
Jun 29, 2022

What will be the right answer? B or C

MKap
Jul 19, 2022

I too thought the answer was C. But... Yes, I agree workflows and Plugins have a 2 minute time out but real time workflow makes the user wait. Maybe the answer is really B because real time workflow is the only place where the operation will be rolled back. With Azure function, if something fails no roll back will take place.

zarooch
Nov 6, 2022

everyone forgot on-prem? timeouts? what timeouts.. I know I know given the certification and exam context these days, so yeah could be that the given answer is indeed correct.

No_DoubtOption: C
Apr 30, 2023

Due to the 2 min timeout, answer is C

ZBG
Jul 4, 2023

Check out this doc : https://learn.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/create-own-actions?view=op-9-1 Have a look on "Watch Out" section. It says no limit for Custom Action in real time workflow. But below that statement there is a tip "long running operations should be run outside of Crm 365". I would go for B but in real life I would push C as much as I can

MissWangBeHappy
Sep 24, 2023

ChatGPD said D. C is a possible solution, but not best

MissWangBeHappy
Sep 24, 2023

ChatGPD changed mind, should C since D may cause delays in processing if there are a large number of line items to process, which could result in incomplete records.

ziggy1117
Jan 24, 2024

it can never be asynchronous because the requirement said it needs to be done in one operation. asynch means it can be done in many operations running at different times

ziggy1117
Jan 24, 2024

it can never be asynchronous because the requirement said it needs to be done in one operation. asynch means it can be done in many operations running at different times

abbasit
Apr 8, 2022

B will be correct as real-time workflow will rollback all changes in case of failures.

Mooskito
Jun 21, 2022

Answers will be a webhook that connects to an Azure Function.

AyushOberoiOption: C
Jul 17, 2022

Answer is C

vinesantanna
Jul 22, 2022

My guess is C too.

Tester888888Option: C
Oct 20, 2022

C due to the 2min timeout.

Anks123
Jan 13, 2023

Answer should be: A. an asynchronous workflow that uses a custom workflow activity Async workflow has no timeout and custom workflow activity runs in a transaction.

MuzeraOption: C
Jan 26, 2023

My guess: C

myisafeOption: B
Mar 1, 2023

C looks overkill with azure function. this is power platform exam. not azure.

No_Doubt
Apr 30, 2023

A webhook is registered using the plugin registration tool, what's the problem?

gmanunta81
Sep 22, 2023

it is not correct in my opinion

FyrusOption: C
May 30, 2023

2 min timeout for plugins, CWA etc... You can go with C by just excluding the other 3 options

AmeenOption: C
Jun 29, 2023

C is the correct answer

jkaur
Sep 16, 2023

C should be correct

NyarukouSAMAOption: C
Mar 22, 2024

Sandbox limitation is 2 minutes, and here said that execution could take up to 6 minutes. So it should be C.

4e8b388Option: D
Oct 24, 2024

With plug-ins you can handle complex business logic, integrate with external systems, do synch processing, avoid delays and records are not left in incomplete state. They are native features of the Dynamics 365 and Dataverse, providing seamless integration and execution. Why would you introduce additional layer of complexity and potential points of failure by using webhooks?

4e8b388
Oct 24, 2024

After reconsidering, due to the 2min timeout with plug-ins perhaps webhooks in conjunction with Azure Functions is a better approach.

AnonymousOption: A
Nov 5, 2024

B and C are less suitable because they both imply real-time processing, which might not be ideal for long-running operations and could potentially impact system performance and user experience. While D, an asynchronous plug-in, could be an alternative but might not provide the same level of flexibility and control over the processing flow as a custom workflow activity.

itmaxuserOption: D
Apr 9, 2025

Asynchronous plug-ins can still be designed to ensure complete processing — just not within the same transaction context as the user action. Asynchronous plug-ins: Run outside the main transaction, so the create operation completes first. Still execute the full logic in one operation and can be designed to ensure no partial writes (e.g., via scoped logic or retry mechanisms). Can handle long-running operations (like 6 mins), and are much better for external system integrations. So, what does "completed in one operation" really mean here? It means the business logic must be completed as a cohesive unit — it doesn’t necessarily mean it must be transactional or synchronous. The key is ensuring no partial data, not that the process must finish before the create completes.

5f14337Option: D
Apr 20, 2025

synchronous plug-ins run in the background and support long-running operations (up to 2 minutes per execution cycle, but can chain/queue for more). Ideal for: Heavy business logic External system integration (e.g., via web services) Error handling and retries Since they execute outside the main transaction, they avoid blocking the UI and won’t timeout like synchronous plug-ins (which have a strict 2-minute timeout limit). You can use batching or queues to handle more complex or multi-stage orders safely.