Docsity

webMethods Certified CAF Developer Practice Exam Questions, Exams of Technology

Toggle sidebar
bg1
webMethods Certified CAF Developer
Practice Exam
**Question 1.** Which component acts as the runtime container for all CAF applications?
A) webMethods Integration Server
B) My webMethods Server (MWS)
C) webMethods Designer
D) Apache Tomcat
Answer: B
Explanation: MWS provides the servlet container and portal infrastructure where CAF portlets
are executed.
**Question 2.** In CAF architecture, which technology directly renders the UI markup?
A) JavaServer Faces (JSF)
B) webMethods Integration Server services
C) JSR‑286 Portlet API
D) OpenAPI specifications
Answer: A
Explanation: JSF processes Facelets (XHTML) files and generates HTML for the browser.
**Question 3.** Which principle is NOT a core characteristic of composite applications?
A) Modularity
B) Reusability
C) Tight coupling
D) Loose coupling
Answer: C
Explanation: Composite applications aim for loose coupling to enable independent evolution of
components.
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

Partial preview of the text

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

Practice Exam

Question 1. Which component acts as the runtime container for all CAF applications? A) webMethods Integration Server B) My webMethods Server (MWS) C) webMethods Designer D) Apache Tomcat Answer: B Explanation: MWS provides the servlet container and portal infrastructure where CAF portlets are executed. Question 2. In CAF architecture, which technology directly renders the UI markup? A) JavaServer Faces (JSF) B) webMethods Integration Server services C) JSR‑286 Portlet API D) OpenAPI specifications Answer: A Explanation: JSF processes Facelets (XHTML) files and generates HTML for the browser. Question 3. Which principle is NOT a core characteristic of composite applications? A) Modularity B) Reusability C) Tight coupling D) Loose coupling Answer: C Explanation: Composite applications aim for loose coupling to enable independent evolution of components.

Practice Exam

Question 4. Which CAF element defines a reusable UI fragment that can be placed on a page? A) Portlet B) View C) Shell D) Managed Bean Answer: B Explanation: A View encapsulates a Facelet page that can be reused across multiple Portlets. Question 5. In a CAF project, where are navigation rules typically defined? A) web.xml B) faces-config.xml C) pom.xml D) portlet.xml Answer: B Explanation: faces-config.xml contains navigation cases linking views and outcomes. Question 6. Which tag library is used for rendering CAF UI controls? A) h B) f C) caf_h D) ui Answer: C

Practice Exam

Explanation: When no scope is declared, CAF defaults to request scope. Question 10. Which annotation marks a method as an action listener for a command button? A) @ManagedBean B) @PostConstruct C) @ActionListener D) @ActionMethod Answer: D Explanation: @ActionMethod indicates that the method should be invoked when the associated UI command is triggered. Question 11. How does CAF achieve asynchronous communication with an Integration Server service? A) Using a synchronous Web Service Connector B) By invoking the service inside a Java thread C) Configuring the connector with “asynchronous=true” D) Using a JMS queue only Answer: C Explanation: Setting the asynchronous flag on the Web Service Connector enables non‑blocking calls. Question 12. Which file contains the definition of a Web Service Connector in a CAF project? A) connector.xml B) ws-connector-config.xml

Practice Exam

C) web.xml D) integration-config.xml Answer: B Explanation: ws-connector-config.xml stores connector endpoint URLs and authentication details. Question 13. Which of the following is NOT a valid CAF bean scope? A) request B) session C) view D) page Answer: C Explanation: CAF supports request, session, application, and page scopes; “view” is a JSF scope, not directly exposed in CAF. Question 14. When packaging a CAF application, which artifact is generated? A) .war file B) .ear file C) Portlet Application Archive (.paa) D) .jar file Answer: C Explanation: CAF applications are packaged as .paa files for deployment to MWS. Question 15. In MWS, which component defines the overall layout and theme of a portal page? A) Portlet

Practice Exam

