Saturday, March 3, 2012

MQ interview questions -1


                   MQSeries Questionnaire



1.    Which of the following network protocols are supported for WebSphere MQ for HP-UX?
 
A.
   SPX
 
B.
.  UDP
 
C.
.  TCP/IP
 
D.
.  LU 6.2
 
E.
.  NETBIOS 
2.    In a WebSphere MQ environment where five queue managers are in a hub-and-spoke configuration, how many channels must be created in order for the four spoke queue managers to exchange messages with the one hub queue manager?

 
A.
4
 
B.
5
 
C.
8
 
D.
10 


3.    There are two channels to send messages from queue manager QM1 to queue manager QM2. Channel C1 uses transmission queue QM1.QM2 and channel C2 uses transmission queue QM2. QM1 has a remote queue definition, Q2, which specifies QM1.QM2 as the transmission queue to reach QM2. An application connected to QM1 performs an MQPUT1 specifying both an object queue name Q2 and an object queue manager name QM2. Which of the following channel(s) will be used to transmit the message?

 
A.
C1
 
B.
C2
 
C.
C1 or C2 will be selected
 
D.
No transmission will occur 


4.    A triggered sender channel is defined with a disconnect interval of 600. Which of the following channel states will NOT be shown after issuing a DISPLAY CHSTATUS command?

 
A.
INACTIVE
 
B.
BINDING
 
C.
REQUESTING
 
D.
STOPPING 


5.    A WebSphere MQ client program written in java receives a 2059 (MQRC_Q_MGR_NOT_AVAILABLE) error when attempting to connect to a queue manager. Which of the following should be verified to determine the cause of this problem?

 
A.
   The MQSERVER environment variable is set
 
B.
  The program has access to the client channel definition table
 
C.
  The program has set the MQ environment correctly
 
D.
  The queue manager's listener is running
 
E.
   The program has been compiled using the correct JDK 
6.      Which of the following represents a callback?


 
A.
Requester – sender
 
B.
Requester – Server
 
C.
Sender – receiver
 
D.
Cluster – sender

7.      Which of the following scenarios require an authority check to be performed?


 
A.
When an application connects to a queue manager using an MQCONN or MQCONNX call
 
B.
When an application opens a WebSphere MQ object using an MQOPEN or MQPUT1 call
 
C.
When an application deletes a permanent dynamic queue using an MQCLOSE call
 
D.
All of the above

E.
A and B

8.    In WebSphere MQ for iSeries, the SSL key repository is accessed using:
 
A.
The MQSC command ALTER QMGR SSLKEYR.
 
B.
The Digital Certificate Management tool.
 
C.
The IBM GSKit package.
 
D.
iKeyMan.




9.       When an application opens an object, the application can supply a user ID on the

MQOPEN or MQPUT1 call and ask the queue manager to use this user ID for authority checks instead of the one associated with the application. This is called:


 
A.
MQM privilege
 
B.
Alternate user authority
 
C.
Additional User authority
 
D.
None of the above
10. Which of the following commands are checked for authority by the OAM (Object Authority Manager)

 
A.
Create Channel
 
B.
Reset Cluster
 
C.
Start Channel Listener
 
D.
Start Channel Initiator

E.
All of the above

F.
None of the above

11. Which is the default directory in UNIX where the key repository DB file is stored? (QM1 is the Queue manager)

 
A.
/var/mqm/qmgrs/QM1/ssl/key.kdb.
 
B.
/var/mqm/ssl/key.kdb.
 
C.
/var/qmgrs/QM1/ssl/key.kdb.
 
D.
None of the above



12.    Which of the following does not apply to a security exit?

 
A.
Security exits are called immediately after the initial data negotiation has completed on channel startup, but before any messages start to flow
 
B.
Security exits can be called only on message channels, not on MQI channels.
 
C.
The name of a security exit is specified as a parameter in the channel definition
 
D.
Security exit can perform functions that have nothing to do with security


13.    Which of the following security services are performed by DCE channel exits?

 
A.
Identification
 
B.
authentication
 
