You are tasked with loading data from a REST API that returns data in a deeply nested JSON format. The API requires authentication via an API key passed in the header. The JSON response contains an array of objects, each representing a customer order. You need to load only orders placed in the last 7 days. Which of the following steps and techniques would you use in Snowflake to achieve this?
Correct Answer: B
Option B presents the most secure and robust approach. External Functions with API Integration objects allow calling external APIs. The filtering within the UDF ensures that only the required data is loaded, optimizing performance. Secure Secrets are essential for securely storing the API key. Option A is a viable solution but it requires careful security management of the API Key within Python code. Options C is incorrect since COPY INTO command doesn't support calling API with API Key in Header and it also require preprocessor function which are hard to implement. Option D is possible but doesn't mention API keys secure store which is less secure. Option E is not possible since 'SYSTEM$STREAM' object don't allow call API for data loading.