For a Pega engineering conversation, present work routing as a testable decision table. Two rules can match the same case and route it to different teams unless precedence is explicit.
What to prepare for Pega
Pega describes engineering roles and a workflow platform. The current question-bank filter contains shared material. The exercises below are original software preparation for a workflow-oriented role. Pega engineering careers Pega Platform engineering context
Apply prioritized routing rules to a case
Each rule gives an integer priority, stable rule ID, required tags and destination. Choose the matching rule with the lowest priority number. Break ties by rule ID. A case with no matches goes to review.
def route(tags, rules):
matched = [(priority, key, destination) for priority, key, required, destination in rules if required <= tags]
if not matched:
return (None, 'review')
_, rule, destination = min(matched)
return (rule, destination)
rules = [(2, 'generic', {'claim'}, 'base'), (1, 'special', {'claim', 'special'}, 'expert')]
assert route({'claim', 'special'}, rules) == ('special', 'expert')
assert route({'unknown'}, rules) == (None, 'review')
For r rules and k tags per rule, a scan uses O(rk) expected membership work. Keep the matching rule's identity and version in the decision result so support can explain the outcome. Decide whether overlapping rules at the same priority are legitimate or an authoring error.
A follow-up to work through
Suppose an exceptional high-priority claim can satisfy a general rule and a premium rule. Walk one case with both matches. Rehearse a config rollout that moved a case unintentionally and return the matched rules diff for diagnosis.
def differences(before, after):
return sorted((key for key in before.keys() | after.keys() if before.get(key) != after.get(key)))
assert differences({'case': 'base'}, {'case': 'expert'}) == ['case']
What to bring to a mock interview
Bring one example of externalized business logic. Explain what you would measure across a rule change and how a reviewer confirms that configuration is correct.