C.
Confidentiality
 
D.
Data integrity

E.
All of the above

E.
a)b) and c)

14.    In which structure will the userid for authentication of the application be set?


 
A.
MQMD
 
B.
MQTXH
 
C.
MQCD
 
D.
None of the above

E.
A and B
15.    The API-crossing exit is invoked for the following MQI calls namely (multi choice)

 
A.
MQCLOSE
 
B.
MQGET
 
C.
MQINQ
 
D.
MQCONN



16.    Which of the following are common reasons for authentication failures during the
SSL handshake(multiple choice)

 
A.
The SSL client does not have a certificate
 
B.
A certificate has expired or is not yet active
 
C.
There is no matching CA root certificate or the certificate chain is incomplete
 
D.
A certificate is not supported


17.    What is the difference between Removing and Unassigning a certificate?


 
A.
When you remove a certificate, it is deleted from the certificate store for the queue manager or WebSphere MQ client but When you unassign a certificate, it remains in the certificate store but cannot be used for authentication purposes.
 
B.
When you remove a certificate, it is deleted from the certificate store for the queue manager but When you unassign a certificate, it remains in the certificate store but cannot be used for authentication purposes.
 
C.
When you remove a certificate, it is deleted from the certificate store for the queue manager but When you unassign a certificate, it remains in the certificate store but is not associated with any queue manager

18.    Which of the following are true?


 
A.
A caller MCA is an SSL client and a responder MCA is an SSL server.
 
B.
A caller MCA is an SSL server and a responder MCA is an SSL client.
 
C.
Both A and B
 
D.
None of the above

19. An existing cluster has two queue managers, LONDON and NEW_YORK. Only LONDON has a full repository. A queue manager, PARIS, is being added to the cluster. It needs to send messages to the INVENTQ queue hosted by queue manager NEW_YORK and to the PAYROLL queue hosted by queue manager LONDON. Network connectivity exists between all three locations. How many additional definitions are required at queue managers LONDON and NEW_YORK to add queue manager PARIS to the cluster?

 
A.
0
 
B.
2
 
C.
4
 
D.
It varies based on platform 



20.  What is the queue name, where the cluster queue managers exchange repository information in messages?

 
A.
SYSTEM.CLUSTER.COMMAND.QUEUE

 
B.
SYSTEM.CLUSTER.REPOSITORY.QUEUE

 
C.
SYSTEM.CLUSTER.ADMIN.QUEUE

 
D.
SYSTEM.CLUSTER.EXCHANGE.QUEUE


21. A company has been running an MQSeries application for some time. In the application, client components send request messages to a server component which processes the messages and sends back replies. The company now wishes to migrate the application to use a queue manager cluster to have MQSeries balance the workload across the multiple instances of the server. As part of the migration planning, it has been identified that some request messages are related to each other, or form a sequence, and must be processed by the same instance of the server in the new environment. Which should be considered first as a way of dealing with such message affinities?

 
A.
Name a specific queue manager on the MQOPEN call
 
B.
Use the MQOO_BIND_ON_OPEN option on the MQOPEN call
 
C.
Use a cluster workload exit
 
D.
Try to remove the message affinities from the application design



22. What happens if a message-batch is sent to a particular queue manager and that queue manager becomes unavailable in a cluster?


 
A.
undelivered batch of messages is backed out to the cluster transmission
queue on the sending queue manager.

 
B.
If the backed-out batch of messages is not in doubt and the messages are not bound to the particular queue manager, the workload management routine is called. The workload management routine selects a suitable alternative queue manager and the messages are sent there.

 
C.
Messages that have already been delivered to the queue manager, or are in doubt, or have no suitable alternative, wait until the original queue manager becomes available again.

 
D.

All are correct

23. Which of the following network protocols are supported for WebSphere MQ for AIX?


 
A.
SPX

B.
UDP

C.
TCP/IP

D.
NetBIOS

24.  What is the queue name where the cluster queue managers hold the full repository information?

 
A.
SYSTEM.CLUSTER.COMMAND.QUEUE

