
Explanation:
When querying Azure Blob Storage from Azure Synapse Analytics serverless SQL pool using Shared Access Signature (SAS) authorization without defining a data source, the correct approach is to create a database-scoped credential.
OPENROWSET without requiring the creation of external data sources or external tables.SELECT * FROM OPENROWSET(
BULK 'https://storage1.blob.core.windows.net/container/file.csv',
FORMAT = 'CSV',
CREDENTIAL = 'my_scoped_credential'
) AS [result]
SELECT * FROM OPENROWSET(
BULK 'https://storage1.blob.core.windows.net/container/file.csv',
FORMAT = 'CSV',
CREDENTIAL = 'my_scoped_credential'
) AS [result]
Using database-scoped credentials with SAS tokens provides a secure and flexible method for ad-hoc queries while maintaining the principle of least privilege, as the SAS token can be configured with specific permissions and expiration times.
Ultimate access to all questions.
You have an Azure Blob storage account named storage1 and an Azure Synapse Analytics serverless SQL pool named Pool1. You plan to execute ad-hoc queries from Pool1 that target data in storage1. You need to enable the use of shared access signature (SAS) authorization without defining a data source. What should you create first?
A
a stored access policy
B
a server-level credential
C
a managed identity
D
a database scoped credential
No comments yet.