You need to create the infrastructure for a service. One of the tasks is to create a queue. You don’t want the queue to allow the receipt of messages until you complete all work. Which code can you use?

You need to create the infrastructure for a service. One of the tasks is to create a queue. You don’t want the queue to allow the receipt of messages until you complete all work. Which code can you use?


 Answer: – CREATE QUEUE SalesQueue WITH STATUS=OFF

(A queue in an inactive status would not allow messages to be added or removed from the queue. The default value of a CREATE QUEUE automatically sets the queue to accept messages.)