# AWS Lambda

Cloud service · AWS. Updated 2026-11-12. Page: https://blowstack.com/tools/cloud-services-hub/aws-lambda

> AWS Lambda is a serverless computing service provided by Amazon Web Services that allows developers to run code in response to events without provisioning or managing servers.

Practice exams covering AWS Lambda: [ANS-C01 AWS Certified Advanced Networking - Specialty](https://blowstack.com/practice-exams/aws-certified-advanced-networking-specialty), [AIB-C01 AWS Certified AI Business Strategist](https://blowstack.com/practice-exams/aws-certified-ai-business-strategist), [AIF-C01 AWS Certified AI Practitioner](https://blowstack.com/practice-exams/aws-certified-ai-practitioner), [CLF-C02 AWS Certified Cloud Practitioner](https://blowstack.com/practice-exams/aws-certified-cloud-practitioner), [SOA-C03 AWS Certified CloudOps Engineer - Associate](https://blowstack.com/practice-exams/aws-certified-cloudops-engineer-associate), [DEA-C01 AWS Certified Data Engineer - Associate](https://blowstack.com/practice-exams/aws-certified-data-engineer-associate), [DVA-C02 AWS Certified Developer - Associate](https://blowstack.com/practice-exams/aws-certified-developer-associate), [DOP-C02 AWS Certified DevOps Engineer - Professional](https://blowstack.com/practice-exams/aws-certified-devops-engineer-professional), [AIP-C01 AWS Certified Generative AI Developer - Professional](https://blowstack.com/practice-exams/aws-certified-generative-ai-developer-professional), [MLA-C02 AWS Certified Machine Learning Engineer - Associate](https://blowstack.com/practice-exams/aws-certified-machine-learning-engineer-associate), [SCS-C03 AWS Certified Security - Specialty](https://blowstack.com/practice-exams/aws-certified-security-specialty), [SAA-C03 AWS Certified Solutions Architect - Associate](https://blowstack.com/practice-exams/aws-certified-solutions-architect-associate), [SAP-C03 AWS Certified Solutions Architect - Professional](https://blowstack.com/practice-exams/aws-certified-solutions-architect-professional).

## Free AWS Lambda tools

- [AWS CORS Configuration Generator](https://blowstack.com/tools/aws-cors-configuration-generator): Fix CORS errors and generate the CORS configuration for S3, API Gateway, function URLs and CloudFront.
- [AWS VPC Connectivity Troubleshooter](https://blowstack.com/tools/aws-vpc-connectivity-troubleshooter): Find what a resource needs to reach the internet or AWS services, and fix VPC timeouts and errors.
- [RDS Max Connections Calculator](https://blowstack.com/tools/aws-rds-max-connections-calculator): Check whether a function's concurrency fits the database's max_connections, with or without RDS Proxy.
- [AWS Lambda Error Decoder](https://blowstack.com/tools/aws-lambda-error-decoder): Paste a Lambda error or log line - Task timed out, Runtime.ImportModuleError, out of memory - and get its causes and fixes for your runtime.

## 7 key features of AWS Lambda

AWS Lambda provides automatic scaling, serverless execution, subsecond metering, built-in fault tolerance, event-driven architecture, and support for multiple programming languages, enabling efficient and cost-effective application development and deployment.

1. **Automatic Scaling**: AWS Lambda automatically scales your application by running code in response to each event. The number of events processed can scale precisely with the size of the workload, from a few requests per day to thousands per second.
2. **No Servers to Manage**: Lambda removes the need for server management. It takes care of everything required to run and scale your code with high availability, from server and operating system maintenance, to capacity provisioning and automatic scaling.
3. **Subsecond Metering**: Lambda Event Functions are priced per request and execution duration, Lambda MicroVMs per instance-second, and Lambda Web Functions per request and active CPU time.
4. **Built-in Fault Tolerance**: Lambda has built-in fault tolerance. It maintains compute capacity and redundancy across multiple Availability Zones (AZs) in a region to ensure the continuous processing of your applications.
5. **Event-Driven**: Lambda makes it easy to execute code in response to events from AWS services like S3, DynamoDB, Kinesis, SNS, and more. This enables you to build applications that react quickly to new information.
6. **Support for Multiple Programming Languages**: AWS Lambda supports multiple programming languages, including Node.js, Python, Java, Go, Ruby, and C#, allowing you to use a language that you are comfortable with or one that is best suited to your application.
7. **Execution Roles and Resource Policies**: Lambda permissions control security and access through execution roles governing interactions with AWS services and resource policies governing access to function code.

## Where AWS Lambda is used

AWS Lambda use cases span real-time file processing, serverless APIs, data transformation, stream processing, automated tasks, and IoT backend services, showcasing its versatility and efficiency in handling a wide range of serverless computing tasks.

1. **Real-time File Processing**: AWS Lambda can be used for real-time file processing. Whenever new files are uploaded to AWS S3, Lambda can automatically trigger and process these files, such as image resizing, video transcoding, or any custom file manipulation required by the application.
2. **Serverless APIs**: Building serverless APIs with AWS Lambda and Amazon API Gateway enables developers to create scalable and cost-efficient RESTful services. Lambda functions can execute the business logic in response to HTTP requests made via API Gateway, eliminating the need to manage server infrastructure.
3. **Data Transformation and ETL**: AWS Lambda facilitates data transformation and ETL (Extract, Transform, Load) tasks. It can be used to clean, process, and aggregate data in real-time as it moves between databases, streams, or storage layers, making it ideal for building complex data processing workflows.
4. **Real-time Stream Processing**: Lambda functions can be used for real-time processing of streaming data from Amazon Kinesis or DynamoDB Streams. This allows for immediate analysis and data enrichment, enabling applications to react swiftly to new information.
5. **Automated Backups and Everyday Tasks**: Automating backups, snapshots, and daily tasks is another practical use case for AWS Lambda. By scheduling Lambda functions, tasks like database backups, cleanup jobs, and report generation can be executed regularly without manual intervention.
6. **IoT Backend**: AWS Lambda serves as a highly scalable backend for Internet of Things (IoT) applications. It can process and respond to messages from a multitude of devices, ensuring efficient communication and operational management in IoT ecosystems.

## How AWS Lambda is priced

AWS Lambda pricing is based on the number of requests and the compute duration in GB-s, with costs calculated per 1 million requests and based on the allocated memory and execution time.

- **Requests**: AWS Lambda charges a fee for every 1 million requests made to your functions.
- **Compute Duration**: For on-demand Lambda Event Functions, compute duration is charged in gigabyte-seconds (GB-s), based on allocated memory, and rounded up to the nearest 1 ms.
- **Lambda Managed Instances**: Charges comprise $0.20 per million requests, standard EC2 instance charges, and a management fee of 15% of the EC2 on-demand instance price. Per-request execution duration is not billed separately, and eligible EC2 pricing options can reduce instance costs.
- **Lambda Web Functions**: Charges cover requests, active CPU time, and memory. CPU time spent waiting on I/O is not billed, and concurrent requests share execution-environment compute costs.
- **Durable Functions**: In addition to existing compute charges, including replay sub-invocations, durable functions charge for durable operations, data written in GB, and retained data in prorated GB-months. On-demand functions incur no duration charges while suspended in a wait operation.
- **Tenant Isolation**: A charge applies whenever Lambda creates a new tenant-isolated execution environment to serve a request, based on allocated memory and CPU architecture.
- **Ephemeral Storage**: The first 512 MB of configured ephemeral storage is free. Additional configured storage is charged based on its amount and function execution duration.
- **Provisioned Concurrency**: Charges depend on configured concurrency, allocated memory, and how long Provisioned Concurrency remains enabled, rounded up to five-minute intervals. Requests and execution duration are charged separately, and the Lambda free tier does not apply to functions using Provisioned Concurrency.
- **SnapStart**: Snapshot caching is charged for at least three hours and per millisecond thereafter while the function version is active. Restoring an execution environment incurs a separate charge; both charges depend on allocated memory. These SnapStart charges do not apply to supported Java managed runtimes.
- **HTTP Response Streaming**: Event Functions using HTTP response streaming are charged per GB written to the response stream, with the first 6 MB per request streamed at no cost.
- **Provisioned Event Pollers**: Standard Event Poller Unit (EPU) charges apply to event source mappings that use provisioned pollers with sources such as Kafka or SQS.
- **Lambda MicroVM Compute and Snapshots**: Compute is billed per second based on baseline and peak usage, with additional charges for snapshot operations and storage. Baseline charges apply while a MicroVM runs, and consumption above the baseline is billed by active usage.
- **Lambda MicroVM Data Transfer**: Lambda MicroVM usage also incurs data transfer charges.

## Services AWS Lambda works with

- **[Amazon S3](https://blowstack.com/tools/cloud-services-hub/amazon-s3)**: AWS Lambda can be triggered by S3 events, such as file uploads or deletions, allowing you to process data, generate thumbnails, or transform files in real-time.
- **[Amazon DynamoDB](https://blowstack.com/tools/cloud-services-hub/amazon-dynamodb)**: Lambda can respond to changes in DynamoDB tables, such as item modifications, enabling real-time data processing, notifications, or synchronization with other services.
- **[Amazon API Gateway](https://blowstack.com/tools/cloud-services-hub/amazon-api-gateway)**: API Gateway allows you to create and manage RESTful APIs that trigger Lambda functions. This integration is often used to build serverless web applications and microservices.
- **[Amazon Simple Notification Service (Amazon SNS)](https://blowstack.com/tools/cloud-services-hub/amazon-simple-notification-service-(amazon-sns))**: Lambda can be invoked by SNS to process messages or notifications, enabling event-driven workflows and real-time processing.
- **[Amazon Simple Queue Service (Amazon SQS)](https://blowstack.com/tools/cloud-services-hub/amazon-simple-queue-service-(amazon-sqs))**: Lambda can process messages from SQS queues, allowing you to build scalable and reliable background job processing.
- **[Amazon CloudWatch](https://blowstack.com/tools/cloud-services-hub/amazon-cloudwatch)**: Lambda integrates with CloudWatch for logging, monitoring, and alerting. You can use CloudWatch Events to trigger Lambda functions based on schedule or system events.
- **[AWS Step Functions](https://blowstack.com/tools/cloud-services-hub/aws-step-functions)**: Lambda works with Step Functions to build complex workflows and state machines, enabling orchestration of multiple Lambda functions and other AWS services.
- **[Amazon Kinesis](https://blowstack.com/tools/cloud-services-hub/amazon-kinesis)**: Lambda can process streaming data in real-time from Kinesis streams and Firehose, allowing for applications such as log processing, real-time analytics, and event-driven ETL.
- **[Amazon AppFlow](https://blowstack.com/tools/cloud-services-hub/amazon-appflow)**: Lambda functions implement custom connectors for AppFlow, handling operations such as authentication, schema discovery, and data retrieval for applications without a built-in connector.
- **[Amazon Athena](https://blowstack.com/tools/cloud-services-hub/amazon-athena)**: Lambda functions power Athena federated query connectors, allowing SQL queries to read data outside Amazon S3. Lambda also executes Athena user-defined functions for custom processing within queries.
- **[Amazon Augmented AI (Amazon A2I)](https://blowstack.com/tools/cloud-services-hub/amazon-augmented-ai-(amazon-a2i))**: Lambda functions can receive human-review status changes through EventBridge rules. For example, a function can process completed review results and update a downstream workflow.
- **[Amazon Aurora](https://blowstack.com/tools/cloud-services-hub/amazon-aurora)**: Lambda functions can be invoked from supported Aurora database engines using database extensions or stored procedures. This allows database operations to initiate external processing, such as notifying an order-management system.
- **[Amazon Aurora Serverless](https://blowstack.com/tools/cloud-services-hub/amazon-aurora-serverless)**: Lambda functions can use supported Aurora Serverless databases through the RDS Data API without maintaining database connections. Supported Aurora Serverless v2 engine configurations can also invoke Lambda through their database-level Lambda integration.
- **[Amazon Bedrock](https://blowstack.com/tools/cloud-services-hub/amazon-bedrock)**: Lambda functions implement action groups for Bedrock agents, executing business operations requested during an agent interaction. Lambda can also implement custom processing steps in Bedrock Flows.
- **[Amazon Bedrock AgentCore](https://blowstack.com/tools/cloud-services-hub/amazon-bedrock-agentcore)**: Lambda functions can serve as AgentCore Gateway targets, exposing their operations as tools that agents can discover and invoke through the Model Context Protocol.
- **[Amazon CloudFront](https://blowstack.com/tools/cloud-services-hub/amazon-cloudfront)**: Lambda@Edge functions execute at CloudFront locations to modify viewer and origin requests or responses. CloudFront can also use a Lambda function URL as an origin, with origin access control authenticating requests to the function.
- **[Amazon CodeGuru](https://blowstack.com/tools/cloud-services-hub/amazon-codeguru)**: Lambda functions can use the CodeGuru Profiler integration to collect runtime profiles through a Lambda layer. These profiles help identify expensive code paths and performance bottlenecks.
- **[Amazon Cognito](https://blowstack.com/tools/cloud-services-hub/amazon-cognito)**: Lambda triggers customize Cognito user-pool workflows, including sign-up validation, token generation, message delivery, and custom authentication challenges.
- **[Amazon Connect](https://blowstack.com/tools/cloud-services-hub/amazon-connect)**: Lambda functions are invoked from Connect flows to run business logic during customer interactions. A function can retrieve account information and return attributes that determine the next step in a call.
- **[Amazon Corretto](https://blowstack.com/tools/cloud-services-hub/amazon-corretto)**: Lambda's managed Java runtimes use Amazon Corretto. Java functions can therefore run on a maintained OpenJDK distribution without packaging and maintaining their own Java runtime.
- **[Amazon Data Firehose](https://blowstack.com/tools/cloud-services-hub/amazon-kinesis-data-firehose)**: Lambda functions transform records before Firehose delivers them to a destination. A transformation function can normalize incoming JSON, remove unwanted records, or enrich each record with additional fields.
- **[Amazon DevOps Guru](https://blowstack.com/tools/cloud-services-hub/amazon-devops-guru)**: Lambda functions are supported resources for DevOps Guru operational analysis. DevOps Guru analyzes their metrics and related operational data to identify anomalies and provide recommendations.
- **[Amazon DocumentDB (with MongoDB compatibility)](https://blowstack.com/tools/cloud-services-hub/amazon-documentdb-(with-mongodb-compatibility))**: Lambda event source mappings poll DocumentDB change streams and invoke functions with batches of document changes. This supports processing inserts, updates, and deletions without maintaining a separate change-stream consumer.
- **[Amazon EC2](https://blowstack.com/tools/cloud-services-hub/amazon-ec2)**: Lambda Managed Instances run functions on EC2 instances while Lambda manages execution environments, routing, and scaling. This provides access to EC2 instance capabilities through the Lambda programming model.
- **[Amazon EC2 Auto Scaling](https://blowstack.com/tools/cloud-services-hub/amazon-ec2-auto-scaling)**: Lambda functions can handle Auto Scaling lifecycle events delivered through EventBridge or SNS. A function can perform launch or termination tasks and complete the lifecycle action when processing finishes.
- **[Amazon Elastic Container Registry (Amazon ECR)](https://blowstack.com/tools/cloud-services-hub/amazon-elastic-container-registry-(amazon-ecr))**: Lambda deploys functions from compatible container images stored in private ECR repositories. Repository permissions allow Lambda to retrieve the image used to create and maintain function execution environments.
- **[Amazon Elastic File System (Amazon EFS)](https://blowstack.com/tools/cloud-services-hub/amazon-elastic-file-system-(amazon-efs))**: Lambda functions can mount EFS file systems through access points to read and write persistent shared files. This is useful for large dependencies, shared datasets, or files that must survive individual invocations.
- **[Amazon ElastiCache](https://blowstack.com/tools/cloud-services-hub/amazon-elasticache)**: Lambda functions can subscribe to SNS notifications configured for supported ElastiCache deployments. These notifications allow functions to react to operational events such as failovers or node replacements, rather than individual cache reads and writes.
- **[Amazon EventBridge](https://blowstack.com/tools/cloud-services-hub/amazon-eventbridge)**: Lambda functions can be targets of EventBridge rules and schedules. EventBridge Pipes can also invoke Lambda for enrichment or as a destination, connecting event sources to function-based processing.
- **[Amazon Forecast](https://blowstack.com/tools/cloud-services-hub/amazon-forecast)**: Lambda functions can react to Forecast resource-state changes delivered through EventBridge. For example, a function can advance a forecasting workflow after a dataset import or predictor creation completes.
- **[Amazon GameLift](https://blowstack.com/tools/cloud-services-hub/amazon-gamelift)**: Lambda functions can consume SNS notifications from GameLift game-session queues and FlexMatch matchmaking configurations. This allows a function to update players when matchmaking or session placement completes.
- **[Amazon GuardDuty](https://blowstack.com/tools/cloud-services-hub/amazon-guardduty)**: Lambda functions can be monitored by GuardDuty Lambda Protection, which analyzes network activity associated with function execution. GuardDuty findings identify potentially malicious behavior such as communication with suspicious destinations.
- **[Amazon Inspector](https://blowstack.com/tools/cloud-services-hub/amazon-inspector)**: Lambda functions are scanned by Inspector for vulnerable dependencies, and eligible functions can also receive code vulnerability scanning. Inspector reevaluates supported functions as code changes or new vulnerability information becomes available.
- **[Amazon Kendra](https://blowstack.com/tools/cloud-services-hub/amazon-kendra)**: Lambda functions provide custom document enrichment hooks for Kendra ingestion. They can transform document content or metadata before extraction and before documents are indexed.
- **[Amazon Kinesis Data Streams](https://blowstack.com/tools/cloud-services-hub/amazon-kinesis-data-streams)**: Lambda event source mappings read records from Kinesis streams and invoke functions with batches. Lambda manages polling, checkpoints, retries, and configurable parallel processing.
- **[Amazon Lex](https://blowstack.com/tools/cloud-services-hub/amazon-lex)**: Lambda functions serve as Lex dialog and fulfillment code hooks. They can validate user input, control conversation behavior, and execute the operation requested by an intent.
- **[Amazon Location Service](https://blowstack.com/tools/cloud-services-hub/amazon-location-service)**: Lambda functions can receive Location geofence entry and exit events through EventBridge rules. For example, a function can notify a customer when a tracked delivery vehicle enters a delivery area.
- **[Amazon Managed Streaming for Apache Kafka](https://blowstack.com/tools/cloud-services-hub/amazon-managed-streaming-for-apache-kafka)**: Lambda event source mappings consume records from MSK topics and invoke functions with batches. Lambda manages the consumers and commits offsets after successful processing.
- **[Amazon Managed Workflows for Apache Airflow (Amazon MWAA)](https://blowstack.com/tools/cloud-services-hub/amazon-managed-workflows-for-apache-airflow-(amazon-mwaa))**: Lambda functions can be invoked as tasks in MWAA workflows using Airflow's Amazon provider operators. A DAG can also create a function and wait for it to become ready before invoking it.
- **[Amazon MQ](https://blowstack.com/tools/cloud-services-hub/amazon-mq)**: Lambda event source mappings consume messages from supported ActiveMQ and RabbitMQ brokers in Amazon MQ. Functions receive message batches, and Lambda manages polling and acknowledgment behavior.
- **[Amazon Neptune](https://blowstack.com/tools/cloud-services-hub/amazon-neptune)**: Lambda functions can process Neptune Streams changes through the Neptune Streams Lambda polling framework. The framework polls the stream and tracks processing progress, supporting workflows such as synchronizing graph changes to another datastore.
- **[Amazon OpenSearch Service](https://blowstack.com/tools/cloud-services-hub/amazon-opensearch-service)**: Lambda functions can provide custom processing in OpenSearch Ingestion pipelines through the Lambda processor. A function can enrich or transform incoming events before the pipeline indexes them.
- **[Amazon RDS](https://blowstack.com/tools/cloud-services-hub/amazon-rds)**: Lambda provides database connection configuration and RDS Proxy integration for supported RDS databases. Supported RDS for PostgreSQL versions can also invoke Lambda functions from SQL using the aws_lambda extension.
- **[Amazon RDS Proxy](https://blowstack.com/tools/cloud-services-hub/amazon-rds-proxy)**: Lambda functions can connect through RDS Proxy so that the proxy pools and reuses backend database connections. This helps protect a database from connection surges as function concurrency grows.
- **[Amazon Redshift](https://blowstack.com/tools/cloud-services-hub/amazon-redshift)**: Lambda functions implement external user-defined functions that Redshift invokes from SQL queries. These functions can perform custom transformations or consult external systems while processing query inputs.
- **[Amazon Rekognition](https://blowstack.com/tools/cloud-services-hub/amazon-rekognition)**: Lambda functions can subscribe to the SNS topic used by Rekognition Video to publish asynchronous analysis completion notifications. A function can then retrieve and process the results of the completed job.
- **[Amazon S3 Glacier](https://blowstack.com/tools/cloud-services-hub/amazon-s3-glacier)**: Lambda functions can receive S3 restore notifications for objects archived in S3 Glacier storage classes. This allows processing to begin after an archived object becomes available through a completed restore.
- **[Amazon SageMaker Ground Truth](https://blowstack.com/tools/cloud-services-hub/amazon-sagemaker-ground-truth)**: Lambda functions implement preprocessing and annotation-consolidation hooks for custom Ground Truth labeling workflows. They prepare tasks for workers and combine submitted annotations into final labels.
- **[Amazon Textract](https://blowstack.com/tools/cloud-services-hub/amazon-textract)**: Lambda functions can subscribe to SNS completion notifications from asynchronous Textract jobs. A function can retrieve extracted text, tables, or forms after analysis finishes.
- **[Amazon Transcribe](https://blowstack.com/tools/cloud-services-hub/amazon-transcribe)**: Lambda functions can receive Transcribe job-state changes through EventBridge rules. A function can process a completed transcript or handle a failed transcription job.
- **[Amazon VPC](https://blowstack.com/tools/cloud-services-hub/amazon-vpc)**: Lambda functions can attach to selected VPC subnets and security groups to access private resources. Lambda manages the Hyperplane network interfaces used for this connectivity.
- **[AWS Amplify](https://blowstack.com/tools/cloud-services-hub/aws-amplify)**: Lambda functions provide managed backend compute for Amplify applications. Amplify can deploy functions, configure their permissions, and connect them to application APIs, authentication triggers, and other backend resources.
- **[AWS AppConfig](https://blowstack.com/tools/cloud-services-hub/aws-appconfig)**: Lambda functions can validate AppConfig configuration data before deployment and implement AppConfig extension actions. The AppConfig Agent Lambda extension also retrieves and caches configuration locally for function invocations.
- **[AWS AppSync](https://blowstack.com/tools/cloud-services-hub/aws-appsync)**: Lambda functions can act as AppSync GraphQL data sources and custom authorizers. Resolvers invoke functions to execute business logic or retrieve data that is not available through another configured data source.
- **[AWS Auto Scaling](https://blowstack.com/tools/cloud-services-hub/aws-auto-scaling)**: Lambda provisioned concurrency can be managed through Application Auto Scaling. Target-tracking policies and scheduled actions adjust the provisioned concurrency assigned to a function alias or version.
- **[AWS CloudFormation](https://blowstack.com/tools/cloud-services-hub/aws-cloudformation)**: CloudFormation provisions Lambda functions, layers, aliases, permissions, event source mappings, and other Lambda resources. Lambda functions can also implement CloudFormation custom resources and template macros.
- **[AWS CloudTrail](https://blowstack.com/tools/cloud-services-hub/aws-cloudtrail)**: Lambda management operations are recorded in CloudTrail, and function invocations can be captured by enabling Lambda data events. These records support auditing who changed or invoked a function.
- **[AWS CodeBuild](https://blowstack.com/tools/cloud-services-hub/aws-codebuild)**: CodeBuild offers Lambda compute for supported build workloads, running build commands in Lambda-managed execution environments. This provides a build execution option with rapid startup and usage-based billing.
- **[AWS CodeCommit](https://blowstack.com/tools/cloud-services-hub/aws-codecommit)**: Lambda functions can be invoked by CodeCommit repository triggers for supported repository events, including pushes and branch creation or deletion. Additional repository events can reach functions through EventBridge.
- **[AWS CodeDeploy](https://blowstack.com/tools/cloud-services-hub/aws-codedeploy)**: CodeDeploy deploys new Lambda versions by shifting an alias's traffic using all-at-once, canary, or linear deployment strategies. Lambda validation hooks and CloudWatch alarms can verify a release and trigger rollback.
- **[AWS CodePipeline](https://blowstack.com/tools/cloud-services-hub/aws-codepipeline)**: Lambda functions can execute custom CodePipeline actions. A function receives pipeline job information, performs a task such as validating a deployment, and reports success or failure back to the pipeline.
- **[AWS Compute Optimizer](https://blowstack.com/tools/cloud-services-hub/aws-compute-optimizer)**: Lambda functions with sufficient usage data can receive Compute Optimizer memory recommendations. The recommendations use observed workload characteristics to identify potential performance or cost improvements.
- **[AWS Config](https://blowstack.com/tools/cloud-services-hub/aws-config)**: Lambda functions implement custom Config rules that evaluate resource compliance. Config can also record supported Lambda resource configurations and evaluate them with managed rules.
- **[AWS Distro for OpenTelemetry](https://blowstack.com/tools/cloud-services-hub/aws-distro-for-opentelemetry)**: Lambda functions can use AWS Distro for OpenTelemetry layers to instrument supported runtimes and export telemetry. The layers provide OpenTelemetry instrumentation and a collector within the Lambda execution environment.
- **[AWS Fault Injection Service](https://blowstack.com/tools/cloud-services-hub/aws-fault-injection-simulator-(aws-fis))**: Lambda functions can be targeted by Fault Injection Service experiments using the Lambda fault-injection extension. Supported experiments introduce invocation delays, errors, or modified HTTP integration responses to test application resilience.
- **[AWS Glue](https://blowstack.com/tools/cloud-services-hub/aws-glue)**: Lambda Kafka event source mappings can integrate with Glue Schema Registry for supported schema-aware processing configurations. Lambda can validate and deserialize schema-encoded records before delivering them to function code.
- **[AWS Identity and Access Management (IAM)](https://blowstack.com/tools/cloud-services-hub/aws-identity-and-access-management-(iam))**: Lambda execution roles determine which AWS resources function code can access. IAM policies and Lambda resource-based policies control who can manage functions and which principals or services can invoke them.
- **[AWS IoT Core](https://blowstack.com/tools/cloud-services-hub/aws-iot-core)**: Lambda functions can be invoked by IoT rules to process device messages. Lambda also implements IoT custom authorizers and fleet-provisioning pre-provisioning hooks.
- **[AWS IoT Device Defender](https://blowstack.com/tools/cloud-services-hub/aws-iot-device-defender)**: Lambda functions can consume Device Defender audit and behavior-violation notifications through SNS subscriptions. They can implement custom responses, such as opening an incident or initiating remediation.
- **[AWS IoT Greengrass](https://blowstack.com/tools/cloud-services-hub/aws-iot-greengrass)**: Lambda functions can be deployed as Greengrass components to execute on edge devices. Greengrass configures their local lifecycle, isolation, resource access, and message subscriptions.
- **[AWS Key Management Service (AWS KMS)](https://blowstack.com/tools/cloud-services-hub/aws-key-management-service-(aws-kms))**: Lambda uses KMS keys to protect supported function data, including environment variables and deployment artifacts. Customer-managed keys provide control over key policies and access to encrypted function configuration.
- **[AWS Marketplace](https://blowstack.com/tools/cloud-services-hub/aws-marketplace)**: Lambda-based software distributed through AWS Marketplace can be deployed using seller-provided CloudFormation templates. These deployments create the functions and supporting resources required by the purchased software.
- **[AWS PrivateLink](https://blowstack.com/tools/cloud-services-hub/aws-privatelink)**: Lambda supports interface VPC endpoints powered by PrivateLink for private access to its API. Clients can invoke and manage functions without sending requests through an internet gateway or NAT device.
- **[AWS Resilience Hub](https://blowstack.com/tools/cloud-services-hub/aws-resilience-hub)**: Lambda functions can be included in applications assessed by Resilience Hub. Assessments evaluate supported function configurations and dependencies against application resilience objectives and provide recommendations.
- **[AWS Resource Groups and Tag Editor](https://blowstack.com/tools/cloud-services-hub/aws-resource-groups-and-tag-editor)**: Lambda functions can be organized into tag-based resource groups and managed through supported Tag Editor operations. This helps teams identify functions belonging to an application or environment.
- **[AWS Schema Conversion Tool (AWS SCT)](https://blowstack.com/tools/cloud-services-hub/aws-schema-conversion-tool-(aws-sct))**: Lambda functions are used by supported SCT extension packs to emulate source-database features that do not have direct equivalents in the target database. SCT can deploy these functions as part of the database conversion.
- **[AWS Secrets Manager](https://blowstack.com/tools/cloud-services-hub/aws-secrets-manager)**: Lambda functions implement custom Secrets Manager rotation workflows, updating a secret and its corresponding credentials in the target system. Functions can also use the AWS Parameters and Secrets Lambda Extension to retrieve and cache secrets.
- **[AWS Security Hub](https://blowstack.com/tools/cloud-services-hub/aws-security-hub)**: Lambda functions can respond to Security Hub findings and custom actions through EventBridge rules. A function can enrich a finding, open a ticket, or perform a narrowly scoped remediation.
- **[AWS Security Token Service (AWS STS)](https://blowstack.com/tools/cloud-services-hub/aws-security-token-service-(aws-sts))**: Lambda assumes a function's execution role through STS and supplies temporary credentials to its execution environment. The role's trust policy authorizes the Lambda service to assume it.
- **[AWS Serverless Application Model (AWS SAM)](https://blowstack.com/tools/cloud-services-hub/aws-serverless-application-model-(aws-sam))**: The SAM CloudFormation transform expands serverless function definitions into Lambda resources and associated infrastructure. It supports function event sources, aliases, permissions, and deployment preferences.
- **[AWS Serverless Application Repository](https://blowstack.com/tools/cloud-services-hub/aws-serverless-application-repository)**: Lambda applications published in the Serverless Application Repository can be deployed as packaged serverless applications. Their templates create functions and the event sources, permissions, and other resources they require.
- **[AWS Service Catalog](https://blowstack.com/tools/cloud-services-hub/aws-service-catalog)**: Lambda functions can be provisioned as resources in Service Catalog products backed by CloudFormation templates. Organizations can distribute approved function configurations through portfolios and provisioning constraints.
- **[AWS Signer](https://blowstack.com/tools/cloud-services-hub/aws-signer)**: Lambda code-signing configurations use Signer signing profiles to verify ZIP deployment packages and layers. Functions can warn about or reject packages that do not satisfy their configured signing policy.
- **[AWS Snow Family](https://blowstack.com/tools/cloud-services-hub/aws-snow-family)**: Supported Snowball Edge configurations can run Lambda functions through their on-device Greengrass environment. Functions can process local data and respond to supported local events while disconnected from AWS Regions.
- **[AWS Systems Manager](https://blowstack.com/tools/cloud-services-hub/aws-systems-manager)**: Systems Manager Automation runbooks can invoke Lambda functions through the aws:invokeLambdaFunction action. Functions can also retrieve and cache Parameter Store values using the AWS Parameters and Secrets Lambda Extension.
- **[AWS Transfer Family](https://blowstack.com/tools/cloud-services-hub/aws-transfer-family)**: Lambda functions can implement custom identity providers for Transfer Family servers and custom steps in managed file-transfer workflows. Functions can authenticate users or validate and process transferred files.
- **[AWS Trusted Advisor](https://blowstack.com/tools/cloud-services-hub/aws-trusted-advisor)**: Lambda functions are covered by supported Trusted Advisor checks for issues such as high error rates, excessive timeouts, and deprecated runtimes. These checks help identify operational and maintenance problems.
- **[AWS X-Ray](https://blowstack.com/tools/cloud-services-hub/aws-x-ray)**: Lambda active tracing sends invocation traces to X-Ray, including service and function execution segments. Instrumented function code can add subsegments to show downstream calls and custom operations.
- **[Elastic Load Balancing (ELB)](https://blowstack.com/tools/cloud-services-hub/elastic-load-balancing-(elb))**: Lambda functions can be registered as targets in Application Load Balancer target groups. The load balancer converts matching HTTP requests into function events and converts function responses back into HTTP responses.

## What is AWS Lambda

AWS Lambda is a pivotal service within the Amazon Web Services (AWS) ecosystem, offering a serverless compute service that allows developers to run code in response to events without provisioning or managing servers. This groundbreaking service, introduced by AWS, revolutionized the way applications are built and deployed, enabling developers to focus purely on their code while Lambda takes care of the underlying infrastructure management.

Existing Lambda functions are now called Lambda Event Functions; no code changes or redeployment are required.

Requests to the Lambda API must be authenticated with a signature; Lambda supports AWS Signature Version 4.

Lambda durable functions support multi-step workflows that suspend and resume across multiple invocations using timers, callbacks, and polling conditions. Asynchronous durable executions can last up to one year.

Lambda MicroVMs provide isolated environments with customer-controlled lifecycles for workloads such as user-generated or AI-generated code. Each runs Amazon Linux 2023 from an image you provide; you can run, suspend, resume, and terminate it through the API. Suspension preserves memory and disk state, and the total lifespan, including suspended time, is limited to eight hours.

Event Functions also offer tenant isolation mode: each underlying execution environment is associated with a particular tenant and never processes requests from other tenants invoking the same function.

As a cornerstone of serverless architectures, Lambda supports a variety of programming languages, including Node.js, Python, Java, Go, Ruby, and C#, making it a versatile option for developers with different skill sets. One of the most striking features of Lambda is its event-driven nature. Lambda functions can be triggered by various AWS services or custom events, making it an ideal tool for executing code in response to HTTP requests via Amazon API Gateway, processing stream records in Amazon DynamoDB, changing data in S3 buckets, or updating messages in Amazon SNS or Amazon SQS. This flexibility allows developers to architect applications that are both scalable and resilient without needing to manage the scaling policy explicitly.

Lambda Web Functions run Node.js HTTP servers directly, using frameworks such as Express, Hono, or React Router without adapters. Each execution environment handles multiple concurrent requests, and Lambda supplies an HTTPS endpoint, scales to zero when idle, and supports deployment across multiple Regions behind one endpoint.

New AWS accounts start with reduced concurrency and memory quotas for Lambda Functions and MicroVMs, and reduced vCPU and request-rate quotas for Web Functions. AWS raises these quotas automatically based on usage.

Lambda Managed Instances run Event Functions on fully managed EC2 instances in your VPC. You can select instance types and process multiple requests concurrently in one execution environment, while Lambda manages provisioning, scaling, patching, and instance lifecycle.

The usual single-invocation timeout is 15 minutes. Lambda Managed Instances support up to 90 minutes for asynchronous invocations and event source mappings other than Amazon MQ and Amazon DocumentDB.

Managed Instances have quotas separate from default Lambda quotas and are also subject to account-level EC2 quotas, including instance-type vCPU limits, EBS volume limits, and available IP addresses in VPC subnets.

Provisioned Concurrency keeps Event Functions initialized and ready to respond in double-digit milliseconds, providing greater control over latency-sensitive workloads.

SnapStart reduces startup latency by snapshotting a function's initialized memory and disk state and restoring execution environments from that snapshot instead of initializing them from scratch.

On-demand Lambda Event Functions are charged by request count and execution duration; other Lambda compute options have different billing models. This pricing model allows businesses to reduce costs significantly compared to running dedicated servers or EC2 instances that might not be utilized fully. The cost-effectiveness combined with the ability to scale automatically from a few requests per day to thousands per second makes Lambda a compelling option for startups and large enterprises alike.

Another significant advantage of Lambda is the integration with other AWS services. This seamless integration allows for the creation of sophisticated serverless architectures that harness the strengths of services like Amazon S3 for storage, Amazon DynamoDB for databases, and Amazon API Gateway for creating RESTful APIs, amongst others.

Moreover, AWS Lambda ensures high availability by maintaining compute capacity across multiple Availability Zones in each region, providing built-in fault tolerance to the applications. For developers seeking to build microservices or simply offload certain tasks from their main application, AWS Lambda offers an efficient, scalable, and cost-effective route.

It's particularly beneficial for handling unpredictable workloads, processing real-time data, and automating cloud workflows without the heavy lifting of server management. As serverless architectures continue to evolve, AWS Lambda is poised to remain at the forefront, offering developers the tools to build more robust, scalable, and efficient applications.

## Concepts related to AWS Lambda

- [Idempotency](https://blowstack.com/tools/cloud-concepts-hub/idempotency): Idempotency is the property that repeating an operation with the same intent has the same intended effect as performing it once.
- [Event-Driven Architecture](https://blowstack.com/tools/cloud-concepts-hub/event-driven-architecture): Event-driven architecture is a software design approach in which components publish events and other components react to them through loosely coupled communication.
- [Input Validation](https://blowstack.com/tools/cloud-concepts-hub/input-validation): Input validation checks incoming data against structural, semantic, and safety rules before an application uses it.
- [Tool Calling](https://blowstack.com/tools/cloud-concepts-hub/tool-calling): Tool calling is the mechanism by which an AI model requests that an application execute an external function or operation and return its result.
- [Output Validation](https://blowstack.com/tools/cloud-concepts-hub/output-validation): Output validation checks generated or returned data against security, structural, and business rules before it is displayed, stored, or used to perform an action.
- [Credential Rotation](https://blowstack.com/tools/cloud-concepts-hub/credential-rotation): Credential rotation is the controlled replacement of authentication secrets, followed by retirement of the old credentials, to limit their useful lifetime.
- [Determinism](https://blowstack.com/tools/cloud-concepts-hub/determinism): Determinism is the property of a computation that produces the same result whenever its inputs, initial state, and execution conditions are the same.
- [Exponential Backoff](https://blowstack.com/tools/cloud-concepts-hub/exponential-backoff): Exponential backoff is a retry strategy that increases the delay between successive attempts, usually by multiplying the previous delay by a fixed factor.
- [Serverless](https://blowstack.com/tools/cloud-concepts-hub/serverless-and-event-driven-design-principles): Serverless is a cloud operating model in which the provider manages the underlying servers while customers deploy applications or use services without provisioning and maintaining those servers.
- [Statelessness](https://blowstack.com/tools/cloud-concepts-hub/statelessness): Statelessness is a design principle in which a processing instance does not depend on locally retained client or workflow state from previous requests.
- [Connection Pooling](https://blowstack.com/tools/cloud-concepts-hub/connection-pooling): Connection pooling maintains a reusable set of network connections so applications can borrow them instead of establishing a new connection for every operation.
- [Exception Handling](https://blowstack.com/tools/cloud-concepts-hub/exception-handling): Exception handling is the controlled detection and management of runtime failures so a program can recover, release resources, or terminate with useful diagnostic information.
- [Rule-Based Systems](https://blowstack.com/tools/cloud-concepts-hub/rule-based-systems): Rule-based systems automate decisions and actions by applying explicitly defined conditions to input data.
- [Canary Deployment](https://blowstack.com/tools/cloud-concepts-hub/canary-deployment): Canary deployment releases a new application or model version to a small portion of production traffic before expanding exposure after validation.
- [Concurrency](https://blowstack.com/tools/cloud-concepts-hub/concurrency): Concurrency is the ability of a system to keep multiple tasks in progress during overlapping periods of time.
- [Content-Based Routing](https://blowstack.com/tools/cloud-concepts-hub/content-based-routing): Content-based routing directs a request or message to a destination by evaluating its payload, attributes, or derived meaning.
- [Model Context Protocol](https://blowstack.com/tools/cloud-concepts-hub/model-context-protocol): Model Context Protocol (MCP) is an open protocol that standardizes how AI applications connect to external tools, data sources, and reusable prompts.
- [Workflow Orchestration](https://blowstack.com/tools/cloud-concepts-hub/workflow-orchestration): Workflow orchestration coordinates tasks, dependencies, decisions, and failure handling so that multiple components execute a complete business process.
- [Adapter Pattern](https://blowstack.com/tools/cloud-concepts-hub/adapter-pattern): The Adapter Pattern translates a provider-specific interface into a stable application interface so implementations can change without changing calling code.
- [AI Guardrails](https://blowstack.com/tools/cloud-concepts-hub/ai-guardrails): AI Guardrails are layered instructions and technical controls that constrain an AI system’s inputs, outputs, and actions to defined safety, security, and business policies.
- [Input Sanitization](https://blowstack.com/tools/cloud-concepts-hub/input-sanitization): Input sanitization is the controlled transformation of untrusted input to remove or neutralize unsafe content before an application processes it.
- [Pagination](https://blowstack.com/tools/cloud-concepts-hub/pagination): Pagination divides a large result set into smaller responses that clients retrieve through successive requests.
- [Text Normalization](https://blowstack.com/tools/cloud-concepts-hub/text-normalization): Text normalization converts equivalent textual representations into consistent, task-appropriate forms while preserving the meaning needed by downstream systems.
- [Extract, Transform, Load](https://blowstack.com/tools/cloud-concepts-hub/extract-transform-load): Extract, Transform, Load is a data integration process that retrieves data from source systems, prepares it for a target use case, and writes it to a destination.
- [Regression Testing](https://blowstack.com/tools/cloud-concepts-hub/regression-testing): Regression testing checks that changes to a system do not break previously accepted behavior or degrade established quality standards.
- [Schema Validation](https://blowstack.com/tools/cloud-concepts-hub/schema-validation): Schema validation checks whether data conforms to an explicitly defined structure, including required fields, data types, and permitted values.
- [Webhooks](https://blowstack.com/tools/cloud-concepts-hub/webhooks): Webhooks are event-triggered HTTP callbacks that notify another application when something happens.
- [Access Control](https://blowstack.com/tools/cloud-concepts-hub/access-control): Access control determines which identities can perform which actions on which resources under specified conditions.
- [Asynchronous Communication](https://blowstack.com/tools/cloud-concepts-hub/asynchronous-communication): Asynchronous communication lets a sender submit work or information without waiting for the receiver to finish processing it.
- [Circuit Breaker](https://blowstack.com/tools/cloud-concepts-hub/circuit-breaker): A circuit breaker is a resilience pattern that temporarily blocks calls to a failing dependency and permits controlled probes before restoring normal traffic.
- [Distributed Tracing](https://blowstack.com/tools/cloud-concepts-hub/distributed-tracing): Distributed tracing follows a request across multiple application components to show how they interact, where time is spent, and where failures occur.
- [Environment Variables](https://blowstack.com/tools/cloud-concepts-hub/environment-variables): Environment variables are named string values made available to a running process to configure its behavior without changing its application code.
- [Externalized Configuration](https://blowstack.com/tools/cloud-concepts-hub/externalized-configuration): Externalized Configuration separates environment-specific settings and operational controls from application code so the same application artifact can run in different environments.
- [Fixed-Size Chunking](https://blowstack.com/tools/cloud-concepts-hub/fixed-size-chunking): Fixed-size chunking divides documents into segments using a predetermined length, usually measured in tokens, optionally with overlap between adjacent segments.
- [Log Normalization](https://blowstack.com/tools/cloud-concepts-hub/log-normalization): Log normalization converts differently structured log records into a consistent schema and representation so they can be searched, compared, and correlated.
- [Strangler Fig Pattern](https://blowstack.com/tools/cloud-concepts-hub/strangler-fig-pattern): The Strangler Fig Pattern incrementally replaces an existing application by routing selected capabilities to new implementations while the remaining functionality continues running in the legacy system.
- [Strategy Pattern](https://blowstack.com/tools/cloud-concepts-hub/strategy-pattern): The Strategy Pattern encapsulates interchangeable behaviors behind a common interface so an application can select an implementation at runtime without changing its calling code.
- [Unit Testing](https://blowstack.com/tools/cloud-concepts-hub/unit-testing): Unit testing verifies the behavior of a small, independently testable piece of code while controlling its dependencies.
- [WebSockets](https://blowstack.com/tools/cloud-concepts-hub/websockets): WebSockets is a communication protocol that enables persistent, bidirectional message exchange between a client and a server over a single connection.
- [At-Least-Once Delivery](https://blowstack.com/tools/cloud-concepts-hub/at-least-once-delivery): At-least-once delivery is a messaging guarantee that allows an accepted event to be delivered more than once so that recoverable failures do not silently prevent delivery.
- [Compute](https://blowstack.com/tools/cloud-concepts-hub/compute): Compute is the processing capacity used to execute software, perform calculations, and run applications.
- [Deduplication](https://blowstack.com/tools/cloud-concepts-hub/deduplication): Deduplication identifies repeated representations of the same data and removes or consolidates them according to explicit matching and retention rules.
- [Document Chunking](https://blowstack.com/tools/cloud-concepts-hub/document-chunking): Document chunking divides source documents into smaller, context-preserving units for indexing, retrieval, and language-model processing.
- [Elasticity](https://blowstack.com/tools/cloud-concepts-hub/elasticity): Elasticity is the ability to increase and decrease computing resources to match changes in workload demand.
- [Ensemble Learning](https://blowstack.com/tools/cloud-concepts-hub/ensemble-learning): Ensemble learning combines predictions or outputs from multiple models to produce a result that can outperform an individual model.
- [Ephemeral Storage](https://blowstack.com/tools/cloud-concepts-hub/ephemeral-storage): Ephemeral storage is temporary storage whose data is not guaranteed to survive the end or replacement of its associated compute environment.
- [Event Correlation](https://blowstack.com/tools/cloud-concepts-hub/event-correlation): Event correlation is the process of connecting related events across sources using shared attributes, timing, and rules to identify meaningful activity.
- [Event Streaming](https://blowstack.com/tools/cloud-concepts-hub/event-streaming): Event streaming is the continuous publication, retention, and consumption of event records so independent applications can react to changes and replay event history.
- [Hierarchical Chunking](https://blowstack.com/tools/cloud-concepts-hub/hierarchical-chunking): Hierarchical chunking divides documents into linked parent and child segments so retrieval can locate precise passages while supplying broader context to a foundation model.
- [Mocking](https://blowstack.com/tools/cloud-concepts-hub/mocking): Mocking replaces real dependencies with controlled test substitutes so application behavior can be tested in isolation.
- [Model Routing](https://blowstack.com/tools/cloud-concepts-hub/model-routing): Model routing selects the most suitable AI model for each request or task using capability, quality, cost, latency, and operational constraints.
- [Named Entity Recognition](https://blowstack.com/tools/cloud-concepts-hub/named-entity-recognition): Named Entity Recognition identifies spans of text that refer to entities, such as people, organizations, locations, and dates, and assigns them predefined categories.
- [Pay-as-You-Go Pricing](https://blowstack.com/tools/cloud-concepts-hub/pay-as-you-go-pricing): Pay-as-You-Go Pricing is a cloud billing model that charges for measured resource consumption or provisioned capacity rather than requiring infrastructure purchases upfront.
- [Prompt Injection](https://blowstack.com/tools/cloud-concepts-hub/prompt-injection): Prompt injection is an attack in which untrusted input attempts to make a generative AI model follow instructions that conflict with the application's intended behavior or security policy.
- [Query Decomposition](https://blowstack.com/tools/cloud-concepts-hub/query-decomposition): Query decomposition breaks a complex request into focused subqueries whose retrieved evidence is combined to answer the original request.
- [ReAct](https://blowstack.com/tools/cloud-concepts-hub/react): ReAct is an agent design pattern that interleaves reasoning, tool actions, and observations so a foundation model can solve problems using external evidence.
- [Request Validation](https://blowstack.com/tools/cloud-concepts-hub/request-validation): Request validation checks incoming requests against an explicit contract before allowing them to reach application logic or downstream services.
- [Resource Efficiency](https://blowstack.com/tools/cloud-concepts-hub/resource-efficiency): Resource efficiency is the practice of meeting workload requirements with the least necessary compute, storage, networking, and energy consumption.
- [REST](https://blowstack.com/tools/cloud-concepts-hub/rest): REST, or Representational State Transfer, is an architectural style for distributed systems that exposes resources through a uniform, stateless interface.
- [Semantic Chunking](https://blowstack.com/tools/cloud-concepts-hub/semantic-chunking): Semantic chunking divides documents into meaning-coherent passages so retrieval systems can supply relevant, understandable context to foundation models.
- [Server-Sent Events](https://blowstack.com/tools/cloud-concepts-hub/server-sent-events): Server-Sent Events is an HTTP-based mechanism for delivering a continuous stream of text events from a server to a client over a long-lived response.
- [Small Language Models](https://blowstack.com/tools/cloud-concepts-hub/small-language-models): Small language models are language models with relatively compact parameter counts and resource requirements, selected to perform suitable tasks efficiently.
- [Structured Logging](https://blowstack.com/tools/cloud-concepts-hub/structured-logging): Structured logging records application events as consistently named, machine-readable fields rather than relying only on free-form text messages.
- [AI Agents](https://blowstack.com/tools/cloud-concepts-hub/ai-agents): AI agents are software systems that use artificial intelligence to select and carry out actions toward a goal within defined permissions and constraints.
- [Batching](https://blowstack.com/tools/cloud-concepts-hub/batching): Batching groups multiple records, requests, or work items into a unit for more efficient transfer, storage, or processing.
- [Blue-Green Deployment](https://blowstack.com/tools/cloud-concepts-hub/blue-green-deployment): Blue-green deployment releases a new application version into a separate environment and then redirects production traffic from the current environment to the new one.
- [Bulkhead Pattern](https://blowstack.com/tools/cloud-concepts-hub/bulkhead-pattern): The bulkhead pattern divides a system into resource-isolated compartments so that overload or failure in one compartment does not exhaust capacity needed by others.
- [Change Data Capture](https://blowstack.com/tools/cloud-concepts-hub/change-data-capture): Change Data Capture is a technique for detecting inserts, updates, and deletes in a source data store and making those changes available to downstream systems.
- [Conditional Branching](https://blowstack.com/tools/cloud-concepts-hub/conditional-branching): Conditional branching selects the next execution path in a workflow by evaluating conditions against input data, intermediate results, or system state.
- [Contract Testing](https://blowstack.com/tools/cloud-concepts-hub/contract-testing): Contract testing verifies that communicating components satisfy agreed expectations for requests, responses, or messages at their integration boundaries.
- [CPU Architecture](https://blowstack.com/tools/cloud-concepts-hub/cpu-architecture): CPU architecture defines the instruction set and processor design that determine how software executes on a computing system.
- [Data Validation](https://blowstack.com/tools/cloud-concepts-hub/data-validation): Data validation is the process of checking data against defined structural, quality, and business rules before accepting or using it.
- [Database Normalization](https://blowstack.com/tools/cloud-concepts-hub/database-normalization): Database normalization organizes relational data into tables according to dependencies to reduce redundancy and prevent inconsistent updates.
- [Horizontal Scaling](https://blowstack.com/tools/cloud-concepts-hub/horizontal-scaling): Horizontal scaling adjusts capacity by adding or removing servers, containers, or other processing units that share a workload.
- [Log Levels](https://blowstack.com/tools/cloud-concepts-hub/log-levels): Log levels classify application log events by severity or diagnostic detail so engineers can control what is recorded and prioritize investigation.
- [Loose Coupling](https://blowstack.com/tools/cloud-concepts-hub/loose-coupling): Loose coupling is an architectural principle that minimizes dependencies between components so they can change, scale, and recover with limited impact on one another.
- [Metadata Extraction](https://blowstack.com/tools/cloud-concepts-hub/metadata-extraction): Metadata extraction is the process of identifying and capturing structured attributes from documents, their contents, and their source systems.
- [Model Cards](https://blowstack.com/tools/cloud-concepts-hub/model-cards): Model cards are structured documents that describe an AI model’s intended uses, evaluation results, limitations, and responsible-use considerations.
- [Multi-Agent Orchestration](https://blowstack.com/tools/cloud-concepts-hub/multi-agent-orchestration): Multi-agent orchestration coordinates multiple AI agents, their tools, shared context, and execution flow to complete a task.
- [Prompt Chaining](https://blowstack.com/tools/cloud-concepts-hub/prompt-chaining): Prompt chaining decomposes a complex task into connected model interactions, passing selected outputs from earlier steps into later prompts.
- [Query Expansion](https://blowstack.com/tools/cloud-concepts-hub/query-expansion): Query expansion enriches a search request with related terms or alternative formulations to retrieve relevant information that the original wording might miss.
- [Red Teaming](https://blowstack.com/tools/cloud-concepts-hub/red-teaming): Red teaming is an authorized, adversarial assessment that simulates realistic attacks to uncover weaknesses in a system and its defenses.
- [Rollback](https://blowstack.com/tools/cloud-concepts-hub/rollback): Rollback is the reversal of a change to return a system to a previously known-good operational state.
- [State Machines](https://blowstack.com/tools/cloud-concepts-hub/state-machines): State machines model a process as defined states and rules that determine how execution moves between them.
- [Synchronous Communication](https://blowstack.com/tools/cloud-concepts-hub/synchronous-communication): Synchronous communication is an interaction in which a caller waits for a receiver’s response before proceeding with work that depends on that response.
- [Temporary Credentials](https://blowstack.com/tools/cloud-concepts-hub/temporary-credentials): Temporary credentials are authentication credentials issued with a defined expiration time for limited-duration access to systems and resources.
- [Timeouts](https://blowstack.com/tools/cloud-concepts-hub/timeouts): Timeouts are enforced time limits on how long an application waits for an operation before treating it as unsuccessful or taking another action.
- [Agentic AI](https://blowstack.com/tools/cloud-concepts-hub/agentic-ai): Agentic AI is an approach to building AI systems that pursue goals by selecting actions, using tools, and adapting their next steps within defined boundaries.
- [All-at-Once Deployment](https://blowstack.com/tools/cloud-concepts-hub/all-at-once-deployment): All-at-once deployment releases a new application version to the entire targeted environment in a single deployment batch rather than through staged updates.
- [API Gateway Pattern](https://blowstack.com/tools/cloud-concepts-hub/api-gateway-pattern): The API Gateway Pattern places a controlled entry point between clients and backend services to centralize request routing and shared API policies.
- [API Versioning](https://blowstack.com/tools/cloud-concepts-hub/api-versioning): API versioning is the practice of identifying and managing distinct API contracts so interfaces can evolve without unexpectedly breaking consumers.
- [API-First Design](https://blowstack.com/tools/cloud-concepts-hub/api-first-design): API-first design defines and validates an application's interface contracts before implementing the systems that fulfill them.
- [AWS SDKs](https://blowstack.com/tools/cloud-concepts-hub/aws-sdks): AWS SDKs are language-specific software development kits that let applications interact with AWS service APIs through familiar programming interfaces.
- [Capital Expenditure](https://blowstack.com/tools/cloud-concepts-hub/capital-expenditure): Capital expenditure is spending to acquire, create, or improve long-lived assets, such as servers, storage hardware, and data center facilities.
- [Chain-of-Thought Prompting](https://blowstack.com/tools/cloud-concepts-hub/chain-of-thought-prompting): Chain-of-thought prompting is a prompt engineering technique that guides a language model through intermediate reasoning steps before producing a final answer.
- [Choreography](https://blowstack.com/tools/cloud-concepts-hub/choreography): Choreography is a distributed coordination pattern in which services react to events and decide their own actions without a central workflow controller.
- [Chunked Transfer Encoding](https://blowstack.com/tools/cloud-concepts-hub/chunked-transfer-encoding): Chunked transfer encoding is an HTTP/1.1 mechanism that sends a message body in length-prefixed chunks without requiring its total size in advance.
- [Cloud Service Models](https://blowstack.com/tools/cloud-concepts-hub/cloud-service-models): Cloud service models define which technology layers a provider operates and which responsibilities remain with the customer.
- [Commitment Discounts](https://blowstack.com/tools/cloud-concepts-hub/commitment-discounts): Commitment discounts reduce cloud usage rates in exchange for a defined usage or spending commitment over a fixed term.
- [Context Pruning](https://blowstack.com/tools/cloud-concepts-hub/context-pruning): Context pruning is the selective removal of low-value information from a foundation model’s input while preserving the information needed to complete the task accurately.
- [Conversation Memory](https://blowstack.com/tools/cloud-concepts-hub/conversation-memory): Conversation memory is the application-managed retention and reuse of prior interactions so an AI assistant can maintain context across turns or sessions.
- [Credential Provider Chain](https://blowstack.com/tools/cloud-concepts-hub/credential-provider-chain): A credential provider chain is an ordered sequence of credential sources that an SDK or command-line tool checks to obtain an identity for authenticating API requests.
- [Data Deduplication](https://blowstack.com/tools/cloud-concepts-hub/data-deduplication): Data deduplication identifies repeated representations of the same information and removes or consolidates them according to defined matching and retention rules.
- [Data Profiling](https://blowstack.com/tools/cloud-concepts-hub/data-profiling): Data profiling is the systematic examination of a dataset’s structure, values, distributions, and relationships to understand its characteristics and identify potential quality problems.
- [Data Synchronization](https://blowstack.com/tools/cloud-concepts-hub/data-synchronization): Data synchronization keeps related data in different systems aligned by detecting, transferring, and applying changes according to defined consistency and freshness requirements.
- [Digital Signatures](https://blowstack.com/tools/cloud-concepts-hub/digital-signatures): Digital signatures are cryptographic proofs that bind data to a signing private key, allowing verification of its integrity and origin using the corresponding public key.
- [Distributed Processing](https://blowstack.com/tools/cloud-concepts-hub/distributed-processing): Distributed processing divides computational work across multiple networked machines that coordinate to produce a result.
- [Event-Time Processing](https://blowstack.com/tools/cloud-concepts-hub/event-time-processing): Event-time processing transforms and aggregates data according to when events occurred rather than when a processing system receives or handles them.
- [Fan-Out](https://blowstack.com/tools/cloud-concepts-hub/fan-out): Fan-out is an architectural pattern in which one event, message, or request initiates processing by multiple downstream recipients or execution branches.
- [Feature Flags](https://blowstack.com/tools/cloud-concepts-hub/feature-flags): Feature flags are configurable controls that let applications enable, disable, or vary behavior without changing the deployed code.
- [First-Mover Advantage](https://blowstack.com/tools/cloud-concepts-hub/first-mover-advantage): First-mover advantage is the competitive benefit an organization can gain by entering a market or applying a valuable innovation before its rivals.
- [Generators](https://blowstack.com/tools/cloud-concepts-hub/generators): Generators are resumable routines that produce a sequence of values on demand instead of constructing the entire sequence in memory.
- [Imperative Programming](https://blowstack.com/tools/cloud-concepts-hub/imperative-programming): Imperative programming expresses computation as explicit instructions that control execution and change program or system state.
- [JSON Web Tokens](https://blowstack.com/tools/cloud-concepts-hub/json-web-tokens): JSON Web Tokens are a standardized format for carrying claims between parties, commonly used as signed bearer tokens for application authentication and authorization.
- [Latency](https://blowstack.com/tools/cloud-concepts-hub/latency): Latency is the elapsed time between a defined starting event and the corresponding response, completion, or availability of a result.
- [Mass Customization](https://blowstack.com/tools/cloud-concepts-hub/mass-customization): Mass customization is the delivery of products or services tailored to individual needs at a scale and cost structure approaching standardized production.
- [Message Ordering](https://blowstack.com/tools/cloud-concepts-hub/message-ordering): Message ordering is the preservation of a defined sequence of messages as they move through a distributed system.
- [Message Queuing](https://blowstack.com/tools/cloud-concepts-hub/message-queuing): Message queuing is asynchronous communication in which producers place messages in a queue for consumers to retrieve and process independently.
- [Minimum Viable Product](https://blowstack.com/tools/cloud-concepts-hub/minimum-viable-product): A Minimum Viable Product is the smallest usable version of a product that delivers core value and tests important assumptions with real users.
- [Missing Value Imputation](https://blowstack.com/tools/cloud-concepts-hub/missing-value-imputation): Missing value imputation replaces absent data values with justified estimates or explicit placeholders so datasets can be analyzed or used by machine learning systems.
- [Model Cascading](https://blowstack.com/tools/cloud-concepts-hub/model-cascading): Model cascading is a staged inference strategy in which models handle requests sequentially, often using a smaller model first and escalating difficult cases to a more capable model.
- [Noisy Neighbor](https://blowstack.com/tools/cloud-concepts-hub/noisy-neighbor): A noisy neighbor is a workload or tenant whose use of shared resources degrades the performance or availability of other workloads or tenants.
- [OAuth 2.0](https://blowstack.com/tools/cloud-concepts-hub/oauth-2_0): OAuth 2.0 is an authorization framework that lets applications obtain limited access to protected resources using access tokens rather than a resource owner's credentials.
- [Operating Expenditure](https://blowstack.com/tools/cloud-concepts-hub/operating-expenditure): Operating expenditure is spending on the ongoing operation of a business, including the recurring costs of consuming and managing cloud resources.
- [Parallel Execution](https://blowstack.com/tools/cloud-concepts-hub/parallel-execution): Parallel execution runs independent tasks at the same time to reduce the elapsed time needed to complete a larger workflow.
- [Prompt Compression](https://blowstack.com/tools/cloud-concepts-hub/prompt-compression): Prompt compression reduces the tokens sent to a foundation model while preserving the instructions and information needed for an effective response.
- [Prompt Context](https://blowstack.com/tools/cloud-concepts-hub/prompt-context): Prompt context is the background information supplied to a foundation model to help it interpret a request and produce a relevant response.
- [Public Cloud](https://blowstack.com/tools/cloud-concepts-hub/public-cloud): Public cloud is a deployment model in which a third-party provider offers computing resources for use by many customers on provider-operated infrastructure.
- [Query Rewriting](https://blowstack.com/tools/cloud-concepts-hub/query-rewriting): Query rewriting transforms a user's request into one or more retrieval queries that better express the intended information need.
- [Response Streaming](https://blowstack.com/tools/cloud-concepts-hub/response-streaming): Response streaming delivers a response incrementally as output becomes available instead of waiting for the entire response to finish.
- [Rolling Deployment](https://blowstack.com/tools/cloud-concepts-hub/rolling-deployment): Rolling deployment updates an application in successive batches while keeping part of the existing deployment available to serve traffic.
- [Rule-Based AI](https://blowstack.com/tools/cloud-concepts-hub/rule-based-ai): Rule-based AI uses explicitly defined rules and facts to make decisions or draw conclusions rather than learning decision patterns from training data.
- [Semantic Caching](https://blowstack.com/tools/cloud-concepts-hub/semantic-caching): Semantic caching reuses a stored response when a new request has sufficiently similar meaning and compatible context, avoiding unnecessary recomputation.
- [Sensitivity Analysis](https://blowstack.com/tools/cloud-concepts-hub/sensitivity-analysis): Sensitivity analysis evaluates how changes in uncertain assumptions affect an outcome, such as the return on investment of a cloud-based AI initiative.
- [Servitization](https://blowstack.com/tools/cloud-concepts-hub/servitization): Servitization is the transformation of a product-focused business into one that delivers ongoing customer value through services built around its products.
- [Stateful Processing](https://blowstack.com/tools/cloud-concepts-hub/stateful-processing): Stateful processing retains information across records, requests, or events so that earlier activity can influence later results.
- [Structured Outputs](https://blowstack.com/tools/cloud-concepts-hub/structured-outputs): Structured outputs constrain a foundation model’s responses to an explicit, machine-readable format or schema so applications can process them reliably.
- [Task Decomposition](https://blowstack.com/tools/cloud-concepts-hub/task-decomposition): Task decomposition is the practice of breaking a larger activity into smaller, clearly defined tasks that can be assigned to people, software, or AI systems.
- [Task Planning](https://blowstack.com/tools/cloud-concepts-hub/task-planning): Task planning is the process of turning a goal into actionable steps, selecting suitable tools, and adjusting the steps as new information becomes available.
- [Text Chunking](https://blowstack.com/tools/cloud-concepts-hub/text-chunking): Text chunking divides documents or other text into smaller, meaningful units for embedding, retrieval, and processing within model input limits.
- [Text Generation](https://blowstack.com/tools/cloud-concepts-hub/text-generation): Text generation is the automated creation of written language or code by an AI model in response to instructions and context.
- [Text-to-SQL](https://blowstack.com/tools/cloud-concepts-hub/text-to-sql): Text-to-SQL translates natural-language questions into SQL queries that retrieve or calculate answers from structured data.
- [Token Budgeting](https://blowstack.com/tools/cloud-concepts-hub/token-budgeting): Token Budgeting is the practice of allocating, estimating, and controlling foundation-model token usage to meet cost, context-window, latency, and quality requirements.
- [Tool Use](https://blowstack.com/tools/cloud-concepts-hub/tool-use): Tool use enables a foundation-model application to request external functions, APIs, or utilities to retrieve information, perform calculations, or take actions.
- [Trace Sampling](https://blowstack.com/tools/cloud-concepts-hub/trace-sampling): Trace sampling selects which distributed requests have their tracing data recorded or retained, balancing diagnostic coverage against telemetry cost and overhead.
- [Usage-Based Pricing](https://blowstack.com/tools/cloud-concepts-hub/usage-based-pricing): Usage-based pricing charges for measured cloud resource consumption or provisioned capacity according to published rates and billing rules.
- [Version Control](https://blowstack.com/tools/cloud-concepts-hub/version-control): Version control is the practice of tracking and identifying changes to artifacts so teams can compare revisions, reproduce releases, and restore earlier states.
- [Weighted Scoring](https://blowstack.com/tools/cloud-concepts-hub/weighted-scoring): Weighted scoring is a decision-making method that ranks alternatives by combining criterion scores according to their relative importance.
- [Windowed Aggregation](https://blowstack.com/tools/cloud-concepts-hub/windowed-aggregation): Windowed aggregation computes summaries over bounded groups of events, typically defined by time, so continuously arriving data can become usable metrics and machine-learning features.

## AWS Lambda exam questions

Real practice exam questions on AWS Lambda, with the correct answer and its explanation.

### Question 1 (AIB-C01)

**Question:**

A workplace training company uses an AWS Lambda function to assemble practice quizzes. The function randomly selects 10 different questions from an approved question bank and shuffles their order. Every selected question must remain unchanged, and different attempts are allowed to contain different questions. A business sponsor proposes replacing the function with AI because submitting the same course identifier twice can produce different quizzes. Which recommendation best meets the requirements with the least unnecessary complexity?

**Correct answer:** Retain the existing function because conventional software can use random selection without requiring a learned model.

**Explanation:** The requirements call for sampling approved content, not interpreting information or learning patterns. Random selection can produce different results because the random state changes, even when the course identifier stays the same. This does not make AI necessary or indicate that the existing approach is unsuitable.

### Question 2 (MLA-C02)

**Question:**

A retailer uses an Amazon Bedrock agent with a function-based action group backed by an AWS Lambda function. The action group contains get_order_status and issue_refund. The Lambda function independently validates customer authorization and refund limits. During testing, the agent sometimes selects issue_refund when a customer only asks about refund eligibility.

The retailer requires the agent to obtain explicit user confirmation for each proposed refund before invoking the Lambda function for issue_refund. Order-status lookups must continue without confirmation. The team wants to retain managed agent orchestration and avoid implementing a custom approval workflow.

Which configuration best meets these requirements?

**Correct answer:** Set requireConfirmation to ENABLED for issue_refund in the action group's function schema, and leave confirmation disabled for get_order_status.

**Explanation:** Function-level confirmation requires the agent to request user confirmation before invoking the selected operation. Enabling it only for issue_refund provides the required approval step without interrupting order-status lookups or replacing managed orchestration.

### Question 3 (SAP-C03)

**Question:**

A company runs licensed simulation workers as an Amazon ECS service. When a worker becomes unhealthy, ECS replaces its task. An existing coordinator confirms that the failed worker can no longer run and asynchronously invokes an AWS Lambda function to return the worker's reserved license seats to an available-seat counter in Amazon DynamoDB.

Each simulation attempt has a globally unique attempt ID and a DynamoDB reservation item containing the reserved seat count and a status of RESERVED or RELEASED. The available-seat counter is stored in a separate item. Replacement attempts receive new attempt IDs and separate reservations. Reservation items are retained longer than the maximum event replay period.

The same failed-attempt event can invoke the function concurrently more than once. The function can also time out after a DynamoDB request succeeds but before it receives the response. Every confirmed failed attempt must eventually return its seats, but no attempt may increase the available-seat counter more than once. Recovery must remain automatic after transient failures.

Which implementation meets these requirements?

**Correct answer:** Use TransactWriteItems to conditionally change the reservation from RESERVED to RELEASED and increment the available-seat counter by the reserved count in the same transaction. Retry transient failures. If the condition fails, verify that the reservation is already RELEASED and treat that result as successful completion.

**Explanation:** The transaction commits both changes or neither change. The condition on the stable attempt-specific reservation allows only one transaction to return the seats. Concurrent invocations and retries after an ambiguous response cannot increment the counter again. Transient failures can be retried without leaving a partially completed release, and separate replacement attempts retain independent reservations.

### Question 4 (AIF-C01)

**Question:**

A company must reproduce employees' historical travel reimbursement amounts during audits. The amounts are calculated from validated expense records using approved reimbursement limits and rounding rules, which change periodically. The current application reads the latest policy, so replaying an old expense record can produce a different amount. A team proposes replacing the calculation with an ML model whose version and inference settings remain fixed. Which approach BEST meets the audit requirement?

**Correct answer:** Use an AWS Lambda function to execute the specified calculation, retaining each record's original inputs and applicable versions of the policy and calculation code.

**Explanation:** The task requires an exact rule-defined calculation, not a prediction. Preserving the original inputs, policy, and calculation code allows the application to recreate the conditions that determined the historical amount. Determinism depends on these conditions, not only on an unchanged request.

### Question 5 (SOA-C03)

**Question:**

A company has a maintenance application that updates existing Amazon EC2 instances. After each successful update, two existing AWS Lambda functions must react: one updates the instance's operational tags, and the other updates an inventory system. Neither action depends on the other, and a failure in either action must not prevent delivery to the other function.

The maintenance application must publish a single completion event instead of invoking the functions directly. The company also wants to add future consumers without changing the maintenance application. All required permissions can be configured.

Which design meets these requirements?

**Correct answer:** Publish completion events to a custom Amazon EventBridge event bus. Create two rules that match the completion events, with each rule targeting one of the Lambda functions.

**Explanation:** Both matching rules route the event to their respective targets independently. Failure of one consumer does not block delivery to the other. Additional consumers can be connected through new rules without modifying the maintenance application.

### Question 6 (AIP-C01)

**Question:**

A company uses AWS Lambda to generate customer-support replies from two Amazon Bedrock foundation models concurrently. Independent input screening completes before either model is invoked. Each model produces a complete candidate reply, and the application currently returns whichever candidate arrives first.

The company requires each released candidate to pass both a published Bedrock guardrail's blocking output policies and an independent Lambda validator for confidential project names. Neither check modifies the candidate. A rejected candidate or a candidate whose assessment fails must be discarded, but processing may continue for the other candidate. The application must return the first candidate that completes both checks successfully, without waiting for the other candidate. If neither candidate qualifies before the request deadline, it must return a fixed refusal. Each candidate fits within one ApplyGuardrail request.

Which implementation BEST meets these requirements?

**Correct answer:** Assign each completed candidate an application-generated identifier bound to its immutable text. For each candidate, concurrently call ApplyGuardrail with source OUTPUT and the published version and invoke the confidential-name validator. Make that candidate eligible only after its guardrail assessment succeeds without intervention and its validator explicitly approves. Atomically release the first eligible candidate, discard failed candidates, and refuse if none qualifies by the deadline.

**Explanation:** This races fully assessed candidates rather than raw model completions. Both approvals apply to the same immutable response, and an atomic release decision prevents competing branches from returning multiple replies. Assessment failures disqualify only the affected candidate, allowing the other candidate to qualify without waiting unnecessarily.

### Question 7 (CLF-C02)

**Question:**

A company is comparing two options for processing transactions. A hosted server contract costs $600 per month regardless of usage and can handle up to 500,000 transactions monthly. An AWS Lambda design has an estimated variable compute cost of $2 per 1,000 transactions, with no minimum monthly charge. The company expects 400,000 transactions each month. Assume these estimates include all relevant costs, transaction processing requirements remain unchanged, and both options meet performance requirements. Which conclusion should guide the company's decision?

**Correct answer:** Choose the hosted server for the expected volume because its $600 fixed charge is lower than the estimated $800 variable charge.

**Explanation:** At 400,000 transactions, the estimated Lambda cost is 400 × $2 = $800. The hosted server costs $600 and supports the expected volume. Variable pricing follows consumption but is not necessarily cheaper than a fixed-cost alternative.

### Question 8 (DEA-C01)

**Question:**

A utility company uses an AWS Lambda event source mapping to process meter events from Amazon Kinesis Data Streams. Each event contains a unique event ID, and producers publish each event only once. The function updates a billing database. In a single database transaction, it checks for the event ID in a processed-events table, applies the billing update only if the ID is absent, and inserts the ID. Entries in the processed-events table are automatically deleted 24 hours after insertion.

The stream retains records for 7 days. Engineers sometimes replay retained records through the function after correcting unrelated processing issues. A replay can finish up to 7 days after an event was first processed. Immediate retries do not duplicate billing updates, but replays performed several days later sometimes do.

The company must prevent duplicate billing updates while preserving automatic retries and the full replay capability. Which change should a data engineer make?

**Correct answer:** Retain processed-event entries for at least 8 days after insertion, and continue checking and updating the database within the existing transaction.

**Explanation:** The durable record of a completed update must outlive every supported retry and replay. Eight days exceeds the maximum 7-day interval between initial processing and replay completion. Keeping the check, billing update, and event-ID insertion transactional also protects against concurrent processing and failures.

### Question 9 (SCS-C03)

**Question:**

A company correlates AWS WAF request logs with logs from a third-party edge firewall in a centralized security analytics platform. An AWS Lambda function converts both sources into OCSF events. The converted events pass schema validation, but an investigation finds incorrect enforcement results:

• AWS WAF blocked a request and returned a configured custom HTTP 200 response. The normalized event indicates that the request was allowed.
• The third-party firewall allowed a request that subsequently received HTTP 403 from the application. The normalized event indicates that the firewall blocked the request.

The analysts need one source-independent query that identifies requests blocked by either edge security control while preserving the actual HTTP response codes for investigation.

Which change should a security engineer make to the normalization logic?

**Correct answer:** Map both sources to an appropriate OCSF HTTP activity class. Derive the normalized action or disposition from each control's enforcement decision, and retain HTTP response codes in the HTTP response attributes.

**Explanation:** OCSF normalization must preserve source semantics, not merely satisfy schema validation. AWS WAF's Block action and the vendor's enforcement decision determine whether the edge control blocked a request. An HTTP 200 custom block response does not mean the request was allowed, and an application's HTTP 403 does not mean the edge firewall blocked it. Consistent action or disposition mappings support a common query across both sources.

### Question 10 (DVA-C02)

**Question:**

A company uses AWS CodeDeploy to release an AWS Lambda function. During the first stage of each deployment, the production alias routes 10% of invocations to the candidate version and 90% to the stable version. CodeDeploy monitors a CloudWatch alarm and is configured to roll back automatically if the alarm enters the ALARM state.

During a recent release, 8% of the candidate version's invocations failed, but the stable version had no failures. The alarm monitored the error percentage across all production alias invocations with a threshold of 2%, so the deployment continued. Invocation volume is sufficient to evaluate each version separately.

The developer must ensure that future deployments roll back when more than 2% of the candidate version's invocations fail during the evaluation period, regardless of the stable version's traffic volume. Which change meets this requirement?

**Correct answer:** Configure the alarm to evaluate 100 × candidate-version errors ÷ candidate-version invocations, and update the monitored version for each deployment. Retain the 2% threshold.

**Explanation:** Evaluating the candidate's errors against its own invocations measures the health of the limited-exposure release independently of stable traffic. The described release would produce an 8% error rate, triggering the alarm and the configured CodeDeploy rollback.

### Question 11 (DOP-C02)

**Question:**

A company is automating its response to suspected credential compromise. For each incident, two existing AWS Lambda functions must run concurrently: one checks recent API activity, and the other checks the affected identity's permissions. Each function returns an assessment on success or raises an application error if it cannot complete its assessment.

A DevOps engineer must ensure that an application error from either assessment does not interrupt the other assessment. The automation must wait for both assessments to finish, preserve each assessment's result or error details, and then make one decision: start containment only if both assessments succeeded and recommend containment; otherwise, create one analyst-review request. Coordination must use managed workflow states rather than custom coordination code.

Which solution meets these requirements?

**Correct answer:** Create an AWS Step Functions Standard workflow with a Parallel state containing one assessment Task in each branch. Add a Catch handler to each Task that preserves its error details and transitions to a Pass state producing a failed-assessment result. Normalize successful results as well. After both branches complete, use a Choice state to evaluate both results and route to containment or a single analyst-review Task.

**Explanation:** Task-level handlers turn application errors into branch results without failing the Parallel state. The Parallel state waits for both branches and returns their outputs as an array. A downstream Choice state can therefore make one decision using both assessments, including any captured error details.

### Question 12 (SAA-C03)

**Question:**

A company processes invoice jobs from an Amazon SQS queue by using an AWS Lambda function. Each invocation processes one message and opens one connection to an Amazon RDS for PostgreSQL DB instance. Each job runs a transaction that holds its database connection for approximately 10 seconds, with no idle time between transactions within an invocation.

During large job submissions, Lambda concurrency reaches 600, causing database memory exhaustion. The database can safely support 100 connections, and 20 connections must remain available for other applications. Load testing confirms that processing 80 jobs concurrently meets the company's completion deadline. Jobs do not require an immediate response, and the existing queue can buffer them until processing capacity is available.

Which solution meets these requirements with the LOWEST additional ongoing infrastructure cost?

**Correct answer:** Configure reserved concurrency of 80 for the Lambda function, and continue connecting directly to the database.

**Explanation:** Reserved concurrency places an upper bound of 80 on concurrent function executions. With one connection per invocation, this preserves the 20 connections needed by other applications. SQS buffers the remaining jobs, and testing confirms that this processing rate meets the deadline. Reserved concurrency has no additional charge and avoids purchasing database or proxy capacity.

### Question 13 (ANS-C01)

**Question:**

A company publishes an event when a replacement network inspection path is ready for validation. Before production routes can use the path, automation must run two independent tests: a forward-path connectivity test and a return-path symmetry test. An existing test platform exposes HTTPS APIs to start each test and retrieve its status by job ID. Starting a test returns immediately, but tests can run for 40 minutes. The platform cannot send completion callbacks.

Existing short-running AWS Lambda functions can start tests, retrieve their status, and update production routes. Both tests must run concurrently. Routes must change only after both tests report success. If either test fails or exceeds a 60-minute deadline, the routes must remain unchanged. Operators require a durable record of each execution's progress, and the company wants to minimize custom coordination code.

Which implementation meets these requirements?

**Correct answer:** Start an AWS Step Functions Standard workflow from the event. Use a Parallel state with one branch per test. Each branch starts its test, retains the job ID, and uses Wait, status-check tasks, and Choice states to poll until success or a bounded deadline. Route test failures and deadline expiration to a failure path. Update production routes only after both branches complete successfully.

**Explanation:** A Standard workflow durably maintains execution state throughout long-running tests. Each branch explicitly tracks asynchronous completion rather than treating the start request as completion. Parallel waits for both branches to succeed before proceeding. Explicit failure and deadline paths prevent the route-update task from running when either test does not succeed.

## Practice AWS Lambda in a full exam

Questions on AWS Lambda in each practice exam, with every answer option and an explanation for each:

- [AIP-C01](https://blowstack.com/practice-exams/aws-certified-generative-ai-developer-professional): 146 questions
- [DVA-C02](https://blowstack.com/practice-exams/aws-certified-developer-associate): 117 questions
- [DEA-C01](https://blowstack.com/practice-exams/aws-certified-data-engineer-associate): 87 questions
- [DOP-C02](https://blowstack.com/practice-exams/aws-certified-devops-engineer-professional): 87 questions
- [SAA-C03](https://blowstack.com/practice-exams/aws-certified-solutions-architect-associate): 51 questions
- [SCS-C03](https://blowstack.com/practice-exams/aws-certified-security-specialty): 35 questions
- [SOA-C03](https://blowstack.com/practice-exams/aws-certified-cloudops-engineer-associate): 34 questions
- [SAP-C03](https://blowstack.com/practice-exams/aws-certified-solutions-architect-professional): 30 questions
- [ANS-C01](https://blowstack.com/practice-exams/aws-certified-advanced-networking-specialty): 19 questions
- [MLA-C02](https://blowstack.com/practice-exams/aws-certified-machine-learning-engineer-associate): 17 questions
- [AIB-C01](https://blowstack.com/practice-exams/aws-certified-ai-business-strategist): 11 questions
- [CLF-C02](https://blowstack.com/practice-exams/aws-certified-cloud-practitioner): 10 questions
- [AIF-C01](https://blowstack.com/practice-exams/aws-certified-ai-practitioner): 7 questions

## Learn AWS Lambda in lessons

33 short lessons on AWS Lambda in 11 certification courses.

- AIB-C01: AWS Lambda: rule-based event automation (Premium), https://app.blowstack.com/lessons/aws-lambda-rule-based-event-automation-aib-c01
- MLA-C02: AWS Lambda: streaming record transformations (Premium), https://app.blowstack.com/lessons/aws-lambda-streaming-record-transformations-mla-c02
- SAP-C03: AWS Lambda: durable execution (Premium), https://app.blowstack.com/lessons/aws-lambda-durable-execution-sap-c03
- AIF-C01: AWS Step Functions vs AWS Lambda: orchestration and code execution (Premium), https://app.blowstack.com/lessons/aws-step-functions-vs-aws-lambda-orchestration-and-code-execution-aif-c01
- SOA-C03: AWS Lambda: event-driven automation (Premium), https://app.blowstack.com/lessons/aws-lambda-event-driven-automation-soa-c03
- AIP-C01: Amazon ECS vs AWS Lambda: hosting MCP tool servers (Premium), https://app.blowstack.com/lessons/amazon-ecs-vs-aws-lambda-hosting-mcp-tool-servers-aip-c01
