PEGACPSA88V1-QUESTION practice question 6 of 15

A requirement for a hotel reservation case type states that as customers change their room selection, the total cost of the reservation updates. How do you satisfy this requirement ?

Full set: 82 questions
Answer options
A: Configure a Validate rule for the room selection step.
B: Apply a Disable when condition to the total cost field.
C: Add a When condition to the room selection step.
D: Define a declare expression for the total cost field. Correct answer
Correct Answer:
D. Define a declare expression for the total cost field.
Explanation

The requirement is to automatically update a target property (total cost) whenever a source property (room selection) changes. This is the exact function of a Declare Expression. A Declare Expression defines a computational relationship between properties. The Pega Platform's declarative processing network monitors the source properties. When a user changes the room selection, the network automatically re-evaluates the expression and updates the total cost property, ensuring the value is always current without needing explicit procedural calls.

Why Incorrect

A. A Validate rule is used to verify that user input meets specified criteria before the data is submitted, not to perform calculations that update other fields.
B. A "Disable when" condition makes a field read-only based on a specified condition; it does not calculate or set the field's value.
C. A "When" condition is a rule that evaluates to true or false. It is used to control process flow or UI element visibility, not to perform calculations.

References

1. Pega Academy | Certified Pega System Architect (8.8) | Calculations | Declare expressions:

"A declare expression is a rule that defines a relationship between properties. When a source property value changes, the target property value is automatically updated. For example, you can create a declare expression that calculates the total cost of a hotel reservation whenever the user selects or changes their room selection." This directly validates the use of a Declare Expression for the described scenario.

2. Pega Platform 8.8 Documentation | Rule types | Declare Expression form:

"Use this form to define a declarative expression that calculates and updates the value of a target property, based on the values of one or more source properties... The system monitors the source properties. If a value changes, the system automatically updates the target property value." This confirms that Declare Expressions are the designated rule type for automatic, dependency-based calculations.

3. Pega Academy | Certified Pega System Architect (8.8) | Data and integration | Validating case data:

"Validation rules define constraints on data values... to ensure that users enter valid values." This reference clarifies that Validate rules (Option A) are for data integrity checks, not for performing calculations.

Scroll to Top