Câu 4: PEGACSSA74V1: Certified Senior System Architect (CSSA) 74V1
To qualify for an instant loan, an applicant must be older than 21 and have a monthly income of at least USD2000. How do you enforce these restrictions?
Nội dung câu hỏi
To qualify for an instant loan, an applicant must be older than 21 and have a monthly income of at least USD2000. How do you enforce these restrictions?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Create a Validate rule with two conditions: one for age and one for income. — đáp án hiện tại
- B. Configure the UI controls to only accept values greater than 21 for age and USD2000 for income.
- C. Create two Edit Validate rules: one for age and one for income.
- D. Create two Validate rules: one for age and one for income.
In Pega business logic and data validation: 1. **Validate Rule (Single Rule with Multiple Conditions):** A **Validate rule** (`Rule-Obj-Validate`) is used to test property values against specific business criteria or expressions when a form/flow action is submitted. Multiple conditions (such as checking both `Age > 21` and `MonthlyIncome >= 2000`) can be combined within a single Validate rule. 2. **Why UI/Edit Validate are inappropriate:** UI control validations only perform basic client-side format checks (not business policy validations), and **Edit Validate** rules are used for matching pattern formatting (like standard postal codes or email syntax) rather than comparative business logic checks like income thresholds.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.