1Z0-897 Exam Questions And 1Z0-897 Practice Tests

Page 1

Questions And Answers PDF

Oracle 1Z0-897 Java Platform

Version: DEMO

http://www.TestWarrior.com/1Z0-897-practice-exam.html

FOR 1Z0-897 Candidates: We offer Two Products:  1st - We have Practice Tests Software with Actual Exam Questions  2nd - Questions and Answers in PDF Format. Try a Free DEMO of these Exam Products via below Link:

http://www.TestWarrior.com/1Z0-897-practice-exam.html

TestWarrior.com

1


Questions And Answers PDF

Question 1 An airline built and deployed a back-end applicaton to manage reservatons. To support interoperability with as large a base of standalone client applicatons as possible, the services provided by this back-end applicaton are exposed as XML-based restul web services. Management just added a new requirement that AJAX-based web applicaton clients be supported, too. One of the developers suggested that it is enough to extend the existng applicaton to support both XML-based and JSON-based restul web services. Assuming the developer is correct, choose the sentence that best describes an atempt to introduce this ability as this developer suggests (Choose one): A. The atempt will fail, because JAX-RS does not support both XML- and JSON- based restul services in parallel. B. The atempt will be trivial to implement, since JAX-RS just needs for the applicaton to specify that both XML- and JSON-based interacton will be supported. C. The atempt can succeed, but it will require a signifcant amount of new code, since JAX-RS does support both XML- and JSON-based interacton - but not single resource can support both kinds of interacton simultaneously. D. The atempt will fail, because there is more to the diference between XML-based and JSONbased interactons than just the data representaton used.

Aoswern B Question 2 A company is refactoring an existng website to use Web services clients. The applicaton retrieves lists of parts and displays them to the users in a browser window. Previously, the data was stored as fles on the web server and, in order to access the fles, the user would simply click on a hyperlink. Now the data must be dynamically generated via a service that another developer has created. They want the easiest way to refactor their website to use Web services. Which three client-side technologies should they use? (Choose three.) A. SOAP B. REST C. Javascript D. XML E. JSON F. JAVA

Aoswern B,C,E Question 3 In the code fragment below, the client will use os to upload data to the web service provider.

TestWarrior.com

2


Questions And Answers PDF

Choose the statement that must be placed in line 5, to ensure this fragment works as intended. (Choose one) A. connecton.setDoOutput(true)) B. connecton.setAllowwserInteracton(true)) C. connecton.setIfModifedSince(new Date().getTime())) D. connecton.setwseCaches(false))

Aoswern A Question 4 Given the resource class fragment:

Choose the code fragment below that would secure access only to the Resource update() method (Choose one): A. <security-constraint> <web-resource-collecton> <url-patern>>rest<>url-patern> <htp-method>GET<>htp-method> <htp-method>POST<>htp-method> <>web-resource-collecton> B. <security-constraint> <web-resource-collecton> <url-patern>>rest<>url-patern> <htp-method>POST<>htp-method> <>web-resource-collecton> C. <security-constraint>

TestWarrior.com

3


Questions And Answers PDF

<web-resource-collecton> <url-patern>>rest>id<>url-patern> <htp-method>POST<>htp-method> <htp-method>GET<>htp-method> <>web-resource-collecton> D. <security-constraint>D.<security-constraint> <web-resource-collecton> <url-patern>>id<>url-patern> <htp-method>POST<>htp-method> <>web-resource-collecton>

Aoswern B Question 5 An organizaton has business logic implemented in EJB components. Current clients use containermanaged, role-based security to access the business logic using RMI. Management has determined that the business logic must be made available to non-RMI clients using a Web service. Which container-managed Web service security mechanism would the development team? use to allow Web service clients to use the current security model? (Choose one) A. XKMS B. XACML C. XML Digital Signature D. HTTP Basic Authentcaton E. annotatons mapped to the JAX-WS runtme

Aoswern D Question 6 A developer creates a Web service for his company's inventory service. He uses servlet container to deploy the web service and wants to enable basic authentcaton for all web service invocatons. Where does the developer confgure security requirements for the above case? A. sun-jaxws.xml B. web.xml C. webservices.xml D. domain.xml

Aoswern B Question 7 Choose the opton that best describe the deployer's choices, when deploying an EJB that is also exposed as a RESTful web service using JAX-RS (Choose one): A. The EJB can only be deployed to a web container, since RESTful access to the EJB requires a web container to support the HTTP interacton needed.

TestWarrior.com

4


Questions And Answers PDF

B. The EJB can be deployed to any EJB or web container that would support local references to the EJB from the JAX-RS runtme in the ejb container. C. The EJB can be deployed to any EJB or web container that would support local references to the EJB from the JAX-RS runtme in the web container. D. The EJB can be deployed to an EJB or web container that is visible to the JAX-RS runtme, even on an applicaton server separate from the JAX-RS runtme, since EJBs support local or remote interactons via RMI.

Aoswern C Question 8 Given the JAX-RS root resource class fragment:

Choose the statement that best describes the confguraton that would be required to support the access control constraint shown: A. No further confguraton is required - the JavaEE runtme will pick up the security constraint and confgure the web container to match. B. The developer will have to confgure the web container to require authentcated access to the wRLs corresponding to this resource, so the proper informaton can be propagated to the EJB container. C. The developer will have to turn on authentcaton in the web container confguraton fle, so that all incoming requests are authentcated in order to be processed. D. The developer will have to confgure the web container to require authentcated access to the wRLs corresponding to this resource, and then map web-ter roles to ejb-ter roles, since the JAXRS and EJB runtmes cannot use the same set of roles.

Aoswern B Question 9 A developer needs to write a Web service that supports user sessions that tmeout afer 120 seconds. Which confguraton fle is correct for the developer use? (Choose one) A. web.xml B. server.xml C. ejb-jar.xml D. service-confg.xml

Aoswern A Question 10 A developer creates the following web service:

TestWarrior.com

5


Questions And Answers PDF

Assuming that he packages the class in a war fle without deployment descriptors, the web service is hosted by a EE container relatve to module context at ? (Choose one) A. ">Invoice" B. ">InvoicePort" C. ">InvoiceService" D. ">InvoiceWebService"

Aoswern C

TestWarrior.com

6


Questions And Answers PDF

Thank You for Trying Our Product Visit Our Site to Purchase the Full Set of Actual 1Z0-897 Exam Questions With Answers.

http://www.TestWarrior.com/1Z0-897-practice-exam.html We Also Provide Practice Exam Software That Simulates Real Exam Environment And Has Many Self-Assessment Features. Download Free Product Demo From:

Download Free Product Demo from: http://www.TestWarrior.com/1Z0-897-practice-exam.html

Check Out Our Customer Testimonials

TestWarrior.com

7


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.