Exam PEGACSA72V1 All QuestionsBrowse all questions from this exam
Question 13

You have created a series of forms for a vacation booking process. Declarative expressions are used to calculate values such as the cost of the flight, hotel, car rental, and taxes. The last form includes a field that displays the total amount that will be charged on the users credit card.

How do you configure the calculations so that the total amount is calculated only when the user reaches the last form?

    Correct Answer: B

    The correct configuration in this scenario is to use the backward chaining option for the total amount expression and forward chaining for all other expressions. With backward chaining, the total amount is only calculated when the user reaches the last form where the total amount field is present. Forward chaining would calculate values as soon as their dependencies change, which is not suitable for the requirement of calculating the total amount only at the last step.

Discussion
ClairFraserOption: B

B - Use the backward chaining option for the total amount expression. With backword chaining, only when reaching the total amount field does it calculate.