oracle.prepaway.1z0-419.v2019-03-08.by.zachary · b. dragging a data control onto a jsf page...

39
https://www.gratisexam.com/ 1z0-419.55q Number : 1z0-419 Passing Score : 800 Time Limit : 120 min https://www.gratisexam.com/ 1z0-419 Oracle Application Development Framework 12c Essentials

Upload: others

Post on 29-May-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

1z0-419.55q

Number: 1z0-419Passing Score: 800Time Limit: 120 min

https://www.gratisexam.com/

1z0-419

Oracle Application Development Framework 12c Essentials

Page 2: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

Exam A

QUESTION 1Which statement is true about the use of data controls in JSF? (Choose the best answer.)

A. Only Oracle ADF Business Components can be exposed as data controls.B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean.C. An XXXpagedef.xml file holds detailed information about a JSF page’s use of data and operations exposed through ADF Data Controls.

D. Data controls eliminate the need to use expression language in your JSF code for binding the UI to data.E. A Databindings.cpx file holds names of managed beans that you map to UI elements.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:Incorrect Answers:E: The DataBindings.cpx file maps individual pages to page definition files and declares which data controls defined in the DataControls.dcx file are being used bythe application.

References: http://www.ibm.com/developerworks/rational/library/10/customized-data-binding-to-third-party-javaserver-faces-controls/

QUESTION 2Which statement is false? (Choose the best answer.)

https://www.gratisexam.com/

A. A panelDashboard has the same rowHeight for all the rows.

B. AFStretchWidth in the style class of a panelGroupLayout causes it to fill the page horizontally.

C. panelGroupLayout cannot have a vertical scroll bar.

D. panelBox stretches if placed inside a panelStretchLayout center facet.

Correct Answer: CSection: (none)Explanation

Page 3: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

Explanation/Reference:Incorrect Answers:A: RowHeight is the height of the rows of the grid layout as a CSS length. panelDashboard stretches the panelBox children to fit within the width of a column and thespecified row height.B: ADF has a default styleClass called "AFStretchWidth" which could auto adjust the table width to let it occupy the whole horizontal space.

References: http://docs.oracle.com/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_panelGroupLayout.html

QUESTION 3Consider a bounded task flow input parameter called employeeId of type oracle.jbo.domain.Number . When defining the parameter in the bounded taskflow, if you do not define a value (destination) for the parameter, where does it get written to? (Choose the best answer.)

A. #{employeeId}

B. #{employee.employeeId}

C. #{pageFlowScope.employeeId}

D. #{pageFlowScope.employee.employeeId}

E. #{backingBeanScope.employeeId}

F. #{backingBeanScope.employee.employeeId}

Correct Answer: CSection: (none)Explanation

Explanation/Reference:For example, the page might specify #{pageFlowScope.empno} as a page parameter and a bounded task flow might specify #{pageFlowScope.employeeID} as thevalue of an input parameter definition.

The from-value on the view activity input page parameter would be #{pageFlowScope.employeeID} and the to-value would be #{pageFlowScope.empno}. Thisenables reuse of both the page definition and bounded task flow because you don't have to redefine parameters for every context in which each is used.

References: https://docs.oracle.com/cd/E23943_01/web.1111/b31974/taskflows_parameters.htm#ADFFD19858

QUESTION 4Which two scopes can you use to make a value in a managed bean available for at least three pages in a task flow? (Choose two.)

A. requestB. pageflowC. view

Page 4: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

D. applicationE. server

Correct Answer: BDSection: (none)Explanation

Explanation/Reference:B: Choose the pageflow scope if you want the managed bean to be accessible across the activities within a task flow. A managed bean that has a pageFlow scopeshares state with pages from the task flow that access it. A managed bean that has a pageFlow scope exists for the life span of the task flow.If another task flow'spage references the managed bean, the managed bean creates a separate instance of this object and adds it to the pageFlow scope of its task flow.

D: The application scope lasts until the application stops. Values that you store in a managed bean with this scope are available to every session and every requestthat uses the application.Avoid using this scope in a task flow because it persists beyond the life span of the task flow.

Incorrect Answers:A: Use request scope when the managed bean does not need to persist longer than the current request.

C: Use this scope for managed bean objects that are needed only within the current view activity and not across view activities. It defines scope for each view portthat ADF Controller manages, for example, a root browser window or an ADF region.The life span of this scope begins and ends when the current viewId of a view port changes. If you specify view, the application retains managed bean objects usedon a page as long as the user continues to interact with the page. These objects are automatically released when the user leaves the page.

E: There is no server scope

References: http://docs.oracle.com/cd/E15586_01/web.1111/b31974/taskflows.htm#CHDFAIGC

QUESTION 5Which three statements are true about declarative features of view objects? (Choose three.)

A. You can use view object bind variables to parameterize a view object where clause with values supplied at run time.

B. By default, a view object instance retrieves all database rows into the view object cache.C. To implement master-detail behavior between two view object instances, you define an association between those instances.D. A view accessor defines a validation expression that you apply to a view object attribute.E. A view object can include attributes whose values are based on SQL expressions rather than mapping directly to a database column.F. A view object definition can include many view criteria but you can choose which view criteria to apply for each view object instance.

Correct Answer: ACESection: (none)

Page 5: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

Explanation

Explanation/Reference:A: Declarative view objects, those are view objects that don't actually specify a hard coded query. Instead ADF creates their query at runtime, and it does it basedon the data that is requested in your UI layer. This can be a huge saver of both DB resources and network resources.

C: Just as with normal mode view objects, you can link view objects that you create in declarative SQL mode to other view objects to form master-detail hierarchiesof any complexity.

E: At runtime, when ADF Business Components works with JDBC to pass a query to the database and retrieve the result, the mechanism to retrieve the data is theSQL query. As an alternative to creating view objects that specify a SQL statement at design time, you can create entity-based view objects that contain no SQLstatements. This capability of the ADF Business Components design time and runtime is known as declarative SQL mode. When the data model developer workswith the wizard or editor for a view object in declarative SQL mode, they require no knowledge of SQL. In declarative SQL mode, the view object's metadata causesthe ADF Business Components runtime to generate the SQL query statements

References: http://docs.oracle.com/cd/E37975_01/web.111240/e16182/bcquerying.htm#ADFFD1992

QUESTION 6Which three statements are true about the default value for an entity object attribute? (Choose three.)

A. It can be a literal value.B. It can be defined by a Groovy expression.C. It can be defined by a SQL select statement.

D. It can be defined by an Expression Language (EL) statement.E. It can be defined by referencing a database stored procedure.

