Skip to main content

Technical Challenges of Agentic AI Workloads

40 min read

Introduction​

An agent may call a model several times and use search or external APIs while handling one user request. Understanding its latency and cost therefore requires following the whole request, as well as each individual call. This guide covers model compute resources, request routing, observability and cost, safe tool execution, and model updates.

Prerequisite

Before reading this document, review the overall structure of the Agentic AI Platform in Platform Architecture.

Choosing a Model for the Task​

Using one model for every request keeps deployment and operations simpler. First measure whether that model meets your quality, latency, and cost targets. If short classification tasks and complex reasoning tasks have different requirements, compare assigning them to different models. The following criteria help make that decision.

4 Limitations of a Single LLM in Enterprise Practice​

Limitation AreaProblem Organizations FacePlatform Response
CostToken pricing for 70B+ models can reach tens of millions of won per month at high traffic volumes, and the same cost applies to simple tasks like tool calls and formatting within agents. An NVIDIA Research position paper analyzes three open-source agents (MetaGPT, Open Operator, Cradle) and estimates that 40-70% of agent LLM calls could be replaced by SLMs (these are per-case-study estimates that you should validate by measurement on your own workload).Bifrost 2-Tier routing separates simple calls to self-hosted SLMs, routing only complex reasoning to LLMs
Performance · LatencyLarge models have long response latency (TTFT), which can degrade user experience in real-time customer service (AICC) and conversational agents. Smaller domain-specific SLMs are generally lower-latency, but the actual improvement depends on model, hardware, and task, so compare them by measuring on the same request set.3-Tier Orchestration — Tier 1 (SLM direct) for simple, repetitive work; Tier 2 (LLM) for complex reasoning. Set each tier's latency target from measured values
Information AccuracyLLM hallucination is a structural characteristic, and it is critical in tasks requiring accuracy such as billing calculations and terms verification. Transformer architecture has inherent limitations in complex arithmetic and logical operations.Tool Delegation — a mitigation that delegates arithmetic to rule engines and fact verification to Knowledge Graphs. Tool accuracy still depends on correct data, authorization, and validation; it is not guaranteed automatically
Governance · SecurityRisks of sensitive data (PII/PHI) leaking to external LLM APIs, audit trails for autonomous agent actions, team-level access control and budget management are all required.NeMo Guardrails (I/O filtering) + LangGraph HITL (human approval gates) + Langfuse (audit trails)

Operating Functions That Models Can Share​

Operating several models requires allocating resources, choosing a destination for each request, and tracking usage by team. Implementing those functions separately for every model repeats the same operating work. A shared platform provides resource allocation, routing, and observability that multiple models can use.

For example, a cluster running both a model with large GPU memory requirements and a smaller model must allocate resources according to their memory and placement needs. Choosing a server with spare request capacity is also a different decision from choosing the node on which to place a model.

The following Kubernetes features and projects address these operating responsibilities.

K8s AI FeatureVersionRoleSignificance for Multi-Model Ecosystem
DRA (Dynamic Resource Allocation)1.34 GA (stable from 1.35+)Core API for claim-based, fine-grained requests and allocation of devices such as GPUsSLMs and LLMs request different GPU configurations and coexist in one cluster. MIG-level partitioning is allocated through DRA only when the NVIDIA driver and device support it
Gateway API + Inference Extension2025Standardized routing for LLM inference requestsIntelligent routing based on KV Cache state, per-model traffic distribution
Kueuev0.18.x (v1beta2 API)AI workload queuing and schedulingFair GPU resource distribution for training/inference, per-team quotas
LeaderWorkerSetv0.9 (separate kubernetes-sigs project, independent of the Kubernetes core version)Distributed inference/training workload patternK8s-native management of Tensor Parallel distributed inference for 70B+ models
KAI Scheduler2025GPU-aware Pod schedulingPlacement that considers GPU topology (NVLink, NVSwitch); placement quality depends on topology and constraint configuration

These features solve different problems. Identify whether you need resource allocation, workload queueing, or inference request routing, then check that the cluster and serving engine support the chosen configuration.

An Example of Dividing Work Between Models​

The following example combines a model for complex reasoning with smaller models for repetitive tasks. Arithmetic and search can be delegated to external tools. Decide whether to use this arrangement by comparing response quality, end-to-end latency, and cost on the same request set.

