APD01 Exam QuestionsBrowse all questions from this exam

APD01 Exam - Question 14


The following sub-page in a process creates an order in an order system.

The Actions called perform the following steps:

✑ Navigate to New Order "" The application is navigated to a new order screen. There is a wait stage to confirm the navigation is successful "" if this wait stage times out, an exception is configured which will bubble up to this page.

✑ Enter Order Details "" The Order details are entered triggering a "˜Confirm Order' window. At this page, the order has not been submitted. There is a wait stage to confirm the "˜Confirm Order' window has appeared "" if this stage times out, an exception is configured which will bubble up to this page.

✑ Submit Order "" The order is confirmed and placed in the Client's order system. There is a wait stage, for a reference number, configured that the order has been successfully submitted. If this wait stage times out, an exception is configured which will bubble up to this page. There is a known bug in the application which results in the application occasionally freezing when an order is submitted but before the reference number is displayed, thus leaving the user uncertain if the order has been successfully submitted or not.

✑ Get Reference Number "" A resultant reference number is read from the application.

In order to build some resilience into the process, some retry logic is to be added. Which of the below options offers the best retry solution?

A.

B.

C.

D.

Show Answer
Correct Answer:

The best retry solution is Option B. In this context, entering order details and submitting the order are critical stages where failures are most likely to occur due to the known bug in the application causing the system to freeze without providing a reference number. If the process is retried after entering details but before submitting, it minimizes the risk of creating duplicate orders. Option B allows retries before the order submission, thereby ensuring that the process does not proceed to the next stage unless the order details are correctly entered and submitted. This provides a balance between resilience and the prevention of duplicate orders.

Discussion

7 comments
Sign in to comment
boo_takoske
Feb 5, 2021

If it is D, is there a possibility that it will be registered twice?

bintojohn
Oct 5, 2021

Answer should be C

siddhu_47
Oct 19, 2021

In this case, multiple Orders may be created if it fails on Submitting the Order action as they have mentioned that there is a bug in the application. I think B is right as Recover is done only till 'Enter details' and there will not be duplicate orders

KarolAndrzej
Jul 2, 2022

C seems to be the right anwser coz: 1. If there is no reference number the order is not submitted 2. If it freezes leaving us uncertain whether the order went through then we dont care for duplicates that is out of scope of this solution. Or to be worked manually by business side. 3 . the reference number seems to be only for purposes of documentation but as soon as the window with the ref nr appears then we know it went through.

KarolAndrzej
Jul 2, 2022

It is first when we retry at "Get Ref Nr" that we set us up for duplicates in my opinion.

1234_1234
Sep 13, 2022

c is the answer

LH1213
Mar 29, 2023

I think B is the safest option, bc of there is an exception due to the bug in app during the Submit Order stage (no ref number popup), it will get into recover and re-submit the order which will a duplicate

Jacques_Benoit
Aug 28, 2023

D last action read data from application so can go to exception