Você está na página 1de 38

1z0-419 oracle

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

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
Exam A

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

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: ABD


Section: (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
Facelets feature 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 and avoid 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 2
Your 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:>

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
<managed-bean>
<managed-bean-name>emp</managed-bean-name>
<managed-bean-class>view. Employee</managed-bean-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: C
Section: (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 the value 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}. This enables 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 3
Consider the following code:

<af:inputText valueChangeListener=#{myBean.handleChange} .../>


<af:commandButton actionListener= #{myBean.doAction} action=#
{myBean.qetDestination} .../>

At run time, a user modifies the value in the af:inputText control, then presses af:commandButton.

Assuming no errors are raised, which option represents the managed bean code invoked in the correct order? (Choose the best answer.)

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
A. myBean.handleChange, myBean.doAction, myBean.qetDestination
B. myBean.doAction, myBean.handleChange, myBean.getDestination
C. myBean.handleChange, myBean.doAction
D. myBean.doAction, myBean.handleChange

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:

QUESTION 4
Which three options does an entity object automatically implement? (Choose three.)

A. primary key functionality based on any column in the database that is marked as a primary key
B. not-null functionality based on any column in the database that is marked as not null
C. attribute precision based on column size
D. all table check constraints
E. any table triggers

Correct Answer: ABC


Section: (none)
Explanation

Explanation/Reference:
When you create an entity object from an existing table, first JDeveloper interrogates the data dictionary to infer the following information:
The primary and unique key attributes
The mandatory flag on attributes, based on NOT NULL constraints
The length and precision of each attribute
The Java-friendly entity attribute names from the names of the table's columns (for example, USER_ID -> UserId)
The SQL and Java data types of each attribute based on those of the underlying column
The relationships between the new entity object and other entities based on foreign key constraints

References: http://docs.oracle.com/cd/E48682_01/web.1111/b31974/bcentities.htm

QUESTION 5
You create a new ADF Faces page called emp.js and bind some data controls to that page. You notice a file called empPageDef.xml. What is
this file for? (Choose the best answer.)

A. It is the page definition that contains the XML representation of the page layout and the components on that page.

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
B. It is a template file into which you can write any managed bean code.
C. It is the page template definition file that represents the chosen quick start layout.
D. It is the file that contains the definition of the bindings to your data-bound components.
E. It defines the binding context for all pages in your application.

Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:
The pageNamePageDef.xml files are created each time you insert a databound component into a web page using the Data Controls Palette or Structure
window. These XML files define the Oracle ADF binding container for each web page in the application. The binding container provides access to the
bindings within the page. You will have one XML file for each databound web page.

References: http://docs.oracle.com/cd/E15586_01/web.1111/b31974/appendixa.htm#CDJCBIGB

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

A. Define authentication and authorization by using the configure ADF Security wizard.
B. Define which HTML pages must be secured.
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: ABC


Section: (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

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
pages in the application, 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 7
For 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 changed
B. to fire an entity object custom method as soon as the original attribute value has been changed
C. to automatically lock the corresponding record in the database
D. to automatically refresh the attribute value if the underlying data in the database is changed by another user
E. 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: C
Section: (none)
Explanation

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 was changed 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 about this. 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 Change Indicator. This property defines specific attribute to be responsible for row data changes tracking, instead of
checking every attribute. Only if Change Indicator attribute 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 8
View the Exhibit.

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
Which option represents the steps to add a relationship between OrdVO and ItemVO and create a master-detail hierarchy for the same in the data
model? (Choose the best answer.)

A. Select View Link from the Components window and draw a line on the diagram from ItemVO to OrdVO. Use the Application Module Editor to define

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
the data model for the hierarchy.
B. Create a view link with OrdVO as the source and ItemVO as the destination and define the linked attributes. Use the Application Module Editor to
define the data model for the hierarchy.
C. Create a view link with ItemVO as the source and OrdVO as the destination and define the linked attributes. Use the Application Module Editor to
nest the OrdVO instance beneath the ItemVO instance.
D. Select Association from the Components window and draw a line on the diagram from OrdEO to ItemEO. Right-click the association on the diagram
and select Generate View Link.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:
When you want to show the user a set of master rows, and for each master row a set of coordinated detail rows, then you can create view links to define
how you want the master and detail view objects to relate.

To create an association-based view link, you use the Create View Link wizard.

Note: A master-detail relationship is established when a view link is created to associate two view object instances. A view link represents the
relationship between two view objects, which is usually, but not necessarily, based on a foreign-key relationship between the underlying data tables. The
view link associates a row of one view object instance (the master object) with one or more rows of another view object instance (the detail object).

References: https://docs.oracle.com/middleware/1213/adf/develop/adf-bc-vo-master-detail.htm#ADFFD23705

QUESTION 9
Which 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: BDE


Section: (none)
Explanation

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

Incorrect Answers:

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
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 10
Which statement is true about the difference between an Action binding and a methodAction binding? (Choose the best answer.)

A. None; they are used interchangeably.


B. An Action binding is a binding to a method defined in the business service exposed through a data control, whereas a methodAction binding is
used to bind only to a method in a backing bean.
C. Both are bindings to methods defined in a business service, but an Action binding is used to bind to a UI component whereas a methodAction
binding is only called programmatically from a backing bean.
D. Both are bindings to methods defined in a business service, but a methodAction binding is used to bind to a UI control whereas an Action
binding is only called programmatically from a backing bean.
E. Action bindings are used to bind to built-in operations such as Create, Delete and Next, whereas a methodAction binding is used to bind to
custom methods in the data control.

Correct Answer: E
Section: (none)
Explanation

Explanation/Reference:
Action binding object can be used to bind command components, such as buttons or links, to built-in data control operations (such as Commit or
Rollback) or to built-in collection-level operations (such as Create, Delete, Next, Previous, or ExecuteWithParams).
Method bindings are similar to action bindings. But, they are used to bind to methods defined in an ADF BC application, view object, or view row client
interfaces.

References: http://xmlandmore.blogspot.se/2010/05/action-bindings-and-method-bindings-in.html

QUESTION 11
You are prototyping an ADF application that uses ADF Business Components. However, the database schema that you can connect to does not contain
any tables or data to show in the prototype.

Which two declarative options are available to you to provide hard-coded data for the purposes of your prototype? (Choose two.)

A. entity objects with default values


B. placeholder data control
C. static list view objects
D. declarative managed beans

Correct Answer: BC

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
Section: (none)
Explanation

Explanation/Reference:
B: Placeholder data controls are easy-to-create, yet fully functional, stand-in data controls that can efficiently speed up the design-development process.
UI designers can use placeholder data controls to create page layouts and page flows without the need to have real data controls available.

C: The key advantage of the Static List View Object is it's suitable for small datasets that never change. Static List VOs suitable for stub VOs in creating
ADF Faces RC web page mockups for demonstration purposes, where the database tables have yet to be designed.

References: http://one-size-doesnt-fit-all.blogspot.se/2008/09/jdev-11g-adf-bc-new-feature-static-list.html

QUESTION 12
View the Exhibit.

Which two modifications would you make in the task flow so that RegisterRouter displays the appropriate page depending on the user type and
subsequently displays the confirmation page? (Choose two.)

A. Define the isCustomer outcome in RegisterRouter.


B. Create a global control flow rule pointing to CustomerPage.
C. Create a control flow rule from EmployeePaqe to Confirmation.
D. Change the default activity from Register to RegisterRouter.
E. Set the isEmployee outcome to #{FALSE}.

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
Correct Answer: AB
Section: (none)
Explanation

Explanation/Reference:

QUESTION 13
You 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
E. EmployeesView.xml and EmployeesViewImpl.java

Correct Answer: A
Section: (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 saves it 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 the XML 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, the name 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 view object in the Application Navigator and looking in the corresponding Sources folder in the
Structure Window. Double-clicking on the StaffList.xml node will open the XML in an editor so you can inspect it.

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

QUESTION 14
Which 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.

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
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: AD
Section: (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 column in 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 your business application.

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

QUESTION 15
Which three options are available in the ADF Controller that are not available in the generic JSF 2.0 controller layer? (Choose three.)

A. pageflow scope: a memory scope for managed beans that is available for several pages (longer than a request scope and shorter than a session
scope)
B. ability to break the page flow of an application into multiple files
C. subflows that can be included as regions inside a page
D. method calls as part of the definition of a page flow
E. defining managed beans that contain references to components on a page

Correct Answer: ACE


Section: (none)
Explanation

Explanation/Reference:
A: ADF Memory scopes
There are 6 types of memory scopes
3 from standard JSF application
1) Application Scope 2) Session scope 3) Request scope
In addition to above ADF Faces provides the following
4) PageFlowScope 5) BackingBeanscope 6) ViewScope

