DP-300 • Practice Exam 54
Free DP-300 practice exam — 20 questions with explanations. Set 54. No signup required.
You are analyzing the SQL script in the exhibit. This script is used to query data stored in Azure Blob Storage from Azure SQL Database. What is the primary purpose of the database scoped credential?
Refer to the exhibit.
```sql
CREATE DATABASE SCOPED CREDENTIAL [https://mystorageaccount.blob.core.windows.net/data]
WITH IDENTITY = 'SHARED ACCESS SIGNATURE',
SECRET = 'sv=2022-11-02&ss=b&srt=sco&sp=rw&se=2025-01-01T00:00:00Z&st=2024-01-01T00:00:00Z&spr=https&sig=...';
CREATE EXTERNAL DATA SOURCE [MyDataSource]
WITH (
LOCATION = 'https://mystorageaccount.blob.core.windows.net/data',
CREDENTIAL = [https://mystorageaccount.blob.core.windows.net/data]
);
CREATE EXTERNAL TABLE [dbo].[ExternalTable]
(
[ProductID] INT,
[ProductName] NVARCHAR(100)
)
WITH (
LOCATION = 'products/',
DATA_SOURCE = [MyDataSource],
FILE_FORMAT = [ParquetFormat]
);
```