nerdexam
Microsoft

DP-300 · Question #239

Drag and Drop Question You have two instances of SQL Server on Azure Virtual Machines named VM1 and VM2. VM1 hosts a database named db1. You plan to create a database availability group (DAG) for…

The correct answer is From the master database, run CREATE MASTER KEY ENCRYPTION BY PASSWORD.; From the master database, run CREATE CERTIFICATE.; From the master database, run CREATE ENDPOINT. To configure certificate-based authentication for outbound connections on VM1, you must first create a Master Key in the master database to protect the certificate, then create the Certificate in the master database (not in db1) since endpoint authentication operates at the…

Submitted by yaw92· Mar 6, 2026Configure high availability and disaster recovery solutions for SQL Server on Azure Virtual Machines, specifically setting up certificate-based authentication for availability group endpoints.

Question

Drag and Drop Question You have two instances of SQL Server on Azure Virtual Machines named VM1 and VM2. VM1 hosts a database named db1. You plan to create a database availability group (DAG) for db1. The solution must use certificate authentication between VM1 and VM2. You need to configure authentication for the outbound connections of VM1. Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order. Answer:

Exhibit

DP-300 question #239 exhibit

Answer Area

Drag items

From the master database, run CREATE MASTER KEY ENCRYPTION BY PASSWORD.From db1, run CREATE CERTIFICATE.From the master database, run CREATE ENDPOINT.From the master database, run CREATE CERTIFICATE.

Correct arrangement

  • From the master database, run CREATE MASTER KEY ENCRYPTION BY PASSWORD.
  • From the master database, run CREATE CERTIFICATE.
  • From the master database, run CREATE ENDPOINT.

Explanation

To configure certificate-based authentication for outbound connections on VM1, you must first create a Master Key in the master database to protect the certificate, then create the Certificate in the master database (not in db1) since endpoint authentication operates at the instance level using the master database, and finally create the Endpoint in the master database that references the certificate for the mirroring/AG connection. This sequence ensures the cryptographic infrastructure is in place before the endpoint is created and associated with the certificate.

Topics

#Always On Availability Groups#Certificate Authentication#SQL Server on Azure VMs#Database Mirroring Endpoints

Community Discussion

No community discussion yet for this question.

Full DP-300 Practice