Ravindra BagaleCourses & study guides Track your progress

AWS Cloud

AWS Difference Between Interview Questions: Networking, Messaging, Security and DevOps Comparisons with Tables (SQS vs SNS vs EventBridge, VPN vs Direct Connect) (50 Questions)

This page has 50 AWS comparison interview questions on networking, messaging and integration, security and DevOps. Each answer gives a short table and ends with when to pick which, so you can answer "what is the difference between X and Y?" clearly and quickly.

1. An everyday example: roads, post offices and locks

Why compare these services?

Networking, messaging and security services often look similar on paper. Interviewers ask you to compare them to see whether you would pick the right one in a real design, and whether you know their limits.

Think of a town. Networking services are the roads, gates and private tunnels. Messaging services are the post office (queues), the notice board (pub/sub) and the dispatcher who routes letters by rules (event bus). Security services are the locks, keys, guards and CCTV.

How to use this page

  • Learn the rows in each table and the final pick line.
  • Practise saying each answer aloud in about a minute.
  • Prices and quotas change, so the tables compare how services work rather than exact numbers.

2. Fresher level questions

Start here if you are a fresher or have less than two years of experience. Try to answer each question aloud first. Then open it and compare.

Q1. Security groups and network ACLs both filter traffic. Can you compare them in a table and say which you rely on? Fresher
PointSecurity groupNetwork ACL
Attached toNetwork interfaces (instances, endpoints, load balancers)Subnets
StateStateful: replies allowed automaticallyStateless: allow both directions explicitly
RulesAllow onlyAllow and deny, numbered order
Typical useMain access control per workloadCoarse subnet guardrails, blocking specific ranges

Pick security groups as the primary control (reference other security groups instead of IPs). Use NACLs for extra subnet-level rules such as blocking a known bad range, and remember ephemeral ports for replies.

Q2. NAT gateway or NAT instance for private subnets: how do they compare today? Fresher
PointNAT gatewayNAT instance
ManagementFully managedYour EC2 instance: patching, scaling, failover
AvailabilityHighly available within an AZSingle instance unless you build failover
BandwidthScales automatically to high levelsLimited by instance type
CostHourly plus per GB processedInstance cost; can be cheaper for tiny dev setups

Pick a NAT gateway (one per AZ) for production. A NAT instance only fits very small labs or special needs like port forwarding, and you own its reliability.

Q3. Application Load Balancer or Network Load Balancer: which do you put in front of a service? Fresher
PointALBNLB
LayerHTTP and HTTPS (layer 7)TCP, UDP, TLS (layer 4)
RoutingPaths, hosts, headers, query stringsPorts only
Static IPNo (use Global Accelerator)Yes, one per AZ, Elastic IPs possible
FeaturesWAF, authentication, redirects, gRPCVery high throughput, preserves client IP, PrivateLink services

Pick ALB for web apps and APIs. Pick NLB for non-HTTP protocols, static IP needs, extreme throughput, or to expose a service through PrivateLink.

Q4. Site-to-Site VPN or Direct Connect for connecting an office or data centre? Fresher
PointSite-to-Site VPNDirect Connect
PathEncrypted IPsec tunnels over the internetPrivate dedicated link to AWS
Setup timeMinutes to hoursWeeks (provider and cross-connect)
PerformanceVaries with internet; per-tunnel bandwidth limitConsistent latency, high bandwidth
CostLowPort hours plus data transfer, provider fees

Pick VPN for quick, small or backup connectivity. Pick Direct Connect for steady large traffic, predictable latency or compliance, often with a VPN as backup.

Q5. CloudWatch, CloudTrail and AWS Config sound similar. How do you tell them apart? Fresher
ServiceAnswers the questionExample
CloudWatchHow is it performing?CPU is 90%, error logs, alarms
CloudTrailWho did what, and when?User ravi.ops called DeleteBucket at 22:14
AWS ConfigWhat did this resource look like over time, and is it compliant?Security group sg-0abc allowed port 22 from anywhere between 10:00 and 11:30

Use all three together: CloudWatch to notice a problem, CloudTrail to find who changed something, and Config to see the configuration before and after and to enforce rules.

