1What is the primary characteristic of a 'Serverless' architecture regarding infrastructure management?
A.Developers must manually patch the operating system
B.There are no physical servers involved at all
C.Infrastructure management is offloaded to the cloud provider
D.Servers are managed by a third-party consultant
Correct Answer: Infrastructure management is offloaded to the cloud provider
Explanation:In serverless computing, the cloud provider handles the routine work of provisioning, maintaining, and scaling the server infrastructure, allowing developers to focus on code.
Incorrect! Try again.
2Which of the following is a key benefit of the AWS Lambda pricing model?
A.You pay a flat monthly fee regardless of usage
B.You pay only for the compute time consumed
C.You pay for the idle time when code is not running
D.You pay based on the size of the uploaded code zip file only
Correct Answer: You pay only for the compute time consumed
Explanation:AWS Lambda charges based on the number of requests and the duration the code executes (to the nearest millisecond), meaning there is no charge when the code is not running.
Incorrect! Try again.
3In the context of AWS Lambda, what is a 'Cold Start'?
A.The time it takes to upload code to AWS
B.The latency experienced when a function is invoked after being idle
C.The process of rebooting the entire AWS region
D.Starting a function using the AWS CLI
Correct Answer: The latency experienced when a function is invoked after being idle
Explanation:A cold start occurs when AWS Lambda must initialize a new execution environment (container) to handle a request because no warm environments are available.
Incorrect! Try again.
4Which AWS service allows you to create, publish, maintain, monitor, and secure APIs at any scale?
A.AWS Lambda
B.Amazon API Gateway
C.Amazon SNS
D.AWS Step Functions
Correct Answer: Amazon API Gateway
Explanation:Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale.
Incorrect! Try again.
5What is the maximum execution timeout limit for a single AWS Lambda function invocation?
A.5 minutes
B.15 minutes
C.1 hour
D.24 hours
Correct Answer: 15 minutes
Explanation:The maximum hard limit for an AWS Lambda function execution is 900 seconds (15 minutes).
Incorrect! Try again.
6When configuring AWS Lambda, how is CPU power allocated?
A.You select the number of vCPUs directly
B.It is allocated proportionally to the amount of memory configured
C.It is determined by the size of the code package
D.It is fixed for all functions regardless of configuration
Correct Answer: It is allocated proportionally to the amount of memory configured
Explanation:In AWS Lambda, you cannot select CPU independently. AWS allocates CPU power linearly in proportion to the amount of memory you configure.
Incorrect! Try again.
7Which AWS service is a serverless compute engine for containers that works with both Amazon ECS and Amazon EKS?
A.Amazon EC2
B.AWS Fargate
C.AWS Beanstalk
D.Amazon Lightsail
Correct Answer: AWS Fargate
Explanation:AWS Fargate is a serverless compute engine for containers that removes the need to provision and manage servers, working with both ECS and EKS.
Incorrect! Try again.
8In a microservices architecture, what is the primary role of Amazon ECS?
A.To store Docker images
B.To run Lambda functions
C.To orchestrate and manage Docker containers
D.To act as an API Gateway
Correct Answer: To orchestrate and manage Docker containers
Explanation:Amazon Elastic Container Service (ECS) is a fully managed container orchestration service that helps you deploy, manage, and scale containerized applications.
Incorrect! Try again.
9Which principle of the Well-Architected Framework is addressed by using AWS X-Ray in a serverless application?
A.Cost Optimization
B.Operational Excellence
C.Sustainability
D.Reliability
Correct Answer: Operational Excellence
Explanation:AWS X-Ray helps developers analyze and debug production, distributed applications (monitoring and observability), which is a key component of Operational Excellence.
Incorrect! Try again.
10What is the purpose of an 'Execution Role' in AWS Lambda?
A.To allow users to login to the Lambda console
B.To define which users can delete the function
C.To grant the Lambda function permissions to access other AWS services
D.To encrypt the function code
Correct Answer: To grant the Lambda function permissions to access other AWS services
Explanation:An IAM Execution Role defines the permissions that the Lambda function itself has to interact with other AWS services like S3, DynamoDB, or CloudWatch.
Incorrect! Try again.
11Which feature of Amazon API Gateway allows you to route requests to different versions of your API (e.g., prod, dev)?
A.Resources
B.Stages
C.Methods
D.Models
Correct Answer: Stages
Explanation:API Gateway uses Stages to manage different lifecycles of an API, such as development, test, and production environments.
Incorrect! Try again.
12How should a stateless serverless function handle persistent data?
A.Store it in the function's local file system (/tmp) permanently
B.Keep it in a global variable within the code
C.Store it in an external stateful service like Amazon DynamoDB or S3
D.Data cannot be persisted in serverless architectures
Correct Answer: Store it in an external stateful service like Amazon DynamoDB or S3
Explanation:Since Lambda functions are stateless and ephemeral, any data that needs to persist across invocations must be stored in an external service like database or object storage.
Incorrect! Try again.
13What is 'Lambda Proxy Integration' in API Gateway?
A.A way to cache API responses
B.A setup where the raw request is passed directly to Lambda and the function handles the response format
C.A method to use EC2 instances as proxies
D.A security feature to hide the Lambda ARN
Correct Answer: A setup where the raw request is passed directly to Lambda and the function handles the response format
Explanation:Proxy integration allows the API Gateway to pass the entire client request to the Lambda function and allows the function to determine the HTTP response headers and body.
Incorrect! Try again.
14Which AWS container service is best suited for users who want to use Kubernetes without managing the control plane?
A.Amazon ECS
B.Amazon EKS
C.AWS Lambda
D.Amazon ECR
Correct Answer: Amazon EKS
Explanation:Amazon Elastic Kubernetes Service (EKS) provides a managed Kubernetes control plane, allowing users to run Kubernetes without installing or maintaining the control plane software.
Incorrect! Try again.
15To optimize costs in a high-traffic serverless API, what feature of API Gateway should be enabled to reduce the number of calls to the backend Lambda?
A.Throttling
B.API Caching
C.CORS
D.Usage Plans
Correct Answer: API Caching
Explanation:Enabling API Caching allows API Gateway to store responses for a specified TTL, reducing the number of calls made to the backend endpoint and lowering costs/latency.
Incorrect! Try again.
16What is a 'Layer' in AWS Lambda?
A.A security group setting
B.A mechanism to pull in additional code or libraries separately from the main deployment package
C.A versioning tool for API Gateway
D.A backup of the function code
Correct Answer: A mechanism to pull in additional code or libraries separately from the main deployment package
Explanation:Lambda Layers allow you to package libraries, custom runtimes, or other dependencies separately, reducing the size of the main deployment archive and promoting code reuse.
Incorrect! Try again.
17Which Well-Architected principle suggests using 'asynchronous' design patterns (like SQS) to decouple serverless components?
A.Reliability
B.Cost Optimization
C.Security
D.Sustainability
Correct Answer: Reliability
Explanation:Decoupling components using asynchronous patterns (queues/topics) prevents failures in one component from cascading to others, thereby increasing the Reliability of the system.
Incorrect! Try again.
18What happens if an asynchronous Lambda invocation fails?
A.It is discarded immediately
B.It returns a 500 error to the user immediately
C.AWS Lambda automatically retries the invocation twice
D.The entire AWS region shuts down
Correct Answer: AWS Lambda automatically retries the invocation twice
Explanation:For asynchronous invocations, Lambda places the event in a queue and automatically retries the function twice (for a total of 3 attempts) if it fails.
Incorrect! Try again.
19What is the purpose of Amazon ECR (Elastic Container Registry)?
A.To run containers
B.To store, manage, and deploy Docker container images
C.To load balance container traffic
D.To monitor container logs
Correct Answer: To store, manage, and deploy Docker container images
Explanation:Amazon ECR is a fully managed Docker container registry that makes it easy to store, manage, and deploy container images.
Incorrect! Try again.
20Which architectural pattern is commonly used in serverless to handle complex workflows involving multiple Lambda functions?
A.Monolithic architecture
B.Orchestration using AWS Step Functions
C.Hard-coding calls inside functions
D.Manual triggering
Correct Answer: Orchestration using AWS Step Functions
Explanation:AWS Step Functions provides serverless orchestration for modern applications, allowing you to coordinate multiple Lambda functions into flexible workflows (state machines).
Incorrect! Try again.
21Regarding Security in Serverless (Well-Architected), what is the 'Principle of Least Privilege'?
A.Giving all functions Admin access to ensure they work
B.Granting only the permissions necessary to perform a task
C.Removing all permissions from functions
D.Using only public subnets
Correct Answer: Granting only the permissions necessary to perform a task
Explanation:The Principle of Least Privilege dictates that a Lambda function should only have the IAM permissions strictly required to do its job, minimizing the blast radius if compromised.
Incorrect! Try again.
22Which mechanism can be used to authorize API Gateway requests using a Lambda function?
A.IAM Policy
B.Lambda Authorizer
C.Security Groups
D.NACLs
Correct Answer: Lambda Authorizer
Explanation:A Lambda Authorizer (formerly known as a custom authorizer) is a Lambda function that you provide to control access to your API API Gateway.
Incorrect! Try again.
23How can you mitigate the issue of 'noisy neighbors' when running microservices on AWS Lambda?
A.Use Reserved Concurrency
B.Use Provisioned IOPS
C.Use a larger EC2 instance
D.Use a Load Balancer
Correct Answer: Use Reserved Concurrency
Explanation:Reserved Concurrency guarantees a specific number of concurrent executions for a function, ensuring that other functions consuming the account's concurrency limit do not starve it.
Incorrect! Try again.
24What is the 'Launch Type' in Amazon ECS where you manage the underlying EC2 instances?
A.Fargate Launch Type
B.EC2 Launch Type
C.Serverless Launch Type
D.Hybrid Launch Type
Correct Answer: EC2 Launch Type
Explanation:With the EC2 Launch Type in ECS, you are responsible for provisioning, patching, and scaling the cluster of EC2 instances that host your containers.
Incorrect! Try again.
25Which environment variable helps handle database connection reuse in AWS Lambda to improve performance?
Explanation:In Node.js runtimes, setting context.callbackWaitsForEmptyEventLoop = false allows the function to return a response immediately without waiting for the database connection (event loop) to close, allowing connection reuse in subsequent invocations.
Incorrect! Try again.
26Ideally, how should a serverless function be designed regarding 'idempotency'?
A.It doesn't matter
B.It should produce the same result if executed multiple times with the same input
C.It should produce different results every time
D.It should only be executable once per day
Correct Answer: It should produce the same result if executed multiple times with the same input
Explanation:Idempotency ensures that if a function is retried (due to network issues or failures), it does not corrupt data or duplicate transactions.
Incorrect! Try again.
27Which tool allows you to define serverless applications using a simplified syntax which is then transformed into CloudFormation?
A.AWS SAM (Serverless Application Model)
B.AWS EC2 Console
C.Amazon RDS
D.AWS OpsWorks
Correct Answer: AWS SAM (Serverless Application Model)
Explanation:AWS SAM is an open-source framework that provides a shorthand syntax to express functions, APIs, databases, and event source mappings, which expands into standard CloudFormation.
Incorrect! Try again.
28What is the maximum amount of ephemeral storage (/tmp) available to a Lambda function (as of recent updates)?
A.512 MB only
B.Up to 10 GB
C.Up to 100 GB
D.Unlimited
Correct Answer: Up to 10 GB
Explanation:AWS Lambda allows you to configure ephemeral storage (/tmp) between 512 MB and 10,240 MB (10 GB).
Incorrect! Try again.
29In a serverless architecture, where do application logs typically go by default?
A.A local text file
B.Amazon CloudWatch Logs
C.Amazon S3
D.They are deleted immediately
Correct Answer: Amazon CloudWatch Logs
Explanation:By default, AWS Lambda automatically integrates with CloudWatch Logs, creating a log group for each function and streaming stdout/stderr there.
Incorrect! Try again.
30Which API Gateway endpoint type is best suited for clients located geographically close to a specific AWS region?
A.Edge-Optimized
B.Regional
C.Private
D.Global
Correct Answer: Regional
Explanation:Regional endpoints are intended for clients in the same region. Edge-optimized endpoints use CloudFront to serve globally distributed clients.
Incorrect! Try again.
31To enable private communication between an API Gateway and a backend service in a VPC without exposing it to the internet, what should be used?
A.Internet Gateway
B.VPC Link
C.NAT Gateway
D.Direct Connect
Correct Answer: VPC Link
Explanation:VPC Link allows API Gateway to access resources within a VPC (like an Application Load Balancer) securely without traversing the public internet.
Incorrect! Try again.
32What is 'Provisioned Concurrency' in AWS Lambda designed to solve?
A.High storage costs
B.Cold start latency
C.Security vulnerabilities
D.Memory leaks
Correct Answer: Cold start latency
Explanation:Provisioned Concurrency initializes a requested number of execution environments so that they are ready to respond immediately to your function's invocations, eliminating cold starts.
Incorrect! Try again.
33Which service acts as a 'Service Mesh' to standardize how microservices communicate on AWS (ECS/EKS)?
A.AWS App Mesh
B.Amazon MQ
C.AWS Glue
D.Amazon Connect
Correct Answer: AWS App Mesh
Explanation:AWS App Mesh provides application-level networking (service mesh) to make it easy for your services to communicate with each other across multiple types of compute infrastructure.
Incorrect! Try again.
34When building a serverless web application, which service is commonly used to host static assets (HTML/CSS/JS)?
A.AWS Lambda
B.Amazon S3
C.Amazon API Gateway
D.Amazon DynamoDB
Correct Answer: Amazon S3
Explanation:Amazon S3 is the standard solution for hosting static website content in a serverless architecture, often served via CloudFront.
Incorrect! Try again.
35What is the primary constraint of the 'Lambda' processing model regarding processing time?
A.It is designed for long-running batch jobs (hours)
B.It is designed for short-lived, event-driven tasks
C.It must run continuously
D.It pauses during high traffic
Correct Answer: It is designed for short-lived, event-driven tasks
Explanation:Lambda is designed for short-lived tasks (max 15 mins). For longer processes, container services like ECS or AWS Batch are more appropriate.
Incorrect! Try again.
36How does AWS Fargate differ from the EC2 launch type in terms of pricing?
A.Fargate charges per instance per hour
B.Fargate charges based on vCPU and memory resources consumed per second
C.Fargate is free
D.Fargate charges based on the number of users
Correct Answer: Fargate charges based on vCPU and memory resources consumed per second
Explanation:With Fargate, you pay for the amount of vCPU and memory resources that your containerized application requests, calculated per second.
Incorrect! Try again.
37Which Well-Architected principle implies using Managed Services (like DynamoDB or SQS) over self-managed servers to reduce environmental impact?
A.Operational Excellence
B.Security
C.Sustainability
D.Performance Efficiency
Correct Answer: Sustainability
Explanation:Using managed services improves sustainability because AWS optimizes the utilization of the shared infrastructure, reducing the overall carbon footprint compared to underutilized self-managed servers.
Incorrect! Try again.
38In API Gateway, what is 'Throttling'?
A.Increasing the speed of the API
B.Limiting the number of requests a user can make per second
C.Blocking all traffic
D.Encrypting the data
Correct Answer: Limiting the number of requests a user can make per second
Explanation:Throttling prevents your API from being overwhelmed by too many requests, protecting backend systems from spikes in traffic.
Incorrect! Try again.
39What is a 'Dead Letter Queue' (DLQ) used for in Lambda?
A.Storing successfully processed events
B.Storing events that failed to process after all retry attempts
C.Queueing requests when the system is cold
D.Sending emails to developers
Correct Answer: Storing events that failed to process after all retry attempts
Explanation:A DLQ captures asynchronous events that fail processing after retries, allowing developers to analyze and debug the failure later.
Incorrect! Try again.
40Which AWS service is used for service discovery in ECS to allow containers to find each other by name?
A.AWS Cloud Map
B.Amazon Route 53 (Public)
C.AWS Config
D.Amazon CloudFront
Correct Answer: AWS Cloud Map
Explanation:AWS Cloud Map allows you to register any application resources, such as microservices, and define custom names for them, which ECS uses for service discovery.
Incorrect! Try again.
41When defining a Lambda function in CloudFormation, where is the code usually located?
A.Hardcoded in the template (for very small functions) or in an S3 bucket
B.On a physical USB drive
C.In an EC2 instance
D.In Amazon RDS
Correct Answer: Hardcoded in the template (for very small functions) or in an S3 bucket
Explanation:Lambda code in CloudFormation is either inline (ZipFile property) for simple code or referenced via an S3 Bucket and Key.
Incorrect! Try again.
42Which architectural pattern involves replacing a monolithic application incrementally with microservices?
A.Strangler Fig Pattern
B.Adapter Pattern
C.Singleton Pattern
D.Factory Pattern
Correct Answer: Strangler Fig Pattern
Explanation:The Strangler Fig pattern involves gradually creating a new system around the edges of the old, letting it grow and slowly replace the old system until the old system can be strangled (decommissioned).
Incorrect! Try again.
43What is the function of the 'Task Definition' in Amazon ECS?
A.It acts as a load balancer
B.It is a blueprint that describes how a docker container should launch
C.It monitors the cost of the cluster
D.It installs the Docker engine
Correct Answer: It is a blueprint that describes how a docker container should launch
Explanation:A Task Definition is a text file (JSON) that describes one or more containers (up to 10) that form your application, including image URI, memory, and CPU requirements.
Incorrect! Try again.
44How can you secure environment variables in AWS Lambda that contain sensitive information?
A.Write them in plain text in the console
B.Use AWS KMS (Key Management Service) to encrypt them
C.Store them in the function code comments
D.Save them in the description field
Correct Answer: Use AWS KMS (Key Management Service) to encrypt them
Explanation:AWS Lambda allows you to use helpers to encrypt environment variables using AWS KMS, ensuring secrets are not visible in plain text in the console.
Incorrect! Try again.
45Which integration type in API Gateway is necessary if you need to transform the client request body before sending it to the backend?
A.Lambda Proxy Integration
B.AWS Integration (Non-Proxy)
C.HTTP Proxy
D.Mock Integration
Correct Answer: AWS Integration (Non-Proxy)
Explanation:In non-proxy (custom) integration, you can use mapping templates (VTL) to transform the request payload into a format required by the backend, and transform the response back.
Incorrect! Try again.
46For a memory-intensive image processing microservice, which configuration change in Lambda will most likely improve execution speed?
A.Increasing the Timeout
B.Increasing the Memory allocation
C.Reducing the code size
D.Using Python instead of Node.js
Correct Answer: Increasing the Memory allocation
Explanation:Since CPU is allocated proportionally to memory, increasing memory allocation provides more CPU power, which significantly speeds up computational tasks like image processing.
Incorrect! Try again.
47What is 'Event Source Mapping' in AWS Lambda?
A.A map of where AWS data centers are located
B.A configuration that polls a stream or queue (like Kinesis or SQS) and invokes the function
C.A diagram of the architecture
D.A way to map IP addresses
Correct Answer: A configuration that polls a stream or queue (like Kinesis or SQS) and invokes the function
Explanation:Event Source Mapping is used for services that don't invoke Lambda directly (poll-based services). The Lambda service reads items from the source (e.g., Kinesis, DynamoDB Streams, SQS) and invokes the function.
Incorrect! Try again.
48When running microservices on EKS, what is a 'Pod'?
A.A specific type of EC2 instance
B.The smallest deployable unit of computing in Kubernetes
C.A storage volume
D.A networking rule
Correct Answer: The smallest deployable unit of computing in Kubernetes
Explanation:In Kubernetes (and EKS), a Pod is the smallest execution unit, representing a single instance of a running process in your cluster, usually containing one or more containers.
Incorrect! Try again.
49Which HTTP method is typically used in API Gateway to handle CORS preflight requests?
A.GET
B.POST
C.OPTIONS
D.DELETE
Correct Answer: OPTIONS
Explanation:Browsers send an HTTP OPTIONS request to the server (Preflight) to check which HTTP methods and headers are allowed before sending the actual request, facilitating CORS.
Incorrect! Try again.
50What is the primary benefit of using 'Aliases' in AWS Lambda?
A.They allow you to rename the function
B.They point to specific versions of a function, allowing for traffic shifting and rollback
C.They increase the memory limit
D.They automatically debug the code
Correct Answer: They point to specific versions of a function, allowing for traffic shifting and rollback
Explanation:Aliases are pointers to specific versions. They enable safe deployments by allowing you to point 'PROD' to a stable version and shift traffic gradually to a new version.
Incorrect! Try again.
Give Feedback
Help us improve by sharing your thoughts or reporting issues.