nerdexam
Microsoft

70-433 · Question #4

You created a Service Broker queue by using the following Transact-SQL statement: CREATE QUEUE VacationRequestQueue WITH RETENTION = OFF, ACTIVATION ( PROCEDURE_NAME = dbo.VacationRequestProcess…

The correct answer is C. ALTER QUEUE VacationRequestQueue. ALTER QUEUE VacationRequestQueue WITH RETENTION = ON; sets the VacationRequestQueue queue to retain messages. The queue retains all messages sent to or from services that use this queue until the conversation that contains the message ends. ALTER QUEUE VacationRequestQueue WITH…

Implement a desktop infrastructure

Question

You created a Service Broker queue by using the following Transact-SQL statement:

CREATE QUEUE VacationRequestQueue WITH RETENTION = OFF, ACTIVATION ( PROCEDURE_NAME = dbo.VacationRequestProcess, MAX_QUEUE_READERS = 5, EXECUTE AS SELF ); You need to modify the Service Broker queue to prevent it from processing received messages. The queue should continue to receive messages. Which Transact-SQL statement should you use?

Options

  • AALTER QUEUE VacationRequestQueue
  • BALTER QUEUE VacationRequestQueue
  • CALTER QUEUE VacationRequestQueue
  • DALTER QUEUE VacationRequestQueue

How the community answered

(39 responses)
  • A
    13% (5)
  • B
    3% (1)
  • C
    79% (31)
  • D
    5% (2)

Explanation

ALTER QUEUE VacationRequestQueue WITH RETENTION = ON; sets the VacationRequestQueue queue to retain messages. The queue retains all messages sent to or from services that use this queue until the conversation that contains the message ends. ALTER QUEUE VacationRequestQueue WITH STATUS = OFF; makes the VacationRequestQueue queue unavailable to receive messages. ALTER QUEUE VacationRequestQueue WITH ACTIVATION (STATUS = OFF); the queue does not activate the stored procedure. ALTER QUEUE VacationRequestQueue WITH ACTIVATION (EXECUTE AS OWNER); specifies that the stored procedure executes as the owner of the queue.

Topics

#Service Broker#queue activation#SQL Server#message processing

Community Discussion

No community discussion yet for this question.

Full 70-433 Practice