Q6. SQS, SNS or EventBridge: how do you choose for passing messages between services? Fresher
PointSQSSNSEventBridge
PatternQueue: consumers pullPub/sub: pushes to subscribersEvent bus: routes events by rules
ConsumersOne consumer group per queueMany subscribersMany targets per rule
FilteringNone at queue levelSubscription filter policiesRich content-based rules
ExtrasBuffering, retries, DLQSMS, email, mobile push, fan-outSaaS and AWS service events, archive and replay, schedules

Pick SQS to buffer work for one service, SNS for fast fan-out, and EventBridge for event-driven architectures with many producers and routing rules. They are often combined (SNS or EventBridge into SQS).

Q7. KMS, Secrets Manager and Parameter Store: what does each one store? Fresher
PointKMSSecrets ManagerParameter Store
StoresEncryption keys (never leave KMS unencrypted)Secrets such as database passwords and API keysConfiguration values, optionally encrypted
RotationAutomatic key rotationBuilt-in secret rotation with LambdaNo built-in rotation
CostPer key and per requestPer secret and per API callStandard parameters free; advanced paid

Pick KMS to encrypt data, Secrets Manager for credentials that must rotate, and Parameter Store for settings and feature flags. Secrets Manager and Parameter Store use KMS underneath.

Q8. CloudFormation, Terraform or CDK: how would you compare them in a table? Fresher
PointCloudFormationTerraformCDK
LanguageYAML or JSONHCLTypeScript, Python, Java, C#, Go
CloudsAWSMany providersAWS (synthesises CloudFormation)
StateManaged by AWSState file you store and lockManaged by CloudFormation
StrengthNative, no extra toolsMulti-cloud, huge ecosystemReal code, loops, reusable constructs

Pick CloudFormation for simple AWS-only stacks, CDK for developer teams who like code, and Terraform when you manage several clouds or SaaS providers from one tool.

Q9. A bastion host or Session Manager for reaching private servers? Fresher
PointBastion hostSession Manager
Inbound portsSSH or RDP open on the bastionNone
CredentialsSSH keys to manageIAM permissions
LoggingYou set upSession logs to S3 or CloudWatch, CloudTrail events
OpsPatch and harden the bastionManaged; SSM agent on instances

Pick Session Manager for almost all new setups. A bastion is only needed for tools that cannot use Session Manager, and even then Session Manager port forwarding often replaces it.

Q10. Amazon ECR or Docker Hub for storing images used in AWS? Fresher
PointAmazon ECRDocker Hub
Access controlIAM, repository policies, cross-accountDocker accounts and tokens
NetworkPrivate access through VPC endpointsInternet
Rate limitsAWS quotasPull rate limits for anonymous and free users
FeaturesImage scanning, lifecycle policies, replication, pull-through cacheLarge public catalogue

Pick ECR for your own images and use its pull-through cache for public images, so builds and deployments do not break because of public rate limits.

Q11. Rolling, blue/green or canary deployment: how do you explain the difference with a table? Fresher
PointRollingBlue/greenCanary
HowReplace instances a batch at a timeNew full environment, then switch trafficSmall share of traffic to new version first
RollbackSlow, roll forward or back in batchesFast: switch backFast: move traffic back
Extra capacityLittleDouble during deploySmall
Risk exposureMixed versions during rolloutAll users at once after switchOnly a few users at first

Pick rolling for simple stateless apps with low risk, blue/green for quick rollback of big releases, and canary for high-traffic services where you want real-user proof before full rollout.

Q12. Amazon Inspector, GuardDuty and Macie: what does each one look for? Fresher
ServiceLooks forExample finding
InspectorSoftware vulnerabilities and network exposure in EC2, ECR images and LambdaPackage with a known CVE on an instance
GuardDutyThreats from activity: logs, DNS, network, runtimeInstance talking to a known crypto-mining server
MacieSensitive data in S3Bucket contains files with card numbers

Pick all three in a mature account: Inspector to fix weaknesses, GuardDuty to detect attacks, Macie to know where sensitive data lives. Security Hub collects their findings in one place.

Q13. AWS Config or CloudTrail for answering "was this security group open last Tuesday?" Fresher
PointCloudTrailAWS Config
RecordsAPI calls (AuthorizeSecurityGroupIngress by whom)Resulting configuration items over time
Question answeredWho changed it and from whereWhat the full rule set looked like at any time
Compliance rulesNoYes: managed and custom rules, remediation

Pick Config to see the state at a time and to check compliance; pick CloudTrail to find the person or role behind the change. Use them together in investigations.

Q14. AWS Client VPN or Site-to-Site VPN: which one for remote employees? Fresher
PointClient VPNSite-to-Site VPN
ConnectsIndividual laptopsA whole network (office, data centre)
SoftwareOpenVPN-based client on each deviceCustomer gateway device or software router
AuthenticationCertificates, Active Directory, SAMLPre-shared keys or certificates per tunnel
BillingPer endpoint association and per connection hourPer connection hour and data transfer

Pick Client VPN for remote staff reaching private AWS resources. Pick Site-to-Site VPN to connect an office network. For web apps only, Verified Access can give zero-trust access without a VPN.

Q15. Route 53 Resolver inbound or outbound endpoints: which direction does each handle? Fresher
PointInbound endpointOutbound endpoint
DirectionOn-premises DNS servers query AWS private zonesVPC resources query on-premises DNS
Configured withOn-premises conditional forwarders pointing to endpoint IPsResolver rules forwarding domains (corp.example.com) to on-premises DNS
ExampleOffice laptop resolves db.internal.aws.example.comEC2 resolves fileserver.corp.example.com

Pick inbound when on-premises needs AWS names, outbound when AWS needs on-premises names; hybrid networks usually need both.

Q16. Amazon MQ or SQS for an application moving from on-premises messaging? Fresher
PointAmazon MQSQS
ProtocolsAMQP, MQTT, STOMP, OpenWire, JMS (ActiveMQ, RabbitMQ)AWS API only
Migration effortLittle: same broker protocolsCode changes to use the SQS API
ScalingBroker instances you sizePractically unlimited, serverless
OpsBroker maintenance windows, storageNone

Pick Amazon MQ to lift existing apps that use ActiveMQ or RabbitMQ with minimal changes. Pick SQS for new cloud-native designs.

Q17. AWS KMS or CloudHSM: when is KMS not enough? Fresher
PointKMSCloudHSM
TenancyMulti-tenant managed service (FIPS validated HSMs)Single-tenant HSMs in your VPC
Key controlAWS operates the HSMsYou alone manage users and keys
IntegrationNative with most AWS servicesPKCS#11, JCE, CNG for your apps; custom key store for KMS
OpsNoneCluster sizing, high availability, backups

Pick KMS for nearly all encryption in AWS. Pick CloudHSM when rules require single-tenant HSMs under your sole control, or for apps needing direct HSM APIs (for example SSL offload or certain payment and signing uses).

3. Mid level questions

These questions check how you use the service in real projects. Interviewers expect the why, the how and one real example.

Q18. VPC peering or Transit Gateway: when does peering stop being enough? Mid level
PointVPC peeringTransit Gateway
TopologyOne-to-one links, no transitive routingHub-and-spoke, transitive via route tables
ScaleBecomes a mesh: n(n-1)/2 linksThousands of attachments
CostNo hourly fee; data transfer onlyPer attachment hour and per GB processed
ExtrasSimpleRoute domains, VPN and Direct Connect attachments, inter-Region peering

Pick peering for a few VPCs that need high-bandwidth, low-cost links. Pick Transit Gateway once you have many VPCs, on-premises links or need segmented routing.

Q19. Transit Gateway or AWS Cloud WAN for a global network? Mid level
PointTransit GatewayCloud WAN
ScopeRegional hub; peer hubs across Regions yourselfGlobal network managed from one policy
ConfigurationRoute tables per TGWCentral network policy with segments
Best forOne or a few RegionsMany Regions and sites, global segmentation
EffortManual peering and routes between RegionsPolicy-driven, automatic attachments by tags

Pick Transit Gateway for single-Region or simple multi-Region setups. Pick Cloud WAN when a global company wants one policy-driven network across many Regions and branch sites.

Q20. Dedicated or hosted Direct Connect connection: what is the difference? Mid level
PointDedicated connectionHosted connection
Ordered fromAWS directlyAn AWS Direct Connect Partner
Port speedsLarge fixed ports (such as 1, 10, 100, 400 Gbps)Wide range including small speeds (from 50 Mbps)
Virtual interfacesSeveral VIFs on the portUsually one VIF per hosted connection
Physical workCross-connect at a Direct Connect locationPartner handles it

Pick dedicated for large, enterprise links where you are at a Direct Connect location. Pick hosted for smaller bandwidth or when a partner network reaches your site.

Q21. Running dual-stack IPv4 and IPv6 or staying IPv4-only in a VPC: what changes? Mid level
PointIPv4 onlyDual-stack
Public addressesCharged public IPv4 addresses, NAT for private egressIPv6 addresses are globally unique; no NAT needed
Private egressNAT gatewayEgress-only internet gateway for IPv6 (free of NAT processing)
SecuritySecurity groups and NACLs for IPv4Separate IPv6 rules needed in SGs and NACLs
CompatibilityEverythingSome services and on-premises systems still IPv4-only

Pick dual-stack for new VPCs and internet-facing apps to reduce IPv4 costs and prepare for growth; keep IPv4 where dependencies need it. Remember IPv6 rules, or you may expose services by accident.

Q22. Kinesis Data Streams or SQS for processing a stream of events? Mid level
PointKinesis Data StreamsSQS
OrderingPer shard (partition key)FIFO queues per message group; standard has none
ConsumersMany independent consumers can read the same dataA message is processed by one consumer and deleted
ReplayYes, within the retention periodNo (once deleted, gone)
ScalingShards or on-demand modeAutomatic

Pick Kinesis when several applications need the same ordered stream or you need replay (analytics, clickstreams). Pick SQS for work queues where each task is done once.

Q23. Amazon MSK or Kinesis Data Streams for streaming data? Mid level
PointAmazon MSKKinesis Data Streams
APIApache Kafka (open-source clients, Kafka Connect, Streams)AWS Kinesis API and SDKs
OpsChoose brokers and storage (or MSK Serverless)Serverless shards or on-demand
PortabilityKafka works anywhereAWS only
EcosystemHuge Kafka ecosystemTight AWS integrations (Firehose, Lambda)

Pick MSK if the team already uses Kafka or needs Kafka tools. Pick Kinesis for AWS-native streaming with minimal operations.

Q24. EventBridge Pipes or a Lambda function to connect a queue to a target? Mid level
PointLambda glue codeEventBridge Pipes
CodeYou write and maintain itConfiguration: source, filter, enrichment, target
FilteringIn code (you pay for every invocation)Before processing, so unwanted events cost less
EnrichmentAny codeLambda, Step Functions, API destinations or API Gateway
UseComplex logicPoint-to-point integrations (SQS, Kinesis, DynamoDB Streams to targets)

Pick Pipes for simple source-to-target flows with filtering and light enrichment. Pick Lambda when the transformation is complex or needs custom error handling.

Q25. AppSync or API Gateway for a mobile app backend? Mid level
PointAPI GatewayAppSync
API styleREST, HTTP and WebSocket APIsGraphQL (plus AppSync Events for pub/sub)
Data fetchingOne endpoint per resource; client may call manyClient asks for exactly the fields it needs in one request
Real-timeWebSocket APIs you manageBuilt-in subscriptions
ResolversLambda, HTTP, AWS service integrationsDirect to DynamoDB, Aurora, Lambda, HTTP, OpenSearch

Pick API Gateway for REST APIs and simple integrations. Pick AppSync when many screens need different shapes of data, or you want real-time updates without managing WebSocket connections.

Q26. Parameter Store or AWS AppConfig for feature flags? Mid level
PointParameter StoreAppConfig
PurposeStore valuesDeploy configuration safely
RolloutInstant change for every readerGradual deployment strategies (for example 10% every few minutes)
SafetyNone built inValidators, automatic rollback on CloudWatch alarms
Feature flagsManual JSONBuilt-in feature flag type with attributes

