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 71:
Given the class:
Choose the annotation to add on line 4 to enable the client to receive a JSON representation of the instance of Value that is returned (Choose one):
A. @Produces("application/json"); B. @Consumes("application/json"); C. No annotation is needed, since JAX-RS supports marshalling and unmarshalling of JSON records. D. No annotation is possible, since JAX-RS does not support marshalling and unmarshalling of JSON records.
A. @Produces("application/json");
Question 72:
Choose the option 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 interaction needed. B. The EJB can be deployed to any EJB or web container that would support local references to the EJB from the JAX-RS runtime 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 runtime in the web container. D. The EJB can be deployed to an EJB or web container that is visible to the JAX-RS runtime, even on an application server separate from the JAX-RS runtime, since EJBs support local or remote interactions via RMI.
C. The EJB can be deployed to any EJB or web container that would support local references to the EJB from the JAX-RS runtime in the web container.
Question 73:
Which two code fragments are valid for adding an attachment in SAAJ? (Choose two.)
A. AttachmentPart attachment = request.createAttachementPart(); String stringContent = Update total; attachment.setContent(stringContent,text/plain); attachment.setContentID(update_total); request.addAttachmentPart(attachment); B. Attachment attachment = request.createAttachement(); String stringContent = Update total; attachment.setContent(stringContent,text/plain); attachment.setContentID(update_total); request.addAttachment(attachment); C. URL url = new URL(http://eshop.com/products/tb.jpg); DataHandler datahandler = new DataHandler(url); AttachmentPart attachment = request.createAttachmentPart(dataHandler); attachment.setContentID (attached_image); request.addAttachmentPart(attachment); D. URL url = new URL(http://eshop.com/products/tb.jpg); DataHandler datahandler = new DataHandler(url); Attachment attachment = request.createAttachment(dataHandler); attachment.setContentID (attached_image); request.addAttachment(attachment); E. Attachment attachment = request.newAttachement(); String stringContent = Update total; attachment.setContent(stringContent,text/plain); attachment.setContentID(update_total); request.setAttachment(attachment);
A. AttachmentPart attachment = request.createAttachementPart(); String stringContent = Update total; attachment.setContent(stringContent,text/plain); attachment.setContentID(update_total); request.addAttachmentPart(attachment); C. URL url = new URL(http://eshop.com/products/tb.jpg); DataHandler datahandler = new DataHandler(url); AttachmentPart attachment = request.createAttachmentPart(dataHandler); attachment.setContentID (attached_image); request.addAttachmentPart(attachment);
Question 74:
Given the resource class fragment:
Choose the code fragment below that would secure access only to the Resource update() method (Choose one):
A. /rest GET POST B. /rest POST C. /rest/id POST GET D. D. /id POST
B. /rest POST
Question 75:
Which of the following can an EJB-based web service endpoint may NOT be able to use ?
A. Servlet sessions B. Java EE 6 declarative security C. container-managed transactions D. dependency injection
A. Servlet sessions
Question 76:
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 77:
Given stock quote web service endpoint:
and the corresponding client side artifacts for the above web service are :
StockQuoteService is the Service class and StockQuoteProvider is the corresponding SEI.
Which of the following two options enable addressing feature for proxy for the StockQuoteProvider SEI ? (Choose two)
A. proxy = new StockQuoteService().getStockQuoteProvider() B. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature()) C. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature(false)) D. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature(false, true))
A. proxy = new StockQuoteService().getStockQuoteProvider() B. proxy = new StockQuoteService().getStockQuoteProvider(new AddressingFeature())
Question 78:
Which security technologies are not included in WS-Security?
A. encryption B. handshake for credential exchange and session establishment C. security tokens D. digital signatures
B. handshake for credential exchange and session establishment
Question 79:
Choose the statement that best describes the use of Enterprise Beans as JAX-RS root resources:
A. An Enterprise Bean can be made a JAX-RS root resource only if EJB-specific features such as transaction management or security validation are not used. B. JAX-RS imposes no limitations on the characteristics ofthose Enterprise Beans that can be exposed as JAX-RSresource classes. C. An Enterprise Bean that is exposed as a JAX-RS root resourcecan no longer be used directly as a remote bean itself - thebean implementation class can be accessed via the remote EJBdistributed framework (RMI), or a JAX- RS root resource, but not both concurrently within the same application. D. An Enterprise Bean that is exposed as a JAX-RS root resource supports all the same features as a JAX-RS resource that it supports as an EJB.
B. JAX-RS imposes no limitations on the characteristics ofthose Enterprise Beans that can be exposed as JAX-RSresource classes.
Question 80:
In designing the security for your enterprise application with multiple Web services, you don't want that each of the services handle user authentication by itself. Then which of the following you can use in your design?
A. enable secure conversation for each service B. a centralized Policy Decision Point (PDP) via XACML C. a Security Token Service (STS) D. use transport level security with SSL
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.