Professional Documents
Culture Documents
MQ Written Assessment Test With Answers
MQ Written Assessment Test With Answers
Name:
Date:
MQ Assessment Test
All answers are highlighted in GREEN.
Answer the following questions, each question may have one or more
correct choices. Please BOLD the correct answers:
1) What three-letter prefix is used to denote sample utilities on AIX, OS/2, and NT?
a) CSQ
b) MQM
c) AMQ
d) MQS
2) Which three channel types cannot be started by the START CHANNEL command?
a) RCVR
b) SVR
c) SVRCONN
d) CLNTCONN
3) Which of the following characters are not supported in naming MQSeries objects?
(Chose three)
a) M
b) %
c) *
d) b
e) ‘ (single quotes)
f) -
6) How would you define a channel to use port 1802 instead of the default port?
a) DEFINE CHANNEL('chlname(1802)') ...
b) ...CONNAME(ipaddress(1802)') ...
c) ...CONNAME(ipaddress(1414)) CHLTYPE(SDR) ...
d) SET PORT=ChIName/ipaddress/1802
7) What must you specify in the TRIGDATA parameter of the queue definition to enable a channel to be
triggered?
a) The channel name
b) Information to be passed to the trigger monitor
c) The initiation queue name
9) Which parameter and what value would be specified so that a channel would not expire?
a) CHLEXP(0)
b) STRSTP(ENABLED)
c) DISCINT(0)
d) CHLDISC(DISABLED)
10) Which TCP/IP service would you start to accept an inbound channel request on AIX?
a) AMQLSR
b) Channel Initiator
c) The Receiving Message Channel Agent
d) INETD
11) What is the sample utility that can be used to display the message and the message descriptor of
messages on the dead letter queue?
a) AMQSGET
b) AMQSBCG
c) DSPMQMD
d) AMQSDSP
12) What is the MQSC command that will test to see if an adjacent queue manager is responsive to commands?
a) DISPLAY QMGR
b) PING QMGR
13) Which commands allow the shut down of the queue manager without waiting for the connected applications
to disconnect? (Chose two)
Document: 575739908.doc Date: 11-08-2005
Path: /conversion/tmp/activity_task_scratch/575739908.doc Version: V1.0.0A
14) If messages are sent from a queue manager on AIX to a queue manager on NT, but you want NT to start the
channel, what type of channel would you define on NT?
a) Requester
b) Sender
c) Receiver
d) Server
15) What object would alter if want to change the values for all local queues that are created in the future?
a) SYSTEM.DEFAULT.LOCAL.QUEUE
b) SYSTEM.DEFAULT.REMOTE.QUEUE
c) SYSTEM.LOCAL.QUEUE.DEFAULT
d) SYSTEM.DEFAULT.DEFINITION.QUEUE
16) If an expiry value is set on a message, and the specified time elapses while the message is on the queue,
what happens to the message?
a) It is forwarded to the queue manager
b) It is moved to the front of the queue for immediate processing
c) It is returned to the sender
d) It is discarded when the queue is opened
17) Which file would you use to switch from one default queue manager to a different default queue manager?
a) MQS.ini
b) QMS.ini
c) QD.ini
d) QM.ini
18) How would you specify that the MQ Listener should monitor port 1415?
a) RUNMQLSR -t tcp -p 1415
b) RUNMQCHI -t tcp -p 1415
c) RUNMQLSR -t tcp (1415)
d) RUNMQCHI -t tcp (1415)
20) You tried to start an MQSeries receiver channel but the channel did not start. Where do you look first for an
error message?
a) The system-wide error log at the sender.
b) The system-wide error log at the receiver.
c) The queue manager error log at the sender.
d) The queue manager error log at the receiver.
21) Which MQSeries feature would be used to automatically start a program when a message arrives on a
queue?
a) Triggering
b) Firing
c) Signaling
d) Auto Start
22) What must you do before installing MQSeries on a UNIX system? (Select two)
a) Create the mqm user id.
b) Create the mqm group.
c) Set the MQSERVER environment variable.
d) Use the runmqm library.
e) Edit the MQS configuration file
23) Which method allows for transfer of large amounts of data without storing the data on a queue?
a) Reference Messages
b) Distribution Lists
c) Message Grouping
d) Message Segmentation
24) Which of the following would you do to validate a successful installation of MQSeries? (Choose Three)
a) Start a queue manager
b) Create a queue manager
c) Check for the existence of production objects
d) Check to see the proper directory has been created
Answer Key
1) C
2) A, C, D
3) C, E, F
4) D
5) C, D
6) B
7) A
8) C
9) C
For this section, please write your answers with as much detail as you
can.
1) How do you create and configure a new queue manager on AIX listening on PORT 1420 and connect from
MQSeries Explorer client machine?
Answer:
o crtmqm <qmgrname>
o edit /etc/services file and add the MQSeries listener service with port 1420.
o edit /etc/inetd.conf file and add the mqseries listener to start.
o refresh inted –s
o strmqm <qmgrname>
o runmqsc <qmgrname>
o create SYSTEM.INIT.QUEUE to allow the command server to start.
o strmqcsv to start the command server for allowing remote connections.
o Configure the client to view the remote qmgr on port 1420.
2) What are the steps for installing and configuring WMQI on AIX?
Answer:
o Install DB2/ORACLE.
o Create MQSICMDB on DB2 and (MQSIBKDB on ORACLE).
o Install & Configure MQSeries.
o Install Java JRE
o Configure (/var/mqsi/odbc/.odbc.ini) for the data sources and paths of the databases. (MQSIBKDB,
MQSIROUT)
o Install Broker SW.
o Configure Broker. (mqsisetupdatabase <dbname> etc)
Document: 575739908.doc Date: 11-08-2005
Path: /conversion/tmp/activity_task_scratch/575739908.doc Version: V1.0.0A
3) How can you find a listing of all the queue managers on AIX?
Answer:
o Use dspmq or look into /var/mqm/mqs.ini
4) If the queue manager logs get corrupt and the queue manager is not starting, what would you do?
Answer:
Create another dummy queue manager with the same logging parameters as the corrupted qmgr. Copy the log
files of the dummy qmgr to the corrupted qmgr and restart the corrupted qmgr. (This process is called a cold
start).
Answer:
o Mqsistarttrace. <options>
o Do the processing to recreate the problem.
o Stop the trace using mqsistoptrace.
o mqsireadlog to read the log.
o mqsiformatlog command to format the trace.
6) How do you configure an ODBC data source name for a Broker in AIX?
Answer:
o Edit the /var/mqsi/odbc/.odbc.ini file:
o 1.Add ODBC Data Source (MQSIBKDB=IBM DB2 ODBC Driver)
o 2.And then Connection Specific stanza:
[MQSIBKDB]
Document: 575739908.doc Date: 11-08-2005
Path: /conversion/tmp/activity_task_scratch/575739908.doc Version: V1.0.0A
7) What are the steps involved in the configuration of the syslog for Broker on AIX?
Answer:
o 1.Log in as root or sudo to root
o 2. Create log file: touch /var/mqm/log/syslog.user (path could be anywhere and file name also can be
different)
o 3. Change ownership root: mqbrkrs
o 4. Change to appropriate file permissions (chmod 750 <syslog>)
o 5. Add a line to /etc/syslog.conf: user.debug /var/mqm/log/syslog.user
o 6. refresh –s syslogd
8) Where will the Installed product code and supportpacs be located on AIX for MQSeries?
Answer:
o Installed Product code with supportpacs are stored in /usr/mqm directory
Answer:
o Working data for MQSeries is stored in /var/mqm. This directory also contains queue managers, queues,
and channels.
10) Where will the persistent and non-persistent messages get stored?
Answer:
o Both persistent and non-persistent messages are stored in
/var/mqm/qmgrs/ETM000041/queues/ETM000042/<queue>
Answer:
o MQSeries generates .FDC file for all the failures. FDC files are stored in /var/mqm/errors