Ensurepass.com : Ensure you pass the IT Exams
2018 Jan Oracle Official New Released 1z0-897
100% Free Download! 100% Pass Guaranteed!
http://www.EnsurePass.com/1z0-897.html
Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam
Question No: 61 – (Topic 2)
Given that a web service endpoint is based on the stateless session EJB:
Which is true about the security roles of clients of MrBean? (Choose one)
-
Only EJB clients must be in role A.
-
Only Web Service clients must be in role A.
-
Both EJB and web service clients must be in role A.
-
Both EJB and web service clients must NOT be in role A.
Answer: C
Question No: 62 – (Topic 2)
Choose the option that best describe the deployer#39;s choices, when deploying an EJB that is also exposed as a RESTful web service using JAX-RS (Choose one):
-
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.
-
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.
-
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.
-
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.
Answer: C
Question No: 63 – (Topic 2)
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)
-
web.xml
-
server.xml
-
ejb-jar.xml
-
service-config.xml
Answer: A
Question No: 64 – (Topic 2)
A developer is creating a web service endpoint using a stateless session EJB for the business logic of an application. Choose two methods to select role based access control for the business logic ? (Choose two)
-
Using method-permission element in ejb-jar.xml
-
Using .htaccess file in the application#39;s ear
-
Using lt;security-rolegt; element in web.xml
-
By specifying security annotations like @RolesAllowed in the EJB class
Answer: A,D
Question No: 65 – (Topic 2)
A developer creates the following web service:
Assuming that he packages the class in a war file without deployment descriptors, the web service is hosted by a EE container relative to module context at ? (Choose one)
-
quot;/Invoicequot;
-
quot;/InvoicePortquot;
-
quot;/InvoiceServicequot;
-
quot;/InvoiceWebServicequot;
Answer: C
Question No: 66 – (Topic 2)
Given the resource class fragment:
Choose the code fragment below that would secure access only to the Resource update() method (Choose one):
-
lt;security-constraintgt;
lt;web-resource-collectiongt;
lt;url-patterngt;/restlt;/url-patterngt;
lt;http-methodgt;GETlt;/http-methodgt;
lt;http-methodgt;POSTlt;/http-methodgt;
lt;/web-resource-collectiongt;
-
lt;security-constraintgt;
lt;web-resource-collectiongt;
lt;url-patterngt;/restlt;/url-patterngt;
lt;http-methodgt;POSTlt;/http-methodgt;
lt;/web-resource-collectiongt;
-
lt;security-constraintgt;
lt;web-resource-collectiongt;
lt;url-patterngt;/rest/idlt;/url-patterngt;
lt;http-methodgt;POSTlt;/http-methodgt;
lt;http-methodgt;GETlt;/http-methodgt;
lt;/web-resource-collectiongt;
-
lt;security-constraintgt;D.lt;security-constraintgt;
lt;web-resource-collectiongt;
lt;url-patterngt;/idlt;/url-patterngt;
lt;http-methodgt;POSTlt;/http-methodgt;
lt;/web-resource-collectiongt;
Answer: B
Question No: 67 – (Topic 2)
Given the JAX-RS root resource class fragment:
Choose the statement that best describes the configuration that would be required to support the access control constraint shown:
-
No further configuration is required – the JavaEE runtime will pick up the security constraint and configure the web container to match.
-
The developer will have to configure the web container to require authenticated access to the URLs corresponding to this resource, so the proper information can be propagated to the EJB container.
-
The developer will have to turn on authentication in the web container configuration file, so that all incoming requests are authenticated in order to be processed.
-
The developer will have to configure the web container to require authenticated access to the URLs corresponding to this resource, and then map web-tier roles to ejb-tier roles, since the JAX-RS and EJB runtimes cannot use the same set of roles.
Answer: B
Question No: 68 – (Topic 2)
In which order do LogicalHandlers and SOAPHandlers configured on a Web Service endpoint execute on an incoming message ? (Choose one)
-
SOAPHandlers in the order specified in configuration are executed first and later the LogicalHandlers specified in the order get executed
-
LogicalHandlers in the order specified in configuration are executed first and later the SOAPHandlers specified in the order get executed
-
All the handlers are executed in the order specified in the configuration
-
All the handlers are executed in the reverse order specified in the configuration.
Answer: A
Question No: 69 – (Topic 2)
Choose two options from the following that can be achieved by setting the standard BindingProvider properties on a SEI proxy: (Choose two)
-
Configuring HTTP Basic Authentication credentials to access a service
-
Validating against schema for outgoing client messages
-
Adding additional SOAP headers for outgoing messages
-
Specifying web service endpoint address for service invocations
Answer: A,D
Question No: 70 – (Topic 2)
Given the following web service:
How many web methods are there in the above web service ? (Choose one)
-
1
-
2
-
3
-
4
-
5
Answer: D
100% Ensurepass Free Download!
–Download Free Demo:1z0-897 Demo PDF
100% Ensurepass Free Guaranteed!
–1z0-897 Dumps
EnsurePass | ExamCollection | Testking | |
---|---|---|---|
Lowest Price Guarantee | Yes | No | No |
Up-to-Dated | Yes | No | No |
Real Questions | Yes | No | No |
Explanation | Yes | No | No |
PDF VCE | Yes | No | No |
Free VCE Simulator | Yes | No | No |
Instant Download | Yes | No | No |
100-105 Dumps VCE PDF
200-105 Dumps VCE PDF
300-101 Dumps VCE PDF
300-115 Dumps VCE PDF
300-135 Dumps VCE PDF
300-320 Dumps VCE PDF
400-101 Dumps VCE PDF
640-911 Dumps VCE PDF
640-916 Dumps VCE PDF
70-410 Dumps VCE PDF
70-411 Dumps VCE PDF
70-412 Dumps VCE PDF
70-413 Dumps VCE PDF
70-414 Dumps VCE PDF
70-417 Dumps VCE PDF
70-461 Dumps VCE PDF
70-462 Dumps VCE PDF
70-463 Dumps VCE PDF
70-464 Dumps VCE PDF
70-465 Dumps VCE PDF
70-480 Dumps VCE PDF
70-483 Dumps VCE PDF
70-486 Dumps VCE PDF
70-487 Dumps VCE PDF
220-901 Dumps VCE PDF
220-902 Dumps VCE PDF
N10-006 Dumps VCE PDF
SY0-401 Dumps VCE PDF