Copying a Comprehend Custom Model Between AWS Accounts with ImportModel and a Resource-Based Policy

Answer Correct answer: B — Comprehend ImportModel can pull a custom model from another account, so only a resource-based IAM policy granting Account B access is needed.

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 В in the same Region. Which solution will meet this requirement with the LEAST development effort?

  1. Use Amazon S3 to make a copy of the model. Transfer the copy to Account B.
  2. Create a resource-based IAM policy. Use the Amazon Comprehend ImportModel API operation to copy the model to Account B. Correct Answer
  3. Use AWS DataSync to replicate the model from Account A to Account B.
  4. Create an AWS Site-to-Site VPN connection between Account A and Account В to transfer the model.

Community Votes

B
100%

100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

The Comprehend ImportModel API operation can pull a custom model from another AWS account directly, so the only additional requirement is a resource-based IAM policy in the source account granting Account B permission to access the model.

An ML engineer has an Amazon Comprehend custom model in Account A in us-east-1 and needs to copy it into Account B in the same region with the least development effort. The model artifact cannot simply be moved by hand between accounts, so a supported transfer mechanism with the right cross-account permissions is needed.

Trying to copy the model artifact through S3, DataSync, or a VPN. S3 access alone does not register the model as a Comprehend custom model in the target account, and DataSync is built for replicating files and datasets rather than importing a service-managed model resource.

Community Discussion (3 comments)

dduenas 👍 1 Selected: B
https://docs.aws.amazon.com/comprehend/latest/dg/custom-copy-importing.html
Saransundar 👍 3 Selected: B
Amazon Comprehend - ImportModel API to facilitate the transfer of custom models between AWS accounts. STEPS: 1. Exporting the model from Account A. 2. Creating a resource-based IAM policy in Account A to grant access to Account B. 3. Using the ImportModel API in Account B to import the model.
GiorgioGss 👍 2 Selected: B
https://docs.aws.amazon.com/comprehend/latest/APIReference/API_ImportModel.html "The source model can be in your AWS account or another one."

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

Amazon Comprehend provides the ImportModel API operation specifically for copying a custom model, and its documentation states that the source model can be in your own AWS account or another one, which is exactly the cross-account transfer this question requires. The only supporting work is a resource-based IAM policy in Account A that grants Account B permission to access the model, and then the ImportModel call in Account B completes the copy. That makes this the least-development-effort path because it uses the service's own transfer operation rather than moving and re-registering artifacts manually. The vote was unanimous at 100 for B. Saransundar laid out the three-step procedure of exporting from Account A, creating the resource-based policy to grant Account B access, and calling ImportModel in Account B, and GiorgioGss quoted the ImportModel reference noting the source model can be in another account.

Why the Other Options Are Wrong

Using Amazon S3 to make a copy and transferring it to Account B (A) only moves the underlying artifact; the model still has to be imported and registered as a Comprehend custom model in the target account, and the option describes no such step, so it does not complete the copy at the service level. Using AWS DataSync to replicate the model (C) is a mismatch because DataSync is designed to replicate files and datasets between storage locations, not to transfer a service-managed custom model resource between accounts. Creating a Site-to-Site VPN connection to transfer the model (D) establishes network connectivity between the accounts but provides no mechanism to import the model into Comprehend in Account B, so the model would arrive as bytes rather than as a usable custom model.

Community Comment Notes

The community was unanimous at 100 for B, and the comments focus on the mechanics of the supported path. Saransundar enumerated the exact three steps, which is effectively the operational runbook for this transfer. GiorgioGss cited the ImportModel API reference for the decisive point that the source model may live in another AWS account, and dduenas cited the Comprehend documentation page on copying and importing custom models, confirming that this is the documented approach rather than a workaround.

Official Reference

Related Analysis

Practice All MLA-C01 Questions

Access 115 questions with complete answers and detailed explanations.

View Full MLA-C01 Practice Test →

← Back to MLA-C01 Study Guide