Oracle Application Development Framework 12c Essentials v1.0 (1z0-419)

Page:    1 / 7   
Total 99 questions

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 flows.


Answer : C

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

To deploy an application, select the application drop-down and choose Deploy. In the resulting dialog box, select Deploy to EAR file to _______or Deploy to
Application Server to ______. (Choose the best answer.)

  • A. create a file to deploy to using WLST or Ant scripts; deploy an application to a managed server
  • B. deploy an application to a predefined application server; deploy a JAR file to a predefined application server
  • C. create a file to deploy to a clustered server; deploy an application to a third-party application server
  • D. deploy to the Integrated WebLogic server; deploy to a clustered server
  • E. create a file to deploy to a clustered server; deploy an application using Enterprise Manager


Answer : A

Explanation:
Part 1: You can also use the deployment profile to create an archive file (EAR file). You can then deploy the archive file using Enterprise Manager, WLST, or the
Oracle WebLogic Server Administration Console.
You can deploy to most application servers from JDeveloper, or use tools provided by the application server vendor. You may also use Ant to package and deploy applications.
Part 2: How to Deploy the Application Using JDeveloper
After you have created an application server connection and an EAR deployment profile, you can deploy the application to a standalone application server.
To deploy an application:
1. Deploy your project to the application server:
a. In the Application Navigator, right-click your application and choose Deploy > deployment profile. b. In the Deploy wizard Deployment Action page, select Deploy to Application Server and click Next.
Etc.
References:
http://docs.oracle.com/cd/E25178_01/fusionapps.1111/e15524/adv_wls_e.htm https://docs.oracle.com/cd/E15523_01/web.1111/e15470/deploy.htm#ADFAG20592

Your database has a strict security requirement that whenever users select from any table in the database schema, they must append the select statement with an 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 least amount 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 the view 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 to the 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.


Answer : C

View the Exhibit.


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

  • A. calls a method
  • B. calls the updateCustomer page
  • C. determines whether the user is navigated to the updateCustomer or callEmployeeTF activity
  • D. displays a pop-up that allows the user to enter a value for the current row


Answer : B

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

  • A. Restore View
  • B. Apply Request Values
  • C. Process Validations
  • D. Update Model Values
  • E. Invoke Application
  • F. Render Response


Answer : AB

Explanation:
Figure, JavaServer Faces Standard Request-Response Lifecycle


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

You have three application modules: A, B, and C. Application modules В and С are nested under the root application module A. Which statement is true when committing 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.


Answer : C

What is the purpose of applying a view criteria to a list accessor (that defines the data source of a list of values)? (Choose the best answer.)

  • A. It allows the data in the list to be filtered based on the view criteria.
  • B. Defining a view criteria allows you to specify different UI options for the list of values.
  • C. It automatically gives end users a search panel from which they can filter the data in the list of values.
  • D. It defines the order in which the data in the list appears.
  • E. It automatically prevents excessively long lists of values by forcing the application of view criteria if the list of values has more than a defined number of rows returned.


Answer : A

Explanation:
In an ADF application a view accessor is considered as an approach to access a view object from another view object or entity object. The view accessors are mostly used to provide result sets for the lists of values.
A view criteria you define lets you specify filter information for the rows of a view object collection. The view criteria object is a row set of one or more view criteria rows, whose attributes mirror those in the view object. The view criteria definition comprises query conditions that augment the WHERE clause of the target view object. Query conditions that you specify apply to the individual attributes of the target view obje
References:
https://docs.oracle.com/cd/E15523_01/web.1111/b31974/bcquerying.htm#ADFFD21779

Which 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 code logic in a backing bean? (Choose two.)

  • A. af:panelBorderLayout
  • B. af:panelSplitter
  • C. af:stretchLayout
  • D. af:panelDrawer
  • E. af:panelTabbed


Answer : AB

Explanation:
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 the contained 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, 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 of other 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 showDetailItem children are displayed. Selecting a tab, displays the associated showDetailItem.
References:
http://docs.oracle.com/cd/E15523_01/apirefs.1111/e12419/tagdoc/af_panelSplitter.html http://docs.oracle.com/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_panelBorderLayout.html

Which 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.
  • 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.


Answer : BC

Explanation:
A rollback rollbacks the transaction. It discard all changes.
Incorrect Answers:
D: The passivated state will be removed when a transaction commit/rollback occurs.
References:
https://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/ApplicationModule.html

How are ADF components shared among applications? (Choose the best answer.)

  • A. by using a source control system to share components
  • B. by selecting the Shared Library check box when adding libraries and JARs to a project
  • C. by creating shared application modules and ensuring all developers use them
  • D. by defining a custom JAR file and sharing it in a source control system
  • E. by creating an ADF Library of components and deploying it to a shared location


Answer : E

Explanation:
If you have JAR files that can be reused by other projects, such as third-part JAR files, you can use JDeveloper to place them in an accessible location and create a library file ( .library) to designate them. The consumer can use JDeveloper to navigate to this location and add the JAR to the project.
Place the JAR files in an accessible location for both the producer and the consumer of these JAR files. For example, the directory may be on a network drive where other shared files are located.
References:
https://docs.oracle.com/cd/E15051_01/web.1111/b31974/reusing_components.htm#ADFFD21754

Your Business Components service has a view object (EmployeesView) with an attribute called Surname. Surname has the Tooltip Text control hint set to "This is the surname field". Where is the actual string for the tooltip defined? (Choose the best answer.)

  • A. in the view object definition file, for example, EmployeesView.xml
  • B. in a string bundle file called ModelBundle.properties
  • C. in ViewObjectImpl.java for the EmployeesView view object
  • D. in the adf-config.xml file
  • E. in a property set file with the default name PropertySet.Ñ…ml


Answer : A

Explanation:
Example, Querying Tooltips for Specific View Objects
The ADFQuery element can contain zero or more child elements named ViewObject if UI hints of all attributes in specific View Objects are queried. Each
ViewObject element has a text content that contains the View Object's name. The ViewObject element is used to specify the View Objects from which the UI hints of all attributes are queried.
For example, to query the tooltips of all attributes in the View Object that is named EmployeesView and CustomersView under the My_orclADF physical database object, use the following XML code:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<ADFQuery mode="tooltip" database="My_orclADF"
locale="VALUEOF(NQ_SESSION.WEBLANGUAGE)">
<ViewObject><![CDATA[EmployeesView]]></ViewObject>
<ViewObject><![CDATA[CustomersView]]></ViewObject>
References:
https://docs.oracle.com/cd/E23549_01/bi.1111/e10541/adf_labels_tips.htm

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.


Answer : D

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

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.


Answer : E

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


Answer : ABC

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

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 as SELECT 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.


Answer : E

Page:    1 / 7   
Total 99 questions