Docsity

PrepIQ webMethods Certified CAF Developer Ultimate Exam, Exams of Technology

Toggle sidebar
bg1
PrepIQ webMethods Certified CAF
Developer Ultimate Exam
**Question 1. Which component in CAF acts as the container for portlets and
defines the overall layout of a page?**
A) View
B) Shell
C) Managed Bean
D) Pagelet
Answer: B
Explanation: A Shell is the top-level layout container that holds pagelets and
portlets, providing the page’s look and navigation structure.
**Question 2. In a CAF project, which XML file declares navigation rules for
OpenUI shells?**
A) faces-config.xml
B) web.xml
C) shell-config.xml
D) application.xml
Answer: C
Explanation: shell-config.xml contains the definitions of OpenUI shells,
including navigation rules and layout settings.
**Question 3. What is the default scope of a Managed Bean defined with the
@ManagedBean annotation without specifying a scope?**
A) request
B) view
C) session
D) application
Answer: A
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
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f

Partial preview of the text

Download PrepIQ webMethods Certified CAF Developer Ultimate Exam and more Exams Technology in PDF only on Docsity!

Developer Ultimate Exam

Question 1. Which component in CAF acts as the container for portlets and defines the overall layout of a page? A) View B) Shell C) Managed Bean D) Pagelet Answer: B Explanation: A Shell is the top-level layout container that holds pagelets and portlets, providing the page’s look and navigation structure. Question 2. In a CAF project, which XML file declares navigation rules for OpenUI shells? A) faces-config.xml B) web.xml C) shell-config.xml D) application.xml Answer: C Explanation: shell-config.xml contains the definitions of OpenUI shells, including navigation rules and layout settings. Question 3. What is the default scope of a Managed Bean defined with the @ManagedBean annotation without specifying a scope? A) request B) view C) session D) application Answer: A

Developer Ultimate Exam

Explanation: When no scope is declared, the bean defaults to request scope, meaning a new instance is created for each HTTP request. Question 4. Which tag library provides the standard CAF UI components such as inputText and commandButton? A) caf_h B) caf_f C) ui D) h Answer: B Explanation: The caf_f tag library mirrors the standard JSF core tags (h:*) and provides CAF-specific extensions for UI components. **Question 5. Which of the following is NOT a valid CAF panel layout control? ** A) panelBlock B) panelGroup C) panelLayout D) panelFlow Answer: D Explanation: panelFlow does not exist; CAF provides panelBlock, panelGroup, and panelLayout for arranging components. Question 6. When configuring a Web Service Connector in CAF, which property determines whether the call is made synchronously? A) asyncMode B) timeout C) operationMode

Developer Ultimate Exam

B) @ManagedProperty C) @PostConstruct D) None – the method is referenced directly in the commandButton’s action attribute Answer: D Explanation: Action methods are referenced by name in the commandButton’s action attribute; no specific annotation is required. Question 10. What is the purpose of the faces-config.xml file in a CAF application? A) Define portlet mappings B) Configure Managed Beans, navigation cases, and converters C) Store UI layout definitions D) List deployed services on Integration Server Answer: B Explanation: faces-config.xml is the central JSF configuration file where Managed Beans, navigation rules, converters, and validators are declared. Question 11. Which of the following best describes the relationship between CAF and OpenUI? A) OpenUI is a replacement for CAF B) CAF provides the runtime while OpenUI adds responsive design capabilities C) OpenUI is a separate framework unrelated to CAF D) CAF and OpenUI are two names for the same technology Answer: B Explanation: OpenUI extends CAF by providing responsive UI components and shell management, enhancing the user experience.

Developer Ultimate Exam

Question 12. Which CAF control would you use to allow a user to select a single value from a predefined list displayed as radio buttons? A) selectOneMenu B) selectOneRadio C) checkboxGroup D) inputText Answer: B Explanation: selectOneRadio renders a set of radio buttons for single-value selection. Question 13. In CAF, what does the term “Portlet Application Archive (PAA)” refer to? A) The compiled Java classes of a Managed Bean B) A ZIP file containing all portlet resources for deployment C) The XML descriptor for page navigation D) A database schema for storing portal data Answer: B Explanation: A PAA is a packaged ZIP that includes portlet definitions, UI files, and configuration, ready to be deployed on MWS. Question 14. Which scope should be used for a Managed Bean that must retain user data across multiple pages within the same session? A) request B) view C) session D) application Answer: C