Strategic planning · Complex reasoning    Routine tasks · Domain-specific
┌──────────────────┐ ┌──────────────────┐
│ LLM Orchestrator │ Task │ SLM Expert Pool │
│ (Claude, GPT etc)│───Distribution────→│ (7B/14B + LoRA) │
│ Tier 2 workflow │ │ Tier 1 direct │
└──────────────────┘ └──────────────────┘
│ │
└── External tool delegation ────────────┘
(Arithmetic, search, knowledge graph)
│
┌────────────┴────────────┐
│ Kubernetes Infra Platform│
│ DRA · Gateway API · Kueue│
│ Karpenter · vLLM · Bifrost│
└─────────────────────────┘

Once the roles of models and tools are defined, review the five areas needed to run and operate them.


5 Key Challenges of the Agentic AI Platform​

The diagram connects the five areas. Consider how a choice in one area affects the others: changing a model can change GPU memory requirements, latency, call cost, and evaluation criteria.

Expand the diagram to read labels and follow connections.
Diagram

Challenge Summary​

Agentic AI Platform Core Challenges
Limitations under the baseline setup this guide assumes, and the problems to solve
ChallengeCore ProblemBaseline-Setup Limitation
GPU Resource Management & Cost OptimizationLack of multi-cluster GPU visibility, generation-specific workload matching, GPU idle costsManual monitoring, static allocation, no cost visibility
Intelligent Inference Routing & GatewayUnpredictable traffic, multi-model routing, dynamic scalingSlow provisioning, fixed capacity, manual routing
LLMOps Observability & Cost GovernanceDifficulty tracking at token level, no cost visibility, inadequate quality evaluationToken/quality metrics not instrumented by default, so reliance on manual tracking and mostly post-hoc analysis
Agent Orchestration & SafetyAgent workflow complexity, tool integration challenges, inadequate safety guaranteesManual orchestration, lack of standardization, insufficient guardrails
Model Supply Chain ManagementDistributed training infrastructure complexity, resource provisioning delays, model deployment pipelineManual cluster management, low utilization, no pipeline automation
Define the conditions and limits for automation

Frequent changes in traffic or model configuration make manual resource adjustments harder. When introducing automatic scaling, define resource requests, capacity limits, budgets, and failure handling together. Automation alone does not determine operating cost or reliability.


Challenge 1: GPU Resource Management and Cost Optimization​

GPUs are the most expensive resource in the Agentic AI Platform. Appropriate GPU allocation strategies are needed based on model size and workload characteristics. This challenge is owned by Layer 1: AI Infrastructure of the platform architecture, which addresses it by integrating accelerated compute, orchestration, monitoring, and performance optimization into a single layer.

Why it's difficult:

  • High cost: GPU instances are often tens of times more expensive than CPU instances (the multiple depends on which instances you compare). For example, a p5.48xlarge (H100 x8) is about $55/hr on-demand in us-east-1 (based on 2025 public pricing; varies by region, commitment, and purchase option) and can be higher in other regions.
  • Varied model sizes: GPU memory requirements vary dramatically from 3B parameter models to 70B+
  • Dynamic workloads: Inference traffic can fluctuate significantly by time of day, with the range differing per service
  • Idle waste: Low utilization after GPU provisioning leads to massive cost waste
  • Multi-tenancy: Multiple models and teams must share limited GPUs

The table below shows illustrative scenarios; parameter count alone does not determine hardware or sharing safety. Actual requirements depend on weight precision (FP16/INT8/INT4), KV cache, context length and concurrency, available hardware capacity, and isolation needs. Estimate weight memory roughly as parameter count × bytes per precision. For example, a 70B model in FP16 needs about 70 × 2 = 140 GB for weights alone, which exceeds a single 80 GB H100 and therefore needs multiple GPUs; KV cache and runtime overhead add to this. The cost ranges below are examples derived from the pricing assumption above.

Example Model SizeExample GPU ConfigurationExample Cost Range (per hour)
70B+ parameters (FP16)Weights ~140 GB+ → sharded across multiple GPUs (H100/A100)$30-$92
7B-30B parameters1-2 GPUs, or a MIG partition where the hardware supports it$1-$10
Under 3B parametersTime-Slicing or shared GPU (after checking isolation/interference needs)$0.5-$2

Challenge 2: Intelligent Inference Routing and Gateway​

