Guidewire certification · Exam InsuranceSuite-Developer

InsuranceSuite-Developer Mock Exam

Associate Certification - InsuranceSuite Developer - Mammoth Proctored Exam

Free InsuranceSuite-Developer questions on Gosu Phone Number Validation, each with the answer and an explanation.

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

Gosu Phone Number Validation questions

1–1 of 1 free
Question 1 Choose 1
An insurer wants to prevent US phone numbers from containing the string "555" in the prefix (digits 4-6). In addition to a test for country, which validation expression will accomplish this?
Show answerHide answer

Correct answer: C ((phoneOwner.PhoneFields.NationalSubscriberNumber[3..5] as String).equals('555')) ? DisplayKey.get("BadPhoneNumber") : null

Explanation

Answer Option (Which option is correct) C. ((phoneOwner.PhoneFields.NationalSubscriberNumber[3..5] as String).equals('555')) ? DisplayKey.get("BadPhoneNumber") : null
Explanation:

Digits four through six correspond to zero-based positions three through five. The expression must test that precise substring rather than search the entire phone number. The source-selected expression returns a display-key error message on failure and null when the value passes the check.

Verification note: The exact option selection could not be independently verified from accessible official documentation. Relevant official topic links are provided, but some exact configuration or training rules require the product Configuration Guide or Cloud Standards behind sign-in. The source key is retained.

Why the other options are incorrect:

A. ((phoneOwner.PhoneFields.NationalSubscriberNumber[4..6] as String) == '555') ? DisplayKey.get("BadPhoneNumber") : true:
The range starts at index four instead of three. That shifts the checked substring by one digit. It also returns true instead of the source-selected successful null.

B. ((phoneOwner.PhoneFields.NationalSubscriberNumber as String).contains('555')) ? DisplayKey.get("BadPhoneNumber") : null:
contains searches the entire subscriber number. It can reject 555 outside the prohibited prefix. The requirement is limited to digits four through six.

D. (phoneOwner.PhoneFields.NationalSubscriberNumber[3..5].equals('555')) ? DisplayKey.get("BadPhoneNumber") : true:
The positions target the requested prefix. The success branch differs from the selected validation contract. That return value must match what the widget expects.

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 Phone Number Validation

You've seen the free 30% (1 of 1 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