1/80
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
To encapsulate data and code for a specific function
What is the purpose of a Gosu class?
Avoid referencing typecodes using a string representation of the typecode value
Which of the following is a Gosu best practice?
Put a closing curly brace on its own line after the last statement in a block
Which of the following is a Gosu best practice?
Arguments must be a Gosu block expression
Which is true of all arguments used by array methods?
Arguments must be an expression of a condition
Which is true of all arguments used by array methods?
where(condition)
Which array method is used to retrieve a target array of matching members?
DisplayName
What property points to the default entity name type of an object?
Custom entities added to the data model, if the names of the entities are displayed on the user interface
For which entities do you need to create an entity name file?
Entities whose display names are referenced in the user interface but do not already have entity names
For which entities do you need to create an entity name file?
Are centered around a business process such as assignment or validation
Which characteristic is true of all rule set categories?
Consist of one or more rule sets
Which characteristic is true of all rule set categories?
Assignment rule sets are “exit after first action” rule sets.
Which statement describes rule sets?
Every rule set is tied to an entity, known as the root entity.
Which statement describes rule sets?
Validation rule sets are “execute all” rule sets.
Which statement describes rule sets?
Preupdate rules do not run a second time on objects that were modified during the initial rule execution.
Which statement describes preupdate rules?
Preupdate rules typically execute before rules in the Validation rule set category.
Which statement describes preupdate rules?
Validatable
Which attribute must be set in the metadata of an entity to trigger a preupdate rule?
Often used to log method entry and exit.
What logging level is TRACE used for?
Helps diagnose problems if a section of code does not perform as expected.
What logging level is DEBUG used for?
Indicated a potential problem that does not affect the user experience.
What logging level is WARN used for?
Indicated a potential problem that does affects the user experience.
What logging level is ERROR used for?
Failure
Which event should be logged?
Identification
Which event should be logged?
Recovery
Which event should be logged?
Success
Which event should be logged?
Which statement violates a best pracice for using logging levels?
If the code cannot recover, log exception information at the ERROR level.
Which statement describes best practices for logging exceptions?
If the exception is expected, log it at the WARN or INFO level.
Which statement describes best practices for logging exceptions?
If the user experience is affected, log the exception at the ERROR level.
Which statement describes best practices for logging exceptions?
CLF is a standard format for logging messages using JSON.
Which statement applies to Common Logging Format (CLF)?
CLF uses a structured data format that simplifies the parsing, indexing, and searching of logs.
Which statement applies to Common Logging Format (CLF)?
CLF works with Log4j2 and the Structured Logger.
Which statement applies to Common Logging Format (CLF)?
Context map fields
Which of the following are components of log data?
Core fields
Which of the following are components of log data?
Method names should use a verb that reflects what the method does.
Which of the following statements about Gosu methods is correct?
Restrict the scope of methods to what is required.
Which of the following statements about Gosu methods is correct?
Add new classes to a customer package space.
Which of the following statements about Gosu classes is correct?
To create a classes to a customer package space.
Which of the following statements about Gosu classes is correct?
They are used to calculate a derived value.
Which of the following statements about getter properties is correct?
They can only return a value and should not alter any data.
Which of the following statements about getter properties is correct?
The value given to a setter may or may not be stored in the database.
Which of the following statements about setter properties is correct?
They take a single input value and use it to modify the associated object.
Which of the following statements about setter properties is correct?
User story
Which of the following is used to document requirements for application changes?
Customer enhancements are created under a customer-specific package in Studio.
Which of the following statements regarding creating an enhancement is true?
Place logic related to a PCF file in a UI helper class.
Which statement regarding Gosu code and PCF files is correct?
Constants should be assigned a name using all capital letters with underscores separating words.
Which of the following statements regarding Gosu standards is true?
New interfaces and abstract classes should be added to a customer package space.
Which of the following statements regarding Gosu standards is true?
It validates a simple logical condition for a single field.
Which of the following applies to a validationExpression as opposed to Validation Rules?
Validatable delegate
Which of the following defines reusable functions to show warning or error messages?
When the object are not in an array
In which of the following scenarios should a Gosu query be used?
What restriction to apply
Which criteria may be specified in a query object?
Which entity to query
Which criteria may be specified in a query object?
select
Which method is used to access query results?
make
Which method is used to create a query?
Answering questions about performance.
What can the contextual information embedded in queries help with?
getCountLimitedBy(x)
Which of the following method performs better than .Count to check for results without retrieving any data?
isEmpty
Which of the following method performs better than .Count to check for results without retrieving any data?
Filter on the database rather than in memory.
Which of the following statements about filtering data is correct?
Return only the data needed for the current action.
Which of the following statements about filtering data is correct?
Avoid iterating over entities from the database to count.
Which of the following statements about counting entities is correct?
Count entities on the database.
Which of the following statements about counting entities is correct?
The current bundle, then the application server cache, then the database.
When the application calls for an existing entity, what is the sequence in which resources are search to find it?
An in-memory container for entities that represent database rows.
What is a bundle?
The mechanism used by Guidewire InsuranceSuite applications to manage database transactions.
What is a bundle?
Modifications to entities returned from queries
In which of the following contexts is it necessary to explicitly commit a bundle?
Web services that make database changes
In which of the following contexts is it necessary to explicitly commit a bundle?
All changes in the bundle are rolled back
If a single entity in a bundle fails to commit, what occurs?
Do filtering at the database rather than in memory - let the database do what it is good at.
Identify a best practice for Queries.
Modifying columns on which you initially queried repositions the cursor.
Why does paging not work well with some types of modification?
Gosu classes
Which of the following Gosu objects can GUnit tests be written for?
They provide the fastest feedback cycle.
Which of the following statements about unit tests are correct?
They represent the best way to realize return on investment.
Which of the following statements about unit tests are correct?
Fluent assertions
Which of the following methods is preferred for verifying GUnit test results?
testThatReocrdsMatchPolicyJurisdiction
Which of the following test method names follows GUnit best practices?
If no server is running when a test class is executed, Studio will automatically start the server.
Which of the following statements about running GUnit tests is correct?
TestServer can be started prior to running tests so Studio does not have to start the server for every test.
Which of the following statements about running GUnit tests is correct?
Possible test outcomes include success, failure, and error.
Which of the following statements about test results is correct?
The output for failed tests includes the failure reason and the expected and actual results.
Which of the following statements about test results is correct?
All test classes in a suite must be based on the same class type.
Which of the following statements regarding GUnit test suites are correct?
Specify the @Suites annotation on all test classes in a suite.
Which of the following statements regarding GUnit test suites are correct?
It accepts a unique string.
Which statement regarding the @Suites annotation is true?