C: There is no such thing as subflows in JSF, but they do exist in ADF.

E: Backing bean scope:


Special case of request scope
Associated with a specific manage bean instance

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
Used with declarative components, regions and page fragments that use a managed bean to hold view state information
Allows multiple instances of the components to co-exists on a single page
Use this scope if it is possible that your task flow appears in two ADF regions on the same JSF page and you want to isolate each instance of ADF
region

References: http://kotreshtm.blogspot.se/2015/04/adf-basics-memory-scope.html

QUESTION 16
Which two options represent techniques that you would use together to deploy an ADF application? (Choose two.)

A. Deploy an EAR file by using Enterprise Manager.


B. Create an EAR deployment profile in JDeveloper.
C. Deploy a WAR file by using Ant or ojdeploy.
D. Create a JAR deployment profile for a shared library in JDeveloper.
E. Deploy a WAR file by using Enterprise Manager.

Correct Answer: AB
Section: (none)
Explanation

Explanation/Reference:
A: Deploying ADF Applications
You can use Oracle Enterprise Manager Fusion Middleware Control to deploy the EAR file created in JDeveloper.

B: Deploying ADF Applications


During application development using JDeveloper, developers can test the application using the Integrated WebLogic Server that is built into the
JDeveloper installation, or they can use JDeveloper to directly deploy to a standalone application server.