Correct Answer: ABDSection: (none)Explanation

Explanation/Reference:A: The Value field (in the Edit Attribute dialog) allows you to specify a static default value for the attribute when the Value Type is set to Literal. For example, you canset the default value of the ServiceRequest entity object's Status attribute to Open, or set the default value of the User entity object's UserRole attribute to user.

B: You can use a Groovy expression to define a default value for an attribute. This approach is useful if you want to be able to change default values at runtime.

D: Groovy scripting logic is similar to Expression Language (EL)

References: http://docs.oracle.com/cd/E15586_01/web.1111/b31974/bcentities.htm#BABFBJAI

Page 6: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

QUESTION 7A backing bean for a page must hold its value over multiple requests for the current user. Which three bean scopes are applicable? (Choose three.)

A. requestScopeB. backingBeanScopeC. viewScopeD. pageFlowScopeE. sessionScopeF. applicationScope

Correct Answer: CDESection: (none)Explanation

Explanation/Reference:C: View scope: The object is available until the view ID for the current view activity changes. This becomes handy when you use partial page rendering. If you havea dependent list box, you might send a server request to refresh the list box. When a response is returned, the request scope will be gone but the view scope will bestill there.

D: A pageFlow scope exists for each task flow instance and has a lifespan between request and session scope. The lifetime of the scope spans across all pages ina bounded task flow.

E: Session scope: The object is available for the duration of the session, which is user instance-specific. A use case for a session scope bean is a user info beanthat stores information about a user, which is read from the database or an LDAP server, to avoid unnecessary queries.

Incorrect Answers:A: Request scope: The object is available from the time an HTTP request is made until a response is sent back to the client. From another perspective, a requestscope starts with a request to be issued from one view to another for navigation cases that don't perform a redirect but a default server-side forward. The scopespans across all non-view activities that follow the view of interest to the next view activity.

B: The backing bean scope is comparable to the request scope, with the difference in that it exists for a specific client component. In general, all managed beansused in reusable components should be configured to backingBean scope. For example, bounded task flows that are designed to be regions on a page should usethe backingBean scope if more than one instance of the task flow is expected to be on a single page.

F: Application scope: An application scope object is available for the duration of the application and is shared among users. This scope may be used to hold staticobjects that are the same for all users.

References: http://xmlandmore.blogspot.se/2009/10/types-of-scopes-in-fusion-web.html

QUESTION 8Identify three statements that are true about JSF. (Choose three.)

Page 7: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

A. Components are used to define page structure.B. Navigation between pages is defined outside of the JSF page in the metadata.C. Managed beans can have only one of two memory scopes.D. Managed beans can be accessed from more than one page.E. JSF does not support template creation for pages.

Correct Answer: ABDSection: (none)Explanation

Explanation/Reference:Incorrect:Not C: Managed beans can have the following scopes: Application, session, PageFlow, view, request, BackingBean.

Not E: JavaServer Faces (JSF) technology provides the tools to implement user interfaces that are easy to extend and reuse. Templating is a useful Faceletsfeature that allows you to create a page that will act as the base, or template, for the other pages in an application. By using templates, you can reuse code andavoid recreating similarly constructed pages. Templating also helps in maintaining a standard look and feel in an application with a large number of pages.

References: http://docs.oracle.com/javaee/6/tutorial/doc/giqxp.html

QUESTION 9Your page contains the following code that is invoked on an action by the current user:

<af:setPropertyListener from="#{applicant:surname}" to="#(...)" type="action"/>

To receive the value from the to property of the af:setPropertyListener, you create a managed bean as follows:

package view;

