CPSA Rules Configuration & Business Logic Implementation 2 — Questions and Answers
Question 1: In Pega, which rule type is used to define a reusable calculation or transformation that can be invoked from multiple decision rules?
- Function rule (Correct answer)
- Activity rule
- Declare Expression
- Map Value rule
Correct answer: Function rule
Function rules in Pega encapsulate reusable Java-based logic or built-in functions that can be called from decision tables, decision trees, and other rules.
Question 2: Which Pega concept allows a class to inherit rules from multiple parent classes by specifying a class hierarchy?
- Multiple inheritance via pattern inheritance
- Directed inheritance (Correct answer)
- Class group inheritance
- Rule delegation
Correct answer: Directed inheritance
Directed inheritance lets you specify an explicit parent class outside the normal pattern inheritance chain, allowing a class to inherit rules from a chosen class.
Question 3: A business analyst wants to apply a different discount rate based on customer tier WITHOUT writing code. Which rule type best supports this requirement?
- Decision Table (Correct answer)
- When rule
- Activity with Java step
- Declare Trigger
Correct answer: Decision Table
Decision Tables allow business analysts to define condition-action mappings (like tier-based discounts) in a spreadsheet-like interface without code.
Question 4: In Pega's ruleset stack, if the same rule exists in two rulesets, which version takes precedence?
- The rule in the ruleset listed lowest in the stack
- The rule in the ruleset listed highest in the stack (Correct answer)
- The most recently saved version
- The rule with the highest ruleset version number
Correct answer: The rule in the ruleset listed highest in the stack
Pega searches the ruleset stack from top to bottom, so the rule in the highest-listed ruleset takes precedence.
Question 5: Which property mode should you use when a property value must be computed dynamically each time it is accessed rather than stored persistently?
- Single Value
- Page
- Declare Expression (auto-calculated) (Correct answer)
- Value List
Correct answer: Declare Expression (auto-calculated)
Declare Expression rules compute property values automatically when the source properties change, avoiding manual storage of derived data.
Question 6: When configuring a Validate rule in Pega, what is the purpose of the 'Edit Validate' rule versus a standard Validate rule?
- Edit Validate checks field format/type; standard Validate checks cross-field business logic (Correct answer)
- Edit Validate applies only during case creation; Validate applies during resolution
- Edit Validate is for Read-only fields; Validate is for editable fields
- Edit Validate fires on save; Validate fires on submit
Correct answer: Edit Validate checks field format/type; standard Validate checks cross-field business logic
Edit Validate rules check individual field format or type constraints, while Validate rules enforce cross-field or business-level validations.
Question 7: A Pega developer needs to automatically populate a property whenever a related property on the same page changes. Which rule type accomplishes this with no activity needed?
- Declare Trigger
- Declare Expression (Correct answer)
- Declare Index
- Declare Constraint
Correct answer: Declare Expression
Declare Expression rules automatically recalculate a target property whenever its source properties change, without requiring an explicit activity call.
In Pega, which rule type is used to define a reusable calculation or transformation that can be invoked from multiple decision rules?