CPSA Business Logic and Decisions 3 — Questions and Answers
Question 1: A Pega architect wants to calculate a discount percentage based on both customer tier and purchase amount. Which rule type handles multiple input columns mapping to a single output?
- Decision Tree
- Decision Table (Correct answer)
- When Rule
- Map Value
Correct answer: Decision Table
A Decision Table supports multiple condition columns (like customer tier and purchase amount) that together determine a single output result.
Question 2: In Pega, what is a 'When' rule primarily used for?
- Calculating derived property values
- Evaluating a Boolean condition to return true or false (Correct answer)
- Routing flow execution to different paths
- Scheduling background processes
Correct answer: Evaluating a Boolean condition to return true or false
A When rule evaluates a condition expression and returns true or false, making it suitable for conditional checks in flows and other rules.
Question 3: Which Pega approach should be used to enforce that a case cannot move to the 'Approved' stage unless the loan amount is less than $500,000?
- Declare Expression
- Validate Rule
- When Rule referenced in a flow connector condition (Correct answer)
- Map Value
Correct answer: When Rule referenced in a flow connector condition
A When rule evaluating the loan amount condition can be referenced on a flow connector to gate transition to the Approved stage.
Question 4: What is the key difference between a Decision Table and a Map Value rule in Pega?
- Decision Tables support Boolean logic; Map Value only does arithmetic
- Map Value maps a single input to a single output via a lookup table; Decision Tables support complex multi-column conditions (Correct answer)
- Map Value can call subrules; Decision Tables cannot
- Decision Tables are for data transforms only; Map Value is for UI logic
Correct answer: Map Value maps a single input to a single output via a lookup table; Decision Tables support complex multi-column conditions
Map Value provides simple single-input-to-output lookups, while Decision Tables support complex multi-column condition logic.
Question 5: In a Pega Decision Tree, what does a 'leaf node' represent?
- A branching condition to evaluate
- The final result or action returned when a branch is followed to its end (Correct answer)
- A reference to an external data source
- A loop that re-evaluates conditions
Correct answer: The final result or action returned when a branch is followed to its end
A leaf node in a Decision Tree is the terminal node that returns the final result when all branch conditions leading to it are satisfied.
Question 6: A Pega developer needs logic that fires whenever a specific property is updated to keep a calculated field current. Which rule type should be used?
- Activity
- Declare Expression (Correct answer)
- Validate Rule
- Decision Table
Correct answer: Declare Expression
Declare Expressions are triggered automatically when their source properties change, keeping the target property value always up to date.
Question 7: Which Pega rule type is MOST appropriate for implementing an underwriting decision that requires evaluating over 50 different combinations of applicant attributes?
- When Rule
- Decision Table (Correct answer)
- Declare Constraint
- Validation Rule
Correct answer: Decision Table
Decision Tables efficiently handle large numbers of condition combinations in a structured grid format, making them ideal for complex underwriting logic.
A Pega architect wants to calculate a discount percentage based on both customer tier and purchase amount.
Which rule type handles multiple input columns mapping to a single output?