Exam APD01 All QuestionsBrowse all questions from this 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.

    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
Jacques_Benoit

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

LH1213

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

1234_1234

c is the answer

KarolAndrzej

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

KarolAndrzej

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.

bintojohn

Answer should be C

siddhu_47

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

boo_takoske

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