AWS essentials: 50 cards on EC2, S3, IAM, VPC, RDS and Lambda
AWS flashcards: regions and AZs, EC2, S3 storage classes, IAM users, roles and policies, VPC networking, RDS, Lambda, CloudWatch and Route 53.
Practice now
Study without an account
Scheduled with the default Askesis timings. Progress is saved in this browser.
All 50 cards
- 1Region vs Availability Zone (AZ)A Region is a separate geographic area, such as
eu-central-1(Frankfurt), containing several AZs (usually three or more); an AZ is one or more data centers with independent power and networking, linked to the others by low-latency connectionsSpreading resources across AZs lets an application survive the loss of a whole data center. - 2The shared responsibility modelAWS is responsible for security of the cloud (facilities, hardware, network, virtualization); you are responsible for security in the cloud (your data, IAM, OS patches on EC2, security group rules, encryption settings)
- 3Who patches the operating system: EC2 vs RDS?On EC2 you patch the guest OS yourself; on RDS, AWS patches the OS and database engine in your maintenance window, while you manage users, network access and settingsThe more managed the service, the more of the stack AWS takes on.
- 4Amazon EC2Elastic Compute Cloud: virtual servers (instances) you launch from an image, pick a size for and pay for while they run
- 5AMIAmazon Machine Image: the template for launching an instance, with the OS, configuration and softwareAMIs are regional; copy one to use it in another Region.
- 6What does the instance type
m7g.largemean?Familym(general purpose), generation 7, attributeg(AWS Graviton, Arm-based), sizelargeOther families:tburstable,ccompute optimized,rmemory optimized. Attribute letters includei(Intel),a(AMD) andd(local NVMe storage). - 7EC2 pricing: On-Demand vs Savings Plans vs SpotOn-Demand: pay by the second or hour, no commitment. Savings Plans (or Reserved Instances): commit for 1 or 3 years for up to 72% off. Spot: spare capacity at up to 90% off, but AWS can reclaim it with a two-minute warningSpot suits fault-tolerant work such as batch jobs, CI runners and stateless workers, not a single database server.
- 8EBS vs instance storeEBS is network-attached block storage that persists independently of the instance and supports snapshots; instance store is a disk physically attached to the host, and its data is lost when the instance stops or terminatesAn EBS volume lives in one AZ. To move it, snapshot it and create a new volume from the snapshot elsewhere.
- 9EC2 user dataA script passed at launch that runs as root on the instance’s first boot, typically to install and configure softwarebash
#!/bin/bash dnf install -y nginx systemctl enable --now nginx - 10Stopping vs terminating an EC2 instanceStop: the instance shuts down, its EBS volumes are kept and you stop paying for compute. Terminate: the instance is deleted, along with its root EBS volume by defaultAfter a stop and start, the instance usually gets a new public IPv4 address unless it uses an Elastic IP.
- 11Auto Scaling groupKeeps a desired number of EC2 instances running across AZs, replaces unhealthy ones and scales between a minimum and maximum based on policies such as target CPU utilization
- 12Amazon S3Simple Storage Service: object storage where each object (data plus metadata) is stored in a bucket under a key, with practically unlimited capacityS3 is designed for 99.999999999% (11 nines) durability. General purpose bucket names must be globally unique.
- 13S3 Standard vs S3 Standard-IAStandard is for frequently accessed data; Standard-IA (Infrequent Access) has cheaper storage but charges per GB retrieved, with a 30-day minimum storage duration and a 128 KB minimum billable object sizeS3 One Zone-IA is cheaper still, but keeps data in a single AZ, so use it only for data you can recreate.
- 14The three S3 Glacier storage classesGlacier Instant Retrieval: millisecond access for data read about once a quarter. Glacier Flexible Retrieval: minutes to hours. Glacier Deep Archive: the cheapest, with retrieval within 12 hours (48 for bulk)Minimum storage durations: 90 days for Instant and Flexible Retrieval, 180 days for Deep Archive.
- 15When should you use S3 Intelligent-Tiering?When access patterns are unknown or change: it moves objects between access tiers automatically based on use, with no retrieval fees but a small monthly monitoring fee per object
- 16S3 lifecycle rulesRules that automatically transition objects to cheaper storage classes or delete them after a number of daysExample: move logs to Glacier Flexible Retrieval after 90 days and delete them after 365.
- 17What does S3 versioning protect against?Accidental overwrites and deletes: every write keeps the previous version, and a delete only adds a delete marker that you can removeOnce enabled, versioning can be suspended but never fully turned off.
- 18S3 Block Public AccessBucket- and account-level settings that override any policy or ACL that would make data public; they are on by default for new bucketsNew objects are also encrypted at rest by default (SSE-S3).
- 19Give someone temporary access to a private S3 objectbash
aws s3 presign s3://my-bucket/report.pdf --expires-in 3600A presigned URL carries your credentials’ permissions for a limited time (the CLI default is one hour). - 20AWS IAMIdentity and Access Management: controls who can authenticate and what actions they may perform on which resources. It is global and free
- 21Best practices for the root userEnable MFA, create no access keys, and don’t use it for daily work; sign in as root only for the few tasks that require it, such as changing account settings or closing the account
- 22IAM user vs IAM roleA user is an identity with long-term credentials (a password or access keys); a role has permissions but no long-term credentials and is assumed by trusted users, services or accounts, which receive temporary credentials from STSA role’s trust policy says who may assume it.
- 23How should an application on EC2 get AWS credentials?Attach an IAM role to the instance (via an instance profile); the SDKs fetch temporary, automatically rotated credentials from the instance metadata serviceNever put access keys in code, AMIs or config files.
- 24Policy that allows reading objects from one bucketjson
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::my-bucket/*" } ] }Statements combineEffect,ActionandResource, plus optionalCondition.s3:ListBucketapplies to the bucket ARN itself, without/*. - 25How does IAM decide whether a request is allowed?Everything is denied by default; an explicit Allow grants access, and an explicit Deny in any applicable policy always overrides any Allow
- 26Identity-based vs resource-based policiesIdentity-based policies attach to users, groups and roles; resource-based policies attach to a resource such as an S3 bucket or SQS queue and name the allowed
Principal, which can be another account - 27Least privilege in IAM, in practiceGrant only the actions and resources a job needs: start narrow (or from a managed policy), then tighten using IAM Access Analyzer and last-accessed data
- 28How should people sign in to AWS accounts?Through IAM Identity Center (formerly AWS SSO), which gives them temporary credentials across accounts, rather than through long-lived IAM usersThe CLI supports it with
aws configure ssoandaws sso login. - 29Check which identity your AWS CLI is usingbash
aws sts get-caller-identityIt prints the account ID and the ARN of the user or assumed role. - 30Amazon VPCVirtual Private Cloud: your logically isolated network in a Region, with an IP range (CIDR block) you choose; it spans all of the Region’s AZs
- 31SubnetA range of IP addresses within a VPC that lives in exactly one AZAWS reserves five addresses in every subnet: the first four and the last.
- 32What makes a subnet public?Its route table sends internet traffic (
0.0.0.0/0) to an internet gateway. A private subnet has no such routeInstances in a public subnet also need a public IP address to be reachable. - 33NAT gatewayLets instances in private subnets make outbound connections to the internet, for updates or external APIs, while blocking connections initiated from outsideIt sits in a public subnet and is billed per hour and per GB processed.
- 34Security group vs network ACLA security group attaches to instances (network interfaces), is stateful and has allow rules only. A network ACL applies to a whole subnet, is stateless (return traffic needs its own rule) and has numbered allow and deny rulesA new security group allows no inbound traffic and all outbound traffic.
- 35Allow only the app servers to reach the database on port 5432In the database’s security group, add an inbound rule for TCP 5432 whose source is the app servers’ security group, not an IP rangeInstances that join the app security group later are allowed automatically.
- 36Amazon RDSManaged relational databases (PostgreSQL, MySQL, MariaDB, Oracle, SQL Server, Db2 and Aurora): AWS handles provisioning, patching, backups and failover
- 37RDS Multi-AZ vs read replicasMulti-AZ keeps a synchronous standby in another AZ for automatic failover (high availability); read replicas are asynchronous copies that scale read traffic and can be in other RegionsIn a classic Multi-AZ instance deployment the standby serves no traffic. A read replica can be promoted to a standalone database.
- 38RDS automated backupsDaily snapshots plus transaction logs, kept for 1 to 35 days, which allow a point-in-time restore to any second in that windowA restore always creates a new DB instance.
- 39Amazon AuroraAWS’s MySQL- and PostgreSQL-compatible database, whose storage keeps six copies of your data across three AZs and grows automaticallyIt supports up to 15 low-latency read replicas, and Aurora Serverless v2 scales capacity automatically.
- 40AWS LambdaServerless functions: you upload code that runs in response to events, without managing servers, and pay per request and per GB-second of run timeCommon triggers: API Gateway or function URLs, S3 events, SQS queues, EventBridge schedules and DynamoDB Streams.
- 41Lambda’s maximum timeout and memory15 minutes (900 seconds) and 10,240 MB of memory; CPU power scales with the memory you configureFor longer jobs, use Step Functions, ECS or AWS Batch.
- 42Lambda cold startThe extra latency when Lambda must create a new execution environment: download the code, start the runtime and run your initialization codeReduce it with smaller packages, provisioned concurrency or SnapStart (Java, Python and .NET).
- 43A minimal Python Lambda handlerpython
def lambda_handler(event, context): name = event.get("name", "world") return {"statusCode": 200, "body": f"Hello, {name}"}Create SDK clients and connections outside the handler so warm invocations reuse them. - 44Amazon CloudWatchAWS’s monitoring service: metrics, logs (CloudWatch Logs), alarms and dashboards for your resources and applications
- 45CloudWatch alarmWatches a metric against a threshold over a number of periods and moves between OK, ALARM and INSUFFICIENT_DATA, triggering actions such as an SNS notification or an Auto Scaling policy
- 46Does EC2 send memory and disk-space usage to CloudWatch by default?No. Default metrics include CPU, network and disk I/O; memory and disk-space usage need the CloudWatch agent on the instanceBasic monitoring sends metrics every 5 minutes; detailed monitoring every minute.
- 47CloudWatch vs CloudTrailCloudWatch monitors performance and operations (metrics, logs, alarms); CloudTrail records API calls for auditing: who did what, when and from where
- 48Amazon Route 53AWS’s DNS service: domain registration, public and private hosted zones, health checks and routing policiesThe name refers to port 53, the port DNS uses.
- 49Route 53 alias record vs CNAMEAn alias record points a name to an AWS resource such as a load balancer or CloudFront distribution and, unlike a CNAME, works at the zone apex (
example.com)Alias queries to AWS resources are free. - 50Which Route 53 routing policy: canary 10% of traffic, nearest Region, standby site?Weighted for sending 10% to a new version, latency-based for the lowest-latency Region, failover (with health checks) for an active-passive standbyOthers: simple, geolocation, geoproximity, multivalue answer and IP-based.
Frequently asked questions
Will this deck prepare me for an AWS certification?
It covers the core services tested in Cloud Practitioner and the foundations of Solutions Architect Associate, but it is not a complete exam guide. Pair it with the official exam guide and hands-on practice.
Do I need an AWS account to use it?
No. The cards stand on their own, though trying the services in a sandbox account with a budget alert helps them stick.
How is this different from the Terraform deck?
This deck covers the AWS services themselves. The Terraform essentials deck covers managing infrastructure as code, using AWS resources in its examples.
More in IT & DevOps
Linux command line
Linux commands and files for sysadmins and LPIC-1 candidates: find and grep, permissions and special bits, fstab, systemd targets, package managers, users, cron and more.
50 cardsLinux filesystem basics
Learn the Linux directory tree: what /etc, /var, /usr, /proc and /dev are for, plus passwd, shadow, fstab and hosts. Free flashcards, no signup.
50 cardsIntermediate Linux filesystem
Linux paths admins use daily: /usr/local, /var/lib, /run, /sys, /etc/skel, sudoers, Bash startup files, SSH keys, resolv.conf and /proc. Free flashcards.
50 cardsAdvanced Linux filesystem
Deeper Linux files for LPIC-1: profile.d, sudoers.d, systemd units, GRUB config, nsswitch.conf, ld.so.conf, distro logs and /lib/modules. Free flashcards.
50 cardsBash scripting
Bash scripting flashcards: shebangs, quoting, exit codes, tests, loops, functions, arrays, parameter expansion, redirection, set -euo pipefail and traps.
50 cardsVim
Learn Vim from the keyboard up: modes, motions, operators and text objects, search and :s substitutions, registers, macros, visual mode and windows.
50 cardsNetworking
Computer networking fundamentals: OSI and TCP/IP layers, TCP vs UDP, common port numbers, subnetting and CIDR, DNS, DHCP and ARP, and IPv6 basics.
50 cardsCyber security
Cyber security flashcards: the CIA triad, phishing, XSS, CSRF, SQL injection, MITM, hashing vs encryption, TLS, MFA, least privilege, OWASP and zero trust.
50 cardsDocker
Learn Docker from images and layers to multi-stage builds, volumes, networks and Compose, with the commands and best practices you use daily.
50 cardsKubernetes
Kubernetes fundamentals for developers and CKA or CKAD candidates: Pods, Deployments, Services, storage, probes, resources and scheduling, plus the kubectl commands you use daily.
50 cardsTerraform
Terraform flashcards: HCL, providers, resources, variables and outputs, state and remote backends, plan and apply, modules, count, for_each, drift and import.
50 cards