Deploying foundation models: MLA-C02 study notes and practice questions
What to know about Deploying foundation models for the MLA-C02 exam, from the Deployment and Orchestration of ML and AI Workflows domain (24% of the exam guide), then 2 free questions to test it. Part of the MLA-C02 study guide.
A ski resort group fine-tuned an open-weight language model on its own server in a data center, using its guest-feedback data. It now wants the model available through Amazon Bedrock so that its applications can call it with the same APIs and access controls as its other Bedrock models.
The weights are in a private S3 bucket in the account, and the team does not want to host or patch inference servers. The model must not be retrained on AWS.
Which approach meets these requirements?
Choose one answer.
AA. Create a Bedrock fine-tuning job that points at the uploaded weights, so that Bedrock registers the result as a custom model it can serve.
BB. Use Bedrock Custom Model Import, uploading the model weights from the S3 bucket in a supported format, and invoke the imported model through Bedrock.
CC. Deploy the weights on an Amazon EC2 instance with a container and call that instance from the applications through a load balancer.
DD. Store the model in Amazon SageMaker JumpStart and invoke it through the JumpStart catalog, since JumpStart offers all open-weight models through Bedrock.
Show the answer and explanation
Answer: B
A. Wrong: Bedrock fine-tuning starts from a Bedrock base model and runs training on AWS, which the stem does not want. It does not import a model that was trained elsewhere.
C. Wrong: This keeps the model outside Bedrock and makes the team operate the inference servers, which the stem rules out. The applications would not use Bedrock APIs.
D. Wrong: JumpStart is a catalog of models for SageMaker AI, and it does not put a custom model into Bedrock. The stem asks for Bedrock APIs and access controls.
Explanation
Bedrock Custom Model Import loads a model whose weights were created outside Bedrock from S3, so the model is invoked through the Bedrock APIs with the same access controls. Fine-tuning in Bedrock trains from a Bedrock base model, and hosting on EC2 or JumpStart does not put the model in Bedrock.
A regional bank runs a customer-service assistant on a Bedrock foundation model. Traffic is steady and high during business hours in every time zone the bank serves, and the bank needs predictable latency and throughput for its peak periods.
The bank wants a commitment that guarantees capacity for its model usage, and it accepts paying for that reserved capacity for a fixed term.
Which Bedrock option should the bank choose?
Choose one answer.
AA. On-demand inference, which charges per token and lets the bank send as many requests as the service can accept at the time.
BB. Cross-Region inference, which routes requests to other Regions when the home Region is busy, so that the bank never sees throttling.
CC. Provisioned throughput for the model with a commitment term, so that the bank has reserved model capacity for its steady peak load.
DD. Batch inference, which processes the requests in a file overnight so that daytime traffic does not reach the model.
Show the answer and explanation
Answer: C
A. Wrong: On-demand has no capacity commitment, so throughput can vary during peaks. The stem asks for a guaranteed capacity commitment.
B. Wrong: Cross-Region inference helps absorb bursts across Regions, but it does not reserve capacity for a commitment term. The stem asks for guaranteed throughput.
D. Wrong: Batch inference is for offline work and does not serve the bank's interactive assistant. The option removes the requests the stem is about.
Explanation
Provisioned throughput reserves model capacity under a commitment, which suits steady, high traffic that needs predictable throughput. On-demand has no reservation, and cross-Region inference and batch inference do not reserve capacity for interactive peaks.
Want more on Deploying foundation models? The 5 full-length practice sets have 10 more Deploying foundation models questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →