Oracle 1z0-419 Exam Practice Questions (P. 2)
- Full Access (98 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #6
Which three objects can the "Create Business Components from Tables" wizard create? (Choose three.)
- Aquery-based view objects based on database tables
- Bapplication module
- Centity objects based on database tables
- Dentity object Java classes
- Eapplication module Java classes
- Fnested application modules
Correct Answer:
ABC
A: When creating an entity object using the Business Components from Tables wizard or the Create Entity Object wizard, an entity object can represent an underlying table, synonym, or view.
On the Updatable View Objects page of the wizard, you can create view objects that query data from the entity objects.
B: On the Application Module page of the wizard, select the Application Module checkbox.
To place the application module into its own package, change the Package to model.services .
C: The simplest way to create entity objects and associations is to reverse-engineer them from existing tables. To create an entity object, use the Business
Components from Tables wizard.
References:
https://docs.oracle.com/cd/B31017_01/web.1013/b25947/bcentities002.htm http://www.oracle.com/technetwork/testcontent/bslayer-095695.html
ABC
A: When creating an entity object using the Business Components from Tables wizard or the Create Entity Object wizard, an entity object can represent an underlying table, synonym, or view.
On the Updatable View Objects page of the wizard, you can create view objects that query data from the entity objects.
B: On the Application Module page of the wizard, select the Application Module checkbox.
To place the application module into its own package, change the Package to model.services .
C: The simplest way to create entity objects and associations is to reverse-engineer them from existing tables. To create an entity object, use the Business
Components from Tables wizard.
References:
https://docs.oracle.com/cd/B31017_01/web.1013/b25947/bcentities002.htm http://www.oracle.com/technetwork/testcontent/bslayer-095695.html
send
light_mode
delete
Question #7
Which three statements are true about declarative features of view objects? (Choose three.)
- AYou can use view object bind variables to parameterize a view object where clause with values supplied at run time.
- BBy default, a view object instance retrieves all database rows into the view object cache.
- CTo implement master-detail behavior between two view object instances, you define an association between those instances.
- DA view accessor defines a validation expression that you apply to a view object attribute.
- EA view object can include attributes whose values are based on SQL expressions rather than mapping directly to a database column.
- FA view object definition can include many view criteria but you can choose which view criteria to apply for each view object instance.
Correct Answer:
ACE
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 based on 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 hierarchies of 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 the SQL 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
SQL statements. This capability of the ADF Business Components design time and runtime is known as declarative SQL mode. When the data model developer works with 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 causes the ADF Business Components runtime to generate the SQL query statements
References:
http://docs.oracle.com/cd/E37975_01/web.111240/e16182/bcquerying.htm#ADFFD1992
ACE
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 based on 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 hierarchies of 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 the SQL 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
SQL statements. This capability of the ADF Business Components design time and runtime is known as declarative SQL mode. When the data model developer works with 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 causes the ADF Business Components runtime to generate the SQL query statements
References:
http://docs.oracle.com/cd/E37975_01/web.111240/e16182/bcquerying.htm#ADFFD1992
send
light_mode
delete
Question #8
Which three statements are true about the default value for an entity object attribute? (Choose three.)
- AIt can be a literal value.
- BIt can be defined by a Groovy expression.
- CIt can be defined by a SQL select statement.
- DIt can be defined by an Expression Language (EL) statement.
- EIt can be defined by referencing a database stored procedure.
Correct Answer:
ABD
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 can set 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
ABD
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 can set 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
send
light_mode
delete
Question #9
A backing bean for a page must hold its value over multiple requests for the current user. Which three bean scopes are applicable? (Choose three.)
- ArequestScope
- BbackingBeanScope
- CviewScope
- DpageFlowScope
- EsessionScope
- FapplicationScope
Correct Answer:
CDE
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 have a 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 be still 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 in a 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 bean that 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 request scope 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 scope spans 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 beans used in reusable components should be configured to backingBean scope. For example, bounded task flows that are designed to be regions on a page should use the 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 static objects that are the same for all users.
References:
http://xmlandmore.blogspot.se/2009/10/types-of-scopes-in-fusion-web.html
CDE
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 have a 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 be still 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 in a 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 bean that 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 request scope 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 scope spans 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 beans used in reusable components should be configured to backingBean scope. For example, bounded task flows that are designed to be regions on a page should use the 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 static objects that are the same for all users.
References:
http://xmlandmore.blogspot.se/2009/10/types-of-scopes-in-fusion-web.html
send
light_mode
delete
Question #10
Identify three statements that are true about JSF. (Choose three.)
- AComponents are used to define page structure.
- BNavigation between pages is defined outside of the JSF page in the metadata.
- CManaged beans can have only one of two memory scopes.
- DManaged beans can be accessed from more than one page.
- EJSF does not support template creation for pages.
Correct Answer:
ABD
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
ABD
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
send
light_mode
delete
All Pages