Agentic AI workloads leverage multiple models and providers simultaneously. Intelligent routing that understands model characteristics is needed, beyond simple load balancing.

Why it's difficult:

  • Multi-model operations: Running diverse models like Llama, Qwen, Claude, and GPT simultaneously on a single platform
  • KV cache efficiency: Routing that doesn't consider LLM KV cache state significantly degrades performance
  • Cost-performance tradeoff: Must dynamically choose between low-cost and high-performance models based on task complexity
  • Provider diversification: Must integrate management of self-hosted models and external APIs (Bedrock, OpenAI)
  • Canary/A-B deployment: Must safely transition traffic to new model versions
Expand the diagram to read labels and follow connections.
Diagram

Challenge 3: LLMOps Observability and Cost Governance​

An agent can return 200 OK with an incorrect answer. In addition to status codes, latency, and throughput, evaluate the answer and trace the model and tool calls that produced it. Recording token usage for each call helps locate the steps responsible for higher latency or cost.

Why it's difficult:

  • Non-deterministic output: Different outputs for the same input make traditional testing/monitoring insufficient, and changing a single word in a prompt can cause cascading failures
  • No visibility into "successful failures": Relying on status- and latency-centric baseline metrics tells you a request succeeded, but not whether the response was correct or whether you are losing money per user. Seeing that requires adding metrics that measure output quality and cost
  • Token cost tracking: Must dual-track infrastructure costs (GPU) and application costs (tokens), and cost attribution by model/feature/tool is hard
  • Multi-step debugging: Identifying bottlenecks/failure points in complex chains where agents call multiple tools is challenging
  • Prompt quality drift: Quality that was fine locally slowly degrades in production, and usually users notice first
  • Per-team budgets: Need per-team cost allocation and limit management across shared AI infrastructure

Calculating Token Cost per Request​

When one user request leads to several model calls, add up the cost of those calls. Retries and resending conversation history can also increase input tokens. Connect call records with a request ID and record input/output tokens, model pricing, and cache usage. For self-hosted models, measure GPU usage time and throughput alongside token counts to calculate cost.

  • Per-request cost attribution: Track per-call input/output tokens and model pricing to identify which prompts, tools, and user cohorts dominate cost
  • Model right-sizing: Use trace data to judge "is an SLM sufficient for this task" — grounding a 2-tier routing decision (simple calls to self-hosted SLM, complex reasoning to LLM)
  • Quality-vs-cost optimization: Verify with data whether a more expensive model or longer prompt actually produces better results (evaluation-based, not gut feel)
  • Budget guardrails: Enforce per-model and per-team token budgets and limits at the gateway

Compare the total cost of completing one user request at the required quality. When collecting call records, also define which sensitive inputs and outputs may be stored and how long to retain them.

The Observe → Evaluate → Improve Operating Loop​

Use observed results to guide the next change. Turn failed executions into evaluation cases, then run the same cases after changing a prompt or model to check whether the result improved.

  • Observe: Complete per-call I/O and lineage, per-step latency and token cost, user/session-level journey tracking
  • Evaluate: Build datasets from production traces and score them with LLM-as-judge and human annotation. Combine offline evaluation (regression prevention) and online evaluation (drift/quality-decay detection)
  • Improve: Prompt version management and A/B experiments, with the eval harness wired into CI/CD to block regression deployments

Evaluation runs and failure collection can be automated. The responsible team defines the criteria, interprets results, and specifies where training, deployment, or exceptions require approval. An improved score alone should not trigger an automatic production deployment.

The table below contrasts what traditional application observability measures by default with what LLM applications must additionally instrument. Existing APM tools already support distributed tracing, custom metrics, and cost dashboards, so "traditional" here means model-evaluation metrics are not part of the default setup — not that these capabilities are impossible.

Observability AreaTraditional Applications (default setup)What LLM Applications Add
What is measured"Did it run" (status, latency)Add "did it do it correctly" (output accuracy)
Cost trackingInfrastructure-cost focusedAdd dual tracking: infra + token, attribution by tool/model
DebuggingRequest-response logs, distributed tracesAdd multi-step Agent Trace + lineage
Quality monitoringError rate, latencyAdd Faithfulness, Relevance, Hallucination, drift
Budget managementResource-basedAdd per-model/per-team token budgets
Improvement methodHotfix and deployReinforce with the Observe→Evaluate→Improve loop (evaluation-based)

