Curated

Deployment and Orchestration of ML and AI Workflows (3.1–3.3)

0 votes

Questions72

  1. Question 1

    Deployment and Orchestration of ML and AI Workflows

    A team wants several inference containers with different framework dependencies to share one Amazon SageMaker AI endpoint. Each request must explicitly select one container without invoking the others; which configuration should the team choose?

    Show the answer

    Correct answerA. A multi-container endpoint with direct invocation

    AWhy this is right: Direct invocation lets a request select an individual container without executing the other containers.

    BWhy not this: A multi-model endpoint selects model artifacts rather than independently selecting containers with different framework dependencies.

    CWhy not this: A serial inference pipeline passes requests through its container sequence rather than invoking only the selected container.

    DWhy not this: Production variants distribute traffic among deployments rather than directly selecting containers within a shared deployment.

    A multi-container endpoint with direct invocation lets each request target a specific container, allowing separate framework dependencies. An inference pipeline instead executes its containers sequentially, which does not meet the independent-invocation requirement.

    Open this question
  2. Question 2

    Deployment and Orchestration of ML and AI Workflows

    A company has hundreds of infrequently requested models that use the same supported framework and serving container. Occasional model-loading latency is acceptable; which SageMaker AI deployment strategy minimizes idle hosting resources?

    Show the answer

    Correct answerA. A multi-model endpoint that loads models on demand

    AWhy this is right: A multi-model endpoint shares compute and loads models as needed, reducing idle resources for infrequently requested models.

    BWhy not this: An inference pipeline runs stages sequentially; it is not an on-demand catalog of independently selected models.

    CWhy not this: Production variants allocate capacity to deployments rather than loading a large collection of models on demand.

    DWhy not this: Dedicated endpoints allocate separate hosting resources instead of pooling capacity across the models.

    A multi-model endpoint shares hosting resources and loads requested models on demand, reducing idle capacity for infrequently used models. Dedicated endpoints isolate models but retain separate hosting resources instead of sharing model-serving capacity.

    Open this question
  3. Question 3

    Deployment and Orchestration of ML and AI Workflows

    A team already runs model-serving workloads with Helm charts and Kubernetes operators and wants AWS to manage the control plane when it moves them to AWS. Which deployment target fits?

    Show the answer

    Correct answerB. Amazon Elastic Kubernetes Service

    AWhy not this: SageMaker AI hosts models on its own managed endpoints and does not run existing Helm charts or Kubernetes operators.

    BWhy this is right: Amazon EKS is managed Kubernetes, so the team's Helm charts and operators run as they do today.

    CWhy not this: Amazon ECS orchestrates containers with its own task definitions and API, so the Kubernetes tooling would need rewriting.

    DWhy not this: AWS Batch schedules batch jobs rather than hosting long-running Kubernetes services.

    Amazon EKS runs upstream Kubernetes with an AWS-managed control plane, so existing Helm charts and operators work with little change. Amazon ECS also orchestrates containers, but with its own API, so the Kubernetes tooling would have to be replaced.

    Open this question
  4. Question 4

    Deployment and Orchestration of ML and AI Workflows

    A team must host a custom inference container that requires an NVIDIA GPU and access to the host operating system to install kernel drivers. Which deployment target meets these requirements?

    Show the answer

    Correct answerC. An Amazon EC2 GPU instance

    AWhy not this: Lambda container images do not provide GPU hardware or control over the host operating system.

    BWhy not this: SageMaker AI serverless inference does not provide GPUs or administrative access to the underlying host.

    CWhy this is right: An EC2 GPU instance provides GPU hardware and administrative access to install host drivers.

    DWhy not this: AWS Fargate does not provide GPU resources or access to install drivers in the host operating system.

    An Amazon EC2 GPU instance provides GPU hardware and control over the host operating system, including driver installation. AWS Fargate abstracts the host and does not provide the required GPU and kernel-driver access.

    Open this question
  5. Question 5

    Deployment and Orchestration of ML and AI Workflows

    An application invokes an Amazon Bedrock model sporadically, with long idle periods and no reserved-throughput requirement. The model supports both On-Demand and Provisioned Throughput. Which choice best avoids paying for unused model capacity?

    Show the answer

    Correct answerD. On-Demand inference charged by actual usage

    AWhy not this: A shorter commitment still incurs provisioned-capacity charges during idle periods.

    BWhy not this: Provisioning for peak demand leaves paid capacity unused during quiet periods.

    CWhy not this: A longer commitment does not eliminate charges for unused provisioned capacity.

    DWhy this is right: Usage-based inference avoids reserving capacity that would sit idle between sporadic requests.

    On-Demand inference charges for usage without reserving model capacity, making it appropriate for sporadic requests. Provisioned Throughput reserves capacity and incurs charges even when that capacity is unused.

    Open this question
  6. Question 6

    Deployment and Orchestration of ML and AI Workflows

    A SageMaker AI Serverless Inference endpoint receives traffic during a predictable daily window and is idle otherwise. Cold starts violate latency requirements during that window; load tests establish the required concurrency. Which configuration minimizes idle cost while meeting latency requirements?

    Show the answer

    Correct answerA. Schedule provisioned concurrency for the traffic window.

    AWhy this is right: Scheduled provisioned concurrency supplies warm capacity during the known traffic window and avoids provisioned idle capacity afterward.

    BWhy not this: More memory can improve execution performance but does not provide prewarmed capacity.

    CWhy not this: Continuous provisioned concurrency meets latency needs but incurs unnecessary charges during idle periods.

    DWhy not this: Maximum concurrency allows more concurrent requests but does not keep execution environments warm.

    Scheduled provisioned concurrency keeps capacity warm when needed without paying for it throughout idle periods. Maximum concurrency controls the concurrency ceiling but does not prewarm capacity.

    Open this question
  7. Question 7

    Deployment and Orchestration of ML and AI Workflows

    Which AWS CloudFormation feature lets a compute stack reference an exported subnet ID from a network stack in the same account and Region?

    Show the answer

    Correct answerD. An Fn::ImportValue intrinsic function

    AWhy not this: CreationPolicy waits for resource signals; it does not transfer values between stacks.

    BWhy not this: Fn::GetAtt retrieves resource attributes within the template, not exports from a separate stack.

    CWhy not this: DependsOn controls resource creation order within a template; it does not retrieve another stack's outputs.

    DWhy this is right: Fn::ImportValue retrieves an exported output for use in another stack in the same account and Region.

    Fn::ImportValue retrieves a value exported by another stack in the same account and Region. Fn::GetAtt retrieves attributes of resources within the template rather than importing another stack's exported output.

    Open this question
  8. Question 8

    Deployment and Orchestration of ML and AI Workflows

    A Step Functions workflow creates a network stack, then must pass its generated subnet IDs to a compute stack. CreateStack returns before provisioning finishes, and either stack can fail. How should the workflow coordinate provisioning?

    Show the answer

    Correct answerB. Poll DescribeStacks, branch on status, and pass completed network outputs as compute stack parameters.

    AWhy not this: Parallel creation does not establish the required output dependency or explicitly handle network-stack failure.

    BWhy this is right: Status checks establish readiness, failure branches stop invalid provisioning, and outputs supply the generated subnet IDs.

    CWhy not this: DependsOn orders resources within a template; it cannot wait on a separately managed stack.

    DWhy not this: A fixed delay cannot establish successful completion, and requested parameters do not contain generated subnet IDs.

    Polling DescribeStacks lets the workflow wait for successful completion, handle failure states, and retrieve generated outputs before provisioning compute. DependsOn cannot coordinate completion of separately managed stacks.

    Open this question
  9. Question 9

    Deployment and Orchestration of ML and AI Workflows

    Which deployment strategies control production traffic exposure when releasing a new model? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Blue/green deploymentB. Canary deployment

    AWhy this is right: A blue/green deployment shifts traffic between the existing and replacement deployment environments.

    BWhy this is right: A canary deployment initially directs a limited share of production traffic to the new model.

    CWhy not this: Scheduled retraining produces updated models; it does not determine how production traffic reaches them.

    DWhy not this: Model registration records model versions and metadata; it does not shift production traffic.

    EWhy not this: Training checkpoints preserve training state for recovery, not production traffic control.

    Canary deployments expose a new model to limited traffic before expansion; blue/green deployments shift traffic between separate environments. Model registration tracks model versions but does not control production traffic.

    Open this question
  10. Question 10

    Deployment and Orchestration of ML and AI Workflows

    A CodePipeline source action using AWS CodeConnections succeeds after its output changes from ZIP to full clone, but CodeBuild now fails during source download with a connection authorization error. The connection is available, and the pipeline role can use it; which least-privilege change preserves Git history access?

    Show the answer

    Correct answerB. Grant the CodeBuild service role codeconnections:UseConnection on the source connection

    AWhy not this: CodeCommit Git permissions do not authorize cloning an external repository through AWS CodeConnections.

    BWhy this is right: Full-clone consumption requires the CodeBuild service role to use the connection; scoping to its ARN limits access.

    CWhy not this: GetConnection reads connection metadata but does not authorize using the connection to clone a repository.

    DWhy not this: The pipeline role already has access, and its permissions do not transfer to the CodeBuild service role.

    With full-clone output, CodeBuild needs permission to use the connection to retrieve the repository and its Git history. Permission on the pipeline role alone is insufficient; GetConnection only permits reading connection details.

    Open this question
  11. Question 11

    Deployment and Orchestration of ML and AI Workflows

    A SageMaker AI endpoint must replace its instances in batches, with capacity for only one additional batch rather than a full replacement fleet. Which configuration meets this constraint and automatically reverses deployment when a health alarm fires?

    Show the answer

    Correct answerA. Rolling deployment with batch sizing and automatic rollback alarms

    AWhy this is right: Rolling deployment limits replacement capacity by batch size and supports CloudWatch alarm-based rollback.

    BWhy not this: Blue/green deployment provisions a replacement fleet, even when traffic shifts initially to a small canary.

    CWhy not this: Model approval gates release eligibility; it does not automatically reverse an unhealthy endpoint update.

    DWhy not this: Linear traffic shifting changes traffic incrementally but does not remove the blue/green replacement fleet requirement.

    Rolling deployments replace endpoint instances in batches, avoiding a full parallel fleet, and support alarm-based automatic rollback. Blue/green canary deployment limits initial traffic exposure but still provisions a replacement fleet.

    Open this question
  12. Question 12

    Deployment and Orchestration of ML and AI Workflows

    A team needs to evaluate a candidate SageMaker AI model using copies of live inference requests while keeping customer responses exclusively from the existing model. Which deployment approach should it use?

    Show the answer

    Correct answerB. A shadow test with the candidate as a shadow variant

    AWhy not this: Canary deployment returns candidate model responses for the production traffic allocated to it.

    BWhy this is right: A shadow variant receives copied requests while only the production variant supplies customer responses.

    CWhy not this: Linear deployment progressively serves customer requests from the candidate model.

    DWhy not this: All-at-once deployment makes the candidate responsible for production responses after the switch.

    A shadow test copies production requests to a shadow variant without returning its responses to customers. A canary deployment instead serves some customer requests using the candidate model.

    Open this question
  13. Question 13

    Deployment and Orchestration of ML and AI Workflows

    Which characteristics describe Amazon SageMaker AI Serverless Inference without Provisioned Concurrency? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Idle periods can cause cold-start latency.F. Compute capacity can scale to zero.

    AWhy this is right: Without warm provisioned capacity, initializing compute and loading the model can introduce cold-start latency.

    BWhy not this: Serverless Inference manages compute capacity rather than requiring a customer-maintained minimum instance count.

    CWhy not this: SageMaker AI Serverless Inference does not support GPU acceleration.

    DWhy not this: Customers configure memory and concurrency rather than selecting an underlying instance type.

    EWhy not this: A built-in request queue is a feature of asynchronous inference, not Serverless Inference.

    FWhy this is right: Serverless Inference can release compute capacity when there is no traffic.

    Serverless Inference can scale compute to zero, so requests after idle periods can experience cold starts. Asynchronous inference provides a request queue; Serverless Inference does not provide that asynchronous processing model.

    Open this question
  14. Question 14

    Deployment and Orchestration of ML and AI Workflows

    A retailer scores all customer records stored in Amazon S3 overnight and needs the results before the next business day. Which inference strategy avoids maintaining an endpoint?

    Show the answer

    Correct answerA. Amazon SageMaker AI Batch Transform

    AWhy this is right: Batch Transform runs offline inference jobs on stored datasets without maintaining an endpoint.

    BWhy not this: Serverless Inference manages endpoint compute automatically but still uses an inference endpoint.

    CWhy not this: Asynchronous inference uses an endpoint to queue and process requests; it is not an endpoint-free batch job.

    DWhy not this: Real-time inference maintains an endpoint for interactive requests rather than running an offline scoring job.

    Batch Transform processes datasets without a persistent inference endpoint, making it suitable for scheduled offline scoring. Asynchronous inference queues individual requests through an endpoint rather than running an offline batch job.

    Open this question
  15. Question 15

    Deployment and Orchestration of ML and AI Workflows

    An application submits individual 200 MB files at unpredictable times to a GPU model that takes eight minutes per prediction. Clients can retrieve results from Amazon S3 later, and idle compute must scale to zero; which strategy best fits?

    Show the answer

    Correct answerD. Asynchronous inference with scale-to-zero auto scaling

    AWhy not this: Real-time inference is not suitable for this combination of large payloads and eight-minute processing times.

    BWhy not this: A nightly batch schedule delays individually arriving requests instead of processing them through a request queue.

    CWhy not this: Increasing serverless memory does not add GPU support or accommodate this long-running inference workload.

    DWhy this is right: Asynchronous inference queues requests, supports GPU processing, stores results in S3, and can scale instances to zero.

    Asynchronous inference supports large payloads, long processing times, GPU instances, and scaling endpoint instances to zero. Batch Transform supports offline processing, but a nightly schedule does not fit individually arriving requests that should enter processing as they arrive.

    Open this question
  16. Question 16

    Deployment and Orchestration of ML and AI Workflows

    A foundation model is available through both Amazon Bedrock and Amazon SageMaker JumpStart, but an application requires a modified inference server with custom CUDA kernels. The team also needs a specific GPU instance family and managed endpoint scaling; which deployment option meets these requirements?

    Show the answer

    Correct answerD. Amazon SageMaker AI hosting with a custom container

    AWhy not this: Reserving Bedrock throughput does not provide control over the inference server or underlying GPU instance family.

    BWhy not this: EC2 provides runtime control, but it does not itself provide a managed model endpoint with endpoint scaling.

    CWhy not this: Bedrock on-demand inference does not expose the model-serving runtime for installing custom CUDA kernels.

    DWhy this is right: A custom container supports the modified runtime while SageMaker AI provides instance selection and endpoint auto scaling.

    SageMaker AI hosting supports custom inference containers, GPU instance selection, and managed endpoint auto scaling. EC2 supports runtime customization but requires the team to build and operate the model-serving endpoint and its scaling integration.

    Open this question
  17. Question 17

    Deployment and Orchestration of ML and AI Workflows

    A team wants to use a supported foundation model without managing hosting infrastructure. Usage is initially low and unpredictable, with no requirement to reserve throughput; which deployment option best fits?

    Show the answer

    Correct answerB. Amazon Bedrock on-demand inference

    AWhy not this: EC2 hosting requires the team to manage instances and the model-serving infrastructure.

    BWhy this is right: On-demand inference provides managed model access with usage-based pricing and no reserved throughput requirement.

    CWhy not this: Provisioned Throughput reserves capacity that the team does not currently require.

    DWhy not this: A provisioned SageMaker AI endpoint requires hosting capacity configuration and incurs provisioned resource costs.

    Amazon Bedrock on-demand inference provides managed model access without reserving throughput, fitting low and unpredictable usage. Provisioned Throughput reserves model capacity and is better suited to workloads requiring predictable throughput.

    Open this question
  18. Question 18

    Deployment and Orchestration of ML and AI Workflows

    A SageMaker AI model has VpcConfig, but an application in a private subnet without internet egress cannot invoke its real-time endpoint. IAM permissions are correct; which change provides private invocation without adding internet access?

    Show the answer

    Correct answerC. Create a SageMaker Runtime interface endpoint with private DNS and allow application HTTPS traffic.

    AWhy not this: VpcConfig connects model containers to VPC resources; it does not expose the invocation API in application subnets.

    BWhy not this: An S3 gateway endpoint provides access to S3, not the SageMaker Runtime invocation API.

    CWhy this is right: The Runtime interface endpoint privately carries invocation requests; private DNS and HTTPS access enable clients to use it.

    DWhy not this: The SageMaker API endpoint serves control-plane operations, not real-time inference invocation.

    A SageMaker Runtime interface VPC endpoint provides private access to inference calls such as InvokeEndpoint. The model's VpcConfig controls the container's access to VPC resources; it does not provide the application's private invocation path.

    Open this question
  19. Question 19

    Deployment and Orchestration of ML and AI Workflows

    Which AWS service provides a managed registry for storing and versioning private ML container images?

    Show the answer

    Correct answerD. Amazon Elastic Container Registry

    AWhy not this: AWS CodeBuild builds and tests images but is not their container registry.

    BWhy not this: Model Registry manages model package versions and can reference images stored in a container registry.

    CWhy not this: Amazon S3 stores objects but does not provide a container image registry API.

    DWhy this is right: Amazon ECR provides managed repositories for storing and retrieving versioned container images.

    Amazon Elastic Container Registry stores and manages container images in repositories. Amazon SageMaker Model Registry versions model packages and their metadata, rather than serving as a container image registry.

    Open this question
  20. Question 20

    Deployment and Orchestration of ML and AI Workflows

    An inference container contains a vulnerable operating-system library inherited from its base image. A patched base image is available; how should the engineer produce a reproducible replacement?

    Show the answer

    Correct answerA. Rebuild from the patched base digest, test, and publish a versioned image.

    AWhy this is right: A digest identifies the patched base precisely, and rebuilding incorporates its layers into a testable replacement.

    BWhy not this: Model artifacts hold model data; changing them does not replace vulnerable operating-system image layers.

    CWhy not this: Existing images retain their original layers; restarting containers does not rebuild those images.

    DWhy not this: Interactive changes are not captured in the image build and disappear when containers are replaced.

    Rebuilding from a patched base image pinned by digest produces a traceable replacement that can be tested and versioned. Moving a base-image tag does not change the layers already incorporated into an existing image.

    Open this question
  21. Question 21

    Deployment and Orchestration of ML and AI Workflows

    A team wants successful CloudFormation stack creation to automatically start a Step Functions workflow that provisions ML compute, without polling. Which configurations enable this integration? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. Give the EventBridge target role permission to start executions of the state machine.D. Create an EventBridge rule matching successful stack-creation events and targeting the state machine.

    AWhy not this: An execution role authorizes workflow actions; it does not subscribe the state machine to events.

    BWhy not this: A creation policy makes CloudFormation wait for resource signals rather than invoke a state machine.

    CWhy this is right: EventBridge needs an assumable target role with states:StartExecution permission for the target state machine.

    DWhy this is right: EventBridge rules can match CREATE_COMPLETE stack-status events and route them to a Step Functions state machine.

    EventBridge can match CloudFormation stack-status events and start a Step Functions execution through an authorized target role. A creation policy waits for resource signals; it does not invoke a workflow.

    Open this question
  22. Question 22

    Deployment and Orchestration of ML and AI Workflows

    A SageMaker AI Managed Spot Training job restarts from the beginning after interruptions, although its framework supports checkpoint recovery. Which configuration enables recovery while allowing extra time for Spot capacity?

    Show the answer

    Correct answerB. Configure an S3 checkpoint location and set MaxWaitTimeInSeconds above MaxRuntimeInSeconds.

    AWhy not this: Model output storage does not enable checkpoint recovery, and the Spot wait limit cannot be below the runtime limit.

    BWhy this is right: Checkpoint storage enables recovery, and the larger wait limit provides time for Spot capacity waits.

    CWhy not this: Checkpoint storage enables recovery, but equal limits provide no additional allowance beyond the runtime limit.

    DWhy not this: The model output location stores training artifacts but does not configure checkpoint synchronization.

    An S3 checkpoint location preserves training state for recovery after Spot interruptions. A wait limit above the runtime limit accommodates capacity waits; a model output location alone does not configure checkpoint recovery.

    Open this question
  23. Question 23

    Deployment and Orchestration of ML and AI Workflows

    A classifier passes its overall accuracy threshold but performs poorly on a required customer segment. Which pipeline change should block promotion when that segment's recall is insufficient?

    Show the answer

    Correct answerB. Gate promotion on recall calculated for that segment.

    AWhy not this: Recording hyperparameters supports traceability but does not reject models with poor segment performance.

    BWhy this is right: A segment-level recall gate directly tests and enforces the required acceptance criterion.

    CWhy not this: Reviewing aggregate accuracy does not enforce an automated segment-specific recall threshold.

    DWhy not this: New-data retraining does not determine whether a candidate meets the segment's acceptance threshold.

    A segment-specific evaluation gate automatically blocks promotion when the required recall threshold is missed. Manual approval based on overall accuracy does not enforce the segment-level requirement.

    Open this question
  24. Question 24

    Deployment and Orchestration of ML and AI Workflows

    Which file defines the build commands and output artifacts for an AWS CodeBuild project?

    Show the answer

    Correct answerD. A buildspec file

    AWhy not this: A model card documents a model's intended use, evaluation results, and other governance information.

    BWhy not this: A pipeline execution record tracks a pipeline run rather than defining build instructions.

    CWhy not this: An AppSpec file describes deployment actions for CodeDeploy, not CodeBuild build commands.

    DWhy this is right: A buildspec file specifies the commands, phases, and artifacts used by CodeBuild.

    A buildspec file defines CodeBuild commands, build phases, and output artifacts. An AppSpec file instead describes deployment actions for CodeDeploy.

    Open this question
  25. Question 25

    Deployment and Orchestration of ML and AI Workflows

    Which automated test in a CI pipeline checks that a single feature-encoding function returns the expected values for fixed inputs before training begins?

    Show the answer

    Correct answerC. A unit test

    AWhy not this: A load test measures endpoint behavior under traffic, not feature transformation correctness.

    BWhy not this: An integration test runs several pipeline steps together, so it does not isolate one function's outputs.

    CWhy this is right: A unit test verifies an individual function against expected results using controlled inputs.

    DWhy not this: Accuracy evaluation measures model predictions against labels rather than testing an encoding function in isolation.

    A unit test runs one function on controlled inputs and compares its output with known expected values. An integration test exercises several steps together, and an accuracy evaluation judges the trained model rather than one encoding function.

    Open this question
  26. Question 26

    Deployment and Orchestration of ML and AI Workflows

    A pipeline must score millions of records stored in Amazon S3 each night and save predictions to S3. Which SageMaker AI configuration avoids maintaining an inference endpoint?

    Show the answer

    Correct answerC. A Batch Transform job with input and output locations

    AWhy not this: Asynchronous inference writes results to S3 but still requires an inference endpoint.

    BWhy not this: A validation channel supports training evaluation; it does not configure a batch inference workload.

    CWhy this is right: Batch Transform processes stored datasets and writes predictions to S3 without maintaining an endpoint.

    DWhy not this: Real-time inference requires an endpoint and is designed for online prediction requests.

    Batch Transform runs offline inference on stored datasets and writes predictions to S3 without a persistent endpoint. Asynchronous inference supports queued requests but still uses an endpoint.

    Open this question
  27. Question 27

    Deployment and Orchestration of ML and AI Workflows

    An externally built model container serves predictions on port 5000 at /predict, but SageMaker AI endpoint deployment fails health checks. Its dependencies load successfully; which change makes the container compatible with SageMaker AI hosting?

    Show the answer

    Correct answerB. Listen on port 8080 and implement /ping and /invocations.

    AWhy not this: Model registration does not adapt an image's HTTP interface to the SageMaker AI hosting contract.

    BWhy this is right: These settings satisfy the required port, health-check route, and inference route for SageMaker AI hosting.

    CWhy not this: The correct port alone is insufficient; SageMaker AI also requires health-check and inference routes.

    DWhy not this: A longer timeout does not fix a server listening on the wrong port or missing the required health-check route.

    A SageMaker AI inference container must satisfy the hosting interface, including listening on port 8080 and handling /ping and /invocations. Increasing the health-check timeout cannot correct an incompatible port or missing routes.

    Open this question
  28. Question 28

    Deployment and Orchestration of ML and AI Workflows

    A company has order-management tools implemented as AWS Lambda functions. Its agent uses Model Context Protocol (MCP) to discover and call tools; which managed component should expose these functions through that protocol?

    Show the answer

    Correct answerD. Amazon Bedrock AgentCore Gateway

    AWhy not this: Runtime hosts agent code; Gateway provides the managed tool-exposure capability required here.

    BWhy not this: Memory retains information for agent interactions rather than exposing Lambda functions as MCP tools.

    CWhy not this: Identity manages agent authentication and access rather than converting functions into MCP tools.

    DWhy this is right: Gateway can turn Lambda functions into discoverable tools accessible to agents through MCP.

    AgentCore Gateway can expose Lambda functions as tools accessible through MCP. AgentCore Runtime hosts agent workloads, but hosting an agent does not itself convert existing Lambda functions into MCP tools.

    Open this question
  29. Question 29

    Deployment and Orchestration of ML and AI Workflows

    Which protocol is designed for communication and task delegation between independently implemented AI agents?

    Show the answer

    Correct answerD. Agent2Agent (A2A)

    AWhy not this: OIDC provides an identity layer for authentication rather than agent task delegation.

    BWhy not this: OpenAPI describes HTTP API interfaces rather than defining agent collaboration semantics.

    CWhy not this: MCP standardizes access to tools and context sources rather than agent-to-agent task delegation.

    DWhy this is right: A2A supports communication and task collaboration between independently implemented agents.

    Agent2Agent supports interoperability and task collaboration between independent agents. MCP primarily standardizes how AI applications connect to tools and context sources rather than defining agent-to-agent task collaboration.

    Open this question
  30. Question 30

    Deployment and Orchestration of ML and AI Workflows

    A team trained a scikit-learn model on premises and saved its serialized artifact. A compatible SageMaker AI framework container is available; how should the team deploy it without retraining?

    Show the answer

    Correct answerA. Package the artifact in Amazon S3 and deploy it with the compatible framework container.

    AWhy this is right: A compatible framework container can load the external artifact and serve predictions without another training job.

    BWhy not this: Registering a model version does not provision serving infrastructure or make the version directly invocable.

    CWhy not this: An endpoint needs a trained model and serving code; a training dataset does not replace the model artifact.

    DWhy not this: SageMaker AI hosting needs an inference container to load the artifact and process requests.

    SageMaker AI can host an externally trained model using its packaged artifact and a compatible framework inference container. Model Registry manages model versions and metadata, but registration alone does not create an invocable endpoint.

    Open this question
  31. Question 31

    Deployment and Orchestration of ML and AI Workflows

    Which Amazon Bedrock feature imports supported foundation model weights trained outside AWS for managed inference?

    Show the answer

    Correct answerA. Custom Model Import

    AWhy this is right: Custom Model Import accepts supported externally developed model weights for hosting in Amazon Bedrock.

    BWhy not this: Knowledge Bases connects retrieval sources to models; it does not import model weights.

    CWhy not this: Model distillation transfers capabilities from a teacher model to a smaller model rather than importing existing external weights.

    DWhy not this: Provisioned Throughput reserves inference capacity rather than importing external model weights.

    Custom Model Import brings supported externally developed model weights into Amazon Bedrock for managed inference. Model distillation creates a smaller model using a teacher model; it is not the feature for importing existing external weights.

    Open this question
  32. Question 32

    Deployment and Orchestration of ML and AI Workflows

    A large FM deployment on SageMaker AI has sufficient GPU memory, but artifact download and model initialization exceed their respective startup time limits. Which endpoint configuration changes address these failures? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. Increase ModelDataDownloadTimeoutInSeconds.D. Increase ContainerStartupHealthCheckTimeoutInSeconds.

    AWhy not this: More workers do not extend startup deadlines and can increase memory consumption.

    BWhy not this: More endpoint replicas do not increase the download or initialization time allowed for each instance.

    CWhy this is right: This setting extends the time allowed to download model artifacts before deployment fails.

    DWhy this is right: This setting gives the container more time to initialize and pass startup health checks.

    The model data download timeout allows more time to fetch artifacts, and the startup health check timeout allows more time for initialization. Adding workers or endpoint replicas does not extend either startup deadline.

    Open this question
  33. Question 33

    Deployment and Orchestration of ML and AI Workflows

    An FM's weights exceed one GPU's memory but fit across the GPUs on a single SageMaker AI instance. The serving framework supports tensor parallelism, and reduced precision is prohibited; which configuration should the engineer choose?

    Show the answer

    Correct answerC. Partition the model across the instance's GPUs.

    AWhy not this: Additional endpoint instances normally host replicas; their memory is not automatically pooled for one model.

    BWhy not this: Queue capacity controls waiting requests, not the memory available to load model weights.

    CWhy this is right: Tensor parallelism distributes model tensors across GPUs, allowing the model to use their combined memory.

    DWhy not this: Independent workers each need their own model copy, which still exceeds an individual GPU's memory.

    Tensor parallelism partitions model tensors across GPUs so their combined memory can hold the model. Adding endpoint instances creates replicas rather than combining their GPU memory for one model.

    Open this question
  34. Question 34

    Deployment and Orchestration of ML and AI Workflows

    Which chunking setting preserves some shared text between adjacent chunks in a RAG knowledge base?

    Show the answer

    Correct answerD. Chunk overlap

    AWhy not this: The generation token limit constrains model output rather than document segmentation.

    BWhy not this: Vector dimension determines embedding size, not whether neighboring chunks share text.

    CWhy not this: Result count controls how many chunks retrieval returns, not how chunks are constructed.

    DWhy this is right: Overlap retains shared text across adjacent chunks, helping preserve boundary context.

    Chunk overlap repeats some text across adjacent chunks to preserve context at their boundaries. Increasing the retrieved result count returns more chunks but does not change how documents are divided.

    Open this question
  35. Question 35

    Deployment and Orchestration of ML and AI Workflows

    A RAG application searches product manuals containing exact error codes and natural-language troubleshooting descriptions. Semantic-only retrieval misses some exact-code matches; which retrieval strategy should the engineer configure?

    Show the answer

    Correct answerD. Hybrid search combining lexical and semantic retrieval

    AWhy not this: More semantic results may improve recall but do not directly address the need for exact lexical matching.

    BWhy not this: Publication-date filters restrict eligible documents rather than combining exact-code and semantic matching.

    CWhy not this: Exact-term matching helps with codes but sacrifices semantic matches for differently worded troubleshooting descriptions.

    DWhy this is right: Lexical matching captures exact codes while semantic retrieval captures related descriptions with different wording.

    Hybrid search combines lexical matching for exact error codes with semantic matching for troubleshooting descriptions. Lexical-only search helps with codes but can miss relevant descriptions expressed using different words.

    Open this question
  36. Question 36

    Deployment and Orchestration of ML and AI Workflows

    A multi-tenant RAG application must isolate tenant documents and send at most five chunks to its FM. Evaluation finds relevant passages among the first 40 retrieved chunks but rarely among the first five; which retrieval pipeline best meets these constraints?

    Show the answer

    Correct answerA. Filter by tenant, retrieve 40 chunks, then rerank and retain five.

    AWhy this is right: Tenant filtering preserves isolation, 40 candidates preserve observed recall, and reranking limits generation context to five.

    BWhy not this: Filtering after selecting five global results can discard useful slots and miss relevant tenant-specific passages.

    CWhy not this: Retrieving globally can crowd out tenant-specific results, and filtering five candidates can leave too little useful context.

    DWhy not this: Reranking cannot recover relevant passages that were excluded from the five retrieved candidates.

    Tenant filtering constrains the candidate pool, broad retrieval preserves recall, and reranking selects five relevant chunks for generation. Reranking only five initial results cannot recover relevant passages excluded during retrieval.

    Open this question
  37. Question 37

    Deployment and Orchestration of ML and AI Workflows

    A SageMaker AI pipeline evaluates a fraud model whose aggregate recall improves while recall for a required customer segment declines below its acceptance threshold. How should the pipeline automatically prevent this model from reaching the registration step?

    Show the answer

    Correct answerD. Use a ConditionStep that checks aggregate and required segment metrics.

    AWhy not this: Invocation errors measure serving health, not segment-level predictive quality before registration.

    BWhy not this: Recording metrics provides evidence but does not prevent registration without an enforced decision.

    CWhy not this: Aggregate recall can improve while a required segment fails its acceptance threshold.

    DWhy this is right: Branching on aggregate and segment thresholds prevents registration when any required acceptance criterion fails.

    A ConditionStep can gate registration on all required evaluation thresholds, including segment-level recall. Checking aggregate recall alone can admit a model that performs poorly for a required segment.

    Open this question
  38. Question 38

    Deployment and Orchestration of ML and AI Workflows

    A retraining workflow receives duplicate notifications for each daily data release, and outcome labels arrive several days after features. It must train once per release on a reproducible, fully labeled dataset while retaining late labels for future releases; which design best meets these requirements?

    Show the answer

    Correct answerC. Require a label-completeness marker, freeze a versioned manifest, and atomically claim its release identifier before starting training.

    AWhy not this: A fixed delay cannot establish label completeness, and caching does not freeze mutable input contents.

    BWhy not this: Selecting one output does not prevent duplicate training or ensure complete labels and reproducible inputs.

    CWhy this is right: The readiness check, frozen inputs, and atomic claim jointly address late labels, repeatability, and duplicate notifications.

    DWhy not this: Deduplication prevents repeated starts but does not address missing labels or changing input data.

    A completeness marker prevents premature training, a versioned manifest fixes the dataset, and an atomic release claim suppresses duplicate starts. A fixed delay and step caching do not establish label completeness or make mutable inputs reproducible.

    Open this question
  39. Question 39

    Deployment and Orchestration of ML and AI Workflows

    An auditor must trace a deployed SageMaker AI model to its exact artifact, training data, code revision, and evaluation results. Which release record best supports this requirement?

    Show the answer

    Correct answerB. A specific model package version linked to immutable artifacts and recorded training lineage.

    AWhy not this: A package group contains multiple versions, and the latest training job might not have produced the deployed model.

    BWhy this is right: A version-specific record with immutable artifacts and lineage ties the deployment to its reproducible provenance.

    CWhy not this: An endpoint name and serving logs do not establish the exact training inputs, code, and evaluation provenance.

    DWhy not this: Approval status does not identify artifact contents, and an overwritten path loses the historical release artifact.

    A specific Model Registry package version, immutable artifacts, and recorded lineage identify the released model and its provenance. A package group organizes versions but does not identify which version was deployed.

    Open this question
  40. Question 40

    Deployment and Orchestration of ML and AI Workflows

    A team wants to initiate an existing SageMaker AI retraining pipeline when production input distributions drift from an approved reference. Which components should it configure? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. A CloudWatch alarm on the relevant Model Monitor constraint-violation metric.B. An EventBridge rule invoking a Lambda function that starts the retraining pipeline.E. A SageMaker Model Monitor data quality schedule using baseline statistics and constraints.

    AWhy this is right: A CloudWatch alarm turns the relevant constraint-violation metric into an actionable state change.

    BWhy this is right: EventBridge can route an alarm state-change event to Lambda, which starts the retraining pipeline.

    CWhy not this: Changing approval status does not update a training dataset or detect distribution changes.

    DWhy not this: A latency rollback alarm addresses deployment health rather than input distribution drift.

    EWhy this is right: Data quality monitoring compares production inputs with baseline statistics and constraints to identify drift.

    FWhy not this: Endpoint auto scaling changes serving capacity rather than retraining model parameters.

    Model Monitor detects deviations from baseline constraints, CloudWatch evaluates the violation metric, and EventBridge with Lambda initiates retraining. Model Registry approval controls model lifecycle status; it does not update training data or detect input drift.

    Open this question
  41. Question 41

    Deployment and Orchestration of ML and AI Workflows

    An engineer has an inference image in Amazon ECR and model artifacts in Amazon S3, but no SageMaker AI hosting resources. Which Boto3 operation sequence provisions a real-time endpoint?

    Show the answer

    Correct answerC. create_model → create_endpoint_config → create_endpoint

    AWhy not this: An endpoint requires an existing endpoint configuration, so endpoint creation cannot precede configuration creation.

    BWhy not this: An endpoint configuration referencing the new model cannot be created before that model exists.

    CWhy this is right: The model must exist before its endpoint configuration, which must exist before endpoint creation.

    DWhy not this: Registering a model package does not create the hosting model resource referenced by a production variant.

    Create the model to associate the image, artifacts, and execution role; create an endpoint configuration referencing that model; then create the endpoint using that configuration. A model package registers a deployable model specification but does not replace the hosting model resource.

    Open this question
  42. Question 42

    Deployment and Orchestration of ML and AI Workflows

    A SageMaker AI inference container must query a private database on TCP port 5432. Network isolation is disabled, and subnet routes and outbound rules permit access; which configuration provides the required network access?

    Show the answer

    Correct answerA. Configure the model's VpcConfig and allow its security group into the database.

    AWhy this is right: VpcConfig provides container VPC connectivity; database ingress from the model security group permits the required connection.

    BWhy not this: Production variants specify hosting resources and traffic allocation; model VpcConfig specifies VPC subnets.

    CWhy not this: A Runtime interface endpoint handles application-to-SageMaker API traffic, not inference-container connections to a database.

    DWhy not this: Permission to describe a database does not establish network connectivity or permit TCP traffic.

    The model's VpcConfig supplies subnets and security groups for container network access, and the database must permit inbound traffic from that security group. A Runtime interface endpoint provides private API invocation, not container-to-database connectivity.

    Open this question
  43. Question 43

    Deployment and Orchestration of ML and AI Workflows

    Using Boto3, which sequence of SageMaker AI API calls deploys a trained model artifact in Amazon S3 to a new real-time endpoint?

    Show the answer

    Correct answerA. create_model, create_endpoint_config, create_endpoint

    AWhy this is right: The model, then its endpoint configuration, then the endpoint is the order SageMaker AI requires for real-time hosting.

    BWhy not this: create_endpoint needs an endpoint configuration, which this sequence never creates; invoke_endpoint sends inference requests rather than deploying.

    CWhy not this: The model is already trained, and a transform job runs batch inference rather than creating hosting for an endpoint.

    DWhy not this: An endpoint configuration must reference an existing model, and changing variant weights applies only to an endpoint that already exists.

    create_model registers the container image and model artifact, create_endpoint_config names the model, instance type and count for a production variant, and create_endpoint provisions hosting from that configuration. create_endpoint cannot run without an endpoint configuration, and invoke_endpoint only sends requests to an endpoint that already exists.

    Open this question
  44. Question 44

    Deployment and Orchestration of ML and AI Workflows

    A SageMaker AI asynchronous inference endpoint uses backlog-per-instance target tracking and can scale to zero. Requests below the target backlog must still trigger scale-out promptly from zero; which metric should drive an additional step scaling policy?

    Show the answer

    Correct answerC. HasBacklogWithoutCapacity

    AWhy not this: Invocation throughput does not directly indicate requests queued while the endpoint has no capacity.

    BWhy not this: This supports ordinary backlog-based target tracking but does not specifically identify queued work with zero capacity.

    CWhy this is right: This metric identifies a nonempty queue with no instances and can trigger scale-out through a step scaling policy.

    DWhy not this: Model processing latency is unavailable for queued requests that have not reached a running model.

    HasBacklogWithoutCapacity indicates queued requests when no instances are available, allowing a step scaling policy to activate capacity. Backlog-per-instance target tracking alone can delay scale-out for a backlog below its target.

    Open this question
  45. Question 45

    Deployment and Orchestration of ML and AI Workflows

    An engineer uses Boto3 to update a SageMaker AI endpoint without changing its URL. The release must expose only a small traffic fraction initially, retain the old fleet during validation, and automatically roll back on CloudWatch alarms; which approach meets these requirements?

    Show the answer

    Correct answerD. Call UpdateEndpoint with blue/green canary routing, a termination wait, and automatic rollback alarms.

    AWhy not this: Rolling deployment replaces the old fleet incrementally rather than retaining it throughout validation.

    BWhy not this: UpdateEndpointWeightsAndCapacities changes variant allocation but does not accept automatic rollback alarm configuration.

    CWhy not this: A separate endpoint has a different URL and does not provide the required managed traffic shift on the original endpoint.

    DWhy this is right: Blue/green canary routing, termination waiting, and rollback alarms meet the traffic, retention, and recovery requirements.

    Blue/green canary deployment shifts a small traffic fraction to the new fleet, retains the old fleet during the configured wait, and supports alarm-based rollback. Rolling deployment replaces capacity in batches rather than retaining the complete old fleet.

    Open this question
  46. Question 46

    Deployment and Orchestration of ML and AI Workflows

    A SageMaker AI asynchronous inference endpoint receives bursts of requests with similar processing times. Which metric should drive target tracking to maintain a manageable queue relative to available instance capacity?

    Show the answer

    Correct answerD. ApproximateBacklogSizePerInstance

    AWhy not this: It measures processor usage, which might not reflect the size of the outstanding request queue.

    BWhy not this: It counts invocations without expressing how much work remains queued per instance.

    CWhy not this: It measures model processing latency, not queued work relative to available capacity.

    DWhy this is right: It relates queued requests to instance count, allowing capacity to scale with outstanding work.

    ApproximateBacklogSizePerInstance measures queued requests relative to endpoint instance capacity, making it suitable for backlog-based target tracking. ModelLatency measures processing latency rather than the amount of queued work.

    Open this question
  47. Question 47

    Deployment and Orchestration of ML and AI Workflows

    An Amazon Bedrock knowledge base has updated Amazon S3 documents with indexed department metadata. The team needs current content, department-restricted results, and better ordering of retrieved candidates; which changes meet these needs? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Apply a department metadata filter during retrieval.C. Run a data source synchronization after document updates.E. Configure a reranking model for retrieved candidates.

    AWhy this is right: A department metadata filter limits retrieved matches to documents with the required department value.

    BWhy not this: Temperature changes generation variability, not document indexing or retrieved candidate ordering.

    CWhy this is right: Synchronization processes changed source documents so their updated content becomes available for retrieval.

    DWhy not this: Provisioned Throughput supplies model capacity but does not update or filter the knowledge base.

    EWhy this is right: A reranking model reassesses retrieved candidates and orders them by relevance to the query.

    FWhy not this: The output token limit controls response length, not index freshness, department filtering, or retrieval ordering.

    Synchronization indexes source changes, metadata filters restrict matches by department, and reranking improves candidate ordering. Generation settings and Provisioned Throughput affect response generation or capacity rather than these retrieval requirements.

    Open this question
  48. Question 48

    Deployment and Orchestration of ML and AI Workflows

    Which vector index setting must match the output of the embedding model used by an Amazon Bedrock knowledge base?

    Show the answer

    Correct answerB. Vector dimension

    AWhy not this: Replica count affects availability and capacity, not the shape of an embedding.

    BWhy this is right: The index must accept vectors with the same number of dimensions as the model produces.

    CWhy not this: Chunk size controls the amount of source text embedded, not the number of dimensions produced.

    DWhy not this: Retrieval result count controls how many matches are returned, not their vector dimensions.

    The vector dimension must match the number of values in each embedding produced by the configured model. Document chunk size controls how source text is divided, not the dimensionality of its embeddings.

    Open this question
  49. Question 49

    Deployment and Orchestration of ML and AI Workflows

    An Amazon Bedrock knowledge base uses an Amazon OpenSearch Serverless vector index with a filterable text field. Semantic retrieval misses exact product identifiers; which change combines identifier matching with conceptual similarity?

    Show the answer

    Correct answerD. Set the retrieval search type to HYBRID.

    AWhy not this: Returning more semantic matches does not explicitly combine text matching with vector similarity.

    BWhy not this: Chunk overlap preserves context across boundaries but does not add identifier-based text matching.

    CWhy not this: Reranking changes candidate ordering but does not introduce lexical retrieval for missing identifiers.

    DWhy this is right: Hybrid search combines text search and vector similarity on a supported vector store.

    HYBRID search combines text matching with vector similarity, helping retrieve exact identifiers alongside conceptually related content. Reranking reorders retrieved candidates but does not add a text-search retrieval path.

    Open this question
  50. Question 50

    Deployment and Orchestration of ML and AI Workflows

    An agent must retain a customer's selected delivery date across turns in one conversation. What should store this value?

    Show the answer

    Correct answerA. The conversation's session state

    AWhy this is right: Session state retains values associated with the current conversation across turns.

    BWhy not this: A document embedding index supports knowledge retrieval, not mutable conversation state.

    CWhy not this: Inference configuration controls model execution settings rather than customer-specific conversational values.

    DWhy not this: Container image configuration defines the runtime environment rather than individual conversation values.

    Session state stores conversation-specific values that an agent needs across turns. A document embedding index supports retrieval from a knowledge corpus rather than tracking a customer's current selections.

    Open this question