Docsity

AWS Certified Cloud Practitioner Lambda & Serverless Review 2026–2027 | Serverless Computi, Exams of Information Technology

Toggle sidebar
bg1
AWS Cloud Practitioner AWS Lambda &
Serverless Practice Test 2026–2027 |
Serverless Computing Questions,
Answers & Detailed Rationales
1. A company wants to run application code without provisioning or managing
servers. The application should automatically scale based on incoming
requests. Which AWS service is best suited for this requirement?
A. Amazon EC2
B. Amazon ECS
C. AWS Lambda
D. Amazon Lightsail
Answer: AWS Lambda
Rationale: AWS Lambda is a serverless, event-driven compute service that runs
code without requiring customers to provision or manage servers. Lambda
automatically scales the execution environment based on incoming events or
requests.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a

Partial preview of the text

Download AWS Certified Cloud Practitioner Lambda & Serverless Review 2026–2027 | Serverless Computi and more Exams Information Technology in PDF only on Docsity!

AWS Cloud Practitioner AWS Lambda &

Serverless Practice Test 2026–2027 |

Serverless Computing Questions,

Answers & Detailed Rationales

  1. A company wants to run application code without provisioning or managing servers. The application should automatically scale based on incoming requests. Which AWS service is best suited for this requirement?

A. Amazon EC B. Amazon ECS C. AWS Lambda D. Amazon Lightsail

Answer: AWS Lambda

Rationale: AWS Lambda is a serverless, event-driven compute service that runs code without requiring customers to provision or manage servers. Lambda automatically scales the execution environment based on incoming events or requests.

  1. Which characteristic best describes the AWS Lambda pricing model?

A. Customers pay for reserved virtual machines B. Customers pay based primarily on requests and compute duration C. Customers pay a fixed monthly server fee D. Customers pay based only on storage capacity

Answer: Customers pay based primarily on requests and compute duration

Rationale: Lambda pricing is based on factors such as the number of requests and the duration of function execution, with additional charges possible for features such as provisioned concurrency and certain networking configurations.

  1. A developer wants Lambda to execute automatically whenever a new object is uploaded to an Amazon S3 bucket. Which capability should be used?

A. Lambda event notification B. Amazon EC2 Auto Scaling C. Amazon CloudFront invalidation D. AWS Config rule

Answer: Lambda event notification

Rationale: Amazon S3 can generate event notifications when objects are created or modified and invoke a Lambda function in response.

  1. Which AWS service is commonly used to provide an HTTP API endpoint that invokes Lambda functions?

A. Amazon Route 53 B. Amazon API Gateway C. Amazon EBS D. AWS Direct Connect

  1. A Lambda function processes an event and then terminates. Which statement best describes the server management responsibility?

A. The customer must patch the operating system B. The customer must manually provision EC2 instances C. AWS manages the underlying infrastructure D. The customer must install hypervisors

Answer: AWS manages the underlying infrastructure

Rationale: Lambda is serverless. AWS manages the underlying compute infrastructure, operating systems, capacity provisioning, and much of the infrastructure maintenance.

  1. A Lambda function is invoked 100,000 times. Each invocation runs for a different amount of time. Which pricing factor is most directly associated with the compute portion of the bill?

A. Number of Availability Zones B. Function execution duration C. Number of IAM users D. Number of S3 buckets

Answer: Function execution duration

Rationale: Lambda compute charges are influenced by the amount of execution time and the configured memory allocation. Request charges may also apply.

  1. Which programming approach is most appropriate for AWS Lambda?

A. Long-running stateful server process B. Short-lived event-driven function C. Dedicated database server D. Permanent operating system service

Answer: Short-lived event-driven function

Rationale: Lambda is designed for event-driven workloads where code executes in response to events or requests rather than operating as a continuously running server process.

10.A company wants to invoke a Lambda function every night at midnight. Which service can provide the scheduled event?

A. Amazon EventBridge B. Amazon EBS C. Amazon RDS D. AWS Artifact

Answer: Amazon EventBridge

Rationale: Amazon EventBridge supports scheduled rules that can invoke targets such as Lambda functions according to defined schedules.

11.Which feature allows Lambda functions to respond to messages from Amazon SQS?

A. Lambda event source mapping B. Amazon CloudFront origin group C. Route 53 health check D. IAM Access Analyzer

Answer: Lambda event source mapping

