Oracle 1Z0-897 Online Practice
Questions and Exam Preparation
1Z0-897 Exam Details
Exam Code
:1Z0-897
Exam Name
:Java EE 6 Web Services Developer Certified Expert
Certification
:Oracle Certifications
Vendor
:Oracle
Total Questions
:120 Q&As
Last Updated
:Dec 13, 2021
Oracle 1Z0-897 Online Questions &
Answers
Question 41:
A developer needs to write a Web service that supports user sessions that timeout after 120 seconds. Which configuration file is correct for the developer use? (Choose one)
A. web.xml B. server.xml C. ejb-jar.xml D. service-config.xml
A. web.xml
Question 42:
Which two statements are true about creating a Web service with JAX-WS? (Choose two.)
A. Stateless Web services must be created with HTTP servlet endpoints. B. Creating the portable artifacts by hand is slow, but makes a service easier to maintain. C. All Java-based endpoints share a common packaging model. D. EJBs can serve as endpoints if hosted in a container with runtime and service support. E. JAX-WS supports creating services from source and compiled code without a WSDL.
D. EJBs can serve as endpoints if hosted in a container with runtime and service support. E. JAX-WS supports creating services from source and compiled code without a WSDL.
Question 43:
A Web service needs to encrypt certain SOAP headers when responding. Which statement about this encryption is true?
A. The Web service runtime is the appropriate place for such encryption. B. The Web service business logic is the appropriate place for such encryption. C. Either the Web service business logic or runtime is appropriate for such encryption. D. Neither the Web service business logic nor runtime is appropriate for such encryption. E. Transport level security protocol like SSL should be used to meet the requirements without code changes.
A. The Web service runtime is the appropriate place for such encryption.
Question 44:
Given that StockQuoteService is a Service class and StockQuoteProvider is a corresponding SEI for a web service. Which of the following options enable MTOM feature for proxy for the StockQuoteProvider SEI ? (Choose one)
A. proxy = new StockQuoteService().getStockQuoteProvider() B. proxy = new StockQuoteService().getStockQuoteProvider(new MTOMFeature()) C. proxy = new StockQuoteService(new MTOMFeature()).getStockQuoteProvider() D. proxy = new StockQuoteService().getStockQuoteProvider(new RespectBindingFeature())
B. proxy = new StockQuoteService().getStockQuoteProvider(new MTOMFeature())
Question 45:
Which two statements are true about public key digital signatures applied to Web services? (Choose two)
A. The receiver verifies that the message matches the digital signature using its own private key. B. The sender creates a digital signature using its own private key and sends that signature along with the original document. C. The sender creates a digital signature using its own public key and sends that signature along with the original document. D. The receiver verifies that the message matches the digital signature using the sender's public key.
B. The sender creates a digital signature using its own private key and sends that signature along with the original document. D. The receiver verifies that the message matches the digital signature using the sender's public key.
Question 46:
HTTP clients can provide authentication information to the server via the "Authorization" header in the HTTP request. Choose the alternative, if any, that would serve as the definition for a resource method that would allow a JAX-RS resource to obtain this authentication data (Choose one):
A. It is impossible for a JAX-RS resource to obtain this information, since low-level HTTP data is not presented to the JAX-RS application layer. B. @GET @Path("/authInfo") public String getAuthInfo( String authenticate ) { return authenticate; } C. @GET @Path("/authInfo/{AUTHENTICATE}") public String getAuthInfo( @PathParam("Authorization") String auth ) { return authenticate; } D. @GET @Path("/authInfo") public String getAuthInfo( @HeaderParam("Authorization") String auth ) { return authenticate; }
D. @GET @Path("/authInfo") public String getAuthInfo( @HeaderParam("Authorization") String auth ) { return authenticate; }
Question 47:
Which two statements are true about WSIT client development and using the WSIT configuration file? (Choose two.)
A. Client configuration files do NOT contain information security features, such as authentication. B. The file contains the URL for the WSDL. C. To maintain interoperability, the configuration file must not name packages. D. A WSIT client uses the file as a WSDL proxy is available from any WSIT compliant service. E. The wsimport tool uses the file to access the WSDL and build stubs to access a service.
B. The file contains the URL for the WSDL. E. The wsimport tool uses the file to access the WSDL and build stubs to access a service.
Question 48:
What is an advantage of enabling Addressing feature on an endpoint?
A. Addressing ensures reliable transfer of messages between client address and the service address. B. Addressing ensures the message exchanges between the client and service are properly secured. C. Addressing enables the optimization of messages exchanged between the client and the service. D. Addressing provides transport-neutral way to address the endpoints and messages.
D. Addressing provides transport-neutral way to address the endpoints and messages.
Question 49:
Given that:
What is X in the above code ? (Choose one)
A. byte[] B. DataHandler C. Image D. Byte[]
C. Image
Question 50:
Choose three ways to enable MTOM on a web service endpoint deployed in an EE container ? (Choose three)
A. enabled by the container automatically B. by specifying @MTOM annotation on the endpoint's class C. by specifying in webservices.xml deployment descriptor D. by specifying a wsoma:MTOM policy in WSDLE. by specifying element in sun- jaxws.xml
B. by specifying @MTOM annotation on the endpoint's class C. by specifying in webservices.xml deployment descriptor D. by specifying a wsoma:MTOM policy in WSDLE. by specifying element in sun- jaxws.xml
Nowadays, the certification exams become more and more important and required by more and more
enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare
for the exam in a short time with less efforts? How to get a ideal result and how to find the
most reliable resources? Here on Vcedump.com, you will find all the answers.
Vcedump.com provide not only Oracle exam questions,
answers and explanations but also complete assistance on your exam preparation and certification
application. If you are confused on your 1Z0-897 exam preparations
and Oracle certification application, do not hesitate to visit our
Vcedump.com to find your solutions here.