Pick Parameter Store for static settings read at startup. Pick AppConfig for flags and settings that change in production and could break things if wrong.

Q27. CloudWatch Logs or OpenSearch Service for application logs? Mid level
PointCloudWatch LogsOpenSearch Service
SetupBuilt in, almost no setupCluster or serverless collection to design
SearchLogs Insights queries, filtersFull-text search, complex aggregations, dashboards
Cost at high volumeIngestion and storage charges growCan be cheaper for heavy search use, but needs capacity planning
RetentionPer log groupIndex lifecycle, UltraWarm and cold storage

Pick CloudWatch Logs as the default. Add OpenSearch when many people search logs heavily, need rich dashboards, or run security analytics; you can subscribe log groups to OpenSearch.

Q28. CloudWatch Synthetics or CloudWatch RUM for monitoring a website? Mid level
PointSynthetics canariesRUM
TrafficScripted fake users on a scheduleReal users' browsers
DetectsOutages and broken flows even at nightReal performance by country, browser and device, and JavaScript errors
Works with no usersYesNo
SetupWrite canary scriptsAdd a JavaScript snippet to the site

Pick Synthetics to know the site works around the clock and to test key flows like login and checkout. Pick RUM to understand what real users experience. Most production sites use both.

Q29. IRSA or EKS Pod Identity for giving pods AWS permissions? Mid level
PointIRSA (IAM roles for service accounts)EKS Pod Identity
SetupOIDC provider per cluster; role trust policy per clusterPod Identity agent add-on; associations via EKS API
Trust policyMentions the cluster's OIDC issuer and service accountTrusts the pods.eks.amazonaws.com service principal; same role reusable across clusters
Session tagsLimitedAdds tags like cluster and namespace for ABAC
Works onEKS and self-managed KubernetesEKS (check support for Fargate and other features)

Pick Pod Identity for new EKS clusters because roles are easier to reuse. Keep IRSA where you already use it or need it outside EKS.

Q30. CloudWatch or Amazon Managed Service for Prometheus with Managed Grafana for container monitoring? Mid level
PointCloudWatch (Container Insights)Managed Prometheus + Managed Grafana
Metrics modelCloudWatch metrics and logsPrometheus metrics and PromQL
SetupCloudWatch agent or add-onCollectors (ADOT or managed scrapers) and Grafana workspaces
StrengthNative AWS alarms, one place for everythingKubernetes-native ecosystem, existing dashboards and exporters
Cost modelPer metric, logs, alarmsPer samples ingested and queries, per Grafana user

Pick CloudWatch for AWS-centric teams. Pick Prometheus and Grafana when the team already uses them or runs hybrid Kubernetes, and send alerts from both to the same on-call tool.

Q31. Control Tower or plain AWS Organizations for a growing company? Mid level
PointOrganizationsControl Tower
What it givesAccounts, OUs, SCPs, consolidated billingA landing zone on top of Organizations: log archive and audit accounts, guardrails, account factory
Setup effortYou design and build everythingGuided setup with best practices
FlexibilityFullSome opinions and managed resources you should not edit by hand

Pick Control Tower when starting a multi-account setup and you want good defaults quickly. Pick plain Organizations (with your own automation) if you have a mature platform team and special requirements.

Q32. AWS Network Firewall or a Gateway Load Balancer with third-party appliances for traffic inspection? Mid level
PointNetwork FirewallGWLB + appliances
ManagementAWS managed, rules in AWSYou run vendor appliances (EC2) behind GWLB
FeaturesStateful rules, Suricata-compatible IPS, domain filtering, TLS inspectionVendor features your security team already knows
LicensingPay AWS per endpoint hour and GBInstance costs plus vendor licences
OpsLowPatching and scaling appliances

Pick Network Firewall for AWS-native inspection with low operations. Pick GWLB with appliances when policy requires a specific vendor or features Network Firewall lacks.

