DP-300 · Question #361
You have two Azure virtual machines named Server1 and Server2 that run Windows Server 2022 and are joined to an Active Directory Domain Services (AD DS) domain named contoso.com. Both virtual…
The correct answer is A. On Server2, grant the contoso\sqlproxy account the Impersonate a client after authentication user E. On Server2, set the AllowDownloadedJobsToMatchProxyName registry entry to 1. To enable SQL Server Agent job steps to be downloaded from Server1 (master) and executed on Server2 (target) using the contoso\sqlproxy account, specific configurations are needed on the target server.
Question
Options
- AOn Server2, grant the contoso\sqlproxy account the Impersonate a client after authentication user
- BOn Server2, grant the contoso\sqlproxy account the Access this computer from the network user
- COn Server2, create a proxy account.
- DOn Server1, set the AllowDownloadedJobsToMatchProxyName registry entry to 1.
- EOn Server2, set the AllowDownloadedJobsToMatchProxyName registry entry to 1.
How the community answered
(41 responses)- A78% (32)
- B12% (5)
- C7% (3)
- D2% (1)
Why each option
To enable SQL Server Agent job steps to be downloaded from Server1 (master) and executed on Server2 (target) using the `contoso\sqlproxy` account, specific configurations are needed on the target server.
Granting the `Impersonate a client after authentication` user right to the `contoso\sqlproxy` account on Server2 is essential for the SQL Server Agent proxy to execute job steps using the security context of that account.
While network access is generally needed for remote operations, granting `Access this computer from the network` is not the specific permission required for a proxy account to impersonate and run job steps locally on the target server.
The question implies using the proxy account created on Server1. The solution for multi-server jobs often involves leveraging the `AllowDownloadedJobsToMatchProxyName` setting and appropriate Windows user rights on the target, rather than creating a duplicate proxy account object on Server2.
The `AllowDownloadedJobsToMatchProxyName` registry entry must be set on the *target* server (Server2), not the master server (Server1), to allow it to process downloaded jobs using a specified proxy account.
Setting the `AllowDownloadedJobsToMatchProxyName` registry entry to `1` on Server2 permits the target SQL Server Agent to use a proxy account for downloaded jobs, even if the proxy account object is not explicitly defined on the target server, by matching the proxy name to a Windows account with appropriate permissions.
Concept tested: SQL Server Agent multi-server jobs and proxy accounts
Source: https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/sql-server-agent/run-jobs-target-server-proxy-account
Community Discussion
No community discussion yet for this question.