nerdexam
Microsoft

70-451 · Question #28

You are a database developer. You develop solutions by using SQL Server 2008 in an enterprise environment. You are creating a SQL Agent job that uses Transact-SQL to update data in two related…

The correct answer is D. Use marked transactions. See the full explanation below for the reasoning.

Question

You are a database developer. You develop solutions by using SQL Server 2008 in an enterprise environment. You are creating a SQL Agent job that uses Transact-SQL to update data in two related databases on two different servers. You have the following requirements:

  • The job can only execute once each evening.
  • The databases on each server use the full-recovery model.
  • Transaction log backups for the two databases occur at different

times.

  • The job uses transactions to ensure that in the event of an error,

all updates are rolled back. You need to ensure that when you restore a database on either server, the two databases are restored to a state that reflects the last time the job successfully executed. What should you do?

Options

  • AEnsure both databases are altered using the NO_WAIT termination clause.
  • BUse the Windows Sync Manager to ensure that the databases can never be out of
  • CUse saved transactions.
  • DUse marked transactions.

How the community answered

(30 responses)
  • A
    13% (4)
  • B
    7% (2)
  • C
    3% (1)
  • D
    77% (23)

Community Discussion

No community discussion yet for this question.

Full 70-451 Practice