IBM C9510-319 Exam Practice Questions (P. 2)
- Full Access (75 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
The manifest file of an OSGi application project contains the following headers:
Application-Content: BundleA; version=1.0.0, BundleB; version=1.0.0
Use-Bundle: BundleC; version=1.0.0
Which statement is true about the bundle content of this OSGi application?
Application-Content: BundleA; version=1.0.0, BundleB; version=1.0.0
Use-Bundle: BundleC; version=1.0.0
Which statement is true about the bundle content of this OSGi application?
- ABundleA, BundleB and BundleC are directly contained in the application.
- BBundleA, BundleB and BundleC are references to bundles that are hosted in an OS Gi bundle repository.
- CBundleA and BundleB are directly contained in the application while BundleC is a reference to a bundle that is hosted in an OSGi bundle repository.
- DBundleC is directly contained in the application while BundleA and BundleB are references to bundles that are hosted in an OSGi bundle repository.
Correct Answer:
C
C
send
light_mode
delete
Question #7
A developer has created a Liberty server in WebSphere Application Server Developer Tools for Eclipse.
How can the developer start the Liberty server from the Servers view using a JRE different from the default JRE?
How can the developer start the Liberty server from the Servers view using a JRE different from the default JRE?
- AOpen the Runtime Explorer view, select the runtime and click the Properties context sensitive menu item. Change the JRE set ting under the Server category in the Properties dialog.
- BOpen the Server Configuration editor by double c licking the server configuration in the Servers view, add a JVM configuration element and specify the JRE location in the Location field.
- COpen the Server editor by double clicking the server in the Servers view, select the Runtime Environments link and change the JRE setting in the Liberty Profile Runtime Environment dialog.
- DOpen the Server Configuration editor by double clicking the server configuration in the Servers view, add a Variable configuration element with the Name field
Correct Answer:
C
C
send
light_mode
delete
Question #8
A developer is testing a web application using a Liberty profile server. The application will also need to run on a Tomcat server and cannot make use of any APIs that are specific to the Liberty profile server. How can the user ensure that no classes outside of the specification classes are used by the application during the test?
- ACreate a file server.env under the same directory as the server.xml file and add the following line: Class-Path-Visibility=spec
- BOpen the meta-inf/manifest.mf file under the web project, add the following line: Class-Path-Visibility: specification
- COn the Server > Runtime Environment preference page, edit the Liberty profile runtime entry and select only the Specification checkbox under the API visibility section.
- DIn the Server Configuration editor, create a Classloader Service item under the application element and add the attribute apiTypeVisibility with the value of
Correct Answer:
D
D
send
light_mode
delete
Question #9
In WebSphere Application Server Developer Tools with default settings, which situation will cause validation errors instead of warnings in the Problems view?
- AThe closing </form> tag of a form element in an HTML page is omitted and the file is saved.
- BAn optional header of a bundle manifest file is misspelled in the Source view, and the file is then saved.
- CA user is added to a basic user registry in the Liberty server.xml file with a name and a password, without the password being encoded.
- DA package is used and specified in an Import-Package header of a bundle manifest file, and no corresponding Export-Package header exists for the same
Correct Answer:
D
D
send
light_mode
delete
Question #10
A developer runs a servlet from an OSGi web project named CounterWebBundle on a Liberty server and gets the following error message when the doGet method of the servlet is run:
[ERROR ] SRVE0777E: Exception thrown by application class
'com.ibm.ws.eba.servlet.CounterServlet.doGet():42' java.lang.NoClassDefFoundError: javax.naming.InitialContext
How should the developer resolve the problem?
[ERROR ] SRVE0777E: Exception thrown by application class
'com.ibm.ws.eba.servlet.CounterServlet.doGet():42' java.lang.NoClassDefFoundError: javax.naming.InitialContext
How should the developer resolve the problem?
- AEnsure that jndi-1.0 and serverStatus-1.0 are added to the Feature Manager in the server configuration.
- BEnsure that jndi-1.0 is added to the Feature Manager in the server configuration and the javax.naming package is added to the Import-Package of CounterWebBundle.
- CEnsure that jndi-1.0 is added to the Feature Manager in the server configuration and Web 2.0 is selected in the Project Facets of the Properties for CounterWebBundle.
- DEnsure that jndi-1.0 is added to the Feature Manager in the server configuration and the javax.naming.InitialContext is specified in the init-method of the bean
Correct Answer:
B
B
send
light_mode
delete
All Pages