Rationale: Lambda event source mappings poll supported event sources such as Amazon SQS and invoke Lambda functions with batches of records.

A. AWS Secrets Manager B. Amazon CloudFront C. Amazon Route 53 D. Amazon EBS

Answer: AWS Secrets Manager

Rationale: AWS Secrets Manager is designed to securely store, retrieve, and manage sensitive information such as database credentials and API keys.

15.A developer stores non-sensitive configuration values such as an application environment name in Lambda. Which feature can provide these values to the function?

A. Environment variables B. Security groups only C. Availability Zones D. EBS snapshots

Answer: Environment variables

Rationale: Lambda environment variables allow configuration values to be passed to the function without hard-coding them directly into the source code.

16.Which Lambda feature can reduce startup latency for functions that require predictable low latency?

A. Provisioned concurrency B. S3 Glacier C. EBS snapshots D. Amazon Macie

Answer: Provisioned concurrency

Rationale: Provisioned concurrency keeps execution environments initialized and ready to respond, reducing the likelihood of cold-start latency for supported workloads.

17.What is a Lambda cold start?

A. Failure to connect to an S3 bucket B. Initialization latency when Lambda creates a new execution environment C. Shutdown of an EC2 instance D. Deletion of a Lambda function

Answer: Initialization latency when Lambda creates a new execution environment

Rationale: A cold start occurs when Lambda must initialize a new execution environment before processing an invocation, adding latency to that invocation.

18.A company needs extremely low and consistent response latency from a Lambda-based API. Which feature should the company evaluate?

A. Provisioned concurrency B. S3 lifecycle policies C. Amazon EBS encryption D. Route 53 DNSSEC

Answer: Provisioned concurrency

Rationale: Provisioned concurrency is designed to keep Lambda execution environments initialized, helping reduce cold-start latency and improve response-time consistency.

19.Which statement about Lambda execution environments is correct?

Answer: /tmp

Rationale: Lambda provides temporary ephemeral storage through the /tmp directory within the execution environment.

22.A Lambda function must process a large number of independent events simultaneously. Which Lambda characteristic helps support this workload?

A. Automatic scaling of concurrent executions B. Manual server patching C. Fixed physical servers D. Permanent virtual machines

Answer: Automatic scaling of concurrent executions

Rationale: Lambda can create additional execution environments as invocation demand increases, subject to concurrency limits and service quotas.

23.What does Lambda concurrency represent?

A. Number of IAM policies attached to a function B. Number of function invocations being processed simultaneously C. Number of S3 objects processed per month D. Number of Availability Zones used by a function

Answer: Number of function invocations being processed simultaneously

Rationale: Concurrency represents the number of Lambda function executions that are running at the same time.

24.A company wants to guarantee that a particular Lambda function has a reserved amount of concurrency so other functions cannot consume it. Which feature should be used?

A. Reserved concurrency B. S3 versioning C. API caching D. DynamoDB Streams

Answer: Reserved concurrency

Rationale: Reserved concurrency allocates a dedicated concurrency limit to a function and also prevents that function from using more than the reserved amount.

25.A Lambda function unexpectedly receives a very large number of requests. What AWS mechanism helps protect the function from unlimited simultaneous execution?

A. Concurrency limits B. S3 versioning C. IAM groups D. Route 53 records

Answer: Concurrency limits

Rationale: Lambda concurrency controls limit the number of simultaneous executions and help manage scaling behavior when invocation rates increase.

26.Which service can capture Lambda logs and metrics for monitoring?

A. Amazon CloudWatch B. Amazon Route 53 C. AWS Artifact D. Amazon EBS

Answer: Amazon CloudWatch

A. AWS Lambda aliases with traffic shifting B. S3 Glacier C. IAM groups D. Amazon EBS

Answer: AWS Lambda aliases with traffic shifting

Rationale: Lambda aliases can point to function versions and can support weighted traffic distribution, enabling controlled deployments such as canary releases.

30.A development team wants to release a new Lambda version to only a small percentage of users before full deployment. Which approach is appropriate?

A. Weighted Lambda alias B. Delete the previous version immediately C. Disable IAM D. Use S3 Glacier

Answer: Weighted Lambda alias

Rationale: Weighted aliases can distribute invocation traffic between two Lambda versions, supporting gradual or canary deployments.

31.What is the primary benefit of AWS Lambda versions?

A. They provide immutable published snapshots of function code and configuration B. They permanently increase function memory C. They create EC2 instances D. They replace IAM policies

