aiotestking uk

1Z0-897 Exam Questions - Online Test


1Z0-897 Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

Q1. A company is building a customer relationship management system that is to be deployed on a customer's network, and they want software functions to be reused and combined in different modules in the system. The Director of Technology has determined that the new system should utilize both Web services and a Service Oriented Architecture (SOA). Which two statements about Web services in an SOA are correct? (Choose two.) 

A. A Web service must be discovered from a UDDI registry in an SOA. 

B. SOA and Web services both use the HTTP protocol at the transport layer. 

C. A Web service must publish itself to a UDDI registry to become part of an SOA. 

D. SOA is a way to design a system and Web services are a possible implementation. 

E. SOA is used for stateless invocations, and Web services for stateful invocations. 

F. SOA emphasizes the concept of service encapsulation and Web services fulfill a service contract. 

Answer: DF 

Q2. A developer is asked to consult on a Web services project and assist the team with a good design approach on a new project. The team members disagree on whether to use WSDL or Java first. Several members are skilled with XML and see a schema and WSDL as the correct place to start. The team has also learned the deadline for this project has been moved up and another team plans to reuse their code. Which statement is true about the proper course of action to take in this situation? 

A. Java should be used first because it is a strongly typed language and will result in a robust WSDL. 

B. WSDL should be used first because it will make the code easier to reuse for the other team. 

C. Java should be used first because it is often the fastest and easiest approach. 

D. WSDL should be used first because the team knows XML Schema. 

Answer:

Q3. Given the two classes: 

Choose the option that best evaluates the example: 

A. This is a valid example of two EJBs used as JAX-RS resources, one a root resource and the other a subresource. 

B. This is an invalid example, because EJBs that are to be used as JAX-RS subresources have to match the type of EJB of their "parent" resource. 

C. This is an invalid example, because singleton EJBs used as JAX-RS resources must explicitly state what locking strategy they will require. 

D. This is an invalid example, because the JAX-specification only allows root resource types to also be EJBs. 

Answer:

Q4. 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; 

Answer:

Q5. What would be the HTTP content-type header when a message is optimized using MTOM ? (Choose one) 

A. multipart/related 

B. text/xml 

C. application/soap+xml 

D. application/xop+xml 

Answer:

Q6. A company is refactoring an existing website to use Web services clients. The application retrieves lists of parts and displays them to the users in a browser window. Previously, the data was stored as files on the web server and, in order to access the files, 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 

Answer: BCE 

Q7. 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); 

Answer: AC 

Q8. Given the class: 

Choose the URL path that would result in a call to getToken()? (Choose one) 

A. /id 

B. /resource/id 

C. /resource/id/token 

D. /resource/token 

Answer:

Q9. Which of the following security technology is not covered in Metro project? (Choose one.) 

A. WS-Trust 

B. WS-SecurityPolicy 

C. WS-SecureConversation 

D. XACML 

Answer:

Q10. A developer is asked to determine which Web services approach is correct for a new project. A SOAP-based Web service must be created and deployed in an environment where many customers will use it. These customers will be responsible for developing their own clients using different frameworks, based on the published WSDL. Which approach is correct to use first in this situation? (Choose one) 

A. Java, because the WSDL generated later will be more accurate 

B. WSDL, because the service and customers can benefit from the strongly typed schema 

C. Java, because the service must be efficient to support many customers 

D. WSDL, because tools allow existing classes to be easily mapped without modification 

Answer: