Free Microsoft DP-300 Exam Questions (page: 9)

HOTSPOT (Drag and Drop is not supported)

You plan to deploy an instance of SQL Server on Linux Azure Virtual Machines. The instance will run Microsoft SQL Server 2022 and use the SQL Server IaaS Agent extension for Linux.

Which Linux operating system should you deploy, and which benefit will the SQL Server IaaS Agent extension provide? To answer, select the appropriate options in the answer area.

Note: Each correct selection is worth one point.

Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:






While SQL Server is supported on multiple Linux distributions, RHEL is a commonly recommended choice for enterprise environments due to its stability, support, and compatibility with SQL Server.

The SQL Server IaaS Agent extension for Linux provides the capability to register a SQL Server virtual machine with Azure, allowing you to manage it as a first-class resource in Azure. This registration enables integration with Azure services and management features, such as automated backup and patching, but the primary benefit of the extension itself is the registration capability.



DRAG DROP (Drag and Drop is not supported)

You have a burstable Azure virtual machine named VM1 that hosts an instance of Microsoft SQL Server.

You need to attach an Azure ultra disk to VM1. The solution must minimize downtime on VM1.

In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.

Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:






Stop and deallocate VM1: This step is necessary because you need to modify the VM's configuration, which requires it to be in a stopped and deallocated state.
Resize VM1: If resizing is required to support ultra disks, this should be done while the VM is deallocated. Set Enable Ultra disk compatibility to Yes: This setting must be enabled to allow the VM to use ultra disks. Attach the ultra disk: With the VM deallocated and configured for ultra disk compatibility, you can now attach the ultra disk.
Start VM1: Finally, start the VM to bring it back online with the ultra disk attached.

The VM must be stopped and deallocated to change its configuration settings, such as enabling ultra disk compatibility and resizing if necessary. Once these changes are made, you can attach the ultra disk and then start the VM to minimize downtime.



HOTSPOT (Drag and Drop is not supported)

You have an Azure subscription.

You need to deploy an Azure SQL database. The solution must meet the following requirements:

Support at least 36 cores.

Minimize costs.

How should you complete the PowerShell script? To answer, select the appropriate options in the answer area.

Note: Each correct selection is worth one point.

Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:





Box 1: "Gen5"

Box 2: Serverless

Purchasing model and service tier
The following table describes serverless support based on purchasing model, service tiers, and hardware:



The vCore purchasing model compute size is 2 to 128 vCores.

Incorrect:
* Free

* Provisioned

* Standard


Reference:

https://learn.microsoft.com/en-us/azure/azure-sql/database/serverless-tier-overview



Your on-premises network contains a server that hosts a 60-TB database named DB1. The network has a 10- Mbps internet connection.

You need to migrate DB1 to Azure. The solution must minimize how long it takes to migrate the database.

What should you use?

  1. Data Migration Assistant (DMA)
  2. Azure Migrate
  3. Azure Data Studio
  4. Azure Data Box

Answer(s): D

Explanation:

Correct:
* Azure Data Box
Incorrect:

* Azure Data Studio
* Azure Database Migration Service
* Azure Migrate
* Data Migration Assistant (DMA)
Note:
Microsoft Azure Data Box is a hardware appliance designed to allow customers to import or export large amounts of data -- more than 40TB -- into and out of Azure offline. It is especially helpful when there is zero or limited network connectivity. Microsoft ships customers a proprietary Data Box storage device with a rugged casing to protect and secure data during the transit. A customer may choose Data Box for a one-time or the occasional cloud migration or an initial bulk data transfer followed by periodic transfers.
Considerations for Cloud Migrations Using Azure Data Box
Azure Data Box is a good solution to consider if online data transfer is not possible either because the network bandwidth is limited or because it can take too long.
There are three different types of physical Data Box solutions based on data size:
Data Box: This device has 100TB capacity and uses standard NAS protocols and common copy tools. It features AES 256-bit encryption for safer transit.
Data Box Heavy: This larger device is designed to lift 1PB of data to the cloud.
Data Box Discs: Discs have capacity of 8TB SSD with a USB/SATA interface featuring 128-bit encryption.
Customers can buy in packs of up to five for a total of 40TB.


Reference:

https://www.komprise.com/glossary_terms/azure-data-box/



HOTSPOT (Drag and Drop is not supported)

You are working on two projects named Project1 and Project2 that will each migrate an on-premises app to Azure. Project1 must meet the following requirements:

Have access to the operating system of the database server that hosts the app.

Have 25 TB of storage.

Project2 must meet the following requirements:

Have change data capture (CDC) enabled.

Support instance-level SQL auditing.

Support managed backups.

Have 10 TB of storage.

Offload reports.

You need to recommend an Azure SQL solution for the projects. The solution must minimize costs.

What should you include in the recommendation for each project? To answer, select the appropriate options in the answer area.

Note: Each correct selection is worth one point.

Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:





Box 1: SQL Server on Azure Virtual Machines
Project1
Project1 must meet the following requirements:
Have access to the operating system of the database server that hosts the app.
Have 25 TB of storage.

* SQL Server on Azure Virtual Machines
If your application needs access to the operating system (OS) of the database server, you should use Azure SQL Server on Azure Virtual Machines. This solution allows you to install and manage SQL Server within a virtual machine, giving you complete control over the OS and database engine.

Why SQL Server on Azure VMs?
OS-level access:
You have full control over the virtual machine's operating system, including updates, patching, and configuration.

Lift-and-shift scenarios:
It's ideal for migrating existing SQL Server applications to Azure with minimal changes, allowing you to maintain your current environment and infrastructure.

The maximum size for a single data disk attached to an Azure Virtual Machine is 32 TB. However, the total size of all data disks attached to a single VM can be up to 256 TB.

Incorrect:
* Azure SQL Database:
This is a fully managed PaaS service where Microsoft handles OS patching, backups, and maintenance. You don't have direct access to the OS or the database engine.

* Azure SQL Managed Instance:
This is a fully managed PaaS service that offers a high degree of SQL Server compatibility but still doesn't provide OS-level access.

Box 2: Azure SQL Managed Instance General Purpose Service
Project2
Project2 must meet the following requirements:
Have change data capture (CDC) enabled.
Support instance-level SQL auditing.
Support managed backups.
Have 10 TB of storage.
Offload reports.

Azure SQL Database and Azure SQL Managed Instance are Azure database solutions that support managed backups.

Azure SQL Managed Instance and Azure SQL Database Hyperscale both support 10 TB of storage. Azure SQL Managed Instance can store up to 32 TB, while Hyperscale can scale to 100 TB.

Azure SQL Managed Instance Max instance reserved storage
*-> General Purpose: up to 32 TB
Business Critical: up to 4 TB

Hardware generations have different characteristics, as described in the following table from 2025:



For Change Data Capture (CDC) within Azure, Azure SQL Database is a suitable choice, particularly when using Azure Data Factory or Azure Synapse Analytics. Both Azure SQL Database and SQL Server offer native CDC support.


Reference:

https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/sql-server-on-azure-vm-iaas-what- is-overview https://learn.microsoft.com/en-us/azure/virtual-machines/disks-types https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/resource-limits



You have an on-premises Microsoft SQL Server database named DB1.

You plan to migrate DB1 to an Azure SQL database named DB2 by using the Data Migration Assistant (DMA).

What will be migrated?

  1. functions, roles, trace flags, and views
  2. functions, stored procedures, views, and roles
  3. agent jobs, functions, stored procedures, and views
  4. functions, operators, stored procedures, and views

Answer(s): B

Explanation:

The Data Migration Assistant (DMA) primarily migrates SQL Server databases. It helps assess and migrate on- premises SQL Server databases to newer versions of SQL Server or to Azure SQL Database. Specifically, DMA moves the schema, data, and uncontained objects from a source server to a target server.
Here's a more detailed breakdown of what DMA handles:
Schema: This includes database structures like tables, views, stored procedures, and user-defined functions.
Data: This refers to the actual information stored within the database tables.

Uncontained Objects: These are objects that are not part of a specific database schema, such as logins and roles.
--
The migration workflow helps you to migrate the following components:
Schema of databases
Data and users
Server roles
SQL Server and Windows logins
Incorrect:
Not A: Not trace flags.
Not C: Not agent jobs. SQL Server Agent Jobs require separate handling during migration.
Not D: Not Operators


Reference:

https://learn.microsoft.com/en-us/sql/dma/dma-overview?view=sql-server-ver17



You have an on-premises Microsoft SQL Server instance named SQL1 that hosts multiple databases.

You have an Azure subscription that contains an Azure SQL managed instance named SQLMI1.

You need to perform an offline migration of the SQL1 databases to SQLMI1 by using Azure Data Studio.

What should you install on SQL1?

  1. Data Migration Assistant (DMA)
  2. SQL Server Data Tools (SSDT)
  3. a self-hosted integration runtime
  4. an Azure Migrate appliance

Answer(s): C

Explanation:

Migrate SQL Server to Azure SQL Managed Instance with DMS
You can use Azure Database Migration Service (DMS) and the Azure SQL migration extension in Azure Data Studio to migrate databases from a SQL Server instance to Azure SQL Managed Instance with minimum downtime.
Prerequisites include:
* Provide an SMB network share, Azure storage account file share, or Azure storage account blob container that contains your full database backup files and subsequent transaction log backup files. Database Migration Service uses the backup location during database migration.
* If your database backups are on a network file share, provide a computer on which you can install a self- hosted integration runtime to access and migrate database backups. The migration wizard gives you the download link and authentication keys to download and install your self-hosted integration runtime.
* If you use a self-hosted integration runtime, make sure that the computer on which the runtime is installed can connect to the source SQL Server instance and the network file share where backup files are located.
* Etc.


Reference:

https://learn.microsoft.com/en-us/data-migration/sql-server/managed-instance/database-migration-service?
tabs=offline-with-extension



You have an Azure subscription that contains an Azure SQL database named DB1.

You configure a new data sync group as shown in the exhibit. (Click the Exhibit tab.)



You need to minimize how long it takes to perform the first sync.

What should you do?

  1. From Private endpoint connections, approve the private endpoint connection.
  2. From Private endpoint connections, create a new private endpoint connection.
  3. From Database Sync Group, select Sync.
  4. From Create Data Sync Group, change the sync frequency to 60 seconds.

Answer(s): A

Explanation:

Private endpoint connections for Azure SQL Database in a data sync group need to be manually approved.
This approval process ensures that the connection from the data sync service to your database is secure and authorized. You'll need to approve the service-managed private endpoint connection within the "Private endpoint connections" section in the Azure portal or through PowerShell during the sync group configuration.


Reference:

https://learn.microsoft.com/en-us/azure/azure-sql/database/sql-data-sync-sql-server-configure






Post your Comments and Discuss Microsoft DP-300 exam prep with other Community members:

DP-300 Exam Discussions & Posts