exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 10 question 1 discussion

Actual exam question from Microsoft's DP-300
Question #: 1
Topic #: 10
[All DP-300 Questions]

DRAG DROP -
You need to implement statistics maintenance for SalesSQLDb1. The solution must meet the technical requirements.
Which four 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.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Automating Azure SQL DB index and statistics maintenance using Azure Automation:
1. Create Azure automation account (Step 1)
2. Import SQLServer module (Step 2)
3. Add Credentials to access SQL DB
This will use secure way to hold login name and password that will be used to access Azure SQL DB
4. Add a runbook to run the maintenance (Step 3)
Steps:
1. Click on "runbooks" at the left panel and then click "add a runbook"
2. Choose "create a new runbook" and then give it a name and choose "Powershell" as the type of the runbook and then click on "create"

5. Schedule task (Step 4)
Steps:
1. Click on Schedules
2. Click on "Add a schedule" and follow the instructions to choose existing schedule or create a new schedule.
Reference:
https://techcommunity.microsoft.com/t5/azure-database-support-blog/automating-azure-sql-db-index-and-statistics-maintenance-using/ba-p/368974

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
phmartins
Highly Voted 3 years, 1 month ago
I think you're wrong, because before creating and setting up a schedule, we have to publish the runbook. 1. Create an Azure Automation account; 2. Import the SqlServer module 3. Create a runbook that runs a PowerShell script; 4. Publish the runbook.
upvoted 9 times
voodoo_sh
2 months, 1 week ago
Agree with this: 1. Create an Azure Automation account; 2. Import the SqlServer module 3. Create a runbook that runs a PowerShell script; 4. Publish the runbook. Then 5th step is to configure a schedule.
upvoted 1 times
...
phmartins
3 years, 1 month ago
https://docs.microsoft.com/en-us/azure/automation/manage-runbooks
upvoted 2 times
Sr18
10 months ago
Before Schedule, we need to Save and Publish it. Then its good to give it a test. Then only we need to Schedule it. Very good question, I will say.
upvoted 1 times
...
...
eric0718
2 years, 12 months ago
You are wrong. Create runbook includes publish.
upvoted 2 times
...
...
bingomutant
Most Recent 6 months, 1 week ago
given answer looks OK - there seems to be some doubt over step 4 - my view is Create and configure a schedule: Finally, configure the runbook to execute automatically by setting up a schedule, ensuring that statistics are regularly maintained in the database.
upvoted 1 times
...
ae8a90c
11 months, 1 week ago
Create an Azure Automation account. Import the SqlServer module. Create a runbook that runs a PowerShell script. Publish the runbook.
upvoted 1 times
...
Dalamain
1 year ago
Walkthrough: https://tracyboggiano.com/archive/2023/06/using-azure-automation-and-runbooks-to-run-azure-sql-database-maintenance-tasks/
upvoted 3 times
...
amazonalex
2 years ago
runbook needs to be published before you can run it: When you create or import a new runbook, you have to publish it before you can run it. Each runbook in Azure Automation has a Draft version and a Published version. Only the Published version is available to be run, and only the Draft version can be edited. The Published version is unaffected by any changes to the Draft version. When the Draft version should be made available, you publish it, overwriting the current Published version with the Draft version. https://learn.microsoft.com/en-us/azure/automation/manage-runbooks
upvoted 4 times
...
eric0718
2 years, 12 months ago
Answer is correct Create Azure automation account Import SQLServer module Add Credentials to access SQL DB Add a runbook to run the maintenance Schedule task
upvoted 1 times
...
Singii
3 years, 3 months ago
Looks correct.
upvoted 2 times
...
o2091
3 years, 5 months ago
Is it correct?
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago