IBM MQ Interview Questions (Intermediate)

Intermediate IBM MQ interviews assume you have configured queues and channels in a lab or non-production environment and can reason about failures from symptoms. Expect questions on sender-receiver pairs, transmission queues, CHLAUTH and MCAUSER, syncpoint with databases, cluster basics, request/reply correlation, and when to choose pub/sub versus point-to-point. Answers should mention specific objects and commands—not only theory—and acknowledge operational impact (depth, retry, DLQ).

Channels and Distributed MQ

Explain sender and receiver channel roles.

The sender channel (SDR) runs on the queue manager that has messages to ship; it reads from a transmission queue (XMITQ) and connects outbound to the partner. The receiver channel (RCVR) runs on the target queue manager and accepts the inbound connection. Channel names must match on both sides; CHLTYPE differs. CONNAME on the sender points to host and port where the listener waits.

What is a transmission queue?

A transmission queue holds messages destined for a remote queue manager until the sender channel successfully transfers them. If the channel is not RUNNING, depth on the XMITQ grows—operations monitor it alongside the application queue on the source system.

Channel shows BINDING but not RUNNING. What do you check?

Partner listener up, channel name match, CHLAUTH rules, TLS cipher and certificate trust, firewall port, and MCAUSER authority on the receiver. DISPLAY CHSTATUS on both queue managers; AMQERR logs on the side that refuses the handshake.

Channel tuning attributes (intermediate)
AttributeEffectIf mis-set
BATCHSZMessages per network batchLatency vs throughput
BATCHINTMax wait to fill batchSlow link underutilized
HBINTHeartbeat intervalFalse failure detection
DISCINTIdle disconnectChannel stop/start churn

Security

What is CHLAUTH?

Channel authentication records control who may start channels and under which MCAUSER identity inbound connections run. When CHLAUTH is ENABLED, default rules often block unless you define scoped ALLOW rules for known partners. BLOCKUSER rules deny specific asserted users.

What is the difference between OAM and CHLAUTH?

OAM (Object Authority Manager) controls access to queues, topics, and other objects—can this user put to PAY.Q? CHLAUTH controls channel binding—may this remote connection use this SVRCONN or start this SDR? Both are required for defense in depth.

shell
1
2
3
4
DISPLAY CHSTATUS('PARTNER.SDR') CHSTATUS SUBSTATE DISPLAY CHLAUTH(*) WHERE(CHLTYPE EQ SVRCONN) * CHSTATUS — BINDING, RUNNING, RETRYING, etc. * SUBSTATE — more detail during failures

Transactions and Syncpoint

Why use syncpoint with MQPUT and a database update?

So both commit or both roll back. If the database commits but MQ fails, or vice versa, business data and messages disagree. MQCONN with syncpoint, MQPUT under UOW, SQL commit via resource manager, then MQCMIT—or MQBACK on error.

What happens if a consumer gets a message under syncpoint then abends before commit?

The message is rolled back to the queue and available again—at-least-once delivery. Consumers must be idempotent for financial processing.

Request/Reply and Correlation

How does request/reply work in MQ?

The requester sets ReplyToQ and ReplyToQMgr in MQMD (or uses a fixed reply queue), puts the request, then GETs the reply queue with MatchOptions on CorrelId equal to the request MsgId. The responder copies CorrelId from the request into the reply. Timeouts prevent infinite wait.

Clustering (Intermediate)

What problem do MQ clusters solve?

Clusters automate routing and channel definitions between queue managers in the same cluster name. New queue managers join the cluster repository; cluster queues appear with workload balancing instead of defining every remote queue manually.

What is the difference between full and partial repository?

Full repository queue managers hold complete cluster object knowledge; partial repositories cache subset and consult full repos for updates. Misconfigured repositories cause routing inconsistencies—DISPLAY CLUSQMGR and cluster cache refresh skills matter in support roles.

Pub/Sub (Intermediate)

What is a durable subscription?

A subscription that survives subscriber application downtime. Messages accumulate on the subscriber queue until the consumer returns. Non-durable subscriptions exist only while the application is subscribed.

Explainer: Plumbing Between Buildings

Intermediate level is about the pipes between buildings (channels), who may open doors (CHLAUTH), and contracts that say water delivery and ledger entry happen together (syncpoint)—not just buckets (queues) inside one building.

Explain Like I'm Five: Intermediate MQ

Now you learn how mail trucks drive between towns (channels), who is allowed to drive in (security), and how to send a letter and wait for an answer letter back (request/reply).

Practice Exercises

Exercise 1

Configure SDR/RCVR pair in lab; break TLS and document BINDING vs RUNNING fix steps.

Exercise 2

Implement request/reply with amqsput/amqsget using correlation.

Exercise 3

Explain idempotency to an interviewer in under sixty seconds.

Frequently Asked Questions

Frequently Asked Questions

Test Your Knowledge

Test Your Knowledge

1. Sender channel requires:

  • XMITQ on sending QM
  • XMITQ on receiving QM
  • No queue
  • Only topic

2. CHLAUTH ENABLED with no rules typically:

  • Blocks connections
  • Allows all
  • Deletes queues
  • Starts QM

3. Syncpoint commit on GET means:

  • Message removed with UOW commit
  • Message copied only
  • Channel stops
  • Topic deleted

4. Cluster repository holds:

  • Routing knowledge for cluster objects
  • Only TLS keys
  • JCL
  • COBOL source
Published
Read time20 min
AuthorMainframeMaster
Verified: IBM MQ 9.4 documentation