Guidewire certification · Exam InsuranceSuite-Developer

InsuranceSuite-Developer Mock Exam

Associate Certification - InsuranceSuite Developer - Mammoth Proctored Exam

Free InsuranceSuite-Developer questions on Gosu Computed Getter Properties, each with the answer and an explanation.

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

Gosu Computed Getter Properties questions

1–1 of 1 free
Question 1 Choose 1
The Cost entity contains the fields TotalPremium and Tax. The application needs to calculate the total cost as a sum of those two fields dynamically and wants to create a reusable solution. Which configuration is appropriate and efficient to achieve this task?
Show answerHide answer

Correct answer: A Add a getter in CostEnhancement: property get TotalCost_Ext() : BigDecimal { return this.TotalPremium + this.Tax }

Explanation

Answer Option (Which option is correct) A. Add a getter in CostEnhancement: property get TotalCost_Ext() : BigDecimal { return this.TotalPremium + this.Tax }
Explanation:

A getter derives a value when it is read and can be reused from multiple callers. This is appropriate for a total calculated from existing amounts or a primary email chosen by a fallback rule. A setter assigns state, and a persisted duplicate of a derived value creates synchronization work.

Why the other options are incorrect:

B. Create an entity enhancement and add: property set TotalCost_Ext(totalCost : BigDecimal){ totalCost = this.TotalPremium + this.Tax }:
A setter accepts an assigned value. This requirement reads a calculated total. A getter returns the sum without assignment.

C. Create an entity extension and add a new field to store the total cost:
A stored total duplicates premium and tax information. It must be updated whenever either component changes. The requested dynamic getter avoids that duplicated state.

D. Calculate the total cost in the value property in the PCF file:
A PCF expression computes the value in one interface location. Other callers cannot reuse that expression directly. The enhancement getter provides a shared property.

References:

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

Guidewire - Query-backed collections and buildBaseQuery

That's the last free question in Gosu Computed Getter Properties

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