Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Configure server and database audits

A worked example

Single answer

You administer an Azure SQL Database named SalesDB. All users connect to SalesDB by using Microsoft Entra authentication. Server-level auditing is enabled on the logical server with the default action groups. It sends audit logs to a storage account, a Log Analytics workspace, and an event hub.

The security team must review records of recent failed sign-in attempts against SalesDB.

Where should the security team review the failed sign-in records?

Choose one answer
Why

With Microsoft Entra authentication, the credentials are verified before the gateway tries to sign the user in to the requested database. When verification fails, the database is never accessed, so SQL auditing records nothing in any of its destinations. The documentation directs you to the Microsoft Entra admin center to see these failed login records. With SQL logins, failed logins can be audited, but that does not apply here.

  • Correct: The Microsoft Entra admin center. For Microsoft Entra logins, credentials are checked before the database is reached. Failed login records are therefore logged in the Microsoft Entra admin center, not in the SQL audit log.
  • Not correct: The audit log files in the storage account. With Microsoft Entra authentication, a failed login never reaches the database, so no SQL audit record is written to any audit destination, including the storage account.
  • Not correct: The audit events streamed to the event hub. The event hub carries the same SQL audit events. No SQL audit event is generated for a failed Microsoft Entra login, because the requested database is never accessed.
  • Not correct: The audit records in the Log Analytics workspace. The workspace receives SQL audit records only. Failed Microsoft Entra logins do not appear in the SQL audit log, even with the failed-authentication action group included in the defaults.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free