Interview Q&A · questions with model answers
WebSphere Interview Questions
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Most asked What is WebSphere Application Server, and how do Liberty and traditional WAS differ?
WebSphere Application Server is IBM's Java application server family. Traditional WAS (8.5.5 and 9.0.5, in Base and Network Deployment editions) is the long-established, full Java EE server…
-
Most asked Explain the traditional WebSphere Network Deployment architecture: cell, Deployment Manager, nodes, node agents, servers and clusters.
A cell is the administrative domain. The Deployment Manager (dmgr) holds the master configuration and runs the admin console. Each node (usually one machine or profile) has a node agent that…
-
Most asked How does Liberty's server.xml and feature model work?
Each Liberty server has a server.xml that lists features in <featureManager> (for example restfulWS-3.1, jdbc-4.3, mpHealth-4.0) and configures resources such as data sources, security and…
-
Most asked How do you configure a JDBC data source and connection pool in Liberty and in traditional WAS?
In Liberty, add the jdbc feature, a <library> pointing at the driver JAR, and a <dataSource> with a JNDI name, properties and a <connectionManager> for pool settings. In traditional WAS, create a…
-
Most asked Explain class loading in WebSphere: parent-first versus parent-last, and shared libraries.
Class loaders form a hierarchy: JVM and server classes at the top, then application (EAR) and module (WAR) class loaders. In parent-first mode (the default) a class is looked up in the parent first,…
-
Most asked Users see errors and the logs show J2CA0045E: connection not available. How do you investigate?
J2CA0045E means a request waited the full connection timeout for a pooled database connection and none became free: the pool is exhausted. Find out why connections are held: slow queries, long…
-
Most asked WSVR0605W hung thread warnings appear and the application stops responding. What do you do?
WSVR0605W means a thread has been active longer than the hung-thread threshold (10 minutes by default). Collect javacores (thread dumps) a few times, 30 to 60 seconds apart, to see what the stuck…
-
Most asked How would you migrate an application from traditional WebSphere to Liberty?
Assess first with IBM's tools (Transformation Advisor or the WebSphere Application Server Migration Toolkit binary scanner) to list incompatible APIs, configuration to recreate and complexity.…
-
What is a profile in traditional WebSphere, and which types are there?
A profile is a runtime environment created from one installation: its own configuration, logs and ports. The main types are a Deployment manager profile, an application server profile (a standalone…
-
What is JNDI, and how do applications look up resources in WebSphere?
JNDI (Java Naming and Directory Interface) is the directory where the server registers resources such as data sources, JMS queues and environment entries under names like jdbc/orders. Applications…
-
How do you collect and use javacores, heapdumps and verbose GC logs?
Javacores (thread dumps plus JVM summary) show what every thread is doing: use them for hangs and high CPU. Heapdumps (.phd files on IBM J9/OpenJ9) show what's in memory: use them for…
-
How do you tune the JVM heap and garbage collection for WebSphere?
Start from data, not guesses: turn on verbose GC, run a realistic load, and size the heap so that memory in use after a full collection sits around 40-70% of the maximum, with pauses within your…
-
How do session management and failover work in a WebSphere cluster?
HTTP sessions live in a cluster member's memory. The WebSphere plug-in uses session affinity (the clone ID in the JSESSIONID cookie) to send a user back to the same member. If that member fails, the…
-
How do IBM HTTP Server and the WebSphere plug-in route requests to a cluster?
IBM HTTP Server (or another supported web server) loads the WebSphere plug-in, which reads plugin-cfg.xml: the list of cluster members, their ports and the URIs each application serves. It forwards…
-
Write a wsadmin Jython script that creates a JDBC data source and saves the configuration.
Use AdminTask commands to find the JDBC provider, create a J2C authentication alias, create the data source with its JNDI name and properties, then call AdminConfig.save() and synchronise the nodes.…
-
What is LTPA, and how does single sign-on work across WebSphere servers?
LTPA (Lightweight Third-Party Authentication) is WebSphere's token format: after a user logs in, the server issues an encrypted, signed LtpaToken2 cookie. Any server that shares the same LTPA keys…
-
How do you configure SSL/TLS and manage certificates in WebSphere?
In Liberty, enable transportSecurity-1.0 and define <keyStore>s and an <ssl> configuration (keystores can be PKCS12 files or, in Kubernetes, certificates mounted from Secrets). In traditional WAS,…
-
How do you deploy applications to WebSphere, and how do you roll out a new version to a cluster without downtime?
Applications are packaged as WAR files (web modules) or EAR files (several modules). On Liberty you place them in apps/ with an <application> element (or in dropins/ for quick tests); on traditional…
-
What is Open Liberty, and how does it relate to WebSphere Liberty?
Open Liberty is the open-source (Eclipse Public License) Java runtime that forms the core of WebSphere Liberty. WebSphere Liberty adds IBM-only features (some traditional WAS compatibility features,…
-
How do you run Liberty in containers and on Kubernetes?
Build an image from an official Open Liberty or WebSphere Liberty base image: copy server.xml and the application, run features.sh to install features at build time, and configure.sh to finish the…
-
What is Liberty InstantOn, and when is it useful?
InstantOn takes a checkpoint of a started Liberty server (using CRIU, Checkpoint/Restore In Userspace) while building the container image, and restores it when the container starts, cutting start-up…
-
Design a highly available WebSphere environment for a business-critical application.
Traditional WAS: a cluster with members on at least two nodes (ideally in separate data centres or zones), IBM HTTP Servers behind a load balancer, session replication or persistence, a highly…
-
An application works in test but fails in production with NoSuchMethodError. What's happening?
Almost always a class loading conflict: production has a different version of a library visible to the application than test does, often because the server, a shared library or another JAR in the…
-
The server's memory grows after every application redeploy until it runs out of memory. Why?
A class loader leak: something outside the application (a server thread, a static field in a shared library, a JDBC driver registered with DriverManager, a ThreadLocal on a pooled thread, an…
-
How do you monitor WebSphere performance and health?
Traditional WAS: PMI (Performance Monitoring Infrastructure) counters for thread pools, connection pools, sessions and response times, viewable in Tivoli Performance Viewer or exported to monitoring…
-
What MicroProfile features does Liberty provide, and why use them?
MicroProfile adds cloud-native APIs on top of Jakarta EE: Config (externalised configuration), Health (liveness and readiness endpoints), Metrics and Telemetry (observability), Fault Tolerance…
-
How do you keep WebSphere configuration consistent across environments?
Treat configuration as code. On Liberty, keep server.xml and includes in Git, with environment differences in variables supplied by environment variables or secrets, and build immutable images. On…
-
How do you apply WebSphere fix packs and upgrades safely?
Traditional WAS: apply fix packs with IBM Installation Manager, first in lower environments, back up the installation and profiles, update the Deployment Manager first (it must be at the same or…
-
Write a Liberty server.xml for a REST service that uses a PostgreSQL database and exposes health checks.
Enable the REST, JSON, CDI, JDBC and MicroProfile Health features, configure the HTTP endpoint, a data source with a connection pool using variables for environment-specific values, and the…
-
Tell me about a time you resolved a production issue on an application server such as WebSphere.
Use STAR: the situation (for example a slow checkout with hung thread warnings), your task, the actions (gathered javacores and pool metrics, found a missing timeout on a downstream call holding…