Q33. IAM users with access keys or IAM Identity Center for people who use the console and CLI? Mid level
PointIAM usersIAM Identity Center
CredentialsPasswords and long-term access keys per accountSingle sign-on; short-lived credentials
Multi-accountA user in every accountOne login, choose account and permission set
Identity sourceSeparate from company directoryCompany directory (Entra ID, Okta, AD) or built-in
OffboardingDelete users in every accountDisable once in the directory

Pick Identity Center for all human access. Keep IAM users only for rare cases such as some legacy tools, and even then avoid long-term keys where possible.

Q46. VPC Lattice or PrivateLink and Transit Gateway for service-to-service traffic across many VPCs and accounts? Mid level
PointTransit Gateway / PrivateLinkVPC Lattice
LayerNetwork (TGW) or one service endpoint (PrivateLink)Application layer service network (HTTP, HTTPS, gRPC, and TCP)
Overlapping CIDRsTGW cannot route them; PrivateLink canWorks across overlapping CIDRs
AuthSecurity groups, endpoint policiesIAM auth policies per service, plus security groups
RoutingRoutes and endpoints you managePath and header routing, weighted targets

Pick Transit Gateway for broad network connectivity, PrivateLink to expose one service privately, and VPC Lattice for many microservices across accounts that need app-level routing and IAM-based auth.

Q47. AWS Firewall Manager or configuring WAF and security groups account by account? Mid level
PointPer-account setupFirewall Manager
ScaleFine for one or two accountsBuilt for an organisation
New accounts and resourcesManual or custom automationPolicies applied automatically to new accounts and resources
CoversWhatever you configureWAF, Shield Advanced, security group, Network Firewall and DNS Firewall policies
RequirementsNoneAWS Organizations and AWS Config

Pick Firewall Manager when security must apply baseline rules to every account and catch new resources automatically. Per-account setup fits small environments.

4. Senior level and scenario questions

These questions check design thinking and troubleshooting. Think aloud. Say what you check first, what you change, and how you prevent it next time.

Q34. For a public API at 5,000 requests per second, API Gateway with Lambda or an ALB with ECS? Senior
PointAPI Gateway + LambdaALB + ECS (Fargate or EC2)
Built-in featuresThrottling, usage plans, auth, request validationBasic routing; add WAF, auth via OIDC or in app
Cost at steady high loadPer request charges for both services add upUsually much lower per request
LatencySmall overhead plus possible cold startsSteady, warm containers
ScalingAutomatic, watch concurrency quotasService auto scaling you tune

Pick API Gateway + Lambda for spiky or moderate traffic and when API management features matter. Pick ALB + ECS for steady high traffic where cost per request and latency matter more.

Q35. AWS WAF on CloudFront or on the ALB? Senior
PointWAF on CloudFrontWAF on ALB
Where blocking happensAt the edge, before traffic reaches the RegionIn the Region, at the load balancer
ProtectionAlso benefits from edge scale and Shield at the edgeProtects only that ALB
Visibility of client IPReal client IP at the edgeReal client IP if no CDN in front; behind a CDN you need forwarded headers
RulesSame rule typesSame rule types

Pick CloudFront WAF for internet-facing apps with CloudFront in front. Use ALB WAF when there is no CDN, and make sure the ALB only accepts traffic from CloudFront when a CDN is used, or attackers can skip the edge rules.

Q36. One AWS account for everything or many accounts: how do you argue it in an interview? Senior
PointOne accountMany accounts
Security boundaryOne mistake can affect everythingAccount is a hard boundary; blast radius is small
QuotasShared by all teamsPer account
Billing clarityNeeds strict taggingClear by account
OverheadLow at firstNeeds Organizations, landing zone, central logging and identity

Pick many accounts (at least separate prod, non-prod, security and logging) for any real company. One account is fine only for learning or a tiny project.

Q37. Interface endpoints in every VPC or centralised in a shared services VPC? Senior
PointEndpoints per VPCCentralised endpoints
CostEndpoint hours multiplied by VPCsFewer endpoints, but Transit Gateway data processing charges
DNSPrivate DNS works automatically in each VPCNeeds Route 53 private hosted zones shared to spoke VPCs
PoliciesPer VPCShared, harder to tailor per team
Failure domainLocalShared dependency

