You have SQL Server 2019 on an Azure virtual machine that runs Windows Server 2019.
The virtual machine has 4 vCPUs and 28 GB of memory.
You scale up the virtual machine to 16 vCPUSs and 64 GB of memory.
You need to provide the lowest latency for tempdb.
What is the total number of data files that tempdb should contain?
Show answerHide answer
Correct answer: D64
Explanation
Explanation:
The number of files depends on the number of (logical) processors on the machine. As a
general rule, if the
number of logical processors is less than or equal to eight, use the same number of data
files as logical processors. If the number of logical processors is greater than eight, use
eight data files and then if contention
continues, increase the number of data files by multiples of 4 until the contention is reduced
to acceptable levels or make changes to the workload/code.
You have a Microsoft SQL Server 2019 database named DB1 that uses the following
database-level and instance-level features.
Clustered columnstore indexes
Automatic tuningYou plan to migrate DB1 to an Azure SQL database.
What feature should be removed or replaced before DB1 can be migrated?
Show answerHide answer
Correct answer: BPolyBase
Explanation
Question 53Choose 1
You have an Azure virtual machine based on a custom image named VM1.
VM1 hosts an instance of Microsoft SQL Server 2019 Standard.
You need to automate the maintenance of VM1 to meet the following requirements:
Automate the patching of SQL Server and Windows Server.
Automate full database backups and transaction log backups of the databases on VM1.
Minimize administrative effort.
What should you do first?
Show answerHide answer
Correct answer: BRegister VM1 to the Microsoft.Sql resource provider
Explanation
Explanation:
Automated Patching depends on the SQL Server infrastructure as a service (IaaS) Agent
Extension. The SQL
Server IaaS Agent Extension (SqlIaasExtension) runs on Azure virtual machines to
automate administration tasks. The SQL Server IaaS extension is installed when you
register your SQL Server VM with the SQL Server VM resource provider.
You have several Azure SQL databases on the same Azure SQL Database server in a
resource group named ResourceGroup1.You must be alerted when CPU usage exceeds 80 percent for any database. The solution
must apply to any additional databases that are created on the Azure SQL server.
Which resource type should you use to create the alert?
Show answerHide answer
Correct answer: CSQL Databases
Explanation
Explanation:
There are resource types related to application code, compute infrastructure, networking,
storage + databases.
You can deploy up to 800 instances of a resource type in each resource group.
Some resources can exist outside of a resource group. These resources are deployed to
the subscription, management group, or tenant. Only specific resource types are supported
at these scopes.
You have an Azure virtual machine named VM1 on a virtual network named VNet1.
Outbound traffic from VM1
to the internet is blocked.
You have an Azure SQL database named SqlDb1 on a logical server named SqlSrv1.
You need to implement connectivity between VM1 and SqlDb1 to meet the following
requirements:Ensure that VM1 cannot connect to any Azure SQL Server other than SqlSrv1.
Restrict network connectivity to SqlSrv1.
What should you create on VNet1?
Show answerHide answer
Correct answer: Ca private link
Explanation
Explanation:
Azure Private Link enables you to access Azure PaaS Services (for example, Azure
Storage and SQL Database) and Azure hosted customer-owned/partner services over a
private endpoint in your virtual network.
Traffic between your virtual network and the service travels the Microsoft backbone
network. Exposing your service to the public internet is no longer necessary.
You have a version-8.0 Azure Database for MySQL database.
You need to identify which database queries consume the most resources.
Which tool should you use?
Show answerHide answer
Correct answer: AQuery Store
Question 57Choose 1
You have an Azure SQL database named sqldb1.
You need to minimize the amount of space by the data and log files of sqldb1.
What should you run?
Show answerHide answer
Correct answer: ADBCC SHRINKDATABASE
Question 58Choose 1
You have SQL Server 2019 on an Azure virtual machine that runs Windows Server 2019.
The virtual machine
has 4 vCPUs and 28 GB of memory.
You scale up the virtual machine to 8 vCPUSs and 64 GB of memory.
You need to provide the lowest latency for tempdb.
What is the total number of data files that tempdb should contain?
Show answerHide answer
Correct answer: C8
Explanation
Explanation:
The number of files depends on the number of (logical) processors on the machine. As a
general rule, if the number of logical processors is less than or equal to eight, use the same
number of data files as logical processors. If the number of logical processors is greater
than eight, use eight data files and then if contention continues, increase the number of
data files by multiples of 4 until the contention is reduced to acceptable levels or make
changes to the workload/code.
Note: This question is part of a series of questions that present the same scenario.
Each question in the series contains a unique solution that might meet the stated
goals. Some question sets might have more than one correct solution, while others
might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a
result, these questions will not appear in the review screen
You have an Azure SQL database named Sales.
You need to implement disaster recovery for Sales to meet the following requirements:
During normal operations, provide at least two readable copies of Sales.
Ensure that Sales remains available if a datacenter fails.
Solution: You deploy an Azure SQL database that uses the Business Critical service tier
and Availability Zones.
Does this meet the goal?
Show answerHide answer
Correct answer: AYes
Explanation
Explanation:
Premium and Business Critical service tiers leverage the Premium availability model, which
integrates compute resources (sqlservr.exe process) and storage (locally attached SSD) on
a single node. High availability is achieved by replicating both compute and storage to
additional nodes creating a three to four-node cluster.
By default, the cluster of nodes for the premium availability model is created in the same
datacenter. With the introduction of Azure Availability Zones, SQL Database can place
different replicas of the Business Critical database to different availability zones in the
same region. To eliminate a single point of failure, the control ring is also duplicated across
multiple zones as three gateway rings (GW).
You have SQL Server on Azure virtual machines in an availability groupYou have a database named DB1 that is NOT in the availability group.
You create a full database backup of DB1.
You need to add DB1 to the availability group.
Which restore option should you use on the secondary replica?
Show answerHide answer
Correct answer: BRestore with Norecovery
Explanation
Explanation:
D18912E1457D5D1DDCBD40AB3BF70D5D
Prepare a secondary database for an Always On availability group requires two steps:
1. Restore a recent database backup of the primary database and subsequent log backups
onto each server
instance that hosts the secondary replica, using RESTORE WITH NORECOVERY
2. Join the restored database to the availability group.
Full-length mocks with the same number of questions and the same time limit as the real DP-300 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.