CPSA Data Validation and Transforms 3 — Questions and Answers
Question 1: Which Pega feature allows you to define field-level validation rules that execute whenever a user tabs out of an input field on a UI form?
- Edit Validate rule (Correct answer)
- Validate rule on a flow action
- Section-level validation
- Activity-based validation
Correct answer: Edit Validate rule
Edit Validate rules are associated with individual properties and fire at the field level when the user leaves an input field.
Question 2: In Pega, when you reference a Data Transform from within another Data Transform, this is called:
- Chaining
- Nesting
- Calling a sub-transform (Correct answer)
- Inheritance
Correct answer: Calling a sub-transform
Referencing one Data Transform from inside another is known as calling a sub-transform, enabling modular and reusable transform logic.
Question 3: A Validate rule is configured with two conditions — one that checks a required field and one that cross-validates two dates. If the first condition fails, what happens to the second condition by default?
- Pega still evaluates the second condition (Correct answer)
- Pega skips all remaining conditions
- Pega throws a system exception
- Pega pauses and waits for user correction
Correct answer: Pega still evaluates the second condition
By default, Pega evaluates all conditions in a Validate rule even if an earlier condition has already failed.
Question 4: Which Data Transform action would you use to remove all existing entries from an embedded page list before populating it with new data?
- Remove
- Clear (Correct answer)
- Delete
- Reset
Correct answer: Clear
The 'Clear' action in a Data Transform empties an embedded page or page list, removing all existing entries before new data is written.
Question 5: What does the 'Map Value' rule do in Pega's data transformation context?
- Translates an input value to a different output value using a lookup table (Correct answer)
- Maps clipboard pages between two case types
- Converts numeric values to their string equivalents
- Replaces null values with default values
Correct answer: Translates an input value to a different output value using a lookup table
A Map Value rule acts as a lookup table that translates specific input values to corresponding output values.
Question 6: Which of the following is a valid scope for a Data Transform in Pega?
- Thread
- Node
- Requestor
- All of the above (Correct answer)
Correct answer: All of the above
Data Transforms can operate on Thread, Node, or Requestor scoped clipboard pages, depending on the target page specified.
Question 7: When configuring a Validate rule, which setting ensures the error message appears next to the specific field that failed validation rather than at the top of the form?
- Setting the 'Message location' to 'Property'
- Checking 'Inline error display' in section settings
- Referencing the property name in the Validate rule message (Correct answer)
- Using an Edit Validate rule instead of a Validate rule
Correct answer: Referencing the property name in the Validate rule message
Referencing the specific property name in the Validate rule message causes Pega to display the error inline next to that field on the form.
Which Pega feature allows you to define field-level validation rules that execute whenever a user tabs out of an input field on a UI form?