Pick per-VPC endpoints for a few VPCs or high-volume traffic. Pick centralised endpoints for many VPCs with modest traffic, and calculate both endpoint hours and TGW data charges before deciding.

Q38. Route 53 weighted records or ALB weighted target groups for a blue/green switch? Senior
PointRoute 53 weightedALB weighted target groups
Switch speedDepends on DNS TTL and client cachingImmediate for new requests
GranularityPer DNS answer, uneven with few clientsPer request
ScopeCan shift between Regions or different load balancersWithin one ALB
RollbackChange weights, wait for TTLChange weights instantly

Pick ALB weighted target groups for blue/green inside one Region. Pick Route 53 weights when environments sit behind different load balancers or Regions, and keep TTLs low before the switch.

Q39. Self-hosted Jenkins on EC2 or CodePipeline with CodeBuild? Senior
PointJenkins on EC2CodePipeline + CodeBuild
OpsPatch Jenkins, plugins, agents, backupsManaged
FlexibilityHuge plugin ecosystem, any workflowAWS-native steps, extendable with Lambda and custom actions
SecurityPlugin vulnerabilities, stored credentialsIAM roles, no long-lived keys
CostServers always on (unless agents scale)Pay per pipeline and build minute

Pick CodePipeline and CodeBuild (or GitHub Actions with OIDC) for new AWS projects. Keep Jenkins when heavy existing investment or special plugins justify the operations work, and run its agents on short-lived instances.

Q40. SNS to SQS fan-out or EventBridge to SQS for 15 consuming services? Senior
PointSNS + SQSEventBridge + SQS
Throughput and latencyVery high throughput, low latencyHigh, slightly higher latency
FilteringFilter policies on attributes or bodyRich patterns on any event field, prefix, numeric and more
Event sourcesYour publishersYour publishers, AWS services, SaaS partners
ExtrasFIFO topics for ordered fan-outSchema registry, archive and replay, cross-account buses

Pick SNS + SQS for very high-volume, simple fan-out (including ordered with FIFO). Pick EventBridge when many teams publish and subscribe with different rules and you want replay and schema discovery.

Q41. Amazon Data Firehose straight to S3, or Kinesis Data Streams with a custom consumer, for clickstream analytics? Senior
PointFirehose to S3Data Streams + consumer
CodeNone (optional Lambda transform)Consumer app (Lambda, KCL, Flink)
LatencyBuffers by size and time (near real-time)Real-time, milliseconds to seconds
FormatsConverts to Parquet, partitions by keysWhatever your code does
Multiple consumersOne delivery path per streamMany consumers on the same data

Pick Firehose when the goal is landing data in S3 or Redshift for analytics. Add Data Streams when you also need real-time reactions (fraud alerts, live dashboards) from the same events.

Q42. For a hybrid network, Direct Connect with a VPN backup or two Direct Connect connections? Senior
PointDX + VPN backupTwo DX connections (different locations)
ResilienceGood: different paths (private link vs internet)High: both private, separate devices and locations
Failover performanceLower bandwidth and variable latency on backupSimilar performance after failover
CostLowerHigher
FitNon-critical or moderate trafficCritical production, large bandwidth

Pick DX plus VPN for most medium workloads. Pick two (or four) DX connections across locations, following AWS resiliency recommendations, when downtime or a slow backup path is unacceptable. Test failover with BGP either way.

Q43. Store application secrets in environment variables, Secrets Manager at runtime, or the Parameters and Secrets Lambda extension? Senior
PointEnvironment variablesSecrets Manager API at runtimeLambda extension (cached)
ExposureVisible to anyone who can read the function or task configurationFetched only when neededFetched and cached locally
RotationNeeds redeployPicks up rotated valuesPicks up after cache TTL
Cost and latencyNoneAPI call per fetch (cache it)Fewer calls thanks to the cache

Pick runtime fetching with caching (SDK cache or the extension) for secrets. Use environment variables only for non-secret settings, or for references (secret names), never for passwords.

