CPSA Application Rules and Rulesets 3 — Questions and Answers
Question 1: How does Pega determine which version of a rule to use when multiple versions exist across rulesets?
- It searches the ruleset stack from top to bottom and returns the first matching valid rule found (Correct answer)
- It always selects the lowest version to ensure backward compatibility
- It selects the version specified as default in system settings
- It always uses the most recently modified rule regardless of ruleset order
Correct answer: It searches the ruleset stack from top to bottom and returns the first matching valid rule found
Pega resolves rules by traversing the ruleset stack from highest priority (top) downward, stopping at the first valid match.
Question 2: What is a 'ruleset stack' in Pega?
- The ordered list of rulesets searched during rule resolution for an application at runtime (Correct answer)
- A collection of rules grouped by rule type within a single ruleset
- The change history of rule modifications stored for audit and rollback
- A deployment queue holding rulesets awaiting promotion to production
Correct answer: The ordered list of rulesets searched during rule resolution for an application at runtime
The ruleset stack is the ordered sequence of rulesets that Pega traverses when resolving which rule instance to execute.
Question 3: In which direction does Pega search the ruleset stack during rule resolution?
- Top to bottom, stopping at the first matching rule found (Correct answer)
- Bottom to top, prioritizing the most foundational (base) ruleset
- Simultaneously across all rulesets, then ranking results by version number
- Randomly, relying on caching to stabilize the result
Correct answer: Top to bottom, stopping at the first matching rule found
Pega searches from the top of the stack (highest priority application) downward, returning the first valid rule instance encountered.
Question 4: What determines the order of rulesets in a Pega application's ruleset stack?
- The order of rulesets defined in the application record's ruleset list, extended by built-on application rulesets (Correct answer)
- Alphabetical ordering of ruleset names as stored in the repository
- The creation date of each ruleset, with newest rulesets at the top
- The count of rules in each ruleset, with larger rulesets given higher priority
Correct answer: The order of rulesets defined in the application record's ruleset list, extended by built-on application rulesets
The stack is assembled from the application's own ruleset list (in declared order) followed by rulesets from each built-on (prerequisite) application.
Question 5: What does setting a rule's availability to 'Blocked' accomplish in Pega?
- It prevents rule resolution from finding any version of that rule further down the ruleset stack (Correct answer)
- It archives the rule and removes it from all active searches
- It restricts the rule from being edited by operators without the Rule-Admin role
- It schedules the rule for deletion at the next platform maintenance cycle
Correct answer: It prevents rule resolution from finding any version of that rule further down the ruleset stack
Availability set to Blocked stops Pega's rule resolution process, so no lower-priority version of that rule in the stack is found or executed.
Question 6: What does the 'Final' availability setting on a Pega rule signify?
- The rule is available and cannot be overridden by a higher-priority ruleset in the stack (Correct answer)
- The rule has been approved for production and is locked against further changes
- The rule is the last version that will ever be created for that rule name
- The rule is only available in the final (production) environment, not in development
Correct answer: The rule is available and cannot be overridden by a higher-priority ruleset in the stack
A rule set to Final is active and blocks any attempt to create an overriding version in a higher-priority ruleset.
Question 7: Which statement best explains why rule resolution checks the 'Applies To' class before returning a rule?
- It ensures the rule is associated with a class in the current case or data object's class hierarchy (Correct answer)
- It verifies the rule was created by an operator with the correct role
- It checks that the rule version matches the application's declared ruleset version
- It confirms the rule's deployment environment matches the current server tier
Correct answer: It ensures the rule is associated with a class in the current case or data object's class hierarchy
Pega verifies the 'Applies To' class is in the relevant class hierarchy so that only rules applicable to the current object type are returned.
How does Pega determine which version of a rule to use when multiple versions exist across rulesets?