1.
1. Which of these are considered to be one of the 4 essential Enterprise Integration Patterns used in Guidewire Integration?
Correct Answer(s)
A. File-based (read and write)
B. Shared database
D. Synchronous RPC (remote calls)
Explanation
File-based (read and write), Shared database, and Synchronous RPC (remote calls) are considered to be one of the 4 essential Enterprise Integration Patterns used in Guidewire Integration. These patterns are commonly used to facilitate communication and data exchange between different systems and applications within an enterprise environment. File-based integration involves reading and writing data to files, shared database integration involves sharing a common database for data exchange, and synchronous RPC allows for remote procedure calls between systems. These patterns help to ensure seamless integration and interoperability between various components of an enterprise system.
2.
Which of these are considered GW Integration Mechanisms?
Correct Answer(s)
A. Predefined Plugins
B. "Custom" plugins
C. Guidewire Messaging
Explanation
The correct answer is Predefined Plugins, "Custom" plugins, and Guidewire Messaging. These three options are considered GW Integration Mechanisms because they are all methods or tools that can be used to integrate Guidewire software with other systems or applications. Predefined Plugins are pre-built integration components provided by Guidewire, "Custom" plugins are custom-built integration components developed by users, and Guidewire Messaging is a messaging system specifically designed for Guidewire integrations.
3.
Which of the following are correct statements?
Correct Answer(s)
A. RPC implies a synchronous data transfer / remote call.
D. Web Services are commonly stateless (between calls) in nature.
Explanation
RPC (Remote Procedure Call) is a communication protocol that allows a program on one computer to execute a procedure on a remote computer. It implies a synchronous data transfer or remote call because the calling program waits for a response from the remote program before proceeding.
Web Services, on the other hand, can be both synchronous and asynchronous in nature. However, the statement "Web Services are commonly stateless (between calls) in nature" is correct. Stateless means that the server does not store any information about the client between requests, making it easier to scale and manage the service.
4.
A predefined plugin is (in general) configured by:
Correct Answer(s)
A. Editing an XML file.
B. Assigning an implementation class for the plugin.
E. Implementing an interface in a custom class.
Explanation
A predefined plugin is generally configured by editing an XML file to specify the plugin's settings and parameters. Additionally, an implementation class is assigned to the plugin to define its behavior and functionality. Finally, the plugin is implemented by creating a custom class that implements the required interface, allowing the plugin to be used in the desired context.
5.
A GScript Interface differs from a Java interface in that:
Correct Answer(s)
A. The implementing class must declare override on all interface methods, (whereas this is optional in Java).
B. A GScript interface must be implemented in GScript.
E. GScript can package function implementations (for non-interface functions) with an interface, Java cannot.
Explanation
In GScript, the implementing class is required to declare the "override" keyword on all interface methods, whereas in Java, this is optional. This means that in GScript, the implementing class must explicitly indicate that it is overriding the methods from the interface. Additionally, a GScript interface must be implemented in GScript, while a Java interface must be implemented in Java. Another difference is that GScript allows for packaging function implementations with an interface, even for non-interface functions, whereas Java does not have this capability.
6.
The purpose or meaning of a GScript block can be described as:
Correct Answer(s)
A. Similar to the Java concept of an "anonymous inner class object", where it's common to have the inner class implementing only a single method.
D. A useful way of a providing code that can be invoked across multiple objects using a Visitor pattern.
E. Run code defined elsewhere in a way that is fully compatible with the Guidewire Transaction framework.
Explanation
The purpose or meaning of a GScript block can be described as similar to the Java concept of an "anonymous inner class object", where it's common to have the inner class implementing only a single method. It is also a useful way of providing code that can be invoked across multiple objects using a Visitor pattern. Additionally, it allows running code defined elsewhere in a way that is fully compatible with the Guidewire Transaction framework.
7.
Which are true about GScript enhancements?
Correct Answer(s)
B. An enhancement is the only way to modify the behavior of an entity by adding additional non-property functionality. This is because there is no entity source code to modify.
C. An enhancement is a convenient way to modify the behavior of a Java class by adding additional non-property functionality. This is because it would be inconvenient and cumbersome to try to re-write the original source code.
Explanation
Enhancements in GScript provide a convenient way to modify the behavior of a Java class by adding additional non-property functionality. This is because there is no entity source code to modify and rewriting the original source code would be inconvenient and cumbersome. Therefore, an enhancement is the only way to add extra functionality to an entity without modifying its source code. Enhanced Java classes with additional functionality can be accessed by both GScript and Java classes anywhere in the JVM.