Courseiva
Fundamentals of Generative AIhardMultiple ChoiceObjective-mapped

AIF-C01 Fundamentals of Generative AI Practice Question

A company wants to use a large language model to generate code based on natural language descriptions. They need to minimize latency and control costs by running inference on their own infrastructure. Which approach is most suitable?

⚠ Common exam trap

AWS often tests the distinction between managed API services (like Bedrock) and self-managed deployment options (like SageMaker), where candidates mistakenly choose Bedrock for 'control' over costs and latency, not realizing that Bedrock is a pay-per-token managed service with no infrastructure control.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use Amazon SageMaker to deploy a custom LLM

Amazon SageMaker allows you to deploy a custom large language model (LLM) on your own infrastructure, giving you full control over inference latency and cost. By using SageMaker endpoints with auto-scaling and instance selection, you can optimize for low-latency responses while avoiding per-token API charges from managed services.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Use Amazon Bedrock API

    Why it's wrong here

    Bedrock is a managed service and runs on AWS infrastructure, not the customer's own.

  • Use Amazon SageMaker to deploy a custom LLM

    Why this is correct

    SageMaker can deploy models on customer-specified instances, giving control over latency and cost.

  • Use Amazon Comprehend

    Why it's wrong here

    Comprehend is for natural language understanding tasks, not generative code output.

  • Use Amazon Lex

    Why it's wrong here

    Lex is designed for building conversational interfaces, not for general code generation.

About these practice questions

Courseiva writes every AIF-C01 question from scratch — 619 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AIF-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AIF-C01 exam.