Valid NAS-C01 Dumps shared by ExamDiscuss.com for Helping Passing NAS-C01 Exam! ExamDiscuss.com now offer the newest NAS-C01 exam dumps, the ExamDiscuss.com NAS-C01 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com NAS-C01 dumps with Test Engine here:
You are developing a Snowflake Native Application that includes a TASK which calls a stored procedure. The stored procedure interacts with an external API using an external function. The external function is defined with an API integration. To ensure secure access to the external API, how should the privileges be granted so that the TASK can execute successfully and access the external function within the consumer account?
Correct Answer: A
For the TASK to successfully call the stored procedure which in turn calls the external function using API integration, the 'app_public' role needs 'USAGE privilege on the API integration and 'EXECUTE TASK privilege on the TASK. The 'app_owner' role is typically used for managing the application and not for executing tasks in the consumer account. The 'application' role doesn't exist in the context of native apps in this sense. Granting USAGE on API integration allows application to use the integration. Granting execute on task, enables the task to be executed.