exam questions

Exam DP-300 All Questions

View all questions & answers for the DP-300 exam

Exam DP-300 topic 5 question 18 discussion

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

You have an Azure SQL Database managed instance named SQLMI1. A Microsoft SQL Server Agent job runs on SQLMI1.
You need to ensure that an automatic email notification is sent once the job completes.
What should you include in the solution?

  • A. From SQL Server Configuration Manager (SSCM), enable SQL Server Agent
  • B. From SQL Server Management Studio (SSMS), run sp_set_sqlagent_properties
  • C. From SQL Server Management Studio (SSMS), create a Database Mail profile
  • D. From the Azure portal, create an Azure Monitor action group that has an Email/SMS/Push/Voice action
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
ukp72
Highly Voted 3 years, 10 months ago
Answer is correct. You have to create Database Mail Profile. Luke97 is referring to the profile name. -- Create a Database Mail profile EXECUTE msdb.dbo.sysmail_add_profile_sp @profile_name = 'AzureManagedInstance_dbmail_profile', @description = '...' ; Reference - https://techcommunity.microsoft.com/t5/azure-sql/sending-emails-in-azure-sql-managed-instance/ba-p/386235
upvoted 13 times
...
Luke97
Highly Voted 3 years, 10 months ago
If you want to send e-mail using SQL Agent jobs, there should be a profile that must be called 'AzureManagedInstance_dbmail_profile'. Otherwise, Managed Instance will be unable to send emails via SQL Agent.
upvoted 7 times
Jough_Blough
3 years, 10 months ago
Reference: https://techcommunity.microsoft.com/t5/azure-sql/sending-emails-in-azure-sql-managed-instance/ba-p/386235 "The important thing is that you can use any name for the DbMail profile (and you can have several db Mail profiles) for Db Mail procedures. However, if you want to send e-mail using SQL Agent jobs, there should be a profile that must be called 'AzureManagedInstance_dbmail_profile'. Otherwise, Managed Instance will be unable to send emails via SQL Agent. If you are using one profile in your instance and you want to use it both for classic emails and SQL Agent, rename the profile to 'AzureManagedInstance_dbmail_profile' so it can be used on both places."
upvoted 3 times
...
...
voodoo_sh
Most Recent 3 months ago
Selected Answer: C
you need to configure Database Mail (C) and create an Operator in SQL Agent in order to sent emails. No need for creating Azure action group (D) for this.
upvoted 1 times
...
sca88
6 months, 1 week ago
Selected Answer: C
C is the correct answer. Managed Instance need a profile named 'AzureManagedInstance_dbmail_profile'
upvoted 2 times
...
kannan94
8 months ago
Answer C. From SQL Server Management Studio (SSMS), create a Database Mail profile
upvoted 2 times
...
igorclapa
1 year, 1 month ago
Should be D Microsoft article below explains how to create an action group through the Azure portal. https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/alerts-create?view=azuresql
upvoted 1 times
...
Surjit24
1 year, 3 months ago
C is correct
upvoted 3 times
...
yousiftech
1 year, 3 months ago
Selected Answer: D
C, creating a Database Mail profile, is also not applicable to Azure SQL Database Managed Instance. Database Mail is not supported in Azure SQL Database Managed Instance, so you cannot use it to send email notifications.
upvoted 3 times
Lukasz1993
9 months, 2 weeks ago
This is wrong Please refer to https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/job-automation-managed-instance?view=azuresql
upvoted 2 times
...
...
Chunchi
2 years, 9 months ago
Selected Answer: C
Answer is correct
upvoted 3 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