Data Validation and Transforms Flashcards
7 cards from real CPSA practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Data Validation and Transforms flashcards as text
A developer needs to apply a Data Transform to every case created from a specific case type automatically. Where should the Data Transform be configured?
Answer: In the case type's Creation settings as the 'pyDefault' Data Transform
Setting a Data Transform as the 'pyDefault' in a case type's Creation settings ensures it runs automatically whenever a new case of that type is created.
Which clipboard page does a Data Transform use as its default target when no explicit target page is specified?
Answer: pyWorkPage
When no target page is explicitly specified, a Data Transform defaults to operating on pyWorkPage, the current work object's clipboard page.
An architect wants to validate that a numeric property falls within a specific range (e.g., between 1 and 100). Which rule is best suited for this field-level validation?
Answer: Edit Validate rule with a when condition
An Edit Validate rule is ideal for field-level range checks as it executes when the user leaves the field and can apply custom when conditions.
In a Data Transform, what is the difference between 'Copy' and 'Set' actions?
Answer: 'Copy' duplicates an entire page structure; 'Set' assigns a scalar value or expression
'Copy' is used to duplicate an entire embedded page or page structure, while 'Set' assigns a single value or expression result to a scalar property.
When does Pega execute the 'pyDefault' Data Transform in relation to other initialization logic?
Answer: Before the New flow runs
The pyDefault Data Transform runs before the New flow starts, setting initial property values on the work object.
Which statement about Validate rules and security is correct in Pega?
Answer: Validate rules run server-side and cannot be bypassed by UI manipulation
Pega's Validate rules execute server-side during flow action submission, making them tamper-proof against client-side manipulation.
A developer uses a Data Transform to call 'Append and Map to' on a page list. What is the index of the newly created page list entry immediately after the action executes?
Answer: The last index in the list (count of existing entries + 1)
'Append and Map to' always adds the new entry at the end of the list, so its index equals the previous count plus one.