CPSA Business Logic and Decisions 2 — Questions and Answers
Question 1: In Pega, a Decision Table returns a single result based on conditions. What happens when multiple rows in a Decision Table match the input conditions?
- All matching rows are returned as a list
- The first matching row in the table is returned (Correct answer)
- Pega throws a runtime exception
- The last matching row in the table is returned
Correct answer: The first matching row in the table is returned
Decision Tables return the result of the first matching row, evaluating rows top to bottom and stopping at the first match.
Question 2: Which Pega construct is best suited when you need to execute different sets of activities based on a property value at runtime?
- Decision Tree (Correct answer)
- Map Value
- When Rule
- Router
Correct answer: Decision Tree
A Decision Tree evaluates conditions in a branching structure and can route execution logic based on property values at runtime.
Question 3: What is the primary purpose of the 'Otherwise' row in a Pega Decision Table?
- To define the default result when no other row matches (Correct answer)
- To handle null input values only
- To trigger an error flow when conditions are invalid
- To combine results from multiple matching rows
Correct answer: To define the default result when no other row matches
The 'Otherwise' row defines a fallback default result that is returned when no other row in the Decision Table matches the input conditions.
Question 4: A business analyst needs to evaluate mortgage eligibility based on credit score ranges (e.g., 300-579, 580-669, 670-739, 740+). Which Pega rule type is most appropriate?
- When Rule
- Decision Tree
- Decision Table (Correct answer)
- Declare Expression
Correct answer: Decision Table
A Decision Table is ideal for range-based evaluations where rows map input value ranges to specific output results.
Question 5: In Pega, which of the following is TRUE about Declare Expressions?
- They are triggered manually by activities
- They automatically recalculate property values when dependent properties change (Correct answer)
- They only execute during case creation
- They require a scheduled job to run
Correct answer: They automatically recalculate property values when dependent properties change
Declare Expressions automatically recalculate a target property's value whenever the source properties they depend on are changed.
Question 6: When configuring a Decision Table in Pega, what does setting a column to 'Any' mean?
- The column is ignored in evaluation and always matches (Correct answer)
- The column must have a non-null value
- The column requires an exact string match
- The column triggers a subrule evaluation
Correct answer: The column is ignored in evaluation and always matches
Setting a Decision Table column condition to 'Any' means that column is not evaluated and will match regardless of its value.
Question 7: Which Pega feature allows you to define business logic that applies automatically across all cases of a given class without being explicitly called?
- Activity
- When Rule
- Declare Constraint (Correct answer)
- Decision Table
Correct answer: Declare Constraint
Declare Constraints define validation rules that are automatically enforced on class instances without needing to be explicitly invoked.
In Pega, a Decision Table returns a single result based on conditions.
What happens when multiple rows in a Decision Table match the input conditions?