CPSA - Certified Pega System Architect User Interface Configuration Questions and Answers 1 — Questions and Answers
Question 1: A system architect is designing a user view that must adapt its layout based on the screen size of the device being used. For example, a four-column layout on a desktop should transform into a two-column layout on a tablet and a single-column layout on a mobile phone. Which Pega UI rule or component is primarily configured to achieve this responsive behavior?
- Harness
- Dynamic Layout (Correct answer)
- Skin
- Section
Correct answer: Dynamic Layout
Dynamic Layouts are the fundamental building blocks for creating responsive user interfaces in Pega. They are configured with responsive breakpoints that automatically adjust the layout of fields based on the display width, ensuring an optimal user experience across different devices.
Question 2: To ensure a consistent look and feel across an entire Pega application, a developer needs to define a centralized set of styles for typography, colors, borders, and backgrounds. Which rule type is the most appropriate place to configure these application-wide presentation styles?
- Section
- Harness
- Control
- Skin (Correct answer)
Correct answer: Skin
A Skin rule is used to define the presentation and styling for an entire application. It separates content (defined in sections and harnesses) from its presentation, allowing for consistent branding and a uniform look and feel across all user-facing screens.
Question 3: A developer is building a user form and wants to reuse a specific group of fields, including labels and controls, in multiple parts of the application. Which UI rule is designed specifically for defining a reusable portion of a user form?
- Harness
- Section (Correct answer)
- Layout
- Control
Correct answer: Section
A Section is the primary rule for creating reusable chunks of the user interface. Sections group layouts and controls and can be embedded within other sections or harnesses, promoting modularity and reusability in UI design.
Question 4: In a loan application case, the 'Spouse Information' fields should only be displayed if the applicant selects 'Married' from a 'Marital Status' dropdown. Which configuration feature would a system architect use to implement this functionality?
- A circumstance template
- A 'Refresh Section' action set
- A visibility condition on the layout (Correct answer)
- A format in the Skin rule
Correct answer: A visibility condition on the layout
Dynamic UI behavior, such as showing or hiding fields based on user input, is achieved by configuring visibility conditions. By setting a condition on the layout containing the 'Spouse Information' fields to display only when 'Marital Status' is 'Married', the UI becomes responsive to the user's choices in real-time.
Question 5: Which of the following best describes the primary role of a Harness in the Pega UI structure?
- To define the styling and branding for the application.
- To group a set of fields and controls for reuse.
- To organize the overall structure and content of a user screen or portal. (Correct answer)
- To configure the responsive behavior of a single layout.
Correct answer: To organize the overall structure and content of a user screen or portal.
A Harness acts as the top-level container for a user screen, defining its overall structure. It organizes and contains various sections, layouts, and controls to form a complete user view, such as a work form or a portal.
Question 6: A developer needs to apply a specific, non-standard text style to a label within a section to draw the user's attention. The enterprise-wide skin has been locked. What is the recommended approach to apply this specific style without modifying the application skin?
- Use inline CSS directly in the label's HTML properties.
- Create a new Skin rule just for this one style.
- Reference a helper class or custom CSS class in the control's 'Cell properties' panel. (Correct answer)
- Circumstance the section and apply the style in the circumstanced version.
Correct answer: Reference a helper class or custom CSS class in the control's 'Cell properties' panel.
While a skin defines the overall styling, Pega allows for exceptions by applying helper classes or custom CSS classes to specific elements. This is done via the cell properties panel for the control. This approach provides targeted styling without the need for inline styles (which is a poor practice) or modifying the locked application skin.
A system architect is designing a user view that must adapt its layout based on the screen size of the device being used.
For example, a four-column layout on a desktop should transform into a two-column layout on a tablet and a single-column layout on a mobile phone.
Which Pega UI rule or component is primarily configured to achieve this responsive behavior?