Curated

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

0 votes

Questions72

  1. Question 51

    Deployment and Orchestration of ML and AI Workflows

    An agent checkpoints workflow state in Amazon DynamoDB so another worker can resume after a failure. Two workers can load the same checkpoint concurrently; how should updates prevent one worker from silently overwriting the other's progress?

    Show the answer

    Correct answerB. Condition each write on the stored version matching the version previously read.

    AWhy not this: Last-arriving writes can replace newer workflow progress with state derived from an older checkpoint.

    BWhy this is right: A version condition rejects stale updates, preventing silent overwrites of concurrent progress.

    CWhy not this: Worker-local memory is neither shared concurrency control nor a durable checkpoint during execution.

    DWhy not this: A consistent read does not make the subsequent write atomic with that read; another worker can update the item between them.

    Version-conditional writes implement optimistic locking: a stale worker's update fails and must be reconciled with current state. Strongly consistent reads alone do not prevent another worker from updating the checkpoint between a read and a write.

    Open this question
  2. Question 52

    Deployment and Orchestration of ML and AI Workflows

    A multi-tenant retrieval application must match exact product codes and paraphrased descriptions, send only authorized content to a reranker, and limit generation context to five passages. Which pipeline best meets these requirements?

    Show the answer

    Correct answerA. Run hybrid retrieval with tenant filtering, rerank the candidates, and pass the top five passages to generation.

    AWhy this is right: Hybrid matching covers codes and paraphrases; early filtering protects tenant content, and reranking selects the final five passages.

    BWhy not this: Semantic-only retrieval can miss exact product codes, and selecting five before reranking restricts the candidate pool.

    CWhy not this: Filtering after reranking allows unauthorized tenant content to reach the reranker.

    DWhy not this: Keyword-only retrieval can miss relevant descriptions that use different wording.

    Filtered hybrid retrieval combines exact-term and semantic matching while excluding unauthorized content before reranking; selecting five reranked passages controls context size. Filtering after reranking exposes unauthorized content to the reranker.

    Open this question
  3. Question 53

    Deployment and Orchestration of ML and AI Workflows

    A support assistant retrieves relevant documents for initial questions but retrieves unrelated documents for follow-ups such as “Does it support encryption?” Which change best addresses this problem?

    Show the answer

    Correct answerC. Rewrite the follow-up as a standalone query using conversation context.

    AWhy not this: Chunk overlap preserves document boundaries but does not resolve conversational references.

    BWhy not this: Output token limits affect response length, not interpretation of the retrieval query.

    CWhy this is right: Conversation context supplies the referenced product so retrieval receives a meaningful standalone query.

    DWhy not this: A larger result set does not resolve the missing subject in the retrieval query.

    Context-aware query rewriting resolves references such as “it” before retrieval. Retrieving more passages for an ambiguous query increases the candidate count without supplying the missing subject.

    Open this question
  4. Question 54

    Deployment and Orchestration of ML and AI Workflows

    Which SageMaker Model Registry resource organizes successive versions of the same model?

    Show the answer

    Correct answerA. A model package group

    AWhy this is right: A model package group contains successive registered versions of a related model.

    BWhy not this: A training experiment organizes experimental work rather than registered model package versions.

    CWhy not this: An endpoint configuration specifies deployment settings, not a model version collection.

    DWhy not this: A pipeline execution records one workflow run, not a collection of registered model versions.

    A model package group organizes related model package versions. A training experiment organizes training activity, rather than serving as the registry container for model versions.

    Open this question
  5. Question 55

    Deployment and Orchestration of ML and AI Workflows

    A team edits its Amazon Bedrock managed prompt frequently, but production must keep using the reviewed content. How should the application reference the prompt?

    Show the answer

    Correct answerA. By the version-specific ARN created after review

    AWhy this is right: A version-specific ARN identifies the preserved snapshot of the reviewed prompt.

    BWhy not this: Resolving the newest version can introduce changes that were not reviewed for the production release.

    CWhy not this: The working draft can change; separate review records do not freeze its content.

    DWhy not this: A model identifier selects a model, not an immutable reviewed prompt version.

    Creating a prompt version preserves a snapshot, and its version-specific ARN lets production reference that reviewed content. Referencing the working draft allows subsequent edits to affect what is used.

    Open this question
  6. Question 56

    Deployment and Orchestration of ML and AI Workflows

    An existing Amazon Bedrock Agents Classic deployment, a service closed to new customers, uses a production alias pointing to a numbered agent version. After a release fails validation, how should automation restore the previous agent configuration without changing the application's alias ID?

    Show the answer

    Correct answerD. Repoint the production alias to the prior validated version.

    AWhy not this: Repeating validation does not restore the previous agent configuration.

    BWhy not this: Preparing the draft does not redirect the production alias and restoring instructions alone may omit other configuration.

    CWhy not this: A replacement alias has a different ID, so the application would need a reference change.

    DWhy this is right: Changing the existing alias's version restores the validated configuration without changing the application's reference.

    Updating the existing alias to reference the prior validated agent version restores that configuration while preserving the application's alias ID. Preparing the working draft does not change the version referenced by the production alias.

    Open this question
  7. Question 57

    Deployment and Orchestration of ML and AI Workflows

    Auditors must see, for every model version in SageMaker Model Registry, the evaluation results that justified its approval. How should the pipeline record them?

    Show the answer

    Correct answerA. Attach the evaluation report as model metrics when registering the version

    AWhy this is right: Model metrics registered with the version keep each version's evaluation evidence with it for audits.

    BWhy not this: The group description is shared by every version, so each new score replaces the evidence for earlier versions.

    CWhy not this: Endpoint metrics describe live traffic for whatever is deployed, not the evaluation behind each registered version.

    DWhy not this: An endpoint tag covers only the deployed model and holds no evaluation results.

    Each model package version can carry model metrics, such as an evaluation report in Amazon S3, set when it is registered, so the evidence stays attached to that exact version. A group description is shared by all versions and gets overwritten, and endpoint metrics or tags describe what is serving, not why each version was approved.

    Open this question
  8. Question 58

    Deployment and Orchestration of ML and AI Workflows

    What lets an Amazon Bedrock managed prompt reuse the same instructions with a different customer question on each invocation?

    Show the answer

    Correct answerD. A prompt variable

    AWhy not this: A variant provides an alternative prompt configuration rather than a placeholder for each request's question.

    BWhy not this: A model package describes a registered model rather than a prompt's runtime inputs.

    CWhy not this: A knowledge base supplies retrieved information rather than defining a prompt input placeholder.

    DWhy this is right: A variable accepts a runtime value while the reusable prompt instructions remain the same.

    A prompt variable is a placeholder populated with an input value when the prompt is used. A prompt variant represents an alternative prompt configuration, not a per-invocation input placeholder.

    Open this question
  9. Question 59

    Deployment and Orchestration of ML and AI Workflows

    Which activities directly test a generative AI application's response quality or safety before release? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Evaluate responses to adversarial instruction prompts.B. Score generated responses for toxic content.D. Check answers for support in supplied context.

    AWhy this is right: Adversarial prompts test whether manipulated instructions cause unsafe or unintended responses.

    BWhy this is right: Toxicity scoring measures whether generated responses contain harmful or abusive content.

    CWhy not this: Refreshing an index updates retrievable content but does not evaluate the application's responses.

    DWhy this is right: Checking support in supplied context measures whether an answer is grounded in that context.

    EWhy not this: Prompt versioning preserves a configuration but does not measure the quality or safety of its outputs.

    Toxicity scoring, groundedness checks, and adversarial prompt evaluation test response quality or safety. Versioning prompts and refreshing an index manage application assets but do not themselves evaluate generated responses.

    Open this question
  10. Question 60

    Deployment and Orchestration of ML and AI Workflows

    A pipeline uses an LLM judge to compare candidate and baseline responses on identical prompts. Reversing response order frequently reverses the winner, despite unchanged response content; which change best addresses this evaluation flaw?

    Show the answer

    Correct answerA. Blind response identities and counterbalance presentation order.

    AWhy this is right: Blinding and counterbalancing reduce identity and position effects in pairwise quality judgments.

    BWhy not this: Token counts measure output length, not the response quality the judge is intended to assess.

    CWhy not this: Consistently presenting the candidate first preserves a systematic ordering advantage or disadvantage.

    DWhy not this: More prompts do not remove a systematic preference caused by fixed presentation order.

    Order-dependent winners indicate position bias in the LLM judge. Blinding identities and counterbalancing response order reduce systematic preference unrelated to quality; adding prompts while retaining the same order leaves the bias in place.

    Open this question
  11. Question 61

    Deployment and Orchestration of ML and AI Workflows

    A CI pipeline rejects valid answers from a generative AI assistant because they differ in wording from reference answers. Which testing change best measures answer quality while allowing valid paraphrases?

    Show the answer

    Correct answerB. Evaluate responses against a semantic correctness rubric.

    AWhy not this: Hash comparison requires identical output and would continue rejecting valid paraphrases.

    BWhy this is right: A semantic rubric assesses meaning and required facts while allowing different valid wording.

    CWhy not this: Similar response lengths do not establish that answers convey the correct meaning.

    DWhy not this: Keyword presence does not reliably distinguish valid paraphrases from answers that misuse the expected terms.

    A semantic correctness rubric evaluates whether an answer conveys the required meaning rather than matching exact wording. Keyword checks can accept incorrect answers that contain expected terms and reject valid paraphrases that do not.

    Open this question
  12. Question 62

    Deployment and Orchestration of ML and AI Workflows

    An application invokes an agent on Amazon Bedrock AgentCore Runtime through a custom production endpoint. A new runtime version fails validation after release. How should the pipeline restore the previous behavior without changing application code?

    Show the answer

    Correct answerA. Update the production endpoint to point to the previous runtime version

    AWhy this is right: Updating the endpoint's target version routes new sessions to the validated release while the application keeps calling the same endpoint.

    BWhy not this: An endpoint changes its target only when it is updated; removing a version is not a rollback step.

    CWhy not this: The DEFAULT endpoint follows the latest version, which is the failed one, and switching to it changes application configuration.

    DWhy not this: SageMaker Model Registry versions model packages and does not control which runtime version an AgentCore endpoint serves.

    AgentCore Runtime versions are immutable, and a custom endpoint keeps routing to the version it names until it is updated, so updating the production endpoint to the last validated version restores that behavior while callers keep the same endpoint. The DEFAULT endpoint always follows the latest version, which here is the failed one.

    Open this question
  13. Question 63

    Deployment and Orchestration of ML and AI Workflows

    GPU inference pods on Amazon EKS scale out under a Horizontal Pod Autoscaler that reads a GPU-utilization metric from the NVIDIA DCGM exporter. During traffic peaks, new pods stay Pending because no node has a free nvidia.com/gpu. Which change lets the workload keep scaling?

    Show the answer

    Correct answerB. Add Karpenter with a NodePool that launches GPU instance types

    AWhy not this: A higher replica limit lets the autoscaler create more pods, but they stay Pending without GPU nodes to run on.

    BWhy this is right: Karpenter sees pods that cannot be scheduled and launches GPU nodes so they can run.

    CWhy not this: Changing the pod metric to CPU changes when pods are added but adds no GPU capacity, and CPU is a poor signal for GPU inference load.

    DWhy not this: Prefix delegation raises the number of pod IP addresses per node; the pods are blocked on GPUs, not IP addresses.

    Pending pods that request GPUs need new GPU nodes, so a node autoscaler such as Karpenter (or Cluster Autoscaler with a GPU node group) must add capacity while the Horizontal Pod Autoscaler adds pods. More replicas or a different pod metric only create more Pending pods, and prefix delegation adds pod IP addresses, not GPUs.

    Open this question
  14. Question 64

    Deployment and Orchestration of ML and AI Workflows

    An agent hosted on Amazon Bedrock AgentCore must call a third-party calendar API on behalf of each signed-in user, using OAuth tokens that the user authorized, without storing those tokens in agent code. Which component should the team configure?

    Show the answer

    Correct answerC. Amazon Bedrock AgentCore Identity

    AWhy not this: Memory stores conversation and long-term context, not users' OAuth tokens for outside APIs.

    BWhy not this: Gateway turns APIs and functions into tools for agents; the per-user OAuth tokens for an outbound call still come from AgentCore Identity.

    CWhy this is right: Identity runs the OAuth flow and keeps each user's tokens in a token vault for the agent's outbound calls.

    DWhy not this: Runtime hosts and scales agent code but does not manage users' delegated OAuth tokens.

    AgentCore Identity manages an agent's outbound credentials: it runs the OAuth flow, keeps each user's tokens in its token vault, and supplies them when the agent calls the external API. Gateway exposes tools to agents and Runtime hosts agent code; neither is where users' delegated tokens are managed.

    Open this question
  15. Question 65

    Deployment and Orchestration of ML and AI Workflows

    An Amazon EKS inference deployment scales its replica count with demand, but new GPU pods remain Pending because existing nodes have no free GPUs. Which change should the engineer make?

    Show the answer

    Correct answerC. Enable node autoscaling for the GPU node group

    AWhy not this: A termination grace period controls shutdown time, not GPU capacity provisioning.

    BWhy not this: A CPU limit does not address the shortage of schedulable GPUs.

    CWhy this is right: Node autoscaling can provision GPU nodes to accommodate unschedulable pods.

    DWhy not this: A higher replica limit permits more pods but does not add GPU nodes to host them.

    Node autoscaling adds GPU nodes when pending pods cannot fit on existing capacity. Increasing the Horizontal Pod Autoscaler's replica limit can create more pods, but does not provision the nodes those pods need.

    Open this question
  16. Question 66

    Deployment and Orchestration of ML and AI Workflows

    A team needs managed hosting for a custom-framework agent whose executions can last 30 minutes. Which service component provides agent execution infrastructure without requiring the team to manage servers?

    Show the answer

    Correct answerA. Amazon Bedrock AgentCore Runtime

    AWhy this is right: Runtime provides managed execution infrastructure for custom agents and long-running workloads.

    BWhy not this: Identity manages agent authentication and access rather than providing execution compute.

    CWhy not this: Gateway makes tools accessible to agents rather than hosting the agent execution loop.

    DWhy not this: Memory stores and retrieves agent interaction information rather than executing agents.

    Amazon Bedrock AgentCore Runtime provides managed hosting for agents and supports long-running workloads. AgentCore Gateway exposes tools to agents; it does not host the agent's execution loop.

    Open this question
  17. Question 67

    Deployment and Orchestration of ML and AI Workflows

    Each inference pod on Amazon EKS requests four GPUs and must run on one node. Node autoscaling adds single-GPU nodes, but pods remain Pending even with eight GPUs free cluster-wide; what should the engineer change?

    Show the answer

    Correct answerD. Allow the node autoscaler to provision four-GPU nodes

    AWhy not this: Delaying scale-down retains nodes but does not change the number of GPUs available on each node.

    BWhy not this: A lower requests-per-replica target creates more replicas without solving their placement constraint.

    CWhy not this: Additional single-GPU nodes cannot satisfy a pod that requires four GPUs on one node.

    DWhy this is right: A node with four available GPUs can satisfy the pod's resource request on one node.

    A pod's GPU request must fit on a single node; Kubernetes cannot combine GPUs from separate nodes to satisfy that request. Adding more single-GPU nodes increases aggregate capacity but still cannot place a four-GPU pod.

    Open this question
  18. Question 68

    Deployment and Orchestration of ML and AI Workflows

    A pipeline creates a fine-tuned Amazon Bedrock model whose inference requires Provisioned Throughput. After customization completes, what should deployment automation do before enabling application traffic?

    Show the answer

    Correct answerB. Create capacity for the custom model and wait until it is available.

    AWhy not this: Managed prompt versions store prompt configurations; they do not provision custom-model inference capacity.

    BWhy this is right: Provisioned Throughput supplies serving capacity for the custom model and must be ready before use.

    CWhy not this: A customization job ARN identifies the training job, not a resource that serves inference.

    DWhy not this: The base model ID would select the original model rather than the fine-tuned model.

    For a custom model requiring Provisioned Throughput, automation must provision capacity for that model and wait for readiness before routing requests to it. The customization job ARN identifies training work, not an inference resource.

    Open this question
  19. Question 69

    Deployment and Orchestration of ML and AI Workflows

    A RAG service must switch to a different embedding model without interrupting production retrieval. Both models produce vectors of equal dimension, but their embedding spaces differ; which refresh strategy should the pipeline use?

    Show the answer

    Correct answerD. Build a separate index with the new model, validate retrieval, then switch queries and index together.

    AWhy not this: Equal vector dimensions do not make vectors from different embedding spaces semantically comparable.

    BWhy not this: Mixing old and new document embeddings in one index produces inconsistent similarity comparisons.

    CWhy not this: Queries would use the new embedding space while some or all stored vectors still use the old space.

    DWhy this is right: A parallel rebuild preserves production and supports validated cutover of compatible query and document embeddings.

    Document and query vectors must use a compatible embedding space, not merely equal dimensions. A separate, fully rebuilt index allows validation before a coordinated cutover; incremental replacement would mix incompatible embeddings.

    Open this question
  20. Question 70

    Deployment and Orchestration of ML and AI Workflows

    An AWS Step Functions workflow starts an Amazon Bedrock knowledge base ingestion job for a document release. Every document must be indexed before retrieval tests begin; which transition condition should the workflow use?

    Show the answer

    Correct answerA. The job reports COMPLETE with no failed documents.

    AWhy this is right: Completion plus zero failed documents establishes the required ingestion gate before retrieval testing.

    BWhy not this: Source presence does not confirm that parsing, embedding generation, or indexing succeeded.

    CWhy not this: A returned job identifier confirms that the asynchronous job started, not that indexing finished.

    DWhy not this: Connectivity establishes access to the vector store, not successful processing of the document release.

    The workflow must wait for ingestion to finish and inspect failed-document statistics before testing a release that requires every document. Receiving a job identifier confirms job creation, not successful indexing.

    Open this question
  21. Question 71

    Deployment and Orchestration of ML and AI Workflows

    Which operation refreshes an Amazon Bedrock knowledge base after documents change in its configured Amazon S3 data source?

    Show the answer

    Correct answerC. Start a data source ingestion job.

    AWhy not this: A prompt version preserves prompt configuration rather than ingesting source documents.

    BWhy not this: Model customization trains a model; it does not refresh a retrieval index from its data source.

    CWhy this is right: An ingestion job processes source changes and updates the knowledge base's indexed content.

    DWhy not this: A model evaluation job measures model behavior rather than synchronizing knowledge base content.

    A data source ingestion job synchronizes source changes into the knowledge base's retrieval index. Model customization changes model behavior through training; it does not synchronize the knowledge base.

    Open this question
  22. Question 72

    Deployment and Orchestration of ML and AI Workflows

    A SageMaker AI pipeline releases fine-tuned LLM adapters that require specific base-model and tokenizer revisions. Concurrent releases must not mix components, and rollback must restore the exact previous serving configuration; which design meets these requirements?

    Show the answer

    Correct answerA. Pin every component in an immutable release manifest and deploy or restore the complete release.

    AWhy this is right: Pinned component identities let automation deploy and restore a compatible, reproducible release as a unit.

    BWhy not this: Resolving the latest base model or tokenizer can introduce incompatible dependencies and makes rollback nonrepeatable.

    CWhy not this: Mutable adapter and tokenizer references can mix components from concurrent releases; logs do not prevent that.

    DWhy not this: A dynamically resolved base model can change even when the adapter, tokenizer, and endpoint configuration are retained.

    An immutable release manifest binds the adapter, base model, tokenizer, and serving environment into one reproducible deployment unit. Versioning only the adapter leaves mutable dependencies that can break compatibility or prevent exact rollback.

    Open this question