What is Guard Duty?
Guard Duty is like a security camera. It watches for suspicious activity (like intruders or strange behavior) across your AWS environment.
Continuously monitors for malicious activity, such as unauthorized access or compromised instances.
What is WAF (Web Application Firewall)
WAF (Web Application Firewall) is like a bouncer at the door — it blocks bad requests (like SQL injection or bots) before they reach your web app.
AWS WAF (Web Application Firewall) protects web apps from common threats like:
It works by filtering HTTP(S) traffic at:
Use case: Block malicious traffic to your website using AWS WAF with managed rules and IP blocking.
What is Inspector?
Inspector is like a building inspector — it checks the inside of your servers (EC2 / instances / ECR) for vulnerabilities, outdated software, or security issues.
Automated security assessment service that scans EC2 instances and ECR containers for vulnerabilities and misconfigurations.
Inspects for vulnerabilities (scans EC2 & containers).
What is CloudTrail?
CloudTrail is like a security logbook — it records who did what and when in your AWS account (API calls, logins, changes).
Logs API calls and user activity across AWS services, providing an audit trail for security and compliance.
Checks logs (tracks API calls & user actions).
How do the default cooldown period work in Autoscaling?
Imagine an Auto Scaling group with a default cooldown of 300 seconds:
This avoids adding too many instances too quickly.
What is SWF - (Simple Workflow Service)?
Amazon Simple Workflow Service (SWF) is a managed workflow automation service for coordinating tasks across distributed applications. It ensures tasks are executed in order, handles retries, and tracks progress.
Order Processing System:
Ideal for long-running, stateful workflows like payment processing, media encoding, or batch job coordination.
What’s the difference between SWF and SQS?
SWF and SQS both handle messaging, but they serve different purposes:
SWF orchestrates workflows, while SQS queues messages for independent processing.
What is AWS Amplify?
AWS Amplify is a frontend & mobile app development platform that provides backend services, hosting, and CI/CD for web and mobile apps.
Practical Example:
Building a React web app with:
- Authentication (Cognito)
- Database (DynamoDB via GraphQL API)
- File storage (S3)
- Hosting & deployment (Amplify Hosting)
- It simplifies full-stack development without managing backend infrastructure.
What’s the difference between SNS and SQS?
“SNS shouts, SQS waits.”
What is polling?
Polling is done by the consumer of SQS
“SQS stores, consumer explores!”
Give an example of long polling and short polling.
Short polling – Returns messages immediately, even if the queue is empty.
Long polling – Waits for messages to arrive before responding, reducing empty responses and cost.
Imagine you’re waiting for a pizza delivery:
🍕 Short Polling: You keep opening the door every few seconds to check if the pizza has arrived, even if it’s not there. (Frequent but inefficient checks)
🍕 Long Polling: You relax, and the delivery guy rings the doorbell when the pizza arrives. (Waits for data, reducing unnecessary checks)
Moral: Long polling is smarter—it waits instead of constantly checking!
What are the standard CloudWatch metrics (no agent required)?
C → CPU Utilization
N → Network In/Out
D → Disk Read/Writes
S → Status Checks (System + Instance)
What metrics are not available by default in CloudWatch (agent required)?
For metrics NOT available by default install a CloudWatch Agent:
Breakdown:
M → Memory Utilization
D → Disk Space Utilization
D → Disk Swap Utilization
P → Page File Utilization
C → Custom Logs
What are the standard CloudWatch metrics available for RDS (no agent required)?
CloudWatch Metrics for RDS (No Agent Required)
Amazon CloudWatch provides hypervisor-level metrics for RDS, including:
What are the CloudWatch metrics for RDS that are not default (i.e. requires an agent on RDS instance)
To get OS-level metrics (per-process details), you must enable Enhanced Monitoring, which installs an RDS-specific agent that provides:
CloudWatch = Basic instance-level metrics
Enhanced Monitoring = OS-level, per-process visibility (via agent)
What is AWS Shield?
AWS Shield protects AWS apps from DDoS attacks.
Shield Standard: Free, automatic protection from common attacks.
Shield Advanced: Paid, adds real-time detection, cost protection, and 24/7 support.
Use case: A fintech app uses Shield Advanced to stay online during a DDoS attack and avoid scaling costs.
What is Storage Gateway?
AWS Storage Gateway connects on-premises environments to AWS cloud storage.
Use case: A company backs up on-prem files to S3 using File Gateway, keeping local access with cloud durability.
What is File Gateway?
File Gateway is a type of AWS Storage Gateway that lets on-prem apps access Amazon S3 using standard NFS or SMB file protocols.
Use case: An office uses File Gateway to store shared files in S3, while users access them locally via a network drive.
What is AWS Direct Connect?
AWS Direct Connect is a dedicated, private network connection from your on-premises data center to AWS.
Use case: A bank uses Direct Connect to securely transfer large volumes of data to AWS with consistent throughput.
What is AWS Secrets Manager?
AWS Secrets Manager securely stores, rotates, and manages secrets like API keys, passwords, and database credentials.
Use case: An app uses Secrets Manager to fetch database credentials securely at runtime instead of hardcoding them.
What’s the difference between KMS and Secrets manager?
AWS KMS and Secrets Manager both handle sensitive data, but they serve different purposes:
KMS (Key Management Service):
- Manages encryption keys. You use it to encrypt/decrypt data (e.g., S3 files, database fields).
- Stores keys (not data)
- No auto rotation (for keys only)
- S3, EBS, RDS, Lambda etc.
- Encrypt/decrypt data
Secrets Manager:
- Stores and manages secrets like API keys, passwords, and rotates them automatically (i.e. data).
- Automatic secret rotation
- RDS, Redshift, Lambda, custom apps
- Securely store & rotate secrets
How do you encrypt etcd?
etcd is a key-value database commonly deployed with distributed systems. The software is used by Kubernetes.
To encrypt etcd (used by Kubernetes for storing cluster state), use KMS encryption via the Kubernetes API server:
Enable encryption at rest for etcd by configuring the encryption provider in encryption-config.yaml.
Use AWS KMS to manage and store the data encryption keys securely.
Use case: In Amazon EKS, you enable etcd encryption with AWS KMS to protect sensitive Kubernetes secrets (e.g. passwords, tokens) stored in etcd.
What is Route 53?
Amazon Route 53 is a scalable DNS service for domain registration, name resolution, and health checking.
Use case: Route 53 directs users to the nearest EC2 region for low-latency access and reroutes on failure.
In Route 53, what are the types of routing?
Route 53 routing types:
Simple – One record, basic DNS resolution (no logic).
Weighted – Split traffic by percentage across multiple endpoints.
Latency-based – Route to the lowest-latency AWS region.
Failover – Route to a primary endpoint; switch to secondary if unhealthy.
Geolocation – Route based on user’s country or region.
Geo-proximity (Traffic Flow only) – Route based on user location and optional bias.
Multivalue Answer – Return multiple healthy IPs (basic load balancing).
Use the right type based on performance, availability, or geographic needs.