Incorrect Answers:
C, E: For ADF applications, WAR and MAR files can be deployed only as part of an EAR file.

References: https://docs.oracle.com/cd/E26098_01/admin.1112/e16179/deploy.htm#ADFAG20574

QUESTION 17
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.

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
Correct Answer: BD
Section: (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 code base.

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

QUESTION 18
View the Exhibit

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
A user interface requires a view of data for a customer order to include information about the order, items in the order, and information about the
customer who placed the order. The application entities and their relationships are defined as shown in the Exhibit.

Which two steps would you perform to meet this requirement? (Choose two.)

A. Create a default view object based on OrdEO, and add ItemEO and CustomerEO as reference entities to the view object.
B. Create default view objects based on OrdEO, ItemEO, and CustomerEO, and create view links based on the defined associations.
C. Create a view object based on SQL and define the SQL to select from the Ord, Item and Customer database tables.
D. Add attributes from the ItemEO and CustomerEO entities as needed.

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
E. Create calculated attributes as needed from the Order, Item, and Customer database tables.
F. Set the ItemEO and CustomerEO attributes to updatable=NEVER.

Correct Answer: BD
Section: (none)
Explanation

Explanation/Reference:
B: Oracle ADF view links are business components that define a relationship between two Oracle ADF view object definitions (the "source" and
"destination" view objects) based on sets of view attributes (the "source" and "destination" attributes) from each. These can range from simple one-to-
many relationships to complex many-to-many relationships. This allows you to easily create master/detail relationships between data controls in the
client.

Reference: http://download.oracle.com/otn_hosted_doc/jdeveloper/1012/bc4j/intro/bc_avl.html

QUESTION 19
Which 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 ['administrator']}
D. #{adfSecurity.userInRole['administrator']}
E. adf.context.securityContext.userInRole.administrator

Correct Answer: D
Section: (none)
Explanation

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

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

QUESTION 20
Consider 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 view
B. a router activity that is used to determine where to send the user after selecting a row in the view
C. the partialTriggers property of the data bound component in the view

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
D. the value binding for the iterator on the pagedef for the view

