CPSA Rules Configuration & Business Logic Implementation 3 — Questions and Answers
Question 1: In Pega, a 'When' rule returns which type of value?
- A numeric score
- A true/false Boolean result (Correct answer)
- A page reference
- A text string
Correct answer: A true/false Boolean result
When rules evaluate a set of conditions and return a Boolean (true or false), making them suitable for branching logic and visibility conditions.
Question 2: Which Pega mechanism allows rule changes made in a child class to override the parent class rule without modifying the parent?
- Rule delegation
- Rule override (specialization) (Correct answer)
- Ruleset locking
- Branch rulesets
Correct answer: Rule override (specialization)
Rule overriding (specialization) lets a developer create a rule with the same name in a more specific class, which takes precedence over the parent class version.
Question 3: A Decision Tree in Pega differs from a Decision Table primarily because:
- Decision Trees support multiple output columns; Decision Tables support only one
- Decision Trees evaluate conditions sequentially in branches; Decision Tables evaluate all rows simultaneously (Correct answer)
- Decision Trees are only for numeric results; Decision Tables handle text
- Decision Trees require Java code; Decision Tables do not
Correct answer: Decision Trees evaluate conditions sequentially in branches; Decision Tables evaluate all rows simultaneously
Decision Trees use a branching structure where each node leads to child branches based on a condition, while Decision Tables evaluate rows with multiple condition columns.
Question 4: Which ruleset configuration option prevents developers from viewing or copying rule source code while still allowing rule execution?
- Ruleset locking
- Ruleset encryption (obfuscation) (Correct answer)
- Production level restriction
- Private ruleset
Correct answer: Ruleset encryption (obfuscation)
Ruleset encryption/obfuscation protects intellectual property by making rule source unreadable while allowing the rules to execute at runtime.
Question 5: In Pega, what is the primary purpose of a 'Map Value' rule?
- Maps database columns to Pega properties
- Translates one set of values to another (e.g., code to description) (Correct answer)
- Configures field-level data mapping during import
- Defines property display formats on a section
Correct answer: Translates one set of values to another (e.g., code to description)
Map Value rules translate input values to output values using a lookup table, such as converting a status code to a human-readable description.
Question 6: A developer sets a property's 'Applies To' class to a base class. Which classes can use this property rule?
- Only the exact base class specified
- The base class and all classes that inherit from it (Correct answer)
- Only top-level application classes
- Only classes in the same ruleset
Correct answer: The base class and all classes that inherit from it
A rule defined on a base class is available to that class and all derived (child) classes through Pega's inheritance mechanism.
Question 7: Which Pega rule type is used to enforce referential integrity by preventing deletion of a record that is referenced elsewhere?
- Declare Constraint (Correct answer)
- Validate rule
- Declare Trigger
- When rule
Correct answer: Declare Constraint
Declare Constraint rules enforce data integrity conditions on clipboard pages and can prevent operations that would violate defined constraints.
In Pega, a 'When' rule returns which type of value?