You are creating an application that will connect to the AgentPortal database by using a SQL login named AgentPortalUser. Stored procedures in the database will use sp_send_dbmail to send email messages.
You create a user account in the msdb database for the AgentPortalUser login. You use the Database Mail Configuration Wizard to create a Database Mail profile. Security has not been configured for the Database Mail profile.
You need to ensure that AgentPortalUser can send email messages.
What should you do?
Correct Answer: D
Explanation/Reference:
Explanation:
To send Database Mail, you must be a member of the DatabaseMailUserRole database role in the msdb database.
Incorrect Answers:
B: SQL Server Agent can be configured to use Database Mail. This is required for alert notifications and automatic notification when a job completes.
References: https://docs.microsoft.com/en-us/sql/relational-databases/database-mail/database-mail