Oracle 1z0-897 Exam Practice Questions (P. 2)
- Full Access (120 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
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 authentication for all web service invocations. Where does the developer configure security requirements for the above case?
send
light_mode
delete
Question #7
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):
- AThe 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.
- BThe 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.
- CThe 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.
- DThe 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,
Correct Answer:
C
C
send
light_mode
delete
Question #8
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:

Choose the statement that best describes the configuration that would be required to support the access control constraint shown:
- ANo further configuration is required - the JavaEE runtime will pick up the security constraint and configure the web container to match.
- BThe 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.
- CThe 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.
- DThe 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.
Correct Answer:
B
B
send
light_mode
delete
Question #9
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)
(Choose one)
send
light_mode
delete
Question #10
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)

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)
send
light_mode
delete
All Pages