Question
An ML engineer has an Amazon Comprehend custom model in Account A in the us-east-1 Region. The ML engineer needs to copy the model to Account B in the same Region.
Which solution will meet this requirement with the LEAST development effort?
- A. Use Amazon S3 to make a copy of the model. Transfer the copy to Account B.
- B. Create a resource-based IAM policy. Use the Amazon Comprehend ImportModel API operation to copy the model to Account B. Correct
- C. Use AWS DataSync to replicate the model from Account A to Account B.
- D. Create an AWS Site-to-Site VPN connection between Account A and Account B to transfer the model.
Explanation
The correct answer is B because it leverages Amazon Comprehend's ImportModel API operation, which is specifically designed for copying models across accounts with minimal development effort. Creating a resource-based IAM policy ensures that the necessary permissions are in place to perform this action between different AWS accounts.