ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 239 - MLS-C01 discussion

Report
Export

A data scientist stores financial datasets in Amazon S3. The data scientist uses Amazon Athena to query the datasets by using SQL.

The data scientist uses Amazon SageMaker to deploy a machine learning (ML) model. The data scientist wants to obtain inferences from the model at the SageMaker endpoint However, when the data .... ntist attempts to invoke the SageMaker endpoint, the data scientist receives SOL statement failures The data scientist's 1AM user is currently unable to invoke the SageMaker endpoint

Which combination of actions will give the data scientist's 1AM user the ability to invoke the SageMaker endpoint? (Select THREE.)

A.
Attach the AmazonAthenaFullAccess AWS managed policy to the user identity.
Answers
A.
Attach the AmazonAthenaFullAccess AWS managed policy to the user identity.
B.
Include a policy statement for the data scientist's 1AM user that allows the 1AM user to perform the sagemaker: lnvokeEndpoint action,
Answers
B.
Include a policy statement for the data scientist's 1AM user that allows the 1AM user to perform the sagemaker: lnvokeEndpoint action,
C.
Include an inline policy for the data scientist's 1AM user that allows SageMaker to read S3 objects
Answers
C.
Include an inline policy for the data scientist's 1AM user that allows SageMaker to read S3 objects
D.
Include a policy statement for the data scientist's 1AM user that allows the 1AM user to perform the sagemakerGetRecord action.
Answers
D.
Include a policy statement for the data scientist's 1AM user that allows the 1AM user to perform the sagemakerGetRecord action.
E.
Include the SQL statement 'USING EXTERNAL FUNCTION ml_function_name' in the Athena SQL query.
Answers
E.
Include the SQL statement 'USING EXTERNAL FUNCTION ml_function_name' in the Athena SQL query.
F.
Perform a user remapping in SageMaker to map the 1AM user to another 1AM user that is on the hosted endpoint.
Answers
F.
Perform a user remapping in SageMaker to map the 1AM user to another 1AM user that is on the hosted endpoint.
Suggested answer: B, C, E

Explanation:

The correct combination of actions to enable the data scientist's IAM user to invoke the SageMaker endpoint is B, C, and E, because they ensure that the IAM user has the necessary permissions, access, and syntax to query the ML model from Athena. These actions have the following benefits:

B: Including a policy statement for the IAM user that allows the sagemaker:InvokeEndpoint action grants the IAM user the permission to call the SageMaker Runtime InvokeEndpoint API, which is used to get inferences from the model hosted at the endpoint1.

C: Including an inline policy for the IAM user that allows SageMaker to read S3 objects enables the IAM user to access the data stored in S3, which is the source of the Athena queries2.

E: Including the SQL statement ''USING EXTERNAL FUNCTION ml_function_name'' in the Athena SQL query allows the IAM user to invoke the ML model as an external function from Athena, which is a feature that enables querying ML models from SQL statements3.

The other options are not correct or necessary, because they have the following drawbacks:

A: Attaching the AmazonAthenaFullAccess AWS managed policy to the user identity is not sufficient, because it does not grant the IAM user the permission to invoke the SageMaker endpoint, which is required to query the ML model4.

D: Including a policy statement for the IAM user that allows the IAM user to perform the sagemaker:GetRecord action is not relevant, because this action is used to retrieve a single record from a feature group, which is not the case in this scenario5.

F: Performing a user remapping in SageMaker to map the IAM user to another IAM user that is on the hosted endpoint is not applicable, because this feature is only available for multi-model endpoints, which are not used in this scenario.

References:

1:InvokeEndpoint - Amazon SageMaker

2:Querying Data in Amazon S3 from Amazon Athena - Amazon Athena

3:Querying machine learning models from Amazon Athena using Amazon SageMaker | AWS Machine Learning Blog

4:AmazonAthenaFullAccess - AWS Identity and Access Management

5:GetRecord - Amazon SageMaker Feature Store Runtime

: [Invoke a Multi-Model Endpoint - Amazon SageMaker]

asked 16/09/2024
Penny Chang
47 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first