Q44. Centralised logging account with S3 or a SIEM-style OpenSearch cluster for security logs? Senior
PointS3 log archiveOpenSearch for security analytics
Cost for years of dataLow (lifecycle to archive classes)High if everything is kept hot
QueryAthena, Security LakeFast search, dashboards, alerting
IntegrityObject Lock, versioningIndex-level protections only
UseLong-term evidence, complianceDay-to-day investigation

Pick both: S3 (optionally Amazon Security Lake in OCSF format) as the tamper-resistant store of record, and OpenSearch or a SIEM for the most recent weeks of searchable data.

Q45. For an internal web app, a VPN or AWS Verified Access? Senior
PointClient VPNVerified Access
Access grantedNetwork-level access to a VPCPer-application access, checked on every request
ChecksWho you are when connectingIdentity plus device posture, policy per app
User experienceInstall and connect a VPN clientOpen the app's URL in the browser (non-HTTP support depends on current features)
Lateral movementPossible once connectedLimited to allowed apps

Pick Verified Access for zero-trust access to internal web apps. Keep Client VPN for protocols and tools that need network-level access.

Q48. Route 53 failover records or AWS Global Accelerator for Regional failover of a web app? Senior
PointRoute 53 failoverGlobal Accelerator
MechanismDNS answers change after health checks failAnycast static IPs; traffic shifts at the AWS edge
Failover speedDepends on health check interval plus client DNS cachingSeconds, no DNS caching problem
Static IPsNoTwo static anycast IPs
ProtocolsAny (DNS level)TCP and UDP
CostLowHourly fee plus data transfer premium

Pick Route 53 failover for most web apps with modest RTO needs. Pick Global Accelerator when clients cache DNS badly, need fixed IPs (firewall allow lists), or failover must be very fast.

Q49. On EKS, ALB through the AWS Load Balancer Controller or an NLB with an NGINX ingress controller? Senior
PointALB via Load Balancer ControllerNLB + NGINX ingress
Where routing happensIn the AWS-managed ALBIn NGINX pods inside the cluster
FeaturesWAF, Cognito/OIDC auth, AWS certificatesNGINX features, custom configs, rewrites
OpsNo ingress pods to scaleYou scale and patch the NGINX pods
CostOne ALB per ingress groupOne NLB plus pod resources

Pick ALB for AWS-native features and less in-cluster work. Pick NGINX when you need its advanced routing or portable configuration across clouds.

Q50. DynamoDB Streams or Kinesis Data Streams for DynamoDB to feed change events? Senior
PointDynamoDB StreamsKinesis Data Streams for DynamoDB
Retention24 hoursConfigurable, up to much longer
ConsumersLimited number of simultaneous readers per shardMany consumers, enhanced fan-out
Ordering and duplicatesEach change appears once, in order per itemOrder and duplicates must be handled by consumers (use sequence or timestamps)
IntegrationsLambda, KCL adapterFirehose, Flink, Lambda and other Kinesis tools

Pick DynamoDB Streams for simple triggers like a Lambda per change. Pick Kinesis Data Streams when many consumers, longer retention or analytics pipelines need the change data.

5. Frequently asked questions

Which comparisons are asked most often?

Security groups vs NACLs, NAT gateway vs NAT instance, ALB vs NLB, SQS vs SNS, CloudWatch vs CloudTrail, VPN vs Direct Connect, and CloudFormation vs Terraform.

How should I end a comparison answer?

With a decision for a concrete case: "For our internal payroll app I would use X because ...". It shows judgement, not only memory.

Do I need to know every service on this page?

Freshers should know the networking and messaging basics. Senior candidates are expected to discuss Transit Gateway, Cloud WAN, Kinesis vs MSK, CloudHSM and multi-account security services.

6. Quick revision

  • Security groups are stateful and attached to network interfaces; NACLs are stateless and attached to subnets.
  • SQS queues work for one consumer group, SNS pushes to many subscribers, EventBridge routes events by rules.
  • VPN is quick and encrypted over the internet; Direct Connect is a private, consistent link.
  • CloudWatch is metrics and logs, CloudTrail is API activity, Config is resource configuration history.
  • KMS holds keys, Secrets Manager holds rotating secrets, Parameter Store holds configuration.

This page is one part of the complete AWS interview question set. Open the full list here: All 2052 AWS interview questions.