AWS / Cloud Computing MCQ
Test your AWS and cloud computing knowledge with 100 multiple choice questions covering fundamentals to advanced concepts, with instant feedback and explanations.
How This Practice Test Works
Every question below expands right on this page — click a question to reveal its four options, pick the one you think is correct, and you'll get instant feedback along with the correct answer and a short explanation of the reasoning. Questions are grouped by difficulty, so start with the 40 beginner questions to confirm your fundamentals, work through the 40 intermediate ones, and finish with the 20 advanced questions that mirror what exams and technical screenings actually ask. There's no sign-up, no timer, and no limit — retake the test as often as you like.
Curated by Tech Baithak Editorial Team · Last updated: June 2026
1
What is "cloud computing"?
Correct Answer
The on-demand delivery of computing resources — such as servers, storage, and databases — over the internet with pay-as-you-go pricing
Explanation
Cloud computing provides on-demand access to computing resources over the internet, allowing users to pay only for what they use instead of owning physical hardware.
2
What does "AWS" stand for?
Correct Answer
Amazon Web Services
Explanation
AWS stands for Amazon Web Services, a comprehensive cloud computing platform offered by Amazon providing a wide range of infrastructure and application services.
3
What is "Amazon EC2" primarily used for?
Correct Answer
Providing resizable virtual servers (compute capacity) in the cloud
Explanation
Amazon EC2 (Elastic Compute Cloud) provides scalable virtual machines (instances) that you can configure and use to run applications in the cloud.
4
What is "Amazon S3" used for?
Correct Answer
Object storage for storing and retrieving any amount of data, such as files, images, and backups
Explanation
Amazon S3 (Simple Storage Service) is a scalable object storage service used for storing files, backups, static website assets, and more, organized into "buckets".
5
What is a "Region" in AWS?
Correct Answer
A geographic area containing multiple, isolated locations called Availability Zones
Explanation
An AWS Region is a geographic area (e.g. "us-east-1") composed of multiple Availability Zones, each consisting of one or more discrete data centers.
6
What is an "Availability Zone" (AZ)?
Correct Answer
One or more discrete data centers within a Region, each with independent power, cooling, and networking, designed to be isolated from failures in other AZs
Explanation
Availability Zones are isolated locations within a Region; deploying resources across multiple AZs increases fault tolerance, since a failure in one AZ shouldn't affect others.
7
What is "IAM" in AWS used for?
Correct Answer
Identity and Access Management — controlling who can access AWS resources and what actions they can perform
Explanation
IAM (Identity and Access Management) lets you securely manage access to AWS services and resources by creating users, groups, roles, and policies that define permissions.
8
What is the AWS "root user"?
Correct Answer
The account created when you first set up AWS, which has complete access to all resources and billing — best practice is to avoid using it for daily tasks
Explanation
The root user has unrestricted access to the entire AWS account, including billing. AWS recommends securing it (e.g. with MFA) and creating individual IAM users with limited permissions for everyday tasks.
9
What is the difference between "horizontal scaling" and "vertical scaling"?
Correct Answer
Horizontal scaling adds more instances/machines to handle load, while vertical scaling increases the resources (CPU, RAM) of an existing machine
Explanation
Horizontal scaling ("scaling out") adds more machines/instances, while vertical scaling ("scaling up") increases the capacity of a single machine, such as upgrading to a larger EC2 instance type.
10
What is "Amazon RDS"?
Correct Answer
A managed relational database service that simplifies setup, operation, and scaling of databases like MySQL, PostgreSQL, and others
Explanation
Amazon RDS (Relational Database Service) manages common database administration tasks like backups, patching, and scaling for engines such as MySQL, PostgreSQL, MariaDB, and SQL Server.
11
What is the "pay-as-you-go" pricing model in cloud computing?
Correct Answer
You pay only for the resources you actually consume, with no upfront long-term commitment required
Explanation
Pay-as-you-go pricing means you are billed based on actual usage (e.g. compute hours, storage used), allowing costs to scale with demand rather than requiring large upfront capital expenditure.
12
What is a "Virtual Private Cloud" (VPC) in AWS?
Correct Answer
A logically isolated virtual network within AWS where you can launch resources, with control over IP address ranges, subnets, and routing
Explanation
A VPC lets you define your own isolated network environment in AWS, including IP addressing, subnets, route tables, and gateways, giving you control similar to a traditional on-premises network.
13
What is the difference between "public cloud" and "private cloud"?
Correct Answer
A public cloud is owned and operated by a third-party provider and shared among multiple organizations, while a private cloud is dedicated to a single organization, either on-premises or hosted
Explanation
Public clouds (like AWS, Azure, GCP) provide shared infrastructure to many customers, while private clouds are dedicated to a single organization for greater control, often used for compliance or security requirements.
14
What is "Infrastructure as a Service" (IaaS)?
Correct Answer
A cloud service model that provides virtualized computing resources like servers, storage, and networking, giving users control over the operating system and applications
Explanation
IaaS provides fundamental compute, storage, and networking resources on-demand, with the user responsible for managing the OS, middleware, and applications (e.g. AWS EC2, Azure VMs).
15
What is "Platform as a Service" (PaaS)?
Correct Answer
A model that provides a platform allowing customers to develop, run, and manage applications without managing the underlying infrastructure
Explanation
PaaS (e.g. AWS Elastic Beanstalk, Heroku) abstracts away infrastructure management, letting developers focus on writing and deploying code while the platform handles servers, scaling, and patching.
16
What is "Software as a Service" (SaaS)?
Correct Answer
A model where software applications are hosted by a provider and made available to users over the internet, typically via subscription
Explanation
SaaS delivers fully functional software applications over the internet (e.g. Gmail, Salesforce), with the provider managing all underlying infrastructure, platforms, and the application itself.
17
What is "Amazon CloudFront"?
Correct Answer
A content delivery network (CDN) service that speeds up distribution of content to users by caching it at edge locations worldwide
Explanation
CloudFront is AWS's CDN, caching content (web pages, images, videos) at edge locations close to users to reduce latency and improve performance.
18
What is the purpose of an "Elastic Load Balancer" (ELB) in AWS?
Correct Answer
To distribute incoming application traffic across multiple targets, such as EC2 instances, to improve availability and fault tolerance
Explanation
ELB automatically distributes incoming traffic across multiple targets in one or more Availability Zones, helping ensure no single instance is overwhelmed and improving fault tolerance.
19
What does "Amazon EBS" provide?
Correct Answer
Persistent block-level storage volumes for use with EC2 instances
Explanation
Amazon EBS (Elastic Block Store) provides durable, persistent block storage volumes that can be attached to EC2 instances, similar to a virtual hard drive.
20
What is "Amazon Route 53"?
Correct Answer
A scalable Domain Name System (DNS) web service used for domain registration and routing traffic to resources
Explanation
Route 53 is AWS's DNS service, used for domain registration, DNS routing, and health checking, helping route end-user requests to infrastructure running in AWS or elsewhere.
21
What is the purpose of "tags" in AWS?
Correct Answer
Key-value pairs attached to AWS resources used for organization, cost allocation, and access control
Explanation
Tags help organize and categorize AWS resources, useful for cost tracking, automation, and applying access control policies based on tag values.
22
What is "serverless computing"?
Correct Answer
A cloud execution model where the cloud provider automatically manages the infrastructure, and users only need to focus on writing code that runs in response to events
Explanation
Despite the name, servers are still involved — but the provider fully manages provisioning, scaling, and maintenance, so developers can focus purely on code (e.g. AWS Lambda).
23
What is "AWS Lambda"?
Correct Answer
A serverless compute service that runs code in response to events without requiring you to provision or manage servers
Explanation
AWS Lambda lets you run code in response to triggers (like HTTP requests or file uploads) without managing servers, automatically scaling and charging only for compute time consumed.
24
What is the function of a "Security Group" in AWS?
Correct Answer
A virtual firewall that controls inbound and outbound traffic for EC2 instances and other resources
Explanation
Security Groups act as virtual firewalls at the instance level, with rules specifying allowed inbound and outbound traffic based on protocol, port, and source/destination.
25
What is the "AWS Free Tier"?
Correct Answer
A program offering limited free usage of many AWS services for new accounts, useful for learning and testing
Explanation
The AWS Free Tier provides limited free usage (e.g. certain EC2 hours, S3 storage) for 12 months or always-free amounts for some services, allowing new users to explore AWS without immediate cost.
26
What is "elasticity" in the context of cloud computing?
Correct Answer
The ability of a system to automatically scale resources up or down based on demand
Explanation
Elasticity refers to a system's ability to dynamically acquire or release resources to match current demand, helping avoid both over-provisioning and under-provisioning.
27
What is the purpose of "Amazon CloudWatch"?
Correct Answer
A service for monitoring AWS resources and applications, collecting metrics, logs, and setting alarms
Explanation
CloudWatch collects and tracks metrics, monitors log files, and sets alarms to automatically react to changes in AWS resources, helping with observability and operational health.
28
What is a "subnet" in the context of a VPC?
Correct Answer
A range of IP addresses within a VPC, which can be designated as public or private depending on its route to the internet
Explanation
Subnets divide a VPC's IP address range into smaller segments, often placed in different Availability Zones, and classified as public (with internet access via an Internet Gateway) or private.
29
What is the purpose of "Amazon SNS"?
Correct Answer
A managed pub/sub messaging service used to send notifications to subscribers via email, SMS, or other endpoints
Explanation
Amazon SNS (Simple Notification Service) enables applications to send messages to multiple subscribers (email, SMS, SQS queues, Lambda functions) using a publish/subscribe model.
30
What is "Amazon SQS" used for?
Correct Answer
A fully managed message queuing service that enables decoupling and scaling of microservices and distributed systems
Explanation
Amazon SQS (Simple Queue Service) lets components of an application send, store, and receive messages asynchronously, helping decouple services so they can scale independently.
31
What is the "shared responsibility model" in cloud security?
Correct Answer
A model defining that the cloud provider is responsible for security "of" the cloud (infrastructure), while the customer is responsible for security "in" the cloud (data, access management, configurations)
Explanation
Under the shared responsibility model, AWS secures the underlying infrastructure (hardware, facilities, virtualization), while customers are responsible for securing their data, applications, and access configurations.
32
What is an "Amazon Machine Image" (AMI)?
Correct Answer
A template that contains the software configuration (OS, application server, applications) used to launch an EC2 instance
Explanation
An AMI provides the information required to launch an EC2 instance, including the operating system, pre-installed software, and configuration, allowing repeatable instance creation.
33
What is the purpose of "Amazon DynamoDB"?
Correct Answer
A fully managed NoSQL database service offering fast and flexible performance for key-value and document data
Explanation
DynamoDB is a managed NoSQL database designed for high-performance applications needing consistent, single-digit-millisecond latency at any scale, storing data as key-value pairs or documents.
34
What is the function of an "Internet Gateway" in a VPC?
Correct Answer
It allows communication between instances in a VPC and the internet
Explanation
An Internet Gateway is a horizontally scaled, redundant component attached to a VPC that allows resources within public subnets to communicate with the internet.
35
What does the term "on-demand instance" mean in EC2 pricing?
Correct Answer
Instances for which you pay for compute capacity by the hour or second, with no long-term commitments required
Explanation
On-Demand instances let you pay for compute capacity by the hour or second with no upfront payment or long-term commitment, ideal for unpredictable workloads.
36
What is the main benefit of using "Auto Scaling" with EC2?
Correct Answer
It automatically adjusts the number of EC2 instances based on demand, helping maintain performance while controlling costs
Explanation
Auto Scaling automatically adds or removes EC2 instances according to conditions you define, ensuring you have the right number of instances to handle the current load.
37
What is the difference between "Amazon S3" storage classes like "Standard" and "Glacier"?
Correct Answer
"Standard" is designed for frequently accessed data with low latency, while "Glacier" is a low-cost storage class designed for data archiving with longer retrieval times
Explanation
S3 offers multiple storage classes optimized for different access patterns and costs — Standard for frequently accessed data, and Glacier variants for low-cost, long-term archival with retrieval times ranging from minutes to hours.
38
What is the purpose of "AWS CloudFormation"?
Correct Answer
A service that allows you to model and provision AWS resources using templates written in JSON or YAML, enabling Infrastructure as Code
Explanation
CloudFormation lets you define your infrastructure as code in templates, which AWS uses to provision and configure resources consistently and repeatably (Infrastructure as Code).
39
What is a "multi-cloud" strategy?
Correct Answer
Using services from multiple cloud providers (e.g. AWS, Azure, GCP) within a single architecture, often to avoid vendor lock-in or leverage specific strengths
Explanation
Multi-cloud involves distributing workloads across multiple cloud providers, which can improve resilience and flexibility but adds operational complexity compared to a single-provider approach.
40
What is the purpose of "Amazon EC2 instance types" (e.g. t3, m5, c5)?
Correct Answer
They represent different combinations of CPU, memory, storage, and networking capacity optimized for different use cases, such as general purpose, compute-optimized, or memory-optimized workloads
Explanation
EC2 instance type families (e.g. "t" for burstable general purpose, "c" for compute-optimized, "r" for memory-optimized) let you choose hardware specifications matching your workload's needs.
1
What is the difference between an IAM "Role" and an IAM "User"?
Correct Answer
An IAM User is a permanent identity with long-term credentials for a person or app, while an IAM Role is an identity with temporary permissions that trusted entities (users, services, accounts) can assume without sharing long-term credentials
Explanation
Roles provide temporary, assumable credentials ideal for granting permissions to AWS services (like EC2 or Lambda) or for cross-account access, avoiding the need to embed long-term access keys.
2
What is the difference between a "Network ACL" and a "Security Group" in a VPC?
Correct Answer
A Security Group operates at the instance level and is stateful (return traffic is automatically allowed), while a Network ACL operates at the subnet level and is stateless (return traffic must be explicitly allowed by rules)
Explanation
Security Groups are stateful and apply to instances/ENIs, automatically allowing response traffic, while Network ACLs are stateless subnet-level firewalls that evaluate rules in numbered order and require explicit rules for both inbound and outbound traffic.
3
What is "Amazon ECS" and how does it relate to containers?
Correct Answer
A fully managed container orchestration service that allows you to run, stop, and manage Docker containers on a cluster of EC2 instances or with serverless Fargate
Explanation
Amazon ECS (Elastic Container Service) is AWS's native container orchestration platform, letting you deploy containerized applications either on managed EC2 instances or serverless infrastructure via AWS Fargate.
4
What is the difference between "AWS Fargate" and running containers on EC2 directly via ECS?
Correct Answer
Fargate is a serverless compute engine for containers that eliminates the need to provision and manage underlying EC2 instances, whereas running ECS on EC2 requires you to manage the cluster's instances yourself
Explanation
With Fargate, AWS manages the underlying compute infrastructure for your containers, so you don't need to provision, patch, or scale EC2 instances — you simply specify resource requirements for your tasks.
5
What is an "S3 bucket policy" and how does it differ from an IAM policy?
Correct Answer
A bucket policy is a resource-based policy attached to an S3 bucket defining access permissions for it (including cross-account access), while an IAM policy is identity-based, attached to users, groups, or roles to define what actions they can perform
Explanation
Bucket policies are attached to the resource (the S3 bucket) and are useful for cross-account access scenarios, while IAM policies are attached to identities (users/roles) and can apply across multiple services.
6
What is "Amazon VPC Peering"?
Correct Answer
A networking connection between two VPCs that enables routing traffic between them using private IP addresses, as if they were part of the same network
Explanation
VPC Peering connects two VPCs (in the same or different accounts/regions) so resources can communicate using private IPs, but peering connections are not transitive — each pair must be explicitly connected.
7
What is the purpose of "Auto Scaling Groups" (ASG) and "Launch Templates/Configurations"?
Correct Answer
A Launch Template/Configuration defines the instance configuration (AMI, instance type, etc.) to use when launching new instances, while an Auto Scaling Group manages the collection of instances, scaling policies, and health checks based on that template
Explanation
A Launch Template specifies what instances should look like (AMI, type, security groups), while the ASG uses it to launch/terminate instances automatically based on scaling policies and desired capacity.
8
What is "Amazon CloudTrail" used for?
Correct Answer
It logs and monitors API calls made within an AWS account, providing an audit trail of actions taken by users, roles, and services
Explanation
CloudTrail records account activity, including who made which API calls, when, and from where, which is essential for security analysis, compliance auditing, and troubleshooting.
9
What is the difference between "stateless" and "stateful" applications in the context of cloud architecture?
Correct Answer
A stateless app stores no session data between requests on the server, easing horizontal scaling, while a stateful app retains client session data, complicating scaling and often requiring sticky sessions or shared session stores
Explanation
Stateless applications are easier to scale because any instance can handle any request; stateful applications need mechanisms like sticky sessions or external session stores (e.g. ElastiCache, DynamoDB) to maintain consistency across instances.
10
What is "Amazon ElastiCache" used for?
Correct Answer
A managed in-memory caching service (supporting Redis or Memcached) used to improve application performance by reducing database load
Explanation
ElastiCache provides managed Redis or Memcached clusters, used to cache frequently accessed data in memory, significantly reducing latency and database load for read-heavy applications.
11
What is "cross-region replication" in S3, and what is a common use case?
Correct Answer
It automatically and asynchronously replicates objects from a bucket in one AWS region to a bucket in a different region, commonly used for disaster recovery, latency reduction, or compliance requirements
Explanation
Cross-Region Replication (CRR) copies objects across buckets in different regions, useful for meeting geographic data residency requirements, reducing latency for global users, or maintaining a disaster recovery copy.
12
What is the purpose of "AWS Auto Scaling" health checks, and what happens when an instance fails one?
Correct Answer
Health checks monitor instance status; if an instance fails, the Auto Scaling Group terminates it and launches a replacement to maintain the desired capacity
Explanation
Auto Scaling Groups periodically check instance health (EC2 status checks or ELB health checks); unhealthy instances are terminated and replaced automatically to maintain the desired number of healthy instances.
13
What is "AWS Key Management Service" (KMS) used for?
Correct Answer
Creating and managing cryptographic keys used to encrypt data across AWS services, with fine-grained access control via IAM and key policies
Explanation
KMS provides centralized management of encryption keys used by services like S3, EBS, and RDS to encrypt data at rest, with audit logging via CloudTrail and access controlled through IAM and key policies.
14
What is the purpose of "AWS Systems Manager Parameter Store"?
Correct Answer
It is a service for storing configuration data and secrets (such as database connection strings, API keys) in a centralized, hierarchical, and optionally encrypted manner
Explanation
Parameter Store provides secure, hierarchical storage for configuration data and secrets, which applications can retrieve at runtime instead of hardcoding sensitive values, with optional encryption via KMS.
15
What does it mean for an AWS service to be "Multi-AZ" (e.g. "RDS Multi-AZ")?
Correct Answer
It means the service automatically maintains a synchronous standby replica in a different Availability Zone, providing automatic failover for high availability in case the primary fails
Explanation
RDS Multi-AZ deployments maintain a synchronously replicated standby in another AZ; if the primary instance fails, RDS automatically fails over to the standby, minimizing downtime.
16
What is the difference between "RDS Read Replicas" and "Multi-AZ" deployments?
Correct Answer
Multi-AZ provides a synchronous standby for failover/high availability (not used for reads normally), while Read Replicas are asynchronously replicated copies that can serve read traffic to offload the primary, and can be promoted to standalone databases
Explanation
Multi-AZ focuses on availability via synchronous replication to a standby (not normally readable), while Read Replicas use asynchronous replication and can actively serve read queries to help scale read-heavy workloads.
17
What is "AWS Elastic Beanstalk"?
Correct Answer
A platform-as-a-service offering that automates deployment tasks like capacity provisioning, load balancing, scaling, and health monitoring for web applications, while still allowing access to underlying resources
Explanation
Elastic Beanstalk simplifies deploying and managing applications by handling infrastructure details automatically, while still giving developers the option to access and customize the underlying AWS resources (like EC2, ELB, ASG) if needed.
18
What is the purpose of "VPC Endpoints"?
Correct Answer
They allow private connections between a VPC and supported AWS services (or other VPCs) without requiring an internet gateway, NAT device, or public IP addresses
Explanation
VPC Endpoints (Gateway endpoints for S3/DynamoDB or Interface endpoints via PrivateLink for many other services) enable private connectivity to AWS services, keeping traffic within the AWS network and improving security.
19
What is the purpose of a "NAT Gateway" in a VPC?
Correct Answer
It allows instances in a private subnet to initiate outbound traffic to the internet (e.g. for updates) while preventing the internet from initiating connections to those instances
Explanation
A NAT Gateway enables instances in private subnets to access the internet (for software updates, etc.) for outbound connections, while blocking unsolicited inbound connections from the internet.
20
What is "Amazon Aurora"?
Correct Answer
A MySQL- and PostgreSQL-compatible relational database engine built for the cloud, offering performance and availability improvements over standard MySQL/PostgreSQL while being part of the RDS family
Explanation
Aurora is AWS's proprietary database engine, compatible with MySQL and PostgreSQL wire protocols, offering up to several times the throughput of standard MySQL with built-in high availability and storage scaling.
21
What is the purpose of "Reserved Instances" in EC2 pricing?
Correct Answer
They provide a significant discount compared to On-Demand pricing in exchange for committing to use a specific instance type in a specific region for a 1- or 3-year term
Explanation
Reserved Instances offer substantial discounts (up to 70%+) over On-Demand pricing in exchange for a 1- or 3-year commitment, suitable for predictable, steady-state workloads.
22
What is the purpose of "Spot Instances" in EC2, and what is their main trade-off?
Correct Answer
Spot Instances let you use spare EC2 capacity at a significant discount compared to On-Demand prices, but AWS can reclaim (interrupt) them with short notice when capacity is needed elsewhere
Explanation
Spot Instances can be up to 90% cheaper than On-Demand, making them great for fault-tolerant or flexible workloads (like batch processing), but AWS can interrupt them with a two-minute warning when capacity is reclaimed.
23
What is the purpose of "Amazon API Gateway"?
Correct Answer
A fully managed service for creating, publishing, maintaining, monitoring, and securing APIs at any scale, often used as the front door for applications accessing backend services like Lambda
Explanation
API Gateway handles tasks like request routing, authorization, throttling, and monitoring for APIs, commonly used as an entry point to trigger Lambda functions or other backend services.
24
What is the difference between "vertical" and "horizontal" Auto Scaling approaches in AWS, and which does AWS Auto Scaling primarily support?
Correct Answer
AWS Auto Scaling primarily supports horizontal scaling — adding or removing instances — since changing an instance's size (vertical scaling) typically requires a stop/start and is not done automatically in real time by Auto Scaling Groups
Explanation
EC2 Auto Scaling Groups scale horizontally by launching/terminating instances based on demand; resizing an existing instance's type (vertical scaling) generally requires stopping and changing the instance type manually.
25
What is "AWS Organizations" used for?
Correct Answer
A service for centrally managing and governing multiple AWS accounts, enabling consolidated billing, policy-based controls (SCPs), and account grouping
Explanation
AWS Organizations lets enterprises manage multiple AWS accounts centrally, applying Service Control Policies (SCPs) to restrict permissions across accounts and consolidating billing for cost management.
26
What is the purpose of "Amazon S3 Lifecycle Policies"?
Correct Answer
They automatically transition objects between storage classes (e.g. from Standard to Glacier) or delete objects after a specified period, helping optimize storage costs
Explanation
Lifecycle policies let you define rules to automatically move objects to cheaper storage classes as they age, or expire (delete) them after a certain time, reducing storage costs without manual intervention.
27
What is the purpose of "Amazon EFS" and how does it differ from EBS?
Correct Answer
EFS provides scalable, shared file storage that can be mounted by multiple EC2 instances concurrently, while EBS volumes are block storage typically attached to a single instance at a time (with some exceptions)
Explanation
Amazon EFS (Elastic File System) provides a network file system that multiple instances can mount simultaneously, useful for shared content, whereas EBS volumes are generally attached to one instance at a time as block devices.
28
What is "Amazon CloudWatch Alarms" used for, and what actions can they trigger?
Correct Answer
CloudWatch Alarms watch a metric over time against a defined threshold and can trigger actions such as sending notifications via SNS, performing Auto Scaling actions, or stopping/terminating EC2 instances
Explanation
CloudWatch Alarms monitor metrics and change state (e.g. to ALARM) when thresholds are breached, which can trigger automated responses like notifications, Auto Scaling adjustments, or EC2 actions.
29
What is the purpose of "AWS Well-Architected Framework"?
Correct Answer
A set of best-practice guidelines across pillars (such as operational excellence, security, reliability, performance efficiency, cost optimization, and sustainability) to help design and evaluate cloud architectures
Explanation
The Well-Architected Framework provides a consistent approach for evaluating architectures against best practices across multiple pillars, helping identify risks and areas for improvement.
30
What does "idempotency" mean in the context of API design, and why is it important for services like AWS Lambda?
Correct Answer
An idempotent operation produces the same result no matter how many times it runs; this matters because retries (e.g. from network errors or at-least-once delivery) shouldn't cause unintended side effects like duplicate processing
Explanation
Because some AWS services (like SQS or certain event sources) may deliver events more than once, designing Lambda functions to be idempotent ensures repeated processing of the same event doesn't cause issues like duplicate charges or records.
31
What is the purpose of "Amazon GuardDuty"?
Correct Answer
A threat detection service that continuously monitors AWS accounts and workloads for malicious activity and unauthorized behavior using machine learning and threat intelligence
Explanation
GuardDuty analyzes logs (VPC Flow Logs, DNS logs, CloudTrail) to detect suspicious activity such as unusual API calls or potentially compromised instances, alerting security teams to investigate.
32
What is the difference between "synchronous" and "asynchronous" invocation in AWS Lambda?
Correct Answer
In synchronous invocation, the caller waits for the function to process the event and return a response, while in asynchronous invocation, Lambda queues the event for processing and returns immediately, with retries handled automatically on failure
Explanation
Synchronous invocations (e.g. via API Gateway) return the function's response directly to the caller, while asynchronous invocations (e.g. from S3 or SNS events) are queued internally, with Lambda handling retries on errors.
33
What is the purpose of "AWS Trusted Advisor"?
Correct Answer
A service that provides real-time recommendations across categories like cost optimization, performance, security, fault tolerance, and service limits, based on AWS best practices
Explanation
Trusted Advisor inspects your AWS environment and provides actionable recommendations to help follow best practices, save money, improve performance, and close security gaps.
34
What is the purpose of "Elastic IP addresses" in AWS?
Correct Answer
A static, public IPv4 address that you can allocate to your account and associate with an EC2 instance, allowing the address to remain constant even if the underlying instance is replaced
Explanation
Elastic IPs provide a persistent public IP that can be remapped to a different instance, useful for masking instance failures by quickly remapping the address to a healthy replacement.
35
What is the difference between "AWS CloudFormation" and "AWS CDK" (Cloud Development Kit)?
Correct Answer
CloudFormation uses declarative templates (JSON/YAML) to define infrastructure, while CDK allows defining infrastructure using familiar programming languages (like TypeScript, Python, or Java), which it then synthesizes into CloudFormation templates
Explanation
CDK provides higher-level abstractions in general-purpose programming languages, ultimately generating CloudFormation templates under the hood, combining the benefits of code reuse and type safety with CloudFormation's provisioning engine.
36
What is the purpose of "Amazon RDS automated backups" and "snapshots"?
Correct Answer
Automated backups enable point-in-time recovery within a retention period by capturing daily backups and transaction logs, while snapshots are user-initiated, manually managed backups that persist until explicitly deleted
Explanation
Automated backups support restoring a database to any point within the retention window (using backups plus transaction logs), while manual snapshots are explicitly created and retained until the user deletes them, even after instance deletion.
37
What does "least privilege" mean as a security principle in AWS IAM policy design?
Correct Answer
Granting users and roles only the permissions necessary to perform their required tasks, and no more, to minimize the potential impact of compromised credentials or mistakes
Explanation
The principle of least privilege reduces security risk by ensuring identities have only the permissions they need; broader permissions increase the blast radius if credentials are compromised or misused.
38
What is the purpose of "Amazon SES"?
Correct Answer
A scalable, cost-effective service for sending and receiving email, often used by applications to send transactional emails, notifications, and marketing messages
Explanation
Amazon SES (Simple Email Service) lets applications send and receive email reliably at scale, commonly used for transactional emails like order confirmations or password resets.
39
What is the purpose of "AWS Secrets Manager" and how does it differ from Parameter Store for handling credentials?
Correct Answer
Secrets Manager is designed specifically for storing and managing secrets like database credentials, with built-in support for automatic rotation, while Parameter Store can also store secrets but lacks native automatic rotation for arbitrary credentials
Explanation
Secrets Manager offers built-in automatic rotation for supported databases and integrates with services to retrieve credentials securely, while Parameter Store is a more general configuration store that can hold secrets but requires custom rotation logic.
40
What is the purpose of "Amazon EventBridge" (formerly CloudWatch Events)?
Correct Answer
A serverless event bus service that connects applications using events from AWS services, custom applications, and SaaS partners, enabling event-driven architectures
Explanation
EventBridge routes events between sources (AWS services, custom apps, SaaS providers) and targets (like Lambda functions) based on rules, forming the backbone of many event-driven serverless architectures.
1
How does "DNS-based failover" with Amazon Route 53 work in a multi-region active-passive architecture?
Correct Answer
Route 53 health checks continuously monitor the primary endpoint; if it becomes unhealthy, Route 53 automatically updates DNS responses to direct traffic to the secondary (passive) endpoint, based on configured failover routing policies
Explanation
Route 53 failover routing uses health checks to determine endpoint status and automatically shifts DNS answers from a primary to a secondary resource when the primary fails health checks, enabling automated multi-region disaster recovery (subject to DNS TTL propagation delays).
2
What is the significance of "eventual consistency" versus "strong consistency" in distributed storage systems like S3 or DynamoDB?
Correct Answer
With eventual consistency, reads after a write may briefly return stale data until replicas converge; strong consistency guarantees an immediate read reflects the write. DynamoDB offers both, while S3 now guarantees strong read-after-write consistency
Explanation
Choosing between eventual and strong consistency involves trade-offs between latency/availability and read accuracy; DynamoDB lets you choose "eventually consistent" (cheaper, default) or "strongly consistent" reads, while modern S3 guarantees strong read-after-write consistency.
3
How does "AWS Global Accelerator" differ from "Amazon CloudFront"?
Correct Answer
Global Accelerator improves performance for TCP/UDP applications by routing traffic through the AWS global network using static anycast IPs, while CloudFront is a CDN optimized for caching HTTP/HTTPS content at edge locations
Explanation
CloudFront focuses on caching and delivering web content (HTTP/HTTPS) closer to users, while Global Accelerator improves availability and performance for various TCP/UDP applications by routing client traffic over AWS's backbone network to the optimal endpoint.
4
What is a "cold start" in AWS Lambda, and what factors influence its duration?
Correct Answer
A cold start happens when Lambda initializes a new environment (downloading code, starting the runtime, running init code) before a request, unlike a "warm" invocation reusing one; runtime, package size, VPC config, and memory affect its duration
Explanation
Cold starts add latency due to environment setup; choosing lighter runtimes, reducing deployment package size, using Provisioned Concurrency, and minimizing VPC attachment (which historically added ENI setup time) can reduce cold start impact.
5
How does "DynamoDB" achieve horizontal scalability through "partitioning", and what role does the "partition key" play?
Correct Answer
DynamoDB divides table data across multiple physical partitions based on a hash of the partition key; choosing a partition key with high cardinality and even access distribution is critical to avoid "hot partitions" that can throttle throughput
Explanation
DynamoDB automatically partitions data using the hash of the partition key to distribute items across storage nodes; a poorly chosen key (e.g. one with low cardinality or skewed access) can create "hot partitions" that limit throughput even if overall table capacity seems sufficient.
6
What is the purpose of "VPC Flow Logs", and what information do they capture?
Correct Answer
VPC Flow Logs capture metadata about IP traffic to/from network interfaces (source/destination IPs, ports, protocol, packet/byte counts, accept/reject status), useful for security analysis and troubleshooting — but don't capture packet payload/content
Explanation
Flow Logs record connection metadata (the "who, what, when" of traffic) for analysis and troubleshooting, but since they don't capture payload data, they aren't a substitute for deep packet inspection or real-time blocking tools.
7
How do "Service Control Policies" (SCPs) in AWS Organizations interact with IAM policies to determine effective permissions?
Correct Answer
SCPs set the maximum available permissions for accounts in an organization (as guardrails) but don't themselves grant permissions; an action is allowed only if permitted by the relevant IAM policies AND not denied by any applicable SCP
Explanation
SCPs act as permission boundaries at the account level — even if an IAM policy grants a permission, an SCP can deny it organization-wide; effective permissions are the intersection of what IAM policies allow and what SCPs do not block.
8
What is the purpose of "AWS Step Functions", and how does it relate to orchestrating Lambda functions?
Correct Answer
Step Functions is a serverless orchestration service that coordinates AWS services (including Lambda) into workflows defined as state machines, handling error retries, parallel execution, and branching logic without custom orchestration code
Explanation
Step Functions define workflows visually as state machines, managing the execution order, error handling, retries, and parallel branches of tasks (often Lambda functions), reducing the need for custom glue code to coordinate complex processes.
9
How does "Amazon S3 Object Lock" support compliance requirements such as WORM (Write Once Read Many)?
Correct Answer
Object Lock can be set to "Governance" or "Compliance" mode to prevent objects being deleted or overwritten for a fixed period or indefinitely (legal hold); in Compliance mode, not even the root user can alter retention until it expires
Explanation
S3 Object Lock helps meet regulatory requirements for immutable storage; Compliance mode is particularly strict, preventing any user — including the account root — from shortening or removing retention settings once applied.
10
What is the difference between "AWS PrivateLink" and a "VPC Peering" connection for accessing services across VPCs or accounts?
Correct Answer
PrivateLink provides private connectivity to a specific service via an ENI in your VPC without exposing the whole network, avoiding IP overlap and route changes, while VPC Peering connects two whole VPCs, needing non-overlapping CIDRs and route updates
Explanation
PrivateLink exposes a specific service through an ENI, offering more granular, scalable access without full network connectivity or CIDR conflicts, while VPC Peering links entire networks and requires careful IP address planning since peered VPCs cannot have overlapping CIDR ranges.
11
How does "Amazon S3 Transfer Acceleration" improve upload performance, and what underlying technology does it use?
Correct Answer
It routes uploads through CloudFront's globally distributed edge locations, transferring data to the nearest edge location and then over the AWS backbone network to the destination bucket, reducing the impact of long-distance internet latency
Explanation
Transfer Acceleration leverages CloudFront edge locations as entry points, routing data over AWS's optimized backbone network rather than the public internet for the majority of the trip, which can significantly speed up uploads over long distances.
12
What is the purpose of "AWS Lambda Provisioned Concurrency", and what trade-off does it introduce?
Correct Answer
Provisioned Concurrency keeps a specified number of execution environments initialized and ready to respond immediately, eliminating cold starts for those instances, but you pay for the provisioned capacity whether or not it is actively used
Explanation
Provisioned Concurrency pre-warms execution environments to avoid cold-start latency for latency-sensitive applications, but introduces a cost trade-off since you pay for the reserved, initialized capacity continuously, regardless of actual invocation volume.
13
How does "cross-account IAM role assumption" work, and what is the purpose of an "external ID" in this context?
Correct Answer
A role in one account can define a trust policy letting a principal in another assume it via AssumeRole (STS), getting temporary credentials; an external ID is a shared secret the trusting account requires, preventing the "confused deputy" problem
Explanation
STS AssumeRole lets a trusted principal obtain temporary credentials for a role in another account; external IDs add an extra layer of verification, commonly used by SaaS providers to ensure they're only assuming roles intended for their specific customer relationship, mitigating confused-deputy attacks.
14
What is the difference between "AWS Direct Connect" and a "Site-to-Site VPN" for connecting on-premises infrastructure to a VPC?
Correct Answer
Direct Connect establishes a dedicated, private physical connection between on-premises infrastructure and AWS, offering consistent bandwidth and lower latency than a VPN, which tunnels over the public internet, faster to set up but variable
Explanation
Direct Connect provides a dedicated network link (via a colocation facility) for predictable performance and potentially lower data transfer costs, while VPNs are quicker and cheaper to set up but rely on internet connectivity, making them more variable in latency and throughput.
15
How does "DynamoDB Global Tables" provide multi-region replication, and what consistency model does it use?
Correct Answer
Global Tables replicate DynamoDB tables across regions using a multi-active model where writes in any region propagate to others asynchronously, giving eventual consistency across regions while allowing low-latency local reads and writes
Explanation
Global Tables use a multi-region, multi-active design — applications can read and write in any participating region with low latency, while changes propagate asynchronously to other regions, meaning replicas are eventually (not immediately) consistent, and conflict resolution uses a "last writer wins" approach.
16
What is the purpose of "AWS Shield" and "AWS WAF", and how do they complement each other?
Correct Answer
AWS Shield protects against DDoS attacks at network/transport layers (Shield Advanced adds more), while AWS WAF protects against app-layer attacks (SQL injection, XSS) by filtering HTTP/HTTPS via configurable rules; together they cover multiple layers
Explanation
Shield (Standard, included by default, or Advanced for additional cost) defends against volumetric/network-layer DDoS, while WAF inspects application-layer traffic for malicious patterns, allowing custom rules to block specific attack signatures or suspicious request patterns.
17
How does "AWS Lambda" handle concurrency limits, and what is the difference between "account-level concurrency" and "reserved concurrency" for a specific function?
Correct Answer
Account-level concurrency is the total concurrent executions for all functions in a region (a soft, increasable limit), while reserved concurrency sets a guaranteed min and max for one function, isolating it from being starved but also capping its scaling
Explanation
Without reserved concurrency, a function competes for the shared account-level pool of concurrent executions; setting reserved concurrency carves out a dedicated allocation for that function (protecting it from contention) but also caps how far it can scale, even if the account has spare capacity.
18
What is "blue-green deployment", and how can AWS services like Elastic Beanstalk, CodeDeploy, or Route 53 support it?
Correct Answer
Blue-green deployment runs two identical environments ("blue" for production, "green" for the new version); after testing green, traffic is switched (e.g. ELB swaps, Route 53 updates, or Beanstalk swaps), allowing quick rollback to blue if issues arise
Explanation
Blue-green deployments minimize downtime and risk by keeping the old (blue) environment running until the new (green) one is verified, with traffic cutover achieved through mechanisms like load balancer target swaps or DNS updates, and rollback simply means switching traffic back.
19
How does "AWS Config" differ from "AWS CloudTrail" in terms of what they track and their primary use cases?
Correct Answer
CloudTrail records a history of API calls (who did what and when), while AWS Config tracks resource configuration over time, evaluating it against rules for compliance — often used together: CloudTrail for "who", Config for "what changed and compliance"
Explanation
CloudTrail is an audit log of API activity, while Config is a configuration management/compliance tool that records resource configuration snapshots and changes, evaluating them against rules (e.g. "is encryption enabled?") — combining both gives a full picture of changes and their compliance impact.
20
What is the significance of "idle timeout" and "connection draining" (deregistration delay) when an instance is removed from a Load Balancer target group?
Correct Answer
Connection draining (deregistration delay) lets the load balancer stop sending new requests to a target being removed while letting in-flight requests finish within a configured window, preventing abrupt termination during deployments or scale-in
Explanation
Without connection draining, removing an instance (e.g. during a rolling deployment or scale-in) could abruptly cut off active requests; the deregistration delay gives in-flight requests time to complete gracefully before the target is fully removed.