B.
SYSTEM.CLUSTER.REPOSITORY.QUEUE

C.
SYSTEM.CLUSTER.ADMIN.QUEUE

D.
SYSTEM.CLUSTER.EXCHANGE.QUEUE


25. When an application opens (MQOPEN) a queue with MQOO_BIND_ON_OPEN?

 
A.
To send sequence of all messages to available queue instance
 
B.
To send sequence of all messages to same instance of queue
 
C.
SYSTEM.CLUSTER.ADMIN.QUEUE

D.
SYSTEM.CLUSTER.EXCHANGE.QUEUE

26. What are advantages of using Clusters?

 
A.
Reduced system administration.

B.
Increased availability
 
C.
Workload balancing.
 
D.
All of the above

27. An existing cluster has two queue managers, LONDON and NEW_YORK. Only LONDON has a full repository. A queue manager, PARIS, is being added to the cluster. It needs to send messages to the INVENTQ queue hosted by queue manager NEW_YORK and to the PAYROLL queue hosted by queue manager LONDON. Network connectivity exists between all three locations. How many Transmission queue definitions are required at queue manager PARIS to send messages to INVENTQ and PAYROLL queue?

 
A.
1
 
B.
2
 
C.
4
 
D.
3


28. To establish a cluster with four queue managers (QM1, QM2, QM3 and QM4) how many total number of channels required?

 
A.
3
 
B.
8
 
C.
4
 
D.
2


29. What is command used to create cluster queue, where SALES is the name of the cluster?

 
A.
DEFINE QLOCAL(Q1) CLUSTER(SALES)

B.
DEFINE QLOCAL(Q1)

C.
DEFINE QLOCAL(Q1) REPOS(SALES)

D.
DEFINE QLOCAL(Q1) QMGR(SALES)


30. What is the cluster transmission queue which will be created by default on each cluster queue manager?

 
A.
SYSTEM.CLUSTER.TRANSMIT.QUEUE
 
B.
SYSTEM.CLUSTER.XMIT.QUEUE
 
C.
SYSTEM.CLUSTER.TRANSMISSION.QUEUE
 
D.
SYSTEM.CLUSTER.TRANS.QUEUE


31. What is the command used to specify the cluster workload exit?

 
A.
ALTER QMGR CLWLEXIT(myexit)
 
B.
ALTER QMGR CWLEXIT(myexit)
 
C.
ALTER QMGR EXIT(myexit)
 
D.
ALTER QMGR EXIT –n workload


32. What are the different ways that clusters will achieve work load balancing?

 
A.
Increasing repository queue managers 

B.
Writing workload exits

C.
Maintaining same instance of queue

D.
Creating more clusters


33.  

Using the following configuration: DEFINE QREMOTE(Q1) RNAME(Q1) RQMNAME(QM1) XMITQ(QM1.XMIT)
DEFINE QLOCAL(QM1) USAGE(XMITQ)
DEFINE QLOCAL(QM1.XMIT) USAGE(XMITQ)
DEFINE QLOCAL(QXMIT) USAGE(XMITQ)
DEFINE QLOCAL(QMY.XMIT) USAGE(XMITQ)
ALTER QMGR DEFXMITQ(QXMIT)
DEF QREMOTE(QMY) RQMNAME(QMX)

If an application running on QMX sets up the Object Descriptor such that the ObjectName is 'Q1', and the ObjectQMgrName is 'QM1', which transmission queue will messages end up on when the application issues MQPUT1s?



QXMIT
QM1
QM1.XMIT
QMY.XMIT
34.  

Using the following configuration:
DEFINE QREMOTE(Q1) RNAME(Q1) RQMNAME(QM1) XMITQ(QM1.XMIT)
DEFINE QLOCAL(QM1) USAGE(XMITQ)
DEFINE QLOCAL(QM1.XMIT) USAGE(XMITQ)
DEFINE QLOCAL(QXMIT) USAGE(XMITQ)
DEFINE QLOCAL(QMY.XMIT) USAGE(XMITQ)
ALTER QMGR DEFXMITQ(QXMIT)
DEF QREMOTE(QMY) RQMNAME(QMX)

