Docsity

Guidewire Platform Performance Optimization and Development Standards, Exams of Search Engine Optimization and Advertising (SEO and SEM)

Toggle sidebar
bg1
Page 1 of 35
GUIDEWIRE BEST PRACTICES EXAM NEWEST
QUESTIONS AND
CORRECT DETAILED ANSWERS
Guidewire Profiler is used to - ✔✔✔ Correct Answer > Investigate
performance problems in the production environment
Help find and diagnose problems with database queries, rules, and other
Gosu code
Detect problems early by developers
Guidewire Profiler
Web profiler can - ✔✔✔ Correct Answer > Be used for core product user
interface performance analysis
Capture current user session in which web profiler enabled
Capture one set of results from receipt of a request through sending
response while enabled
Save the web profile in user session (gone when user logs out) Track
where time is spent on server:
Guidewire application code
Response time of calls to database, external services, and so on
Guidewire Profiler
DO NOT COPY
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23

Partial preview of the text

Download Guidewire Platform Performance Optimization and Development Standards and more Exams Search Engine Optimization and Advertising (SEO and SEM) in PDF only on Docsity!

GUIDEWIRE BEST PRACTICES EXAM NEWEST

QUESTIONS AND

CORRECT DETAILED ANSWERS

Guidewire Profiler is used to - ✔✔✔ Correct Answer > Investigate performance problems in the production environment Help find and diagnose problems with database queries, rules, and other Gosu code Detect problems early by developers Guidewire Profiler Web profiler can - ✔✔✔ Correct Answer > Be used for core product user interface performance analysis Capture current user session in which web profiler enabled Capture one set of results from receipt of a request through sending response while enabled Save the web profile in user session (gone when user logs out) Track where time is spent on server: Guidewire application code Response time of calls to database, external services, and so on Guidewire Profiler

DO NOT COPY

Web profiler cannot - ✔✔✔ Correct Answer > Track Browser time, Network latency or Consumed web services Guidewire Profiler Entry-point profiler is used for integration-related performance analysis on - ✔✔✔ Correct Answer > Batch processes Work queues Message destinations REST operations Web services Startableplugins Guidewire Profiler Entry-point profiler captures - ✔✔✔ Correct Answer > All runs of targeted components across all nodes Displays separate results for each call/run on each node Saves results in database Guidewire Profiler is accessed 2 ways - ✔✔✔ Correct Answer > Navigate to Server Tools (Alt+Shift+T), select Profiler from left pane Popup from an application screen (Alt+Shift+P)

DO NOT COPY

Answer > Limit each Profile to a narrow focus of interactions Look beyond timings (the H2 database is fast and not always reflective of a production environment) Focus on anti-patterns, poorly written, or multiple execution of queries Test thoroughly using a representative data set to simulate scaling Guidewire Profiler - Entry Point Profiles and Profile Tags Profiling custom Gosu code requires these two things - ✔✔✔ Correct Answer > Creating custom profiler tags Adding the tags to the custom code Guidewire Profiler - Entry Point Profiles and Profile Tags Profiler Tags - ✔✔✔ Correct Answer > Are defined in a separate class as public static final variables Improve the ability to analyze performance issues Guidewire Profiler - Entry Point Profiles and Profile Tags Use the Profiler.push("profiler_tag") to - ✔✔✔ Correct Answer > push a frame onto the stack to begin profiling Guidewire Profiler - Entry Point Profiles and Profile Tags Use the Profiler.pop(some_frame) to - ✔✔✔ Correct Answer > pop a frame off the stack to end profiling

DO NOT COPY

Avoid using internal path for your classes - ✔✔✔ Correct Answer > com.guidewire.* should be avoided. These can always be potentially changed or replaced during an upgrade. When referencing typecodes, use the static property on the typelist class instead of the string representation - ✔✔✔ Correct Answer > Use TC_TYPECODE instead of "typecode", example: LossCause.TC_REAREND instead of "rearend" Use the text for logical operators instead of the symbols - ✔✔✔ Correct Answer > Use "and","or", and "not" instead of "&&", "||", and "!" Code placement - ✔✔✔ Correct Answer > 1) Avoid placing code within the CODE tab of a PCF. Create a UI helper class instead

  1. Avoid extending entity enhancements with code supporting UI operations Avoid using deprecated classes and methods - ✔✔✔ Correct Answer > Guidewire will eventually remove deprecated classes and methods. Turn on and run Studio Inspections - ✔✔✔ Correct Answer > These analyze configuration resources