public class Employee { String lastName;

public void setLastName(String lastName) { this .lastName = lastName; } public String getLastName() { return lastName;}

In the adfc- сonfig.xml file, the managed bean is configured as:>

<managed-bean>

Page 8: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

<managed-bean-name>emp</managed-bean-name> <managed-bean-class>view. Employee</managed-bea n-class> <managed bean-scope>pageFlowScope</managed-bean -scope></managed-bean>

What EL expression would you write in the af:setPropertyListener "to" property to write the value to the lastName string of the Employee class?(Choose the best answer.)

A. to=”#{lastName}”

B. to=”#{LastName}”

C. to=”#{pageFlowScope.emp.lastName)”

D. to=”#{pageFlowScope.Emp.lastName}”

E. to=”#{emp.lastName}”

F. to=”#{pageFlowScope.emp.LastName}”

Correct Answer: CSection: (none)Explanation

Explanation/Reference:For example, the page might specify #{pageFlowScope.empno} as a page parameter and a bounded task flow might specify #{pageFlowScope.employeeID} as thevalue of an input parameter definition.

The from-value on the view activity input page parameter would be #{pageFlowScope.employeeID} and the to-value would be #{pageFlowScope.empno}. Thisenables reuse of both the page definition and bounded task flow because you don't have to redefine parameters for every context in which each is used.

References: https://docs.oracle.com/cd/E23943_01/web.1111/b31974/taskflows_parameters.htm#ADFFD19858

QUESTION 10Which three steps would you perform to enable security for an ADF application? (Choose three.)

https://www.gratisexam.com/

A. Define authentication and authorization by using the configure ADF Security wizard.B. Define which HTML pages must be secured.

Page 9: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

C. Grant roles access rights to bounded task flows.D. Grant roles access rights to unbounded task flows.E. Deploy the application to a Java EE Security-enabled server to test the user roles.F. Grant roles access rights to pagedefs for views in unbounded task flows.

Correct Answer: ABCSection: (none)Explanation

Explanation/Reference:A: The Configure ADF Security wizard allows you to choose to enable authentication and authorization separately.

C: ADF bounded task flow protects the entry point to the task flow, which in turn controls the user's access to the pages contained by the flow.

B: To grant public access to ADF security-aware resources:1. From the Application menu, choose Secure > Resource Grants.2. In the Resource Grants page of the jazn-data.xml file overview editor, select one of the following resources from the Resource Types dropdown list:

Task Flow when you want to make a bounded task flow public. The application displays the web pages under the permission you define for the task flow itself.Thus, all constituent web pages of the bounded task flow will become public.Web Page when you want to make individual web pages public. Typically, these pages are defined by an unbounded task flow and are top-level pages in theapplication, such as a home page.

Incorrect Answers:D, F: The unbounded task flow is not an ADF security-aware component and allows no grants.

References: https://docs.oracle.com/cd/E21764_01/web.1111/b31974/adding_security.htm#ADFFD19895

QUESTION 11For what purpose would you use the entity object attribute setting Change Indicator? (Choose the best answer.)

A. to highlight the attribute in the UI with a border when the original attribute value has been changedB. to fire an entity object custom method as soon as the original attribute value has been changedC. to automatically lock the corresponding record in the databaseD. to automatically refresh the attribute value if the underlying data in the database is changed by another userE. to define an attribute that the framework uses to check whether the update is about to happen on underlying stale data in the database

Correct Answer: CSection: (none)Explanation

Page 10: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

Explanation/Reference:By default, during commit operation, ADF scans each changed attribute from the current row and compares value in the DB. If it locates changed values in DB,reports error about another user changes in the same row. While this is expected functionality, there are use case when we want to allow commit, even data waschanged already by someone else. For example, in more complex systems, data is updated by PL/SQL procedures, we don't want to inform user with error aboutthis. There is a way to override lock method in EO implementation class, catch lock error and raise lock again. This works, but there is different way - to use ChangeIndicator. This property defines specific attribute to be responsible for row data changes tracking, instead of checking every attribute. Only if Change Indicatorattribute value will be changed in DB, then current row changes will be prevented and user will be informed about someone else changes in the same row.

References: https://blogs.oracle.com/emeapartnerweblogic/entry/explaining_change_indicator_property_for

QUESTION 12Which three statements are true about af:panelTabbed ? (Choose three.)

A. Tab position can be only top or bottom.B. Content inside a tab can stretch horizontally.C. You can use icons instead of text on tabs.D. You can have only one disclosed tab at a time.E. You cannot have an af:panelTabbed component inside one of the tabs.

Correct Answer: BDESection: (none)Explanation

Explanation/Reference:E: The panelTabbed control can be used to display a group of contents that belongs to a showDetailItem.

Incorrect Answers:A: Valid positions of the tab bar are: bove, both, below, start, end, left, right

References: http://docs.oracle.com/cd/E41362_01/apirefs.1111/e12419/tagdoc/af_panelTabbed.html

QUESTION 13You create a default view object based on the Employees entity, using the wizard and accepting the default settings.

Which option represents the source file(s) that are typically created for you? (Choose the best answer.)

A. EmployeesView.xml

B. EmployeesViewImpl.java

C. EmployeesViewRowImpl.java

D. EmployeesView.sql

Page 11: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

E. EmployeesView.xml and EmployeesViewImpl.java

Correct Answer: ASection: (none)Explanation

Explanation/Reference:What Happens When You Create an Entity-Based View Object

When you create an entity-based view object, JDeveloper creates the XML component definition file that represents the view object's declarative settings and savesit in the directory that corresponds to the name of its package. For example, if the view object was named StaffList in the devguide.model.queries package, so theXML file created will be ./devguide/model/queries/StaffList.xml under the project's source path. This XML file contains the information about the SQL query, thename of the entity usage, and the properties of each attribute. If you're curious to see its contents, you can see the XML file for the view object by selecting the viewobject in the Application Navigator and looking in the corresponding Sources folder in the Structure Window. Double-clicking on the StaffList.xml node will open theXML in an editor so you can inspect it.

References: https://docs.oracle.com/cd/B31017_01/web.1013/b25947/bcvoeo002.htm

QUESTION 14Which two statements describe the characteristics of an entity object? (Choose two.)

A. An entity object represents a cache for records retrieved from the database.B. An entity object includes an ORDER clause to allow you to order the data in it.

C. An entity object includes a WHERE clause to allow you to shape the data in it.

D. Every column in a database table must be represented as an entity object attribute.E. An entity object definition is described in XML.

Correct Answer: ADSection: (none)Explanation

Explanation/Reference:A: An entity object caches data from a database and provides an object-oriented representation of it.D: When you use a Business Components for Java wizard to create entity objects from existing tables, each database table becomes an entity object. Each columnin the database table becomes an entity object attribute, which can have the same name as the column or a different name that is more meaningful to yourbusiness application.

References: https://docs.oracle.com/cd/A97335_02/apps.102/bc4j/developing_bc_projects/bc_awhatisaneo.htm

QUESTION 15

Page 12: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

Identify two statements that describe the benefits of using ADF to build web applications for mobile devices. (Choose two.)

A. Mobile devices are supported by using native code.B. ADF code and applications are re-used.C. Separate applications are required for tablets and smart phones.D. ADF Faces components adjust to support touch gestures and layouts.E. Native mobile components are used to develop a user interface.

Correct Answer: BDSection: (none)Explanation

Explanation/Reference:B: Oracle ADF Mobile enables developers to build and extend enterprise applications for iOS and Android from a single code base.D: ADF Faces include Tablet/Touch Gesture Support.

Incorrect Answers:A: Java code, not native code, is used. Oracle ADF Mobile enables developers to build and extend enterprise applications for iOS and Android from a single codebase.

References: http://www.oracle.com/technetwork/developer-tools/adf/overview/index-092391.html

QUESTION 16Which option represents the expression you would use to determine if a user belongs to the administrator role? (Choose the best answer.)

A. #{securityContext.userInRole['administrator']}

B. adf.context.securityContext.role.administrator

C. #{securityContext.userGrantedResource ['administrat or']}

D. #{adfSecurity.userInRole['administrator']}

E. adf.context.securityContext.userInRole.administrato r

Correct Answer: DSection: (none)Explanation

Explanation/Reference:To check if user is a member of at least one role in comma separated list:#{securityContext.userInRole[‘roleList’]}

Page 13: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

References: http://www.techartifact.com/blogs/2013/04/commonly-adf-security-expression-language-el.html#sthash.4k2tFVYE.dpbs

QUESTION 17Consider a case where a view does not load with the expected data. Where would you set a breakpoint to debug the issue? (Choose the best answer.)

A. the executable binding for the iterator on the pagedef for the viewB. a router activity that is used to determine where to send the user after selecting a row in the viewC. the partialTriggers property of the data bound component in the view

D. the value binding for the iterator on the pagedef for the view

Correct Answer: DSection: (none)Explanation

Explanation/Reference:You use the ADF Declarative Debugger features in JDeveloper to declaratively set breakpoints on ADF task flow activities, page definition executables, method,action, and value bindings, and ADF Lifecycle phases.

The Declarative Breakpoint Before/After attribute value binding pauses debugging before or after the attribute's setInputValue() ADF source code method isexecuted. New values will be the parameters to setInputValue().

References: http://docs.oracle.com/cd/E15586_01/web.1111/b31974/web_testdebug.htm#CEGDBFGG

QUESTION 18Which two statements describe the characteristics of a view object?

A. It represents a row in the specified database table.B. It represents an association between two entity objects.C. It encapsulates a SQL query and simplifies working with data from a database.D. It allows data to be ordered based on an ORDER clause.

E. It must include every attribute defined in an underlying entity object.

Correct Answer: CDSection: (none)Explanation

Explanation/Reference:

Page 14: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

QUESTION 19View the Exhibit.

Which three options are true about the scenario in the Exhibit? (Choose three.)

A. Two separate view object instances allow you, at run time, to maintain two separate current row indicators on each instance respectively, to display separaterecords at the same time.

B. Two separate view object instances defined through the same application module create separate entity object caches, allowing users to modify records in theirown independent transactions.

C. Two separate view object instances exposed through the application module allow you to apply separate view criteria and bind variable values to show separateresult sets.

D. Under the relating AppModuleDataControl in the JDeveloper Data Controls window, each view object instance appears as a separate selectable data collection.E. ADF Faces restricts developers from using the same view object instance across pages, so developers at design time must create multiple separate view object

instances.

Correct Answer: ACDSection: (none)Explanation

Explanation/Reference:

Page 15: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

QUESTION 20You create a default entity object based on the Employees table, using the wizard and accepting the default settings. Which option represents the source file(s)that are typically created for you? (Choose the best answer.)

A. Employees.xml

B. Employees.xml and EmployeesImpl.java

C. Employees.xml and Employees.sql

D. EmployeesDefImp.java

E. EmployeesDefImpl.xml

Correct Answer: ASection: (none)Explanation

Explanation/Reference:JDeveloper creates the XML component definition file that represents its declarative settings and saves it in the directory that corresponds to the name of itspackage. For example, if one of the entities created above was named User in the devguide.model.entities package, so the XML file created will be ./devguide/model/entities/User.xml under the project's source path.

References: https://docs.oracle.com/cd/B31017_01/web.1013/b25947/bcentities002.htm

QUESTION 21Which method must you override to ensure that messages are logged each time bind variable values are set in an application? (Choose the best answer.)

A. bindParametersForCollection() method in any ViewObj ectImpl that uses bind variables

B. setBindVariables() method in any ViewObjectImpl tha t uses bind variables

C. bindParametersForCollection() method in the super-c lass of ViewObjectImpl

D. bindParametersForCollection() method in the super-c lass of ApplicationModuleImpl

Correct Answer: CSection: (none)Explanation

Explanation/Reference:References: http://www.awasthiashish.com/2015/01/setting-view-object-bind-variable.html

QUESTION 22

Page 16: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

When you manually create a binding such as an attribute value binding, what name would you give to the binding? (Choose the best answer.)

A. a name that reflects the UI component to which it is boundB. the page name suffixed with the UI component name to which it is boundC. the page name suffixed with the data control nameD. the name of the data control attribute to which the binding refersE. an EL (Expression Language) of the form #{bindings.<datacontrolname>.value}

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Note: The oracle.jbo.uicli.binding.JUCtrlValueBinding class implements the attribute value binding.

The attribute value binding permits the databound UI component to obtain the attribute value of the specified collection's data object. Depending on the type of UIcomponent, users may view and, in some cases, edit the value of the attribute.

The attribute value binding defines its own set of runtime properties.

References: http://download.oracle.com/otn_hosted_doc/jdeveloper/1012/developing_mvc_applications/adf_aclientbindingcode.html

QUESTION 23You need to execute a managed bean function immediately when af:selectBooleanCheckhox is selected by a user. Which listener property would youimplement in af:selectBooleanCheckbox to achieve this? (Choose the best answer.)

https://www.gratisexam.com/

A. valueChanqeListener

B. selectionListener

C. actionListener

D. queryListener

E. phaseListener

Correct Answer: A

Page 17: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

Section: (none)Explanation

Explanation/Reference:The value ChangeListener attribute is a method reference to a value change listener.

References: http://docs.oracle.com/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_selectBooleanCheckbox.html

QUESTION 24Which two statements describe the characteristics of an application module? (Choose two.)

A. It provides the database transaction for the queries that it encapsulates.B. It defines view object instances to implement an application use case.C. It defines entity object instances to implement an application use case.D. There is a one-to-one mapping between view objects and application modules.E. Each ADF application has only one application module.

Correct Answer: ABSection: (none)Explanation

Explanation/Reference:A: In general, one application module instance owns a single database transaction. All changes made through that instance are made in a single transaction, whichcan be rolled back or committed at any time.

B: Oracle ADF application modules are business components that represent particular application tasks. The application module provides a data model for the taskby aggregating the view object and view link instances required for the task. It also provides services that help the client accomplish the task. For example, anapplication module can represent and assist with tasks such as:

Updating customer informationCreating a new orderProcessing salary increases

Incorrect Aanswers:D: An application module contains view object instances that retrieve the data needed by the client, as well as view link instances that specify the relationshipsbetween the view object instances. The view object and view link instances can be represented by a tree, called the application module's data model.

References: http://download.oracle.com/otn_hosted_doc/jdeveloper/1012/bc4j/intro/bc_aam.html

QUESTION 25Consider the JSF managed bean code to execute a function in ADF Business Components via an af:button actionListener on a page:

Page 18: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

public void doSomethinq(ActionEvent event) { BindingContainer bindings = BindingContext.getC urrent().getCurrentBindingsEntry(); OperationMe thod method =bindings.getOperationBinding(“appModuleMethod”); Map paramsMap = method.getParamsMap(); paramsMap.put (“someParameter”,“someValue”); method.execute();}

Which three options must be implemented for this code to work? (Choose three.)

A. For the page definition file this code is called from, it must have a <methodAction> binding mapped to the ADF BC data control application module function.

B. For the page definition file this code is called from, it must have a <parameter> binding mapped to the parameters of the ADF BC data control applicationmodule function.

C. An appModuleMethod function must exist in the ADF BC application module to call from the <methodAction> binding.

D. An appModuleMethod function must be exposed through the client interface editor of the ADF BC application module.

Correct Answer: ABCSection: (none)Explanation

Explanation/Reference:

QUESTION 26Which two statements are true about an af:panelStretchLayout component? (Choose two.)

A. A component placed in the center facet dynamically spaces out vertically to fill out the page height.B. If the top facet has more content then fits vertically, it automatically adds a vertical scroll bar.C. Facets without content in them do not show up at run time.D. Components placed in the center facet stretch to fill the horizontal space regardless of their containing layout container.E. You cannot include another panelStretchLayout component in the bottom facet.

F. You can specify the vertical size for the top facet in pixels.

Correct Answer: ABSection: (none)Explanation

Explanation/Reference:A: The panelStretchLayout component stretches the child in the center facet to fill all of available space. The available space may be constrained by the presence of

Page 19: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

other children in the top/bottom/start/end facets. When these children are present, they occupy space defined by the topHeight/bottomHeight and startWidth/endWidth attributes.

Incorrect Answers:E: Examples of child components that can be stretched inside of the panelStretchLayout facets include <af:panelStretchLayout>.

References: http://docs.oracle.com/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_panelStretchLayout.html

QUESTION 27Which three statements are true about using a dvt:map component on a page? (Choose three.)

A. You need to define a connection to a server that provides map images.B. You can use an exact street address to show a point theme.C. There is no way to display the distance between two points on a map.D. You can modify the icon used to represent a point on a map.

Correct Answer: ABDSection: (none)Explanation

Explanation/Reference:

QUESTION 28During design time, you define two root application modules, each with a single view object. At run time, you have a single page exposing each view object as aseparate table on the same page. Three users access the page at run time simultaneously.

Disregarding application module pooling, how many application module instances are instantiated to serve the three users at run time? (Choose the best answer.)

A. 0B. 1C. 2D. 3E. 6

Correct Answer: ESection: (none)Explanation

Page 20: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

Explanation/Reference:

QUESTION 29Which two statements are true about developing applications for different clients? (Choose two.)

A. ADF can be used to build web applications for mobile devices that have browsers, such as tablets and smart phones.B. ADF Business Components need to be developed uniquely depending on the type of client accessing them.C. ADF can be used to build applications where Microsoft Excel is the UI client.D. It is necessary to develop completely different applications for mobile browsers, desktop browsers, and other clients.E. ADF can be used to deploy server-based web applications as native mobile device applications.

Correct Answer: ACSection: (none)Explanation

Explanation/Reference:A: Oracle Application Development Framework Mobile (ADF Mobile) browser is a standards-based framework that enables the rapid development of browser-basedenterprise mobile applications. Its mobile-specific extensions to JSF enable you to develop mobile applications using the same methodologies for developing JSFapplications for the desktop.

C: You can integrate your Excel workbook with a Fusion web application.

References: https://docs.oracle.com/middleware/1212/adf/ADFCG/mobile.htm#ADFCG223 https://docs.oracle.com/middleware/1212/adf/ADFDI/inst_conf_dev_env.htm#ADFDI581 (Oracle Fusion Middleware Developing Applications with Oracle ADFDesktop Integration)

QUESTION 30Select three benefits that ADF Data Controls provide. (Choose three.)

A. They abstract the UI developer from the technology used to implement business logic.B. They reduce the need to write managed beans.C. They automate Ajax updates to the UI.D. They enable drag-and-drop of data objects to UI component bindings.E. They directly connect your UI to the database tables.

Correct Answer: ABDSection: (none)Explanation

Page 21: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

Explanation/Reference:B: J2EE developers who do not want to rely on Oracle-specific libraries may use managed beans instead of the ADF data control. This is more complex.

AD: At a high level, the declarative development process for an application that contains data controls usually involves, among others, the following core steps:Creating data controls for your services: Once you have created your business services, you create the data controls that use metadata interfaces to abstractthe implementation of those services and describe their operations and data collections, including information about the properties, methods, and types involved.These data controls are displayed in the Data Controls panel and can be dragged to pages to create databound UI components.Adding declarative metadata to your data controls: You can augment your data controls with UI control hints, validation rules, criteria for use in search forms,and other features.Implementing the user interface: JDeveloper's Data Controls panel contains a representation of the services for your application. You can drag an object fromthe Data Controls panel onto a page and select the UI component you want to display the underlying data. For UI components that are not databound, you usethe Components window to drag and drop components. JDeveloper creates all the page code for you.

References: https://docs.oracle.com/cd/B31017_01/web.1013/b28967/build_app_services010.htmhttps://docs.oracle.com/middleware/1212/adf/ADFDC/adfm.htm#ADFDC769

QUESTION 31When creating a bounded task flow that uses ADF Business Components, which two steps do you need to perform to enable the task flow to manage its owntransaction? (Choose two.)

A. Define transaction properties at the task-flow level.B. Include a phaseListener in a managed bean with methods for commit and rollback.

C. Add the application module commit and rollback operations as buttons or links on the last JSF page of the flow.D. Define task flow return activities in the flow and associate “End transaction” attribute values with them.

Correct Answer: ADSection: (none)Explanation

Explanation/Reference:A: To enable a bounded task flow to run as a transaction:1. In the overview editor for the called bounded task flow, click Behavior and expand the Transaction section.

2. Choose one of the following from the dropdown list:<No Controller Transaction>: The called bounded task flow does not participate in any transaction management.Always Use Existing Transaction: When called, the bounded task flow participates in an existing transaction already in progress.Use Existing Transaction If Possible: When called, the bounded task flow either participates in an existing transaction if one exists, or starts a new transactionupon entry of the bounded task flow if one doesn't exist.Always Begin New Transaction: A new transaction starts when the bounded task flow is entered, regardless of whether or not a transaction is in progress. Thenew transaction completes when the bounded task flow exits.

Page 22: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

D: 1. Select the task flow return activity in the called bounded task flow.2. In the Property Inspector, expand the Behavior section.If the called bounded task flow supports creation of a new transaction (bounded task flow specifies Use Existing Transaction If Possible or Always Begin NewTransaction options), select one of the following in the End Transaction dropdown list:

commit: Select to commit the existing transaction to the database.rollback: Select to roll back a new transaction to its initial state on task flow entry. This has the same effect as cancelling the transaction.

References: https://docs.oracle.com/cd/E15523_01/web.1111/b31974/taskflows_complex.htm#ADFFD1710

QUESTION 32Which statement is true about the role of bindings within the ADF Model layer of ADF? (Choose the best answer.)

A. The binding is a Java API for reading and writing data directly between ADF Business Components and ADF Faces.B. There is a one-to-one mapping such that each data control has only one binding.C. There are three types of bindings: method, attribute, and table.D. Expression Language is used to connect a UI component to a binding.E. Bindings can be created only by dragging and dropping from the Data Controls window.

Correct Answer: DSection: (none)Explanation

Explanation/Reference:You can view the binding in your application in any one of several ways. One way is in the source code view of a web page, where binding references appear inexpressions that get evaluated at runtime using the expression language (EL) features. In the code view, the expression looks like this:

<c:forEach var="rv" items="${bindings.DataBindingObject.theCollectionProperty}"

Incorrect Answers:C: Oracle ADF provides several types of binding objects to support the attributes and operations exposed by the Oracle ADF data controls for a particular businessobject:

Iterator binding, one per accessor attribute that your page or panel displays. Iterates over the business objects of the data collection and maintains the rowcurrency and state.Value bindings, one for each databound UI component. Provides access to data.Action binding, one for each button component. Provides access to operations defined by the business object.

E: You create bindings in JDeveloper through your interaction with the Data Control Palette, a visual editor, the Structure window, and the Property Inspector.

References: https://docs.oracle.com/cd/B14099_19/web.1012/b14362/chapter_adf_model.htm#i1025426

Page 23: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

QUESTION 33You access a page in your ADF application that refers to bindings calling АDF Business Components.

Which statement is true at run time about the ADF Business Component application module? (Choose the best answer.)

A. An application module is automatically instantiated for each user session and allocated to that user for the life of their session.B. The programmer must instantiate an application module in a JSF managed bean and carry the application module for the life of the user session.C. One application module bean is instantiated and shared by all user sessions.D. An application module instance is checked out of the application module pool and given to the user session for at least that request, or longer depending on the

system load.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:The application module is the "work unit" container that includes instances of the reusable view objects required for the use case in question, related throughmetadata to the underlying entity objects in your reusable business domain layer whose information the use case is presenting or modifying.

Your application module works with a Transaction object that acquires a database connection and coordinates saving or rolling back changes made to entityobjects.

The related Session object provides runtime information about the current application user.

References: http://docs.oracle.com/cd/E12839_01/web.1111/b31974/bcservices.htm#ADFFD1492

QUESTION 34Which statement describes the Oracle implementation of model-view-controller (MVC)? (Choose the best answer.)

A. Oracle ADF provides a "pure" implementation of MVC, with the model layer handling page navigation and encapsulating business logic.B. ADF Controller provides support for application tasks such as validation, state management, security, and business-process orchestration.C. ADF bindings provide a layer of abstraction on top of the business services to enable the view and controller layers to work with different implementations of

business services.D. JSF Controller is the best choice for ADF Faces-based web applications because it enables you to break up an application's page flow into re-usable flows.

Correct Answer: CSection: (none)Explanation

Page 24: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

Explanation/Reference:The Role of Oracle ADF for J2EE ApplicationsJDeveloper includes an integrated J2EE runtime framework known as Oracle Application Development Framework (Oracle ADF) . Oracle ADF increases thecooperation between the MVC layers both in the design time and the runtime and, importantly, eases the incorporation of complex business services into theapplication model layer.

Specifically, ADF provides these benefits to J2EE application development:* Provides a thin model layer that adapts diverse business services, thus permitting views to be created in a similar fashion, independent of their data source/ Model layer - A thin model layer that adapts and combines a full range of business services as desired, including Oracle ADF Business Components, OracleTopLink mappings, JavaBeans, Enterprise JavaBeans, and web services.* Optionally, provides transaction control support to the model layer and permits web applications to scale better* Cooperates with the highly visual design tools in the JDeveloper IDE and enables an integrated view of the entire J2EE application project

References: http://download.oracle.com/otn_hosted_doc/jdeveloper/1012/developing_mvc_applications/adf_aoverviewadfandmvc.html

QUESTION 35Your database has a strict security requirement that whenever users select from any table in the database schema, they must append the select statement withan additional where predicate that returns only records WHERE owner = :pUserName. This restricts users to seeing only records that they own.

When you design and develop the ADF Business Components in your ADF application, there will be more than 100 view objects that select against this database.You want to build a solution that not only ensures all your developers, when writing view objects, meet the database's strict security requirement, but takes the leastamount of development effort for your entire team and is easy to maintain in the long term.

Identify the correct solution. (Choose the best answer.)

A. Define a view criteria on each view object at design time to apply the predicate to the corresponding view object, ensuring the view criteria is defined against theview object instance in the Application Module Editor.

B. Override each view object's ViewObjectImpl class methods to programmatically modify each view object's where clause at run time to add the predicate tothe select clause regardless of the query executed.

C. Create a complete set of custom ADF Business Component framework classes for your business components and then override your custom ViewObjectImpl class to programmatically modify each view object’s where clause at run time to append the predicate.

D. In each view object, simply type the predicate into the WHERE clause of the View Object Editor query page.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 36

Page 25: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

View the Exhibit.

What does the SetCurrentRowWithKey activity do for this task flow? (Choose the best answer.)

A. calls a methodB. calls the updateCustomer pageC. determines whether the user is navigated to the updateCustomer or callEmployeeTF activityD. displays a pop-up that allows the user to enter a value for the current row

Correct Answer: BSection: (none)Explanation

Explanation/Reference:

QUESTION 37Identify the two phases in the JSF life cycle that are always processed for a request, regardless if errors occur. (Choose two.)

A. Restore ViewB. Apply Request Values

Page 26: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

C. Process ValidationsD. Update Model ValuesE. Invoke ApplicationF. Render Response

Correct Answer: ABSection: (none)Explanation

Explanation/Reference:Figure, JavaServer Faces Standard Request-Response Lifecycle

Page 27: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

Page 28: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

References: http://docs.oracle.com/javaee/6/tutorial/doc/bnaqq.html

QUESTION 38You have three application modules: A, B, and C. Application modules В and С are nested under the root application module A. Which statement is true whencommitting the nested application module B? (Choose the best answer.)

A. No view objects are committed.B. Only changes to view objects exposed through application module В are committed.C. Only changes to view objects exposed through application modules A and В are committed.D. All changes to all view objects exposed through all application modules A, B, and C are committed.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:

QUESTION 39Which two components allow you to divide your page into two sections, where one section can be collapsed and expanded by the user, without the need to codelogic in a backing bean? (Choose two.)

A. af:panelBorderLayout

B. af:panelSplitter

C. af:stretchLayout

D. af:panelDrawer

E. af:panelTabbed

Correct Answer: ABSection: (none)Explanation

Explanation/Reference:A: The panelBorderLayout component is a layout element which lays out all of its children consecutively in its middle, and supports twelve other facets: top, bottom,left, right, start and end. Clients should use only one of left/right or start/end for each side, in any one container, but if both are used, left/right "wins". Left, InnerLeft/Right InnerRight always means left/right regardless of LTR or RTL. Start, InnerStart/End, InnerEnd will respect bidi setting.B: PanelSplitters are used to divide a region into two parts with a repositionable divider. The two parts are identified as the "first" facet and the "second" facet. If thecontained component supports it, the contents of a section will stretch to fill up all available space in that section. The panel splitter can be adjusted with the mouse,

Page 29: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

by pressing a collapse button, or by use of the arrow keys when the splitter is selected.

Incorrect Answres:C: The panelStretchLayout component stretches the child in the center facet to fill all of available space. The available space may be constrained by the presence ofother children in the top/bottom/start/end facets.

D: The panelDrawer control can be used to display a group of showDetailItems. Drawer "handles", aka tabs, represent the showDetailItem children. Selecting a tab/handle opens the drawer and displays the associated showDetailItem.

E: The panelTabbed control can be used to display a group of contents that belongs to a showDetailItem. Tab bar(s) with tabs representing the showDetailItemchildren are displayed. Selecting a tab, displays the associated showDetailItem.

References: http://docs.oracle.com/cd/E15523_01/apirefs.1111/e12419/tagdoc/af_panelSplitter.htmlhttp://docs.oracle.com/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_panelBorderLayout.html

QUESTION 40Which two statements are true after rolling back an application module? (Choose two.)

A. The associated view object iterators for the application module have their current row indicators reset to the first row.B. All entity object caches for the associated view objects of the application module are emptied.

https://www.gratisexam.com/

C. Any attribute changes to entity objects for the associated view objects of the application module are reset to their original values.D. The application module is passivated.E. New or deleted records are unaffected by the rollback.

Correct Answer: BCSection: (none)Explanation

Explanation/Reference:A rollback rollbacks the transaction. It discard all changes.

Incorrect Answers:D: The passivated state will be removed when a transaction commit/rollback occurs.

Page 30: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

References: https://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/ApplicationModule.html

QUESTION 41You have written a Groovy validation expression for the Employees entity object. How would you customize the error message to show the value of the LastNameattribute as all uppercase? (Choose the best answer.)

A. Add a token to the validation error message and define the token value as LastName.toUpperCase().

B. Add a token to the validation error message and define the token value as adf.object.hints.toUpperCase.

C. Add a token to the validation error message and define the token value as adf.object.hints.value.toUpperCase.

D. Manually change the error string in the ModelBundle.properties file to be uppercase.

E. Insert adf.error.raise ("< your error message>” + LastName .toUpperCase()) into the validation code as part of the failure processing.

Correct Answer: ESection: (none)Explanation

Explanation/Reference:

QUESTION 42Which three resources can be secured by using the declarative features of ADF security? (Choose three.)

A. task flowsB. pages that are not contained within a task flowC. attributes defined in entity objectsD. specific rows of dataE. stack tracesF. PL/SQL procedures

Correct Answer: ABCSection: (none)Explanation

Explanation/Reference:ADF Security benefits include:

Declarative, permission-based protection for ADF security-aware resources, such as ADF bounded task flows, top-level web pages that use ADF bindings, andattributes defined by ADF entity objects and their attributes.

Page 31: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

References: https://docs.oracle.com/middleware/1212/adf/ADFCG/security.htm#ADFCG259

QUESTION 43You create a view object "CustomersVO“ based on an entity object "CustomerEO". How would you declaratively change the result set returned from the view objectso that the records are sorted by customer name? (Choose the best answer.)

A. Add ORDER BY CustomerName to the query in CustomersVO.

B. Add ORDER BY CustomerName to the query in CustomerEO.

C. Change the CustomersVO query mode to "Expert" and define the query using the ORDER BY clause as required.

D. Re-order the attributes in the CustomersVO editor such that the CustomerName attribute is listed first.

E. Create a view criteria on CustomersVO to order by the CustomerName attribute.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:The setOrderByClause method sets the ORDER BY clause of the view object's query statement. Bind variables can be specified using '?' as a place-holder for thevalue. The new ORDER BY clause does not take effect until RowSet.executeQuery() is called.

References: http://docs.oracle.com/cd/E12839_01/apirefs.1111/e10653/oracle/jbo/ViewObject.html

QUESTION 44Which two statements are true about unbounded task flows? (Choose two.)

A. They must have a defined entry point.B. They must have a defined exit point.C. They may pass parameters to bounded task flows.D. They can use method calls but not routers to control navigation.E. Parameters cannot be passed to an unbounded task flow.

Correct Answer: CDSection: (none)Explanation

Explanation/Reference:Incorrect Answers:A, B: An unbounded task flow does not have a single point of entry. Bounded task flow is a specialized form of task flow that, in contrast to an unbounded task flow,

Page 32: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

has a single entry point and zero or more exit points.

E: An unbounded task flow cannot declaratively specify parameters.

References: http://docs.oracle.com/cd/E23943_01/web.1111/b31974/taskflows.htm#ADFFD1633

QUESTION 45Select two true statements about JSF components. (Choose two.)

A. They can generate only HTML markup.B. They can contain other JSF components.C. They can be manipulated from a managed bean.D. They always translate to a visual component on the user interface.

Correct Answer: BCSection: (none)Explanation

Explanation/Reference:

QUESTION 46Which code sample is the recommended way to override the create() method in EmployeesImpl , an implementation of oracle.jbo.server.EntityImplfor the Employee's entity object, to set default salary? (Choose the best answer.)

A. protected void create(AttributeList attributeList) {SetAttributeInternal (SALARY, 0);super.create(attributeList);}

B. protected void create(AttributeList attributeList) {super.create(attributeList);setAttributeInternal("SALARY", 0);}

C. protected void create(AttributeList attributeList) {super.create(attributeList);setSalary(0);}

D. protected void create(AttributeList attributeList) {setSalary(0);}

Page 33: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Instances of subclasses should call super.create() before performing any operations.

References: http://docs.oracle.com/cd/E28280_01/apirefs.1111/e10653/oracle/jbo/server/EntityImpl.html

QUESTION 47Which statement is true about an ADF Business Components list of values? (Choose the best answer.)

A. It is always shown as a drop-down box in the user interface.B. It can be derived only from a non-updatable view object.C. It can show only one attribute in the selection list.D. It cannot have a blank item as an option.E. It can be represented as a radio group on an ADF Faces page.

Correct Answer: ASection: (none)Explanation

Explanation/Reference:Incorrect Answers:C: Example: InputComboboxListOfValues Displays a List of Employee Names

Page 34: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

References: https://docs.oracle.com/cd/E12839_01/web.1111/b31973/af_lov.htm#ADFUI260

QUESTION 48Your organization has specified that menu components should be located on the left-hand side of a page and that the main content should be displayed in thecenter.

How do you ensure that developers adhere to this standard? (Choose the best answer.)

A. Ask all developers to use the two-column quick start layout.B. Create a page template that defines the specified layout and distribute it to developers.C. Create an ADF library that contains a collection of ADF Faces components that developers must use.D. Create a task flow template that defines the specified layout; this will enforce the correct layout on all pages that are built from the template.

Correct Answer: BSection: (none)Explanation

Page 35: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

Explanation/Reference:

QUESTION 49Identify two characteristics of model-view-controller architecture.

A. The separation of user interface components from the underlying application and business logic makes the code more flexible and easier to maintain.B. The view layer represents the data values bound to the current page.C. When a user interacts with the view, the controller handles page navigation.D. The view reads data from the controller to render the appropriate user interface.

Correct Answer: ACSection: (none)Explanation

Explanation/Reference:A: Key Benefits of the model-view-controller architecture are: Speeds up application development Protects from technology shifts Increase reusability across applications Create open and standard based applications

C: The controller layer processes user input and determines page navigation.

Incorrect Answers:B: The model layer represents the data or state of the component and is its underlying logical representation.

D: The business service layer, not the view layer, handles data access.

References: https://blogs.oracle.com/ArdaEralp/entry/introduction_to_oracle_adf

QUESTION 50Which feature of an entity object would you use to enforce that an attribute value is required?

A. Select the attribute’s Primary Key attribute setting.B. Select the attribute’s Mandatory attribute setting.C. Set the attribute’s Updatable attribute setting to Always.D. Set the attribute’s Updatable attribute setting to Never.E. Enforcing that an attribute value is required is implemented only in a view object.

Page 36: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

Correct Answer: BSection: (none)Explanation

Explanation/Reference:Make an Attribute Mandatory by selecting the Mandatory checkbox if the field is required. The mandatory property is enforced during entity-level validation atruntime (and not when the attribute validators are run).

Reference: http://docs.oracle.com/middleware/1213/adf/develop/adf-bc-entity-objects.htm#ADFFD191

QUESTION 51For an ADF Business Components service based on the Departments table, you want to ensure that the DEPTNO attribute has a default label of “DepartmentIdentifier” when displayed on a page.

How would you accomplish this by using the declarative features of ADF Business Components?

A. Override the attribute name on the entity object to be “Department Identifier”.B. Create a transient attribute to hold the string and bind to it in each UI.C. Use the Tooltip Text control hint on the entity object.D. Use the Label Text control hint on the entity object.E. Define a Label Text custom property on the entity object.

Correct Answer: ESection: (none)Explanation

Explanation/Reference:References: http://www.oracle.com/technetwork/developer-tools/jdev/o16frame-092747.html

QUESTION 52You enclose an af:table inside an af:panelCollection ; however, you do not see the menus that allow you to hide/show columns of freeze columns at runtime.

What is the reason for this?

A. You need to include a new menu component in the menus facet of af:panelCollection .

B. This is probably a limitation of the browser you are using.C. Your table is not based on ADF Business Components, but rather on another type of data control.D. The columnSelection attribute of your table is set to none or not set at all.

Page 37: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

Correct Answer: DSection: (none)Explanation

Explanation/Reference:columnSelection decides whether columns in this table are selectable.Valid Values: none, single, multiple

References: http://docs.oracle.com/cd/E48682_01/apirefs.1111/e12419/tagdoc/af_table.html

QUESTION 53For your EmployeesVO view object, you want to return only those employees who have a salary greater than 1000.

Which two options would you use to achieve this declaratively in ADF Business Components?

A. Change the Order By clause in the view object.

B. Change the Where clause in the view object to be: Salary > 1000.

C. Create a bind variable called Salary and set the value to 1000.

D. In the view object definition, create a view criteria that defines Salary > 1000.E. In the view object definition, create a view criteria that defines Salary > 1000 and add the view criteria to the view object instance.F. Create an entity object validation rule on the Salary attribute: Salary > 1000.

Correct Answer: BESection: (none)Explanation

Explanation/Reference:B: The setWhereClause method sets a WHERE clause bind value of the View Object's query statement.

E: The createViewCriteria method creates a new view criteria (that is, "Query by Example") object for this View Object. A view criteria object is an alternative tousing an arbitrary SQL statement. A view criteria is a list of row criteria for a View Object's WHERE clause, where a row criteria is an array containing criteria for theindividual attributes.A view criteria is a more structured way of creating a SQL query WHERE clause. After setting various conditions for the view criteria object, the application can callthe applyViewCriteria method, which applies the view criteria to this View Object.

References: https://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/ViewObject.html

QUESTION 54Your application has a business rule that a Customer Booking entity object cannot be deleted if its mandatory Status attribute is still OPEN. If the status if OPEN, an

Page 38: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

error message must also be shown to the user.

To implement this rule, you decide to override the remove() method in the related BookingImpl class that implements oracle.jbo.server.EntityImpl .

Which option represents the code snippet that would implement these requirements?

A.

B.

C.

D.

Correct Answer: CSection: (none)Explanation

Explanation/Reference:You can Override the remove method to add your own business logic for the remove operation. For example, you can implement business logic that throws anexception that report why an Entity Object cannot be removed.

Page 39: Oracle.Prepaway.1z0-419.v2019-03-08.by.Zachary · B. Dragging a data control onto a JSF page generates a Java class that acts as a managed bean. C. An XXXpagedef.xml file holds detailed

https://www.gratisexam.com/

If this method is overridden, then the default implementation must be called with super.remove() to restore the Entity post states, as well as notify posted "child"Entities to handle post changes errors.

References: https://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/server/EntityImpl.html http://kadamshn.blogspot.se/2016/04/customize-adf-entity-object.html

QUESTION 55Which statement is true about the purpose of an attributeValue binding?

A. It provides a binding to a data value in a data control as specified by a data source and an attribute.B. It provides a binding to a data value returned from a method defined in a data control.C. It defines a UI component for displaying a single attribute value as specified by a data source and an attribute.D. It provides a binding to a single attribute value returned from a custom method in a backing bean.E. It represents a single attribute value within a data collection displayed as a tree or table ADF Faces component.

Correct Answer: ESection: (none)Explanation

Explanation/Reference:This attributeValue class provides a name/value pair that is stored in session namespace. Both name and value are String.

The Attribute Collection provides access to the collection of Attribute in a Folder or a content reference object.

References: https://docs.oracle.com/database/122/JADFS/oracle/security/xs/AttributeValue.htmlhttps://docs.oracle.com/cd/E41633_01/pt853pbh1/eng/pt/tpcr/task_AttributeCollection-c07f99.html

https://www.gratisexam.com/