Developer Ultimate Exam

A) Remote Procedure Calls (RPC) B) Inter-Portlet Communication (IPC) events C) HTTP Sessions D) Shared Managed Beans Answer: B Explanation: IPC uses CAF events and notifications to pass data between portlets asynchronously. Question 18. When using a dataTable component, which attribute specifies the collection to iterate over? A) value B) var C) rows D) collection Answer: A Explanation: The value attribute points to the collection (e.g., List) that the dataTable will iterate through. Question 19. Which Java API does CAF use to interact with the Java Content Repository (JCR) for document management? A) JCR 2.0 (JSR-283) API B) JDBC C) JPA D) DOM Answer: A Explanation: CAF leverages the JCR 2.0 API to store, retrieve, and manage binary content within the repository.

Developer Ultimate Exam

Question 20. Which of the following is the correct way to add a custom JavaScript file to a CAF OpenUI shell? A) Place the .js file in the /resources folder and reference it in shell-config.xml B) Add a

Developer Ultimate Exam

Explanation: dataTable supports built-in pagination, sorting, and row selection, making it ideal for large record sets. Question 26. When configuring a Web Service Connector, which Integration Server service type is typically invoked? A) Flow Service B) Java Service C) Adapter Service D) All of the above can be invoked Answer: D Explanation: The connector can call any IS service type; Flow Services are most common but Java and Adapter services are also supported. Question 27. Which CAF tag is used to embed a third-party JavaScript library such as jQuery? A) caf_h:outputScript B) caf_f:resource C) caf_h:scriptInclude D) caf_f:outputScript Answer: A Explanation: caf_h:outputScript renders a script tag linking to an external JavaScript file. Question 28. Which of the following statements about CAF “Shell Rules” is true? A) They define security ACLs for portlets B) They control which pagelets are displayed for a given user role C) They map URLs to Managed Beans

Developer Ultimate Exam

D) They configure database connections Answer: B Explanation: Shell Rules allow conditional rendering of pagelets based on user roles, preferences, or other criteria. Question 29. What is the primary benefit of using “faces-config.xml” over annotations for Managed Bean configuration? A) Better runtime performance B) Centralized configuration and easier overriding without recompiling code C) Supports more scopes D) Enables automatic bean discovery Answer: B Explanation: XML configuration allows changes without modifying source code, facilitating environment-specific overrides. Question 30. Which CAF control would you use to allow a user to upload a file to the JCR repository? A) caf_f:fileUpload B) caf_f:inputFile C) caf_f:upload D) caf_f:attachmentProvider Answer: B Explanation: inputFile renders a file selection field that can be processed and stored via an Attachment Provider. Question 31. In CAF, which of the following is the correct way to reference a resource bundle for localization? A) myBundle in faces-config.xml

Developer Ultimate Exam

Question 34. Which of the following best describes the purpose of “Managed Bean @PostConstruct” method? A) To initialize bean properties after dependency injection B) To clean up resources before bean destruction C) To handle button click events D) To define navigation outcomes Answer: A Explanation: @PostConstruct marks a method that runs after the bean is constructed and its dependencies are injected. Question 35. In CAF, which component is used to display a non-editable text label bound to a bean property? A) outputText B) inputText C) label D) displayValue Answer: A Explanation: outputText renders read-only text, optionally bound to a bean property via EL. Question 36. Which CAF feature enables automatic generation of client-side validation based on server-side validator definitions? A) Ajax validation B) JSF 2.0 Bean Validation integration C) Custom JavaScript validators only D) No automatic client-side validation exists Answer: B

Developer Ultimate Exam