Answer: They provide immutable published snapshots of function code and configuration

Rationale: Published Lambda versions provide stable function versions that can be referenced by aliases and deployment processes.

32.Which feature provides a stable name that can point to a specific Lambda function version?

A. Lambda alias B. Security group C. VPC route table D. S3 bucket policy

Answer: Lambda alias

Rationale: A Lambda alias is a named pointer to a particular function version and can be updated as deployment versions change.

33.A Lambda function needs to connect securely to resources inside a private VPC. Which configuration is relevant?

A. Configure the Lambda function for VPC access B. Enable S3 static website hosting C. Create a CloudFront distribution only D. Use an IAM group

Answer: Configure the Lambda function for VPC access

Rationale: Lambda functions can be configured to access resources within a VPC, such as private databases or internal services, using appropriate subnet and security-group configuration.

C. Amazon Route 53 D. AWS Artifact

Answer: DynamoDB Streams

Rationale: DynamoDB Streams captures item-level changes and can be configured as an event source for Lambda processing.

37.A company wants to execute Lambda whenever records are added to a Kinesis data stream. Which capability should it use?

A. Lambda event source mapping B. Amazon EBS encryption C. Route 53 routing policy D. S3 lifecycle configuration

Answer: Lambda event source mapping

Rationale: Lambda can consume records from Amazon Kinesis Data Streams through event source mappings and process batches of records.

38.Which AWS service is designed to provide event routing between producers and consumers, including Lambda?

A. Amazon EventBridge B. Amazon EBS C. Amazon RDS D. AWS Backup

Answer: Amazon EventBridge

Rationale: EventBridge provides an event bus architecture for routing events from AWS services, SaaS applications, and custom applications to targets such as Lambda.

39.A company wants to invoke different Lambda functions based on the content or source of an event. Which service is particularly suitable?

A. Amazon EventBridge B. Amazon EBS C. AWS Snowcone D. Amazon RDS

Answer: Amazon EventBridge

Rationale: EventBridge rules can match event patterns and route matching events to appropriate targets, including different Lambda functions.

40.Which Lambda feature allows common libraries or dependencies to be packaged separately from the main function code?

A. Lambda layers B. Lambda aliases C. Lambda concurrency D. Lambda URLs

Answer: Lambda layers

Rationale: Lambda layers package reusable libraries, custom runtimes, or other dependencies that can be shared across multiple functions.

41.A company has 20 Lambda functions that use the same utility library. Which feature can reduce duplication?

A. Lambda layers B. Reserved concurrency

44.A developer wants to automatically retry failed asynchronous Lambda invocations. Which statement is most accurate?

A. Lambda provides asynchronous invocation retry behavior B. Lambda never retries asynchronous invocations C. EC2 must always perform the retry D. S3 must be used for all retries

Answer: Lambda provides asynchronous invocation retry behavior

Rationale: Lambda has built-in retry behavior for asynchronous invocations and can also route failed events to destinations such as SQS or SNS.

45.What is a Lambda dead-letter queue commonly used for?

A. Capturing failed asynchronous invocation events B. Increasing Lambda memory C. Hosting Lambda source code D. Replacing IAM policies

Answer: Capturing failed asynchronous invocation events

Rationale: A dead-letter queue can retain events that Lambda could not successfully process after the configured asynchronous retry behavior.

46.Which services can be used as Lambda asynchronous invocation destinations?

A. Amazon SQS and Amazon SNS B. Amazon EBS only C. Amazon Route 53 only D. AWS Artifact only

Answer: Amazon SQS and Amazon SNS

Rationale: Lambda destinations can route invocation results, such as successful or failed asynchronous executions, to supported services including SQS, SNS, EventBridge, and other targets depending on configuration.

47.A company wants to trace requests as they pass through API Gateway and Lambda. Which AWS service is most appropriate?

A. AWS X-Ray B. Amazon EBS C. AWS Artifact D. Amazon Route 53

Answer: AWS X-Ray

Rationale: AWS X-Ray provides distributed tracing capabilities that help identify latency and errors across applications and services.

48.Which Lambda capability helps developers deploy code without managing the underlying operating system?

A. Serverless execution environment B. Dedicated EC2 instance C. Manual AMI patching D. Physical server management

Answer: Serverless execution environment

Rationale: Lambda abstracts the underlying compute infrastructure, allowing developers to focus on function code rather than operating-system and server maintenance.