If an application running on QMX sets up the Object Descriptor such that the ObjectName is 'Q1' and the ObjectQMgrName is 'QMY', which transmission queue will messages end up on when the application issues MQPUT1s?


QXMIT
QM1
QM1.XMIT
QMY.XMIT

35.  

Using the following configuration:
DEFINE QREMOTE(Q1) RNAME(Q1) RQMNAME(QM1) XMITQ(QM1.XMIT)
DEFINE QLOCAL(QM1) USAGE(XMITQ)
DEFINE QLOCAL(QM1.XMIT) USAGE(XMITQ)
DEFINE QLOCAL(QXMIT) USAGE(XMITQ)
DEFINE QLOCAL(QMY.XMIT) USAGE(XMITQ)
ALTER QMGR DEFXMITQ(QXMIT)
DEF QREMOTE(QMY) RQMNAME(QMX)

If an application running on QMX sets up the Object Descriptor such that the ObjectName is 'Q1' and the ObjectQMgrName is 'QMZ', which transmission queue will messages end up on when the application issues MQPUT1s?


QXMIT
QM1
QM1.XMIT
QMY.XMIT
36.  

When using the ALTER CHANNEL command, which one of the following keywords is a required parameter?


TRPTYPE
CONNAME
XMITQ
CHLTYPE

37.  

You have 10 Sun Solaris client systems and a server queue manager on a Windows NT system.

You need to configure an MQI channel between each client system and the server queue manager.

What is the minimum number of textually different DEFINE CHANNEL commands are necessary to acomplish this?


0
1.
10.
11.
20.

38. The maximum number of messages that can be placed on a queue on MQSeries for Windows NT V5 is limited to (assuming no MQGETs are being done):


The number of messages that make up 320MB
The number of messages that make up 1GB
The value of MAXDEPTH
The limit is based on the upper limit of your file system

39. Queue manager aliases are defined using:


The DEFINE QMGRA command
The DEFINE QMALIAS command
The ALTER QMGR ALIAS(aliasname) command
The DEFINE QREMOTE command

40. Two WebSphere MQ applications are being deployed. One will put requests onto a queue. The other will get these requests off of the queue and process them. It has been determined that each application should only be able to open the queue in the mode that it uses. Which of the following runmqsc commands will enable this action to occur?

 
A.
define ql(APPL.QUEUE) define qalias(APPL.GET.QUEUE) targq(APPL.QUEUE) PUT(ENABLED) GET(DISABLED) define qalias(APPL.PUT.QUEUE) targq(APPL.QUEUE) PUT(DISABLED) GET(ENABLED)
 
B.
define ql(APPL.QUEUE) define qalias(APPL.PUT.QUEUE) targq(APPL.QUEUE) PUT(ENABLED) GET(DISABLED) define qalias(APPL.GET.QUEUE) targq(APPL.QUEUE) PUT(DISABLED) GET(ENABLED)
 
C.
define ql(APPL.QUEUE) define qmodel(APPL.PUT.QUEUE) like(APPL.QUEUE) PUT(ENABLED) GET(DISABLED) define qmodel(APPL.GET.QUEUE) like(APPL.QUEUE) PUT(DISABLED) GET(ENABLED)
 
D.
define ql(APPL.QUEUE) put(ENABLED) get(ENABLED) alter ql(APPL.QUEUE) process(GetApplication) get(ENABLED) alter ql(APPL.QUEUE) process(PutApplication) put(ENABLED)


9 comments:

  1. Where are the answers

    ReplyDelete
  2. i want answers of these question can u pls send...........

    ReplyDelete
  3. i want answers of these question plz

    ReplyDelete
  4. without answers , y ru giving questions.. i think u too dont know na ... good

    ReplyDelete
    Replies
    1. w r answers man

      Delete
    2. He knows,but he will tell to them.Who is special for him !

      Delete
  5. Nonsense Question... i think waste of time..

    ReplyDelete