exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 5 question 24 discussion

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

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. an Azure function
  • B. a SQL Server Agent Job
  • C. an elastic job
  • D. Azure Automation
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
voodoo_sh
4 months ago
Selected Answer: C
Note that Azure Automation can't run T-SQL commands directly. It can run PowerShell which in turn can run T-SQL in a database. So I go with C: Elastic Jobs which support running T-SQL directly.
upvoted 1 times
...
sca88
7 months, 1 week ago
Selected Answer: C
The correct answer is C. Elastic Job allow to execute only T-SQL command scheduled for a set of target databases
upvoted 1 times
...
jagibe
1 year ago
Selected Answer: C
C. Elastic jobs https://learn.microsoft.com/en-us/azure/azure-sql/database/elastic-jobs-overview?view=azuresql
upvoted 1 times
jagibe
1 year ago
At this moment this feature is in preview and free
upvoted 1 times
...
...
VikJo1978
1 year ago
The correct answer is (B). An SQL Server Agent job is the best option for these requirements. With an SQL Server Agent job, you can execute Transact-SQL statements regularly. An Azure Function is a good option if you want to create a custom solution. However, creating and managing an Azure Function can be more complex than an SQL Server Agent job. An Elastic Job is a good option if you need a solution for multiple Azure resources. However, creating and managing an Elastic Job can be more complex than an SQL Server Agent job. Azure Automation is a good option if you want to create a custom solution. However, creating and managing Azure Automation can be more complex than an SQL Server Agent job.
upvoted 1 times
SamBalbij
1 year ago
An Azure SQL database has no associated SQL Agent, so this can't be correct
upvoted 7 times
...
...
testdumps2017
1 year, 3 months ago
the sad part is both Elastic Job and Azure Automation are valid responses (both can run T-SQL commands). I will go with Elastic Job for the sole reason that is free (as of 2023) and Azure Automation seems overkill for the task at hand - not only that, but it seems that it cannot reindex multiple DBs at once, for example. Proof that Azure Automation can also run reindex jobs: https://learn.microsoft.com/en-us/azure/automation/overview: "Common scenarios Azure Automation supports management throughout the lifecycle of your infrastructure and applications. Common scenarios include: Periodic maintenance - to execute tasks that need to be performed at set timed intervals like purging stale or old data, or reindex a SQL database"
upvoted 3 times
...
Adamus2077
1 year, 3 months ago
Selected Answer: C
On Azure SQL Database elastic jobs is a replacement for SQL Server Agent. Elastic Jobs can do TSQL scheduled jobs. https://learn.microsoft.com/en-us/azure/azure-sql/database/job-automation-overview?view=azuresql
upvoted 2 times
...
Preetha16
1 year, 3 months ago
Selected Answer: C
Answer is C
upvoted 1 times
...
vcloudpmp
1 year, 4 months ago
Azure Automation uses PowerShell. With Azure Automation, you can manage databases in Azure SQL Database by using the latest Az PowerShell cmdlets that are available in Azure Az PowerShell. Elastic jobs would use T-SQL. https://learn.microsoft.com/en-us/azure/azure-sql/database/elastic-jobs-tsql-create-manage?view=azuresql-db
upvoted 2 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 ...