B) caf_f:actionListener C) caf_h:commandButton with onclick attribute D) caf_h:ajax Answer: C Explanation: The standard HTML onclick attribute can be added to caf_h:commandButton for custom scripts. Question 19. What is the purpose of a Converter in CAF? A) Validate input data B) Transform data between UI and bean types C) Provide layout styling D) Manage navigation rules Answer: B Explanation: Converters convert between String representations in the UI and typed bean properties. Question 20. Which validator would you use to ensure a numeric field contains a value between 1 and 100? A) caf_h:requiredValidator B) caf_f:rangeValidator C) caf_h:numericValidator D) caf_h:customValidator Answer: B Explanation: rangeValidator checks that a numeric input falls within a specified min and max.

Practice Exam

Question 21. In CAF, which component is responsible for binding UI components to Managed Bean properties? A) Binding View B) Navigation Handler C) Lifecycle Listener D) Portlet Descriptor Answer: A Explanation: The Binding View defines the mappings between UI components and bean properties. Question 22. Which JSR defines the standard for portlet containers? A) JSR‑ 181 B) JSR‑ 168 C) JSR‑ 303 D) JSR‑ 250 Answer: B Explanation: JSR‑168 (and its successor JSR‑286) defines the Portlet API. Question 23. How does CAF differ from a standard JSR‑168 portlet? A) CAF uses JSP instead of Facelets B) CAF provides its own tag libraries and managed bean integration C) CAF does not support AJAX D) CAF runs on a separate server from MWS Answer: B Explanation: CAF extends the portlet model with its own UI tags, bean management, and AJAX support.

Practice Exam

Explanation: panelCanvas is not a CAF-provided layout component. Question 27. When configuring a Managed Bean in faces-config.xml, which element specifies the bean class? A) B) C) D) Answer: C Explanation: defines the fully qualified Java class for the bean. Question 28. Which annotation can be used as an alternative to faces-config.xml for declaring a Managed Bean? A) @WebServlet B) @ManagedBean C) @Component D) @Controller Answer: B Explanation: @ManagedBean (javax.faces.bean.ManagedBean) registers the bean without XML configuration. Question 29. What is the effect of setting a Managed Bean’s scope to “application”? A) One instance per HTTP request B) One instance per user session C) One shared instance for the entire MWS JVM D) No instance is created automatically

Practice Exam

Answer: C Explanation: Application scope beans are singleton objects shared across all users and sessions. Question 30. Which CAF control would you choose to display a paginated list of records fetched from an Integration Server service? A) caf_h:repeat B) caf_h:dataTable with pagination enabled C) caf_h:panelGroup D) caf_h:inputText Answer: B Explanation: dataTable supports pagination, sorting, and dynamic data binding. Question 31. Which feature allows a CAF Portlet to publish an event that other Portlets on the same page can consume? A) Portlet Preferences B) CAF Events and Notifications C) Managed Bean references D) URL parameters Answer: B Explanation: CAF Events enable inter‑portlet communication within a page. Question 32. In CAF, what is the default HTTP method used by a commandButton to submit a form? A) GET B) POST C) PUT

Practice Exam

C) DEBUG

D) ERROR

Answer: C Explanation: DEBUG logs include detailed stack traces and bean lifecycle events. Question 36. Which of the following best describes the purpose of a “Shell Rule” in OpenUI? A) To define security permissions for a portlet B) To map URLs to CAF Views C) To apply CSS/JS and layout to a set of pages D) To configure database connections Answer: C Explanation: Shell Rules specify styling and layout assets applied to pages using a particular shell. Question 37. Which CAF component is primarily responsible for handling file uploads? A) caf_h:inputFile B) caf_h:commandButton C) caf_f:converterDateTime D) caf_h:dataTable Answer: A Explanation: inputFile renders an HTML file input and integrates with the underlying JCR provider for storage. Question 38. When integrating with the Java Content Repository (JCR) in CAF, which service provides the API for document management?

Practice Exam

A) Document Service B) Content Management Service (CMS) C) JCR Provider Service D) File Transfer Service Answer: C Explanation: The JCR Provider Service enables CRUD operations on repository nodes and binary content. Question 39. Which of the following is NOT a valid way to invoke an Integration Server flow from a CAF Managed Bean? A) Using a Web Service Connector B) Directly calling the flow’s Java class (if generated) C) Using the IS REST API via HTTP client D) Using a JDBC call to the IS database Answer: D Explanation: IS flows are not invoked via JDBC; they require web service, REST, or generated Java proxies. Question 40. Which attribute of caf_h:commandButton controls whether the button submits the form via AJAX? A) ajax="true" B) partialSubmit="true" C) immediate="true" D) async="true" Answer: B Explanation: partialSubmit enables AJAX‑based submission, updating only parts of the page.

Practice Exam

Explanation: Returning a string matching a navigation case defined in faces-config.xml triggers the transition. Question 44. Which CAF feature allows you to define a default locale for the entire application? A) faces-config.xml B) web.xml C) MWS Global Settings → Localization D) Managed Bean @Locale annotation Answer: A Explanation: The element in faces-config.xml sets the default language/region. Question 45. Which tag is used to include a third‑party JavaScript library in a CAF page? A) caf_h:script B) caf_f:resource C) caf_h:outputScript D) caf_h:includeJS Answer: C Explanation: outputScript renders a

Practice Exam

Answer: B Explanation: The Binding View provides a visual editor for establishing component‑bean bindings. Question 47. Which of the following best describes a “Portlet Application Archive” (.paa) file? A) A compressed archive containing portlet classes, configuration, and resources B) A database dump of portal settings C) An XML descriptor for MWS pages D) A Java JAR containing only utility classes Answer: A Explanation: .paa packages all artifacts needed to deploy a CAF portlet to MWS. Question 48. Which of the following statements about CAF event propagation is FALSE? A) Events are delivered synchronously within the same HTTP request B) Events can be consumed by any portlet on the same page that registers a listener C) Events are stored in the session for later processing D) Events support passing a payload object to listeners Answer: C Explanation: CAF events are not persisted; they are processed immediately during the request lifecycle. Question 49. When a Managed Bean throws an unchecked exception during an action method, what is the default behavior in CAF? A) The exception is silently ignored B) The user is redirected to a generic error page

Practice Exam

A) caf_h:panelPopup B) caf_h:dialog C) caf_f:modal D) caf_h:window Answer: A Explanation: panelPopup renders a floating panel that can be shown as a modal dialog. Question 53. What is the purpose of the “faces-config.xml” element? A) To define security roles B) To map outcome strings to target view IDs C) To register custom converters D) To configure AJAX timeouts Answer: B Explanation: navigation-case links an outcome returned by an action method to a specific view. Question 54. Which of the following best describes the “OpenUI Shell” concept? A) A Java class that implements the portlet API B) A reusable layout template that can be applied to multiple pages C) A database schema for storing UI metadata D) A security framework for authentication Answer: B Explanation: OpenUI Shells define common page structure, CSS, and scripts for consistent look‑and‑feel.

Practice Exam

Question 55. In CAF, which tag is used to display validation messages for a specific component? A) caf_h:message B) caf_f:outputLabel C) caf_h:inputText D) caf_f:validatorMessage Answer: A Explanation: message renders the messages associated with a component’s client ID. Question 56. Which of the following is NOT a supported way to secure a CAF portlet? A) Portlet ACLs B) Managed Bean @RolesAllowed annotation C) MWS user authentication D) SSL encryption of the entire portal Answer: B Explanation: @RolesAllowed is a JEE security annotation; CAF relies on MWS ACLs and portal authentication. Question 57. Which CAF tag would you use to create a responsive grid layout that adapts to screen size? A) caf_h:panelGroup with CSS Flexbox classes B) caf_h:panelLayout responsive="true" C) caf_h:panelGrid with width="100%" D) caf_h:panelBlock responsive="yes" Answer: A