10. binding.setValidateURI(false);
11. binding.setAccessURI("http://www.sun.com:8080/rt/");
This JAXR client interacts with a UDDI registry using binding as the JAXR
ServiceBinding object. Which statement is true about the code?
A. It is incorrect because setValidateURI cannot accept False as a parameter.
B. It allows the JAXR client to publish an incorrect URL for a service without an error.
C. It is incorrect because the setAccessURI cannot accept a URI with a port number.
D. It allows the JAXR client to redirect requests to an error page in case of an exception.
E. It is supported as written in the basic Java SE 6 API, but not in the Java EE 5 API.
Answer: B
QUESTION NO: 149
Which two statements are true about the interaction between a JAXR 1.0 client and a
UDDI registry? (Choose two.)
A. A JAXR client can delete an organization that it published.
B. A JAXR client CANNOT delete any of the entries in a UDDI registry.
C. A JAXR client must use HTTPS for updating the information in a UDDI registry.
D. A JAXR client can query and update the information in a UDDI registry using HTTP.
E. A JAXR client can delete an organization that it published only if the protect property is set to False.
Answer: A,C
QUESTION NO: 150
Which JAXR interface allows querying a business registry using SQL commands?
A. javax.xml.registry.Connection at level 0
B. javax.xml.registry.FederatedConnection at Level 1 C. javax.xml.registry.BusinessQueryManager at level 0 D. javax.xml.registry.DeclarativeQueryManager at level 1 E. javax.xml.registry.BusinessQueryManager at level 1 F. javax.xml.registry.DeclarativeQueryManager at level 0 Answer: D
QUESTION NO: 151
Which two statements are true about the properties used to configure a JAXR
ConnectionFactory?(Choose two.)
A. They cannot be configured by the client.
B. A JAXR provider can define a set of provider-specific properties.
C. Configuration properties must never be qualified by a package name.
D. There are a set of standard properties that all JAXR providers must support.
E. All of the properties are implementation-specific and may vary between JAXR providers.
Answer: B,D
QUESTION NO: 152
A developer creates a new CRM software product for a company that exposes EJBs as
Web services for other modules in the application suite.Which mechanism should be used
to manage transactions in an EJB-based endpoint?
A. the Java Transaction API or a similar API
B. the built-in JAX-WS runtime support for transactions C. the built-in SOAP over HTTP transaction manager
D. the declarative transaction elements defined in the deployment descriptor E. the built-in session aware transaction controller
Answer: D
QUESTION NO: 153
What are three profiles that WS-I has defined related to Web services security? (Choose
three.)
A. Basic Security (BSP) B. JAX-WS Security
C. Rights Expression Language (REL) D. JAXR Security
E. SAML Token F. SAAJ
Answer: A,C,E
QUESTION NO: 154
A company is undergoing a massive security audit and they are examining how
an application complies with the WS-Security specification for Web service message
security standards.What are the three key standards combined by WS-Security? (Choose
three.)
A. SOAP B. JSSE
C. XML Encryption D. JAX-WS
E. UDDI
F. XML Signature Answer: A,C,F
QUESTION NO: 155
A developer creates a new utility billing software package and considers the
benefits of EJB vs. servlet-based endpoints for upcoming development work. What
are two benefits of using servlet-based endpoints? (Choose two.)
A. method-level, declarative access control B. easier invocation of servlet-based endpoints C. session aware processing of service requests D. better support for concurrent service calls
E. container-based, lifecycle management of endpoint instances F. easier implementation of servlet-based endpoints
Answer: C,F
QUESTION NO: 156
A developer plans to refactor some of the company's existing Java EE 5 business
services, moving them out of the existing monolithic application and into Web
services.What are two benefits of exposing existing Java EE 5 functionality as a Web
service? (Choose two.)
A. improved manageability B. more finely-grained C. enhanced security
D. loose coupling of functionality E. self-describing
F. automatic session management Answer: D,E
QUESTION NO: 157
Which two statements are true about the interoperability of Web services developed using
the Java EE 5 platform? (Choose two.)
A. Interoperability is improved by restricting access only to Java clients.
B. EJB-based endpoints are more difficult for .NET clients to access.
C. Only servlet-based endpoints are used when exposing services to non-Java clients.
D. Exposure is limited to simple arrays of concrete types as the signature of Web service methods.
E. The service must be published in both the .NET and Java UDDIs.
F. Testing for WS-I Profile conformance improves interoperability.
Answer: D,F
QUESTION NO: 158
for a new application, one requirement is that developers must be able to produce
and consume messages conforming to the SOAP 1.1 specification and SOAP with
attachments.Which API should be used to meet this requirement?
A. JAXB B. StAX C. SAAJ D. JAXP E. JAX-WS F. DOM Answer: C
QUESTION NO: 159
How does JAXB associate XML schemas to Java objects?
A. via StAX API calls B. through data binding
C. by using registration and discovery of services D. by creating callback methods
E. via annotations Answer: B
QUESTION NO: 160
A company needs to process DOM documents received from its customers through an
EJB3 endpoint.Which two APIs will a developer need to invoke to process these DOM
documents? (Choose two.)
A. UDDI B. JAXR C. JAXP D. JAX-WS E. JAXB F. StAX Answer: C,F
QUESTION NO: 161
What are two valid facts about WS-I? (Choose two.)
A. The I-Stack is a great development tool.
B. The WS-I promotes and supports generic protocols for the interoperable exchange of messages.
C. The WS-I governs languages and protocols such as SOAP, WSDL, and UDDI.
D. The WS-I specifies specific rules that address either weaknesses in component specifications or issues of how to combine the collected technology.
E. The WS-I has been a guiding force in creating StAX.
Answer: B,D
QUESTION NO: 162
A company is evaluating Java application servers in order to use one as a standard in the
organization.What are two important facts that should be considered as they examine
possible tools? (Choose two.)
A. Java EE 5 vendors MUST support the WS-I Basic Profile.
B. Java EE 5 vendors are NOT required to support the WS-I Basic Profile.
C. Applications deployed on the Java EE 5 platform must conform to the WS-I Basic Profile.
D. Applications deployed on the Java EE 5 platform are NOT required to conform to the WS-I Basic Profile.
E. JCAPS is included in all Java EE 5 application servers.
F. JSSE is an optional extension in all Java EE 5 application servers.
Answer: A,D
QUESTION NO: 163
A developer is evaluating WS-I Basic Profile compliance claims from various software
vendors.Which two are correct evaluation criteria to use when examining claims from
different companies? (Choose two.)
A. WS-I Basic Profile does NOT address lower-layer internet protocols, such as TCP and IP.
B. WS-I Basic Profile ensures that .NET and Java Web services are interoperable.
C. WS-I Basic Profile guarantees interoperability between WS-I Basic Profile compliant services.
D. WS-I Basic Profile assures that application semantics are understood by all services interacting with each other.
E. WS-I Basic Profile addresses the most common interoperability problems, but does NOT guarantee interoperability between compliant services.
F. WS-I disallows RPC-style Web services.
Answer: A,E
QUESTION NO: 164
Which three techniques can be used to apply XML Digital Signatures to an XML
document? (Choose three.)
A. use detached signatures, where the digital signature covers sibling elements or external data
B. use enveloping signatures, where the digital signature element encloses the data to be signed
C. use enveloping signatures, where the digital signature is a child element of the data to be signed
D. use enveloped signatures, where the digital signature is a child element of the data to be signed
E. use enveloping signatures, where the digital signature element is a child element of the data to be signed
Answer: A,B,D
QUESTION NO: 165