CPSA Testing, Debugging and Quality Assurance 2 — Questions and Answers
Question 1: During debugging in Pega, what does setting a Tracer breakpoint allow a developer to do?
- Pause rule execution at a specific point and inspect the current state (Correct answer)
- Restore a prior version of a rule automatically when an error occurs
- Generate a performance report scoped to a single rule type
- Export the current clipboard data to an external JSON file
Correct answer: Pause rule execution at a specific point and inspect the current state
A Tracer breakpoint halts execution when a specified rule is reached, giving the developer an opportunity to inspect clipboard values and diagnose issues before continuing.
Question 2: In Pega, what is a Unit Test Case rule used for?
- Documenting test scenarios for business stakeholder review
- Storing defined inputs and expected outputs for automated rule validation (Correct answer)
- Restricting rule execution to designated test environments only
- Generating guardrail compliance reports for a specific rule
Correct answer: Storing defined inputs and expected outputs for automated rule validation
A Unit Test Case rule captures specific input values and the expected output so the system can automatically run and verify that the associated rule behaves correctly.
Question 3: Which tool in Pega would you use to identify which rules are executed most frequently and consume the most time?
- Application Linter
- Clipboard Tool
- Performance Analyzer (PAL) (Correct answer)
- Healthscan
Correct answer: Performance Analyzer (PAL)
PAL records execution frequency and elapsed time for every rule fired during a request, making it easy to pinpoint the most expensive operations.
Question 4: What does the Pega Application Profiler primarily help developers identify?
- Missing translations in multi-language applications
- Performance bottlenecks and slow-running rules in the application (Correct answer)
- Orphaned rulesets that contain no active rule instances
- User interface rendering inconsistencies across browsers
Correct answer: Performance bottlenecks and slow-running rules in the application
The Application Profiler analyzes rule execution data to surface performance bottlenecks, helping developers optimize slow activities, data transforms, and other rules.
Question 5: In Pega, what happens when a Unit Test Case assertion fails during automated testing?
- The rule is automatically rolled back to its previously saved version
- The test is marked as failed and the discrepancy between actual and expected output is reported (Correct answer)
- The clipboard is cleared and the test case is immediately re-executed
- A Pega Alert notification is sent to the system administrator's queue
Correct answer: The test is marked as failed and the discrepancy between actual and expected output is reported
When an assertion fails, Pega marks that test case as failed and reports the specific difference between the expected and actual values so the developer can investigate.
Question 6: Which Pega mechanism flags violations of recommended development standards to help ensure code quality during development?
- Clipboard Inspector alerts
- Tracer event filters
- Guardrails (Correct answer)
- Data Page refresh strategies
Correct answer: Guardrails
Guardrails are Pega's built-in set of best practice rules that flag coding patterns considered harmful to maintainability, performance, or upgrade compatibility.
Question 7: What is the generally recommended minimum Pega Guardrail compliance score for a production-ready application?
- At least 50%
- At least 70%
- At least 80% (Correct answer)
- Exactly 100%
Correct answer: At least 80%
Pega recommends maintaining a guardrail compliance score of 80% or higher before promoting an application to production to ensure maintainability and upgrade readiness.
During debugging in Pega, what does setting a Tracer breakpoint allow a developer to do?