Tool selection: Before comparing Langfuse, LangSmith, Helicone, and integration with an existing APM, identify the call records, prompt management, and evaluation features you need. Compare supported features and collection costs for the intended configuration. See LLMOps Observability Tool Comparison for the detailed comparison and integration options.


Challenge 4: Agent Orchestration and Safety​

In Agentic AI systems, agents autonomously invoke tools and interact with external systems. This autonomy creates new challenges in terms of safety and controllability.

Why it's difficult:

  • Autonomous actions: Agents make their own decisions to call tools, enabling unexpected behavior
  • Prompt injection: Risk of malicious inputs causing agents to perform unintended actions
  • Tool integration standardization: Need standards for safely connecting diverse external systems (DBs, APIs, files) to agents
  • Multi-agent communication: Safe and efficient communication protocols needed when multiple agents collaborate
  • State management: State persistence, recovery, and checkpointing needed for long-running agents
  • Scaling: Agent orchestration nodes are typically CPU-based with irregular traffic patterns, making efficient scaling difficult. However, when the runtime performs local inference or calls GPU-backed tools, you must also plan for GPU resources (for example, the Instances compute type of Amazon Bedrock AgentCore Runtime supports GPU-accelerated workloads)
Expand the diagram to read labels and follow connections.
Diagram

Challenge 5: Model Supply Chain Management​

Beyond simply deploying models, the entire model lifecycle (training → evaluation → registry → deployment → feedback) must be systematically managed.

Why it's difficult:

  • Model version management: Managing diverse artifacts including foundation models, fine-tuned models, and adapters (LoRA)
  • Distributed training infrastructure: Full-parameter fine-tuning of large models can require multi-node GPU clusters and high-speed networking (EFA). In contrast, parameter-efficient methods such as LoRA sharply reduce trainable parameters and GPU memory (the LoRA paper reports roughly a 10,000x reduction in trainable parameters and about a 3x reduction in GPU memory for GPT-3 175B), so a smaller configuration can suffice. Actual requirements depend on the chosen training method, precision, and model/hardware
  • Evaluation pipelines: Must automatically evaluate model quality and set deployment gates
  • Safe deployment: Minimize service impact during model updates with Canary/Blue-Green deployment
  • Hybrid environments: Model transfer and synchronization between on-premises and cloud GPUs
  • RAG data pipelines: Continuous update pipelines for document processing, embedding generation, and vector storage
  • Feedback loops: Continuous improvement systems that incorporate production tracing data into retraining (reusing trace data for retraining requires first confirming data-use rights and consent scope)
Expand the diagram to read labels and follow connections.
Diagram

Next Steps: Approaches to Solving the Challenges​

We present two approaches to solving these 5 challenges:

  1. AWS Native Platform: An approach that minimizes infrastructure operational burden using AWS managed services (Bedrock, AgentCore) to focus on agent development
  2. EKS-Based Open Architecture: An approach that achieves fine-grained control and cost optimization using Amazon EKS and the open-source ecosystem

These two approaches are complementary and can be combined based on workload characteristics.

CriteriaAWS Native (Bedrock / AgentCore)EKS-Based Open Architecture
GPU managementServerless microVMs need no GPU management, but when you need GPU acceleration or long-running sessions, choose the AgentCore Runtime Instances compute type (AWS-managed EC2 in your account) to handle capacityKarpenter auto-provisioning
Model selectionModels supported by Bedrock; AgentCore Runtime can also call external APIs (Claude, Gemini, OpenAI, etc.)Open weight models — but check each model's license (e.g., the Llama 4 Community License's 700M-MAU clause and acceptable-use policy) and serving-engine compatibility
Operational burdenRelatively low (managed)Medium (reduced with Auto Mode)
Cost optimizationConsumption-based pricingFine-grained control (Spot, Consolidation) offers savings opportunities, but actual savings depend on workload and operational maturity
CustomizationWithin what the service exposesComparatively high flexibility (within license and engine constraints)
Which approach to choose?
  • Quick start, focus on agent logic: AWS Native Platform
  • Open weight models + hybrid + cost optimization: EKS-based open architecture
  • Evaluate a mixed deployment: When combining managed services and EKS, also compare authentication, data transfer, and failure-handling responsibilities between the environments

References​

Official Documentation​

Papers / Technical Blogs​