Correct Answer: D
Section: (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 is executed. New values will be the parameters to setInputValue().

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

QUESTION 21
Which 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: D
Section: (none)
Explanation

Explanation/Reference:
ViewObject decribes how the application will view and update data. A View Object may be Entity based or non-Entity based.

The method setOrderByClause(java.lang.String expr) sets the ORDER BY clause of the View Object's query statement.

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

QUESTION 22
Consider the validation code in a Shipping entity object that is designed to ensure that the date ordered is <= the date shipped.

public boolean validateDateShippedAfterDateOrdered() {


Date DateShipped = getDateShipped();
Date DateOrdered = qetDateOrdered();
if (DateShipped != null && DateShipped.compareTo(DateOrdered) < 0) {

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
return false;
}
return true;
}

Which entity object validation rule should you integrate this with? (Choose the best answer.)

A. compare validator on the DateShipped attribute


B. method validator on the DateShipped attribute
C. compare validator on the DateOrdered attribute
D. range validator on the Shipping entity object
E. method validator on the Shipping entity object

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:
If the validity of one attribute is dependent on one or more other attributes, enforce this rule using entity validation, not attribute validation. Examples of
when you would want to do this include the following:
You have a Compare validator that compares one attribute to another.
You have an attribute with an expression validator that examines the value in another attribute to control branching in the expression to validate the
attribute differently depending on the value in this other attribute.
You make use of conditional execution, and your precondition expression involves an attribute other than the one that you are validating.

References: https://docs.oracle.com/cd/E24382_01/web.1112/e16182/bcvalidation.htm#ADFFD411

QUESTION 23
View the Exhibit.

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
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
separate records 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 their own 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 separate result 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: ACD


Section: (none)
Explanation

Explanation/Reference:

QUESTION 24
You create a default entity object based on the Employees table, using the wizard and accepting the default settings. Which option represents the

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
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: A
Section: (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 its package. 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 25
Which 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 ViewObjectImpl that uses bind variables


B. setBindVariables() method in any ViewObjectImpl that uses bind variables
C. bindParametersForCollection() method in the super-class of ViewObjectImpl
D. bindParametersForCollection() method in the super-class of ApplicationModuleImpl

Correct Answer: C
Section: (none)
Explanation

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

QUESTION 26
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 bound


B. the page name suffixed with the UI component name to which it is bound

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
C. the page name suffixed with the data control name
D. the name of the data control attribute to which the binding refers
E. an EL (Expression Language) of the form #{bindings.<datacontrolname>.value}

Correct Answer: B
Section: (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 UI component, 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 27
Which two statements are true about the Key Exists validator? (Choose two.)

A. It always issues a select to the database to ensure all data is up to date.


B. It first checks the cache for match and then goes to the database only if necessary.
C. It cannot validate any data changes that happened in the current transaction that have not yet been committed to the database.
D. It can validate any data changes that happened in the current transaction that have not yet been committed to the database.
E. It can be used only with attributes that are defined as primary keys in the database.

Correct Answer: BD
Section: (none)
Explanation

Explanation/Reference:
The Key Exists Validator is validator that can be defined at either the entity level or the attribute level but pertains to an entity object attribute to check
whether a key exists based on a primary key, foreign key or an alternate key. The Key Exists validator will check first the cache querying rows not
committed yet to the database and if the key is not found in the cache will run a check in the database.

References: http://antonis-antoniou.blogspot.se/2014/07/using-adf-bc-declarative-built-in-rules.html

QUESTION 28
Which statement is true about creating a method at the application module level? (Choose the best answer.)

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
A. You cannot create methods at the application module level.
B. Application module methods provide an interface for the view layer to call custom business logic that may work across multiple data views.
C. Application module methods are best suited to writing validation logic for entity objects.
D. Methods in an application module allow you to manipulate UI components in the ViewController project.
E. Because ADF provides no way at run time to automatically create or delete view object records, you must create application module methods to do
this.

Correct Answer: B
Section: (none)
Explanation

Explanation/Reference:
Application modules can contain service methods--methods that perform complex operations on data. These methods can be called from clients,
requiring very little data manipulation processing in the client itself.

Service methods are implemented in an application module's class, and exposed on tier-independent interfaces that allow clients to access the
application module consistently, whether it is deployed locally or as an EJB session bean. Inside the service method, you can do any of the following:
Dynamically add view object and view link instances to the data model
Remove view object and view link instances from the data model
Find view object instances and perform operations on their row sets
Retrieve and manipulate transaction objects

References: http://download.oracle.com/otn_hosted_doc/jdeveloper/1012/bc4j/intro/bc_aam.html https://docs.oracle.com/cd/B14099_19/web.1012/


b14362/chapter_bc4j.htm#i1024792

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

A. valueChanqeListener
B. selectionListener
C. actionListener
D. queryListener
E. phaseListener

Correct Answer: A
Section: (none)
Explanation

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

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
References: http://docs.oracle.com/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_selectBooleanCheckbox.html

QUESTION 30
Which two statements are true about af:tree? (Choose two.)

A. You can show only one outputText per node in af:tree.


B. To modify the data fields shown in a node of a tree created with ADF binding, you need to edit the tree bindings.
C. You can specify a filter for a trees node based on an attribute value at design time.
D. Trees can display, at the most, a three-level-deep hierarchy.

Correct Answer: AC
Section: (none)
Explanation

Explanation/Reference:
References: http://docs.oracle.com/html/E12419_09/tagdoc/af_tree.html

QUESTION 31
Which statement is true about the role of data controls in ADF? (Choose the best answer.)

A. They implement business service functions.


B. They persist data from the database for display in the user interface.
C. They provide a consistent abstraction over the implementation details of a business service.
D. They are a Java API that is called directly from each UI component to populate the component with data.
E. They are the primary source of validation logic to control the behavior of your business service.

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:
Once you have created your business services, you create the data controls that use metadata interfaces to abstract the implementation of those
services and describe their operations and data collections, including information about the properties, methods, and types involved.

References: https://docs.oracle.com/middleware/1212/adf/ADFDC/adfm.htm#ADFDC769

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

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
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: A
Section: (none)
Explanation

Explanation/Reference:
The mapPointTheme tag is used within the <dvt:map> tag to render a set of points. The rendering of each point can be specified via custom images,
built-in images or by specifying html tags.

Incorrect Answers:
B: An instance of oracle.adf.view.faces.bi.model.GeoMapDataModel must be used to specify the data model for the Point Theme.

The GeoMapDataModel is a collection of GeoRowObject instances and contains location information for each point which is stored in a GeoObject
instance. Location for a point can be specified in the GeoObject instance in 2 ways:
Via latitude & longitude
Via an address that will be geocoded by the Point Theme. A geocoderURL must be specified in your map configuration.

C: To use the map toolbar, you need to add the <dvt:mapToolbar> to your page, and set the mapId attribute to the id of the map. The mapToolbar tag is
not a child tag of the map.

The toolbar lets users pan, zoom, marquee zoom on the map, turn themes off and on, make selections on the map, calculate distance and area, display
legend, or show the coordinate of the mouse cursor location of the map.

D: The mapPointTheme tag is used within the <dvt:map> tag to render a set of points. The rendering of each point can be specified via custom images,
built-in images or by specifying html tags. The Point Theme ensures that each point is displayed at the appropriate location and stylized correctly based
on the specified attributes.

References:
http://docs.oracle.com/html/E12418_05/tagdoc/dvt_map.html
http://docs.oracle.com/html/E12418_05/tagdoc/dvt_mapPointTheme.html

QUESTION 33
During 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 a separate 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.)

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
A. 0
B. 1
C. 2
D. 3
E. 6

Correct Answer: E
Section: (none)
Explanation

Explanation/Reference:

QUESTION 34
Which two statements describe the role of Oracle Application Development Framework (ADF) in Oracles next-generation Fusion business applications?
(Choose two.)

A. Oracle ADF is primarily a PL/SQL framework used for developing enterprise business applications such as Oracle's next-generation Fusion business
applications.
B. Oracle ADF is used by Oracle to develop Oracle's next-generation Fusion business applications.
C. Oracle ADF provides a common development framework that is built on Java standards and can be deployed to Oracle Fusion Middleware.
D. Oracle DF is used only for developing Oracle's next-generation Fusion business applications.

Correct Answer: BC
Section: (none)
Explanation

Explanation/Reference:
The Oracle Application Development Framework (Oracle ADF) is an end-to-end application framework that builds on Java Platform, Enterprise Edition
(Java EE) standards and open-source technologies.
Applications you build using the Fusion web technology stack achieve a clean separation of business logic, page navigation, and user interface by
adhering to a model-view-controller architecture.

References: https://docs.oracle.com/cd/E24382_01/web.1112/e16182/intro.htm#ADFFD102

QUESTION 35
Which 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.

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
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: AC
Section: (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-based enterprise mobile applications. Its mobile-specific extensions to JSF enable you to develop mobile applications using the same
methodologies for developing JSF applications 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 ADF Desktop Integration)

QUESTION 36
Consider a development organization divided into two teams, one developing ADF Business Components and related methods, and one developing the
view and controller layers. What two steps would the Business Components team perform to deliver the results of their work to the other team? (Choose
two.)

A. Share the root ApplicationModuleImpl file on the file system or other shared location.
B. Create an ADF Library JAR file for the model project.
C. Create a path to the ADF Library JAR file in Tools > Manage Libraries.
D. Add the ADF Library JAR to the ViewController project.
E. Share the ADF Library JAR file on the file system or other shared location.

Correct Answer: BD
Section: (none)
Explanation

Explanation/Reference:
References: http://rohanwalia.blogspot.se/2015/02/adf-shared-library-deploy-adf-library.html

QUESTION 37
View the Exhibit.

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
How would you implement functionality to display product details in a separate window when users place their cursors over a link in the table? (Choose
the best answer.)

A. Create detail components in an af:popup component. Add af:showPopupBehavior to the link within the table and set the PopupId to the ID of
the pop-up component. Set the triggerType property on the pop-up to mouseHover.
B. Create detail components in an af:dialog component. Add af:showPopupBehavior to the link within the table and set the PopupId to the ID of
the dialog component. Set the triqgerType property on the dialog to mouseHover.
C. Create detail components in an af:popup component. Add af:showPopupBehavior to the link within the table and set the PopupId to the ID of
the pop-up component. Set the triggerType property on showPopupBehavior to mouseHover.
D. Create detail components in an af:panelForm component. Add af:showPopupBehavior to the link within the table and set the PopupId to the
ID of the panelForm component. Set the triggerType property on showPopupBehavior to mouseHover.
E. Create detail components in an af:dialog component. Add af:clientAttribute elements to the link within the table. Create
af:setPropertyListener components to pass the currently hovered row's attributes to client components.

Correct Answer: C
Section: (none)

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
Explanation

Explanation/Reference:
The af:showPopupBehavior tag is a declarative way to show a af:popup in response to a client-side event. The client event is specified using the
triggerType attribute. The "action" event is the default triggerType if one is not provided. When the showPopupBehavior tag is associated with a
component, the popup specified via the popupId attribute will automatically be shown when the associated client event is activated. This tag only acts on
client events similar to the af:clientListener tag.

This example will show the popup with the id "somePopup" when the button is clicked.

<af:commandButton id="button" text="Click me">


<af:showPopupBehavior popupid="somePopup" alignid="button"
align="endBefore" triggerType="action" />
</af:commandButton>

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

QUESTION 38
Which two occur when a bounded task flow is created as a region on a page? (Choose two.)

A. The transaction property of the task flow is set to "Use Existing Transaction if Possible."
B. Any views defined as pages on the bounded task flow are changed to page fragments.
C. An af:reqion tag is added to the page.
D. The refresh property of the task flow binding is set to ifNeeded.
E. A task flow binding is added to the page definition for the page.

Correct Answer: CE
Section: (none)
Explanation

Explanation/Reference:
You can render a bounded task flow in a JSF page or page fragment (.jsff) by using an ADF region. An ADF region comprises the following:
An af:region tag that appears in the page or page fragment where you render the region
An instance object that implements RegionModel from the following package: oracle.adf.view.rich.model
One or other of the following:
- A task flow binding (taskFlow) in the page definition that identifies the bounded task flow to use in the ADF region
- A multi task flow binding (taskFlowmultiTaskFlow) in the page definition that identifies the list of bounded task flow to use in the ADF region

References: https://docs.oracle.com/cd/E48682_01/web.1111/b31974/taskflows_regions.htm

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

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
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: ABD


Section: (none)
Explanation

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
abstract the 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 from the 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 use the 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.htm
https://docs.oracle.com/middleware/1212/adf/ADFDC/adfm.htm#ADFDC769

QUESTION 40
When 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
own transaction? (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: AD
Section: (none)
Explanation

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
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
transaction upon 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. The new transaction completes when the bounded task flow exits.

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
New Transaction 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 41
Which 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: D
Section: (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 in expressions 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}"

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
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 business object:
Iterator binding, one per accessor attribute that your page or panel displays. Iterates over the business objects of the data collection and maintains
the row currency 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

QUESTION 42
The current page includes the following entries in its page definition file:

<bindings>
<attributeValues IterBinding="EmployeesView1Iterator" id="Email">
<AttrNames>
<Item Value="Email"/>
</AttrNames>
</attributeValues>
</bindings>

Programmatically, in a managed bean, you need to read the current EmployeesView's email into a string. You write the following code to do this:

DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent
().getCurrentBindingsEntry();
XXXXXX emailBinding = (XXXXXX)bc.findCtrlBinding("Email");
String emailValue = emailBinding.getAttribute().getString();

What single class must you substitute for XXXXXX in the two locations in the code? (Choose the best answer.)

A. CtrlBindingContext
B. JUCtrlActionBinding
C. JUCtrlValueBinding
D. DCValueBinding
E. BCValueBinding

Correct Answer: C
Section: (none)
Explanation

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
Explanation/Reference:
The findCtrlBinding method returns a control binding with the given name. Returns null if name is not found.

public final DCControlBinding findCtrlBinding(java.lang.String name)

A JUCtrlValueBinding class responsible for maintaining which attribute(s) of a row this binding can display/update.

References: https://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/uicli/binding/JUCtrlValueBinding.html
https://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/adf/model/binding/DCBindingContainer.html

QUESTION 43
Which two are reasons why you might set the bind variables of a view object at run time programmatically rather than using the declarative features of
the framework? (Choose two.)

A. The framework can set only one bind variable declaratively on each view object query. Attempting to set more bind variables requires a
programmatic solution.
B. After a bind variable is set using the declarative method, its value is immutable unless updated programmatically.
C. In all cases, ADF developers should code solutions rather than using declarative solutions.
D. The bind variable is derived by calling a Java method rather than receiving the value from a user.
E. The bind variable value entered by and understandable by a user must be modified using Java code to a value that can actually be used in a query.

Correct Answer: BD
Section: (none)
Explanation

Explanation/Reference:
B: Whenever the WHERE clause of your query includes values that might change from execution to execution, you can use named bind variables.
These are place holders in the SQL string whose value you can easily change at runtime without altering the text of the SQL string itself. Since the query
doesn't change, the database can efficiently reuse the same parsed representation of the query across multiple executions which leads to higher runtime
performance of your application.

D: If you use a named bind variable in your SQL statement but have not defined it, you'll receive an error like this:

(oracle.jbo.SQLStmtException) JBO-27122: SQL error during statement preparation.


## Detail 0 ##
(java.sql.SQLException) Missing IN or OUT parameter at index:: 1

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

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

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
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: A
Section: (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
through metadata 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
entity objects.

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 45
Consider a case where an application does not respond as predicted when a user submits data. Where would you set a breakpoint to debug the issue?
(Choose the best answer.)

A. the value binding for the iterator on the pagedef for the view
B. a view activity that is used to determine where to send the user
C. the partialTriggers property of the data bound component in the view
D. the Apply Request Values phase of the life cycle

Correct Answer: A
Section: (none)
Explanation

Explanation/Reference:
You can add breakpoints to page definition executables and bindings in the page definition editor by selecting a binding or executable item and using the
context menu to toggle or disable 'before' or 'after' breakpoints on that item. After the application pauses at the breakpoint, you can view the runtime
structure of the objects as well as a list of data for a selected object in the ADF Structure and Data window.

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
Example: To set and use ADF page definition breakpoints:
In the page definition editor, in the Outline section, right-click the binding or executable you want to set the breakpoint on. From the context menu, select
Toggle Breakpoint Before or Toggle Breakpoint After or both depending on where you want to place the breakpoint. A blue triangle appears on the item
indicating that the breakpoint has been set.

References: http://docs.oracle.com/cd/E50457_02/12131/OEPUG/oracle_adf_tools.htm#BEIDGGDC

QUESTION 46
Which 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

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
flows.

Correct Answer: C
Section: (none)
Explanation

Explanation/Reference:
The Role of Oracle ADF for J2EE Applications
JDeveloper includes an integrated J2EE runtime framework known as Oracle Application Development Framework (Oracle ADF) . Oracle ADF
increases the cooperation between the MVC layers both in the design time and the runtime and, importantly, eases the incorporation of complex
business services into the application 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,
Oracle TopLink 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 47
You want to configure an application so that users can shop for products anonymously without authentication, and must then authenticate after they
enter the checkout process. How would you enable this requirement? (Choose the best answer.)

A. Grant roles access rights to the task flow containing the checkout process.
B. Ensure the task flow containing the shopping process is unbounded.
C. Remove ADF Security for the application and replace it with Java EE Security for the task flow containing the checkout process.
D. Add a view containing a login form to the task flow containing the checkout process.

Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:
For example, the StoreFront module of the Fusion Order Demo application secures the web pages contained by the checkout-task-flow task flow to
grant access only to logged-in users (also known as authenticated users). At runtime, the ADF Security framework performs permission checking
against the task flow's security policy to determine the user's right to complete the view operation. In this case, the security policy must grant the view
permission to the user if they are to complete the checkout process.

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

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
QUESTION 48
You have written a Groovy validation expression for the Employees entity object. How would you customize the error message to show the value of the
LastName attribute 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: E
Section: (none)
Explanation

Explanation/Reference:

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

A. task flows
B. pages that are not contained within a task flow
C. attributes defined in entity objects
D. specific rows of data
E. stack traces
F. PL/SQL procedures

Correct Answer: ABC


Section: (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, and attributes defined by ADF entity objects and their attributes.

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

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
QUESTION 50
You have two entities, ItemEO and ProductEO. ItemEO contains the OrderId, ItemId, ProductId, Price, and Quantity attributes. ProductEO
contains the Id, ProductName, and ListPrice attributes. You need to return rows as shown in the table.

How would you create a view object to encapsulate these rows? (Choose the best answer.)

A. Create a view object based on the ItemEO entity and add ProductE as a reference entity.
B. Create a view object based on the ItemEO entity and modify the generated query to include
SELECT ProductEO.NAME, ProductEO.ID, FROM S_PRODUCT ProductEO.
C. Create a view object based on the ItemEO entity and modify the WHERE clause to include
ItemEO.PRODUCT_ID = ProductEO.ID.
D. Create a view object based on the ItemEO entity and create a view criteria to add ItemEO.PRODUCT_ID - :productId. Define productId as a
bind variable to be passed in by the UI.
E. Create a view object based on the ItemEO entity and change the query mode to Expert. Define the query asSELECT Item.ORD_ID,
Item.ITEM_ID, Item.PRODUCT_ID, Product.NAME, FROM S_ITEM Item JOIN S_PRODUCT Product ON
Item.PRODUCT_ID=Product.Id.

Correct Answer: E
Section: (none)
Explanation

Explanation/Reference:

QUESTION 51
Where could you write code to change the color of a JSF input text component if the value of the salary field on the same page is higher than a fixed
value? (Choose the best answer.)

A. in a backing bean
B. in the validation for the view objects salary attribute

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications
C. in the CSS file that defines the skin for the application
D. in a custom validator defined at the field level

Correct Answer: D
Section: (none)
Explanation

Explanation/Reference:
In JSF, there is no official way to validate multiple components or fields. To solve it, you need to create a custom validator.

References: http://www.mkyong.com/jsf2/multi-components-validator-in-jsf-2-0/

QUESTION 52
Select three options that page template developers can use when creating a page template. (Choose three.)

A. Create a page template based on a quick start layout.


B. Create a page template based on an existing JavaServer Faces (JSF) page.
C. Create a JavaServer Faces Fragment (JSFF) and register it as a page template.
D. Create a page template based on an existing template.
E. Create a page or fragment from a blank layout and register it as a page template.
F. Create a page template from a blank layout.

Correct Answer: BDF


Section: (none)
Explanation

Explanation/Reference:

www.vceplus.com - Download A+ VCE (latest) free Open VCE Exams - VCE to PDF Converter - VCE Exam Simulator - VCE Online - IT Certifications

Você também pode gostar