Explanation: CAF leverages JSF’s Bean Validation (JSR-303) to generate client-side checks when possible. Question 37. Which of the following statements about “Pagelet” in CAF is correct? A) A Pagelet is a reusable fragment that can be placed inside a Shell B) Pagelets are equivalent to Managed Beans C) Pagelets define security ACLs for the entire portal D) Pagelets are only used for navigation menus Answer: A Explanation: Pagelets are modular UI fragments that can be inserted into shells, enabling reuse and composition. Question 38. Which CAF tag is used to create a collapsible panel that can be expanded or collapsed by the user? A) panelBlock collapsible="true" B) panelGroup toggleable="true" C) panelLayout accordion="true" D) panelBlock expandable="true" Answer: A Explanation: panelBlock supports a collapsible attribute that renders a UI element users can toggle. Question 39. When a CAF Managed Bean method throws an exception, which mechanism can be used to display a friendly error message to the user? A) faces-config.xml navigation case with outcome “error” B) component bound to the bean’s facesMessage list

Developer Ultimate Exam

A) It defines how UI components are linked to Managed Bean properties and services B) It stores CSS styles for the application C) It manages database connections D) It configures portlet deployment descriptors Answer: A Explanation: The Binding View provides a visual mapping between UI components, bean properties, and Integration Server services. Question 43. Which of the following is the correct way to declare a CAF Portlet in the portlet.xml descriptor? A) MyPortlet com.softwareag.caf.Portlet B) MyPortlet com.softwareag.caf.CAFPortlet C) MyPortlet com.softwareag.caf.CAFPortlet D) MyPortlet com.caf.Portlet Answer: C Explanation: The standard CAF portlet class is com.softwareag.caf.CAFPortlet, declared in portlet.xml. Question 44. Which of the following is a primary advantage of using AJAX in CAF applications? A) Reduces server load by eliminating HTTP requests B) Enables partial page updates without full page reloads C) Allows offline operation of the portal D) Provides built-in database caching

Developer Ultimate Exam

Answer: B Explanation: AJAX enables asynchronous communication, allowing portions of the UI to refresh independently. Question 45. Which CAF tag is used to iterate over a collection without providing table formatting? A) dataTable B) repeat C) iterator D) ui:repeat Answer: B Explanation: caf_f:repeat iterates over a collection and renders the nested markup for each item. Question 46. In CAF, which of the following can be used to restrict access to a portlet based on user roles? A) Shell Rules with role conditions B) Portlet ACL entries in the MWS console C) Managed Bean code that checks user roles D) All of the above Answer: D Explanation: Access can be controlled via shell rules, MWS ACLs, or programmatic checks in beans. Question 47. Which attribute of the caf_f:inputText tag defines a regular expression pattern that the input must match? A) pattern B) validator

Developer Ultimate Exam

A) Determines whether the pagelet is included in the final HTML output B) Sets the pagelet’s CSS class C) Configures the pagelet’s data source D) Enables caching for the pagelet Answer: A Explanation: The rendered attribute evaluates an EL expression; if false, the pagelet is not rendered. Question 51. Which of the following is NOT a valid CAF event type for inter-portlet communication? A) ActionEvent B) ValueChangeEvent C) NotificationEvent D) PortletEvent Answer: D Explanation: PortletEvent is not a CAF-specific event; CAF uses ActionEvent, ValueChangeEvent, and custom NotificationEvent. Question 52. Which CAF tag attribute enables a component to be refreshed automatically when a bound bean property changes? A) ajaxRefresh="true" B) autoUpdate="true" C) partialSubmit="true" D) render="true" Answer: B Explanation: The autoUpdate attribute (or autoUpdate="true") triggers a re-render when the bound value changes.

Developer Ultimate Exam

Question 53. In CAF, which of the following is the correct way to reference a static resource (e.g., CSS file) stored under /resources/css/style.css? A) #{resource['/css/style.css']} B) #{resource['css/style.css']} C) /resources/css/style.css D) #{facesContext.externalContext.requestContextPath}/resources/css/style.cs s Answer: B Explanation: The EL expression #{resource['css/style.css']} resolves to the resource path under the resources folder. Question 54. Which of the following statements about “CAF Development Preferences” is true? A) They are stored per user in the Designer workspace B) They affect runtime behavior on the server C) They can only be changed by an administrator D) They are defined in the web.xml file Answer: A Explanation: Development preferences are client-side settings stored in the Designer user profile. Question 55. Which of the following CAF tags is used to display a message associated with a specific component (e.g., validation error)? A) caf_f:message B) caf_f:messages C) caf_h:outputLabel D) caf_f:alert