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 62Choose 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 63Choose 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.
You are building an Azure virtual machine. You allocate two 1-TiB, P30 premium storage disks to the virtual machine. Each disk provides 5,000 IOPS. You plan to migrate an on-premises instance of Microsoft SQL Server to the virtual machine. The instance has a database that contains a 1.2-TiB data file. The database requires 10,000 IOPS You need to configure storage for the virtual machine to support the database. Which three objects should you create in sequence? To answer, move the appropriate objects from the list of objects to the answer area and arrange them in the correct order
Show answerHide answer
Explanation
Question 67
You have an Azure SQL database named DB1. The automatic tuning options for DB1 are configured as shown in the following exhibit.
Show answerHide answer
Explanation
Question 68Choose 1
You have an Always On availability group deployed to Azure virtual machines. The
availability group contains a database named DB1 and has two nodes named SQL1 and
SQL2. SQL1 is the primary replica.
You need to initiate a full backup of DB1 on SQL2.
Which statement should you run?
Show answerHide answer
Correct answer: BBACKUP DATABASE DB1 TO URL='https://mystorageaccount.blob.core.windows.net/
mycontainer/DB1.bak' with (COPY_ONLY, STATS=5, COMPRESSION);
Explanation
Explanation:
BACKUP DATABASE supports only copy-only full backups of databases, files, or
filegroups when it's executed on secondary replicas. Copy-only backups don't impact the
log chain or clear the differential bitmap.
You have an Azure SQL Database instance named DatabaseA on a server named Server1. You plan to add a new user named App1 to DatabaseA and grant App1 db_datacenter permissions. App1 will use SQL Server Authentication. You need to create App1. The solution must ensure that App1 can be given access to other databases by using the same credentials. 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.
Show answerHide answer
Explanation
Question 70Choose 1
You plan to move two 100-GB databases to Azure.
You need to dynamically scale resources consumption based on workloads. The solution
must minimize
downtime during scaling operations.
What should you use?
Show answerHide answer
Correct answer: AAn Azure SQL Database elastic pool
Explanation
Explanation:
Azure SQL Database elastic pools are a simple, cost-effective solution for managing and
scaling multiple
databases that have varying and unpredictable usage demands. The databases in an
elastic pool are on a
single server and share a set number of resources at a set price.
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.