DO NOT COPY

Package naming conventions - ✔✔✔ Correct Answer > Use the format customer.application.featurecategory.feature Customer - company name abbreviation Application- InsuranceSuite application code (pc, bc, cc, suite) Feature Category - major feature (delinquency, configuration, integration) Feature - feature (rating, catastrophe, authentication) Example: si.suite.integration.authentication Class naming conventions - ✔✔✔ Correct Answer > Use UpperCamelCase Do not add _Ext to classes within customer package spaces Function naming conventions - ✔✔✔ Correct Answer > Use lowerCamelCase Use a verb that describes that the function is doing i.e. verifyAddress Do not add _Ext suffix to private functions or enhancements in customer package spaces Variable naming conventions - ✔✔✔ Correct Answer > Member variable names use lowerCamelCase with a leading underscore i.e. _pluginCallbackHandler Local variable names use lowerCamelCase short names that describe the purpose i.e. latestPolicyRevision

DO NOT COPY

Display key naming conventions - ✔✔✔ Correct Answer > Add suffix _Ext too all new display keys Do not modify automatically generated display keys Logging is - ✔✔✔ Correct Answer > The process of recording application actions and state to a secondary interface Logging is used for - ✔✔✔ Correct Answer > Application maintenance and troubleshooting Creating statistics relating to application usage Auditing by capturing significant events Typical events to log are - ✔✔✔ Correct Answer > Success / Failure - a transaction or action has succeeded or failed Recovery - a system went down or connection failed, retried, and recovered Identification - any large functional areas such as integration, rating, reinsurance, and rules Logging components - Logger - ✔✔✔ Correct Answer > has a category and level, sends content to an Appender

DO NOT COPY

When to use: Log important steps and calculations for diagnosing problems Logging Level - Info - ✔✔✔ Correct Answer > Description: Coarsegrained informational messages of progress When to use: Log the occurrence or result of an important event Logging Level - Warn - ✔✔✔ Correct Answer > Description: Indicate a potential problem When to use: The user experience has not been affected Logging Level - Error - ✔✔✔ Correct Answer > Description - Indicate definite problems When to use: The user experience has been affected There are 2 ways to initialize a logger in Gosu - ✔✔✔ Correct Answer > Integration: PLLoggerCategory.INTEGRATION Plugin: PLLoggerCategory.PLUGIN Use sub-level of existing logging category to maintain structure. Example: PLUGIN.MotorVehicleRecord

DO NOT COPY

static var _motorVehiclePluginLogger = LoggerFactory.getLogger(PLLoggerCategory.PLUGIN."MotorVehic leRecord") Logging Format should be - ✔✔✔ Correct Answer > a standard format to simplify analysis of large logs Guarded Logging should be used - ✔✔✔ Correct Answer > To test log level before logging costly messages (those with expensive expressions) Typically used with the DEBUG level Format is - if (_logger.DebugEnabled) { } Not required for parameterized expressions lacking expensive operations, as in: var hello = "Hello" var world = "world" _logger.debug("{}, {}!", hello, world) Logging: Exception Messages - ✔✔✔ Correct Answer > Logged at the ERROR level when user interface is affected

DO NOT COPY

Case-insensitive searches Guidewire Query API Anti-Patterns - Bring back only the data you need by - ✔✔✔ Correct Answer > Avoid filtering query results in memory Avoid filtering query results in the application server Perform filtering in the database Avoid the use of where(), first(), last(), firstWhere(), and lastWhere() Guidewire Query API Anti-Patterns - use dot notation with care because

- ✔✔✔ Correct Answer > accessing foreign keys or array fields retrieve additional entities into memory Guidewire Query API Anti-Patterns - Check for existence of an entity when the number of results is not important by - ✔✔✔ Correct Answer > Verifying the results of a targeted query are not empty Avoiding hasMatch(), countWhere(), and select().Count Guidewire Query API Anti-Patterns - When a count is necessary, let the database count the entities and - ✔✔✔ Correct Answer > Avoid countWhere() Avoid counting collections Avoid iterating over entities from the database to count them Avoid counting entities before accessing them Avoid countWhere() and select().Count

DO NOT COPY

Guidewire Query API Anti-Patterns - Avoid queries to check for new or changed entities, instead - ✔✔✔ Correct Answer > Use Boolean methods getChangedFields, getAddedArrayElements, getChangedArrayElements, and getRemovedArrayElements Use specialized methods that test for new or changed entities when available (Claim.PolicyChanged) Guidewire Query API Anti-Patterns - Avoid queries to access new or changed entities by - ✔✔✔ Correct Answer > Use Boolean methods getChanged, isFieldChanged, isArrayElementAddedOrRemoved, and isArrayElementChanged Check the Gosu API for specialized methods on entities Guidewire Query API Advanced Concepts - Entity queries - ✔✔✔ Correct Answer > should be used unless performance is not adequate Guidewire Query API Advanced Concepts - Row queries - ✔✔✔ Correct Answer > Use a single database query on the main entity and related entities to return only the data columns you select from the database Allow you to use only the values contained the query results Filter the rows returned from the database using query.compare Involve more code maintenance and should only be used when performance issues are encountered with an entity query

DO NOT COPY

Modification to entities returned by queries Certain plugins User interface changes when the UI is in read-only mode Guidewire Bundle Management - Gosu syntax for bundles: Using getCurrent() or newBundle() for - ✔✔✔ Correct Answer > Entities require an explicit commit New entities must be created with the syntax var myEntity = new MyEntity(bundle) Guidewire Bundle Management - Gosu syntax for bundles: Using runWithNewBundle ( \ bundle - > {}) with a code block for - ✔✔✔ Correct Answer > Entities are automatically committed New entities are automatically added to the bundle Options to create with or without a specified user Guidewire Bundle Management - Gosu syntax for bundles: Adding entities to a bundle uses - ✔✔✔ Correct Answer > myEntity = myBundle.add(myEntity) Guidewire Bundle Management - Gosu syntax for bundles: Entities referenced by accessors on entities already in a writable bundle - ✔✔✔ Correct Answer > are also writable

DO NOT COPY

Guidewire Bundle Management - Gosu syntax for bundles: Determine changes/original values in a bundle by using - ✔✔✔ Correct Answer > myEntity.Changed myEntity.isFieldChanged(Entity#FieldName) myEntity.getOriginalValue(Entity#FieldName) Guidewire Bundle Management - Gosu syntax for bundles: Mass updates - ✔✔✔ Correct Answer > Use paging with regular commits for mass updates (for example, in batch processing) Setting the page size: resultObject.setPageSize(1000) Bundle or chunk size: "for (entities in com.google.common.collect.Iterables.partition(resultObject, 250)) {} Use ScriptParameters to determine the optimal Page/Chunk size UI Performance Best Practices 3 examples of expensive expressions are - ✔✔✔ Correct Answer > Multi-step dot paths - exposure.Claim.Catastrophe.ClaimsHistory Array expansion - User.MemberGroups*.DisplayName Collection methods - allMatch(cond) UI Performance Best Practices

DO NOT COPY

Array-backed list view features: - ✔✔✔ Correct Answer > Full set of data reloaded when list view rendered and when paging, sorting, and filtering Paging, sorting, and filtering are enabled when editing Example - an array field ListView Performance Best Practices Query-backed list view features: - ✔✔✔ Correct Answer > Only the first page of data is loaded when the list view is rendered Query is rerun and the first page of data is loaded when paging, sorting, and filtering Paging, sorting, and filtering are disabled when editing Examples - a query processor field, a finder method, a query builder result ListView Performance Best Practices Add columns to list views backed by view entities by - ✔✔✔ Correct Answer > extending the view entity ListView Performance Best Practices Reference the display name of an entity in list views to display the object's name - ✔✔✔ Correct Answer > Referencing the object retrieves the entire object Example - Claim.AssignedUser.DisplayName instead of

DO NOT COPY

Claim.AssignedUser Follow this best practice when the list view is not editable Post On Change and Client Reflection Best Practices PostOnChange - ✔✔✔ Correct Answer > Define on triggering widget from PostOnChange tab Assign value with onChange variableo Avoid using with ListViews Post On Change and Client Reflection Best Practices Reflection - ✔✔✔ Correct Answer > Involves both a listening and a triggering widget (there can be more than one of each) Define on listening widget from Reflection tab Reflect changes on triggering widget(s) Can set these properties on listening widget: Available, Custom, InputMask, and ValueRange Editable and Visible CANNOT be changed Use with ListViews GUnit Testing - A GUnit is - ✔✔✔ Correct Answer > Guidewire unit testing framework, used to configure and run repeatable tests of Gosu code GUnit Testing - GUnits 3 Facts - ✔✔✔ Correct Answer > Available in

DO NOT COPY