CPSA Data Modeling and Properties 2 — Questions and Answers
Question 1: A developer needs to store a collection of address records where each address can be retrieved by a unique key such as 'Home' or 'Work'. Which property type is most appropriate?
- Page List
- Page Group (Correct answer)
- Value List
- Value Group
Correct answer: Page Group
Page Group stores a collection of embedded pages indexed by a unique string key, making it ideal for keyed address lookups like 'Home' or 'Work'.
Question 2: Which Pega property mode ensures that a user cannot modify a field value on a screen while still displaying it?
- Optional
- Required
- Read-only (Correct answer)
- Hidden
Correct answer: Read-only
Read-only mode displays the property value on the UI but prevents the user from editing it.
Question 3: A Single Value property of type 'Decimal' is set to store currency. Which Pega property type setting is used to define the number of decimal places displayed?
- Format string (Correct answer)
- Precision
- Scale
- Display format
Correct answer: Format string
The Format string setting on a Decimal property controls how the value is displayed, including the number of decimal places.
Question 4: When a property is defined on a parent class and also defined with the same name on a child class, which definition takes effect for instances of the child class?
- The parent class definition always takes precedence
- The child class definition overrides the parent (Correct answer)
- Both definitions merge together
- A runtime error occurs due to the conflict
Correct answer: The child class definition overrides the parent
In Pega's class hierarchy, a property defined on a child class overrides the same-named property inherited from a parent class.
Question 5: Which property type should be used to store a simple list of phone numbers where each entry is a plain text value?
- Page List
- Page Group
- Value List (Correct answer)
- Value Group
Correct answer: Value List
Value List stores an ordered collection of single scalar values, which is appropriate for a list of plain text phone numbers.
Question 6: A developer wants a property that is automatically set to the current operator's ID when a case is created. Which auto-populate option achieves this?
- Use function (Correct answer)
- Use constant
- Use default value
- Use when rule
Correct answer: Use function
The 'Use function' auto-populate option can call built-in functions such as @GetCurrentOperatorID() to populate a property automatically at case creation.
Question 7: In Pega, a Page property defined on a work class stores what?
- A reference to an external database row
- An embedded single-page object with its own set of properties (Correct answer)
- A list of pages indexed numerically
- A scalar value formatted as JSON
Correct answer: An embedded single-page object with its own set of properties
A Page property embeds a single structured page within the parent page, containing its own child properties.
A developer needs to store a collection of address records where each address can be retrieved by a unique key such as 'Home' or 'Work'.
Which property type is most appropriate?