Guidewire certification · Exam InsuranceSuite-Developer

InsuranceSuite-Developer Mock Exam

Associate Certification - InsuranceSuite Developer - Mammoth Proctored Exam

Free InsuranceSuite-Developer questions on Gosu Rule Conditions and Actions, each with the answer and an explanation.

20 questions · 30 minutes · free, no sign-up

Gosu Rule Conditions and Actions questions

1–1 of 1 free
Question 1 Choose 1
Which rule is written in the correct form for a rule which sets the claim segment and leaves the ruleset?
Show answerHide answer

Correct answer: A CONDITION: (claim: entity.Claim) return claim.Segment == null
ACTION: (claim: entity.Claim, actions: gw.rules.Action) claim.Segment = TC_AUTO_LOW; actions.exit()

Explanation

Answer Option (Which option is correct) A. CONDITION: (claim: entity.Claim) return claim.Segment == null
ACTION: (claim: entity.Claim, actions: gw.rules.Action) claim.Segment = TC_AUTO_LOW; actions.exit()
Explanation:

The rule condition returns a boolean and checks whether the claim segment is unset. The action assigns the desired segment and calls the rule action API. Keep the comparison in the condition and the assignment in the action; compare exit behavior with the target rules API when the requirement specifically says to leave the ruleset.

Verification note: The selected rule calls actions.exit(), but the stem specifically says to leave the ruleset. Verify the distinction between exit and exitToNext/exitRuleset against the target rules API.

Why the other options are incorrect:

B. CONDITION: (claim: entity.Claim) if (claim.Segment == null) {claim.Segment = TC_AUTO_LOW}
ACTION: actions.exit():

The condition contains a state assignment. A condition should decide whether the action applies. The mutation belongs in the action.

C. CONDITION: (claim: entity.Claim) return claim.Segment == null
ACTION: (claim: entity.Claim, actions: gw.rules.Action) claim.Segment == TC_AUTO_LOW; actions.exitRuleset():

The action uses equality comparison instead of assignment. It therefore does not set the segment. The exit call cannot repair that missing update.

D. CONDITION: (claim: entity.Claim) return claim.Segment = TC_AUTO_LOW
ACTION: (claim: entity.Claim, actions: gw.rules.Action) actions.exit():

The condition assigns a segment instead of testing the unset state. It does not return the intended predicate. The rule separates the eligibility test from its mutation.

References:

Guidewire-authored PolicyCenter 10.1.2 - Rules and validation signatures

Gosu language project - Operators, loops, functions, and properties

That's the last free question in Gosu Rule Conditions and Actions

You've seen the free 30% (1 of 2 questions). Full access unlocks every question and full-length InsuranceSuite-Developer mock exams, a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the InsuranceSuite-Developer exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real InsuranceSuite-Developer exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full InsuranceSuite-Developer mock exam
  • —questions per mock
  • —time limit
  • 150questions in the bank
  • Newmock on every attempt