ExamGecko
Home Home / Microsoft / DP-300

Microsoft DP-300 Practice Test - Questions Answers, Page 33

Question list
Search
Search

List of questions

Search

Related questions











Task 12

You need to configure high availability for dbl. The solution must tolerate the loss of an Azure datacenter without data loss or the need to modify application connection strings.

A.
See the explanation part for the complete Solution
A.
See the explanation part for the complete Solution
Answers
Suggested answer: A

Explanation:

To configure high availability for dbl, you can use the failover groups feature of Azure SQL Database.Failover groups allow you to manage the replication and failover of a group of databases across different regions with the same connection strings1. You can choose all, or a subset of, user databases in a logical server to be replicated to another logical server in a different region. You can also specify the failover policy, such as manual or automatic, and the grace period for data loss.

Here are the steps to create a failover group for dbl:

Using the Azure portal:

Go to the Azure portal and select your Azure SQL Database server that hosts dbl.

SelectFailover groupsin the left menu and click onAdd group.

Enter a name for the failover group and select a secondary region that is different from the primary region.

Click onCreate a new serverand enter the details for the secondary server, such as server name, admin login, password, and subscription.

Click onSelect existing database(s)and choose dbl from the list of databases on the primary server.

Click onConfigure failover policyand select the failover mode, grace period, and read-write failover endpoint mode according to your preferences.

Click onCreateto create the failover group and start the replication of dbl to the secondary server.

Using PowerShell commands:

Install the Azure PowerShell module and log in with your Azure account.

Run the following command to create a new server in the secondary region:New-AzSqlServer -ResourceGroupName <your-resource-group-name> -ServerName <your-secondary-server-name> -Location '<secondary-region-name>' -SqlAdministratorCredentials $(New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList '<your-admin-login>', $(ConvertTo-SecureString -String '<your-password>' -AsPlainText -Force))

Run the following command to create a new failover group with dbl:New-AzSqlDatabaseFailoverGroup -ResourceGroupName <your-resource-group-name> -ServerName <your-primary-server-name> -PartnerResourceGroupName <your-resource-group-name> -PartnerServerName <your-secondary-server-name> -FailoverGroupName <your-failover-group-name> -Database dbl -FailoverPolicy <manual-or-automatic> -GracePeriodWithDataLossHours <grace-period-in-hours> -ReadWriteFailoverEndpoint '<enabled-or-disabled>'

You can modify the parameters of the command according to your preferences, such as the failover policy, grace period, and read-write failover endpoint mode.

You have an Azure subscription that contains 20 Azure SQL databases.

You create a Transact-SQL statement to perform index maintenance on a database.

You need to schedule the statement to run once daily against each database by using Transact-SQL commands.

What should you use to schedule the statement?

A.
Azure Automation
A.
Azure Automation
Answers
B.
an elastic job
B.
an elastic job
Answers
C.
a SQL Server Agent job
C.
a SQL Server Agent job
Answers
D.
an Azure function
D.
an Azure function
Answers
Suggested answer: A

You have two Azure virtual machines named Server 1 and Server2 that run Windows Server 2022 and are joined to an Active Directory Domain Services (AD DS) domain named contoso.com.

Both virtual machines have a default instance of Microsoft SQL Server 2019 installed. Server1 is configured as a master server, and Server2 is configured as a target server.

On Server1, you create a proxy account named contoso\sqlproxy.

You need to ensure that the SQL Server Agent job steps can be downloaded from Server1 and run on Server2.

Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

A.
On Server2, grant the contoso\sqlproxy account the Impersonate a client after authentication user right.
A.
On Server2, grant the contoso\sqlproxy account the Impersonate a client after authentication user right.
Answers
B.
On Server2, grant the contoso\sqlproxy account the Access this computer from the network user right.
B.
On Server2, grant the contoso\sqlproxy account the Access this computer from the network user right.
Answers
C.
On Server2. create a proxy account.
C.
On Server2. create a proxy account.
Answers
D.
On Server1. set the AllowDownloadedDobsTonatehProxyName registry entry to 1.
D.
On Server1. set the AllowDownloadedDobsTonatehProxyName registry entry to 1.
Answers
E.
On Server2. set the AllowDownloadedJobsToNatchProxyName registry entry to 1.
E.
On Server2. set the AllowDownloadedJobsToNatchProxyName registry entry to 1.
Answers
Suggested answer: D, E

HOTSPOT

You plan to deploy an Always On failover cluster instance (FCI) on Azure virtual machines.

You need to provision an Azure Storage account to host a cloud witness for the deployment.

How should you configure the storage account? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 324
Correct answer: Question 324

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

You need to implement SQL insights for db1.

Which two resources should you create first? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point

A.
an Azure logic app
A.
an Azure logic app
Answers
B.
a virtual machine
B.
a virtual machine
Answers
C.
an Azure function
C.
an Azure function
Answers
D.
a Log Analytics workspace
D.
a Log Analytics workspace
Answers
E.
a storage account
E.
a storage account
Answers
Suggested answer: B, D

You have an Azure subscription.

You plan to deploy an instance of SQL Server on Azure Virtual Machines by using an Azure Marketplace image

You need to register the SQL Server laaS Agent extension (SqllaasExtension). The solution must meet the following requirements:

* Install critical updates for SQL Server automatically.

* Minimize performance impact on the virtual machine.

Which management mode should you select?

A.
full
A.
full
Answers
B.
lightweight
B.
lightweight
Answers
C.
NoAgent
C.
NoAgent
Answers
Suggested answer: A

DRAG DROP

You have an Azure subscription that contains an instance of SQL Server on Azure Virtual Machines named SQLVM1 and a virtual machine named Server! that runs Windows Server. SQLVM1 and Serverl are joined to an Active Directory Domain Services (AD DS) domain. Serverl hosts a file share named Sharel.

You need to ensure that a SQL Server Agent job step on SQLVM1 can access the files in Share1. The solution must use the principle of least privilege.

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.


Question 327
Correct answer: Question 327

HOTSPOT

You have an Azure virtual machine named Server1 that has Microsoft SQL Server installed. Server1 contains a database named DB1.

You have a logical SQL server named ASVR1 that contains an Azure SQL database named ADB1.

You plan to use SQL Data Sync to migrate DB1 from Server1 to ASVR1.

You need to prepare the environment for the migration. The solution must ensure that the connection from Server1 to ADB1 does NOT use a public endpoint.

What should you do? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 328
Correct answer: Question 328

You have an Azure virtual machine named VM1 that runs Windows Server 2022 and hosts a Microsoft SQL Server 2019 instance named SQL1.

You need to configure SQL1 to use mixed mode authentication.

Which procedure should you run?

A.
sp_eddremotelogin
A.
sp_eddremotelogin
Answers
B.
xp_grant_login
B.
xp_grant_login
Answers
C.
sp_change_users_login
C.
sp_change_users_login
Answers
D.
xp_instance_regwrite
D.
xp_instance_regwrite
Answers
Suggested answer: D

You have an Azure subscription.

You need to deploy a new Azure SQL database by using Azure Command-Line Interface (CLI).

Which three parameters are required?

A)

B)

C)

D)

A.
Option A
A.
Option A
Answers
B.
Option B
B.
Option B
Answers
C.
Option C
C.
Option C
Answers
D.
Option D
D.
Option D
Answers
Suggested answer: C
Total 338 questions
Go to page: of 34