Ravindra BagaleCourses & study guides Track your progress

AWS Cloud

AWS Troubleshooting Scenario Interview Questions: Site Down, What Do You Check First? Plus Well-Architected Questions (50 Questions)

This page has 50 real troubleshooting scenarios and Well-Architected questions, with full answers. Interviewers often end with "the site is down, what do you check first?" This page trains you to answer that kind of question calmly and in order.

1. An everyday example: a power cut at home

Why do interviewers ask scenario questions?

Scenario questions show how you think under pressure. Do you panic and change random things, or do you check the most likely causes first, protect users, and keep others informed? This is exactly what happens during a real incident.

Think of a power cut at home. First you check: is it only my house or the whole street? (Is it my app or an AWS event?) Then: did a fuse trip? (Did something change, like a deployment?) Then you fix it safely, and later you find out why the fuse tripped so it does not happen again. Well-Architected is the building code that makes power cuts rarer and easier to fix.

How to answer scenario questions

  • Clarify: who is affected, since when, what changed?
  • Check in layers: DNS, network, load balancer, compute, application, database, dependencies.
  • Restore service first (rollback, failover, scale), then find the root cause, then prevent it.

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. Your website is down. What do you check in the first five minutes? Fresher
  • Confirm it: try the site yourself, from a different network if possible, and check monitoring dashboards and alarms.
  • Scope: all users or some? All pages or one feature? One Region or many?
  • Recent changes: deployments, configuration changes, DNS or certificate changes in the last hours.
  • AWS side: the AWS Health Dashboard for events in your Region and services.
  • Quick layer checks: does DNS resolve, does the load balancer have healthy targets, are there 5xx errors, is the database up?
  • Communicate: open an incident channel and post a short status.

If a recent deployment matches the start time, roll it back first.

Q2. A static website on S3 returns 403 Access Denied. What are the common causes? Fresher
  • The object does not exist: S3 returns 403 instead of 404 when the caller has no permission to list the bucket.
  • With CloudFront and OAC: the bucket policy does not allow the CloudFront distribution, or the distribution's default root object (index.html) is not set.
  • Without CloudFront: Block Public Access is on (good), so direct public access is denied by design.
  • Objects encrypted with SSE-KMS, and CloudFront or the user lacks permission on the KMS key.
  • Wrong file names or case: Index.html is not index.html.

Check with the CLI: aws s3 ls s3://bucket/ to confirm the object exists.

Q3. A Lambda function fails with "Task timed out after 3.00 seconds". What do you do? Fresher

The function ran longer than its configured timeout. The default timeout is 3 seconds.

Check:

  • Is the work really slow, or is the function waiting on something, such as a database connection, an API call, or a resource in a VPC it cannot reach?
  • Logs: add timing logs around external calls.
  • If the function is in a VPC, can it reach the service (security groups, NAT gateway or VPC endpoints)?

Fix: set a realistic timeout (with timeouts on external calls that are shorter than the function timeout), fix network access, reuse connections, and give more memory if the code is CPU heavy.

Q4. A Lambda function in a VPC cannot call an external API on the internet. Why? Fresher

When a Lambda function is attached to a VPC, it uses network interfaces in your private subnets. These interfaces do not get public IP addresses, even in a public subnet.

So it can reach the internet only through a NAT gateway in a public subnet, with a route from the function's subnets to the NAT gateway.

For AWS services, VPC endpoints are a cheaper and more private alternative.

Common mistake: putting the function in a public subnet and expecting the internet gateway to work. It does not.

Q5. An app gets "AccessDenied" when reading an S3 object, but its role has s3:GetObject. What else could block it? Fresher
  • The object is encrypted with SSE-KMS, and the role lacks kms:Decrypt on the key, or the key policy does not allow it.
  • The bucket policy has an explicit Deny, for example requiring a VPC endpoint or HTTPS.
  • An SCP or permissions boundary blocks the action.
  • A VPC endpoint policy does not allow this bucket.
  • The object is owned by another account (with ACLs enabled), so the bucket owner's policies do not apply to it.

Read the full error message and CloudTrail event. They often say which policy type denied the request.

Q6. Your domain suddenly stopped resolving for everyone. What do you check? Fresher
  • Domain registration: has the domain expired? Check the registrar or Route 53 Domains, and whether auto-renew failed because of a payment problem.
  • Name servers at the registrar: did someone change them, or delete and recreate the hosted zone (new zones get new name servers)?
  • The hosted zone records: were records deleted or changed?
  • DNSSEC: a broken DNSSEC setup makes validating resolvers return errors.
dig +short NS shop.example.com

If this returns nothing or different name servers than your hosted zone, the problem is at the registrar or delegation level.

Q7. AWS API calls fail with "ThrottlingException: Rate exceeded". What does it mean and what do you do? Fresher

You are calling an AWS API faster than its request rate quota for your account and Region.

Short term:

  • Retry with exponential backoff and jitter. AWS SDKs do this by default, so check that retries are not turned off.
  • Slow down batch scripts and spread calls over time.

Long term:

  • Reduce calls: cache results, use batch APIs, use events instead of polling.
  • Find which code path calls the API most (CloudTrail).
  • Request a quota increase if the usage is valid.
Q8. An EC2 launch fails with "InsufficientInstanceCapacity". What can you do? Fresher

AWS does not have enough capacity of that instance type in that Availability Zone at that moment.

Options:

  • Try again after a few minutes.
  • Try another Availability Zone, or let the Auto Scaling group use several AZs.
  • Use a different but similar instance type. Auto Scaling groups with several instance types (mixed instances policy) handle this automatically.
  • For planned events, reserve capacity in advance with On-Demand Capacity Reservations.

It is not a quota problem, so a quota increase will not help.

Q9. A CloudWatch alarm shows INSUFFICIENT_DATA. Is something broken? Fresher

Not always. INSUFFICIENT_DATA means the alarm does not have enough data points to decide.

Common reasons:

  • The alarm was just created.
  • The metric is published only when something happens, such as errors, so there is no data when all is well.
  • Wrong metric name, namespace or dimension, so the alarm watches a metric that does not exist.
  • The resource was deleted or replaced and has a new ID.

Check the metric in the console. For "no data means good" metrics, set missing data treatment to notBreaching.

Q10. You cannot delete an S3 bucket. What is usually stopping you? Fresher
  • The bucket is not empty. With versioning, you must also delete all object versions and delete markers, not only the current objects.
  • A bucket policy denies s3:DeleteBucket, sometimes even for admins.
  • Object Lock retention prevents deleting the locked versions.
  • The bucket is in use by another stack (CloudFormation) and should be deleted there.

Use a lifecycle rule to expire all versions in large buckets, which is cheaper and easier than deleting millions of objects by script.

Q11. Users see "Your connection is not private" on your website. What happened? Fresher

The browser does not trust the certificate.

Common causes:

  • The certificate expired. ACM certificates renew automatically only if DNS validation still works. Imported certificates must be renewed by you.
  • The certificate does not include the name the user typed, such as www.example.com missing from a certificate for example.com.
  • A new domain or subdomain was added to CloudFront or the ALB without a matching certificate.
  • The server sends an incomplete certificate chain.

Check the certificate details in the browser and in ACM, fix it, and add an alarm for upcoming expiry (ACM sends events through EventBridge).

Q12. How do you know if a problem is caused by AWS and not by your application? Fresher
  • Check the AWS Health Dashboard. Your account's view shows events that affect your specific resources, with updates.
  • Compare: are many unrelated services or AZs failing at the same time, or only your recent change?
  • Check AWS Health events in EventBridge, which you can route to your chat or paging tool.
  • Ask AWS Support with your resource IDs if you have a support plan.

Even during an AWS event, your design decides the impact. Multi-AZ setups usually ride out a single-AZ problem.

Q13. What is a runbook and why does it help during incidents? Fresher

A runbook is a written, step-by-step guide for a known task or problem, such as "database storage almost full" or "rotate a leaked key".

Why it helps:

  • People act faster and make fewer mistakes under stress.
  • New team members can handle incidents.
  • Steps can be automated later, for example as Systems Manager Automation documents.

A good runbook has: symptoms, checks with expected results, fix steps, rollback steps, and who to contact.

Q14. What are the design principles that apply across all Well-Architected pillars? Fresher

General design principles include:

  • Stop guessing capacity: scale with demand instead of buying for the peak.
  • Test systems at production scale, in environments you can create and delete.
  • Automate to make experiments easier.
  • Allow for evolutionary architectures, so designs can change over time.
  • Drive architectures using data: measure and decide.
  • Improve through game days: practise failures and events.

Everyday example: instead of guessing how many chairs a party needs, you bring folding chairs as more guests arrive.

Q15. What is a Well-Architected lens? Fresher

A lens adds questions and best practices for a specific technology or industry on top of the general framework.

Examples: Serverless Applications lens, SaaS lens, Data Analytics lens, Container Build lens, Generative AI lens, and industry lenses such as Financial Services.

In the Well-Architected Tool, you can apply several lenses to the same workload review.

You can also create custom lenses with your company's own questions, for example internal security standards.

Q16. What is a milestone in the Well-Architected Tool? Fresher

A milestone is a saved snapshot of a workload review at a point in time.

Teams save a milestone after the first review, then again after fixing risks, for example every quarter.

Comparing milestones shows progress: how many high and medium risks were fixed, and which remain.

This turns a one-time review into continuous improvement that managers can track.

Q17. What is the first thing you do when an alarm wakes you up at night? Fresher
  • Acknowledge the alert, so others know someone is on it.
  • Read the alarm: which service, which metric, how bad, since when?
  • Check the dashboard for user impact: error rates, latency, traffic.
  • Check recent changes and the AWS Health Dashboard.
  • If users are affected and the cause is unclear, follow the runbook or escalate early rather than struggling alone.
  • Post a short update in the incident channel.

Stay calm and write down what you see and do, with times. It helps the review later.

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. An SQS queue's backlog keeps growing. What do you check? Mid level
  • Consumers: are they running? Check Lambda errors and throttles, or ECS task count and logs.
  • Processing speed: did a downstream dependency, such as a database, become slow?
  • Poison messages: are the same messages failing again and again? Check ApproximateReceiveCount and the dead-letter queue.
  • Visibility timeout shorter than processing time, so messages reappear and are processed twice.
  • Input spike: more messages than usual (NumberOfMessagesSent).

Fix: scale consumers within what the database can handle, send failing messages to a DLQ after a few tries, and alarm on ApproximateAgeOfOldestMessage.

Q19. API Gateway returns 429 Too Many Requests to some clients. What does it mean? Mid level

429 means a throttling limit was hit:

  • The account-level throttle for API Gateway in the Region.
  • A stage or method throttle you configured.
  • A usage plan limit for a specific API key.
  • For HTTP APIs, route-level throttling.

Check CloudWatch metrics for the API and stage, and the usage plan settings.

Fix: raise limits where safe, give important clients their own usage plan, cache responses, and make clients retry with backoff. If the backend is the real bottleneck, protect it with a queue instead of raising limits.

Q20. Lambda invocations are being throttled. How do you troubleshoot? Mid level
  • Check the Throttles metric and ConcurrentExecutions.
  • Account concurrency: all functions in a Region share the account limit. One busy function can starve others.
  • Reserved concurrency on the function might be set too low (or set to 0, which blocks it completely).
  • Burst scaling: very sudden spikes scale up at a limited rate.

Fixes: request a higher account concurrency quota, set reserved concurrency for critical functions, reduce duration (faster code means less concurrency), and buffer spikes with SQS.

For synchronous callers, throttles return 429 errors. For asynchronous events, Lambda retries for a while.

Q21. An EventBridge rule does not trigger the target Lambda function. What do you check? Mid level
  • The event pattern: does it exactly match the event structure (source, detail-type and field names are case-sensitive)? Test it with the sandbox or test-event-pattern.
  • The event bus: is the rule on the bus where events really arrive (default bus or a custom bus)?
  • Permissions: the Lambda function's resource policy must allow events.amazonaws.com to invoke it from this rule.
  • Metrics: MatchedEvents shows matches, Invocations and FailedInvocations show delivery.
  • Add a dead-letter queue on the target to capture failed deliveries.

For AWS service events from CloudTrail, check that the service sends that event type at all.

Q22. After a scale-in event, users see a few 5xx errors on the ALB. Why? Mid level

Instances or tasks were removed while requests were still running on them.

Check:

  • Deregistration delay on the target group: too short, so in-flight requests are cut.
  • The application does not handle SIGTERM gracefully: it should stop accepting new requests, finish current ones, then exit.
  • Auto Scaling lifecycle hooks or ECS stop timeout too short for the drain.
  • Keep-alive connections from the ALB to targets being closed by the app before the ALB expects.

Fix: tune deregistration delay and stop timeouts, and add graceful shutdown to the application.

Q23. A Step Functions workflow fails at one step every few hundred runs. How do you make it reliable? Mid level
  • Look at the failed executions in the console: the error name, the cause and the input of the failed state.
  • If the errors are temporary (throttling, timeouts, service errors), add Retry with backoff to that state for those error names.
  • Add Catch to route permanent errors to a failure handling path, such as notifying a person or putting the item in a queue.
  • Make each task idempotent so retries are safe.
  • Set timeouts on task states, so a stuck call does not wait forever.

Alarm on ExecutionsFailed.

Q24. Another account uploaded files to your bucket, but you cannot read them. Why? Mid level

With older settings (ACLs enabled and ObjectWriter ownership), the uploading account owns the objects, not you. Your bucket policy does not apply to objects you do not own.

Fix:

  • Set S3 Object Ownership to "Bucket owner enforced". ACLs are disabled, and the bucket owner owns all objects automatically. This is the default for new buckets.
  • For existing objects owned by the other account, ask them to copy the objects again, or use a copy operation that changes ownership after the setting is changed.

Also check KMS: if they encrypted with their own key, you also need permission on that key.

Q25. A DNS change in Route 53 is not visible to some users after an hour. Why? Mid level
  • Caching: resolvers keep the old answer until the old record's TTL expires. If the TTL was 86400, some users may see the old value for up to a day.
  • Negative caching: if the name did not exist before, resolvers may cache "does not exist" for the SOA negative TTL.
  • The record was changed in the wrong hosted zone (for example a private zone instead of the public one, or an old zone that is not delegated).

Check with dig @<Route 53 name server> to see the true value, and with public resolvers to see cached values.

Q26. How do you use AWS Fault Injection Service in a game day? Mid level

AWS Fault Injection Service (FIS) runs controlled experiments that inject failures, such as stopping instances, adding CPU stress, adding network latency, failing over a database or simulating an AZ power interruption.

Steps:

  • Define a hypothesis: "if one AZ fails, the site stays up with less than 1% errors".
  • Create an experiment template with targets and actions.
  • Add stop conditions using CloudWatch alarms, so the experiment ends if impact is too big.
  • Run it in staging first, then carefully in production.
  • Record results and fix weaknesses.
Q27. A deploy succeeded, but latency doubled for all users. What do you check? Mid level
  • Compare before and after: which endpoints got slower, and is the slowness in the app, the database or a dependency? Use traces (X-Ray or OpenTelemetry).
  • Database: new queries without indexes, N+1 query patterns, or a migration that locked tables.
  • Configuration: smaller connection pools, debug logging turned on, or a cache turned off.
  • Resource usage: higher CPU or memory per request.

If impact is serious, roll back first and investigate on staging with the new version.

Q28. How do you approach "it works in staging but not in production" problems on AWS? Mid level

List the differences between the two environments:

  • Data volume and shape (production has more and messier data).
  • Configuration and secrets values.
  • IAM permissions, SCPs and resource policies in different accounts.
  • Network: different VPCs, endpoints, security groups and DNS zones.
  • Scale: concurrency, quotas, and instance sizes.
  • Versions of dependencies or AMIs.

Then compare logs and errors. Infrastructure as code and the same artifact in both environments make these problems much rarer.

Q29. What does the reliability pillar of Well-Architected recommend, in practice? Mid level

Design principles include:

  • Automatically recover from failure: health checks, Auto Scaling replacement, Multi-AZ failover.
  • Test recovery procedures: practise restores and failovers.
  • Scale horizontally to reduce the impact of one failure.
  • Stop guessing capacity.
  • Manage change through automation.

In practice: run in multiple AZs, set service quotas with headroom, use timeouts and retries with backoff, back up data and test restores, and monitor with alarms that lead to action.

Q30. What does the operational excellence pillar recommend, in practice? Mid level

Key ideas:

  • Perform operations as code: infrastructure, configuration and runbooks in code.
  • Make frequent, small, reversible changes.
  • Refine procedures often, and anticipate failure with game days.
  • Learn from all operational events with blameless reviews.
  • Use managed services where possible to reduce work.

In practice: CI/CD pipelines, dashboards and alarms for every service, runbooks, on-call rotation, and tracking of improvement actions.

Q31. What are the main ideas of the performance efficiency pillar? Mid level
  • Democratise advanced technologies: use managed services, such as managed databases and machine learning services, instead of building them yourself.
  • Go global in minutes: deploy in more Regions and use CloudFront for users far away.
  • Use serverless architectures to remove server management.
  • Experiment more often with different instance types and configurations.
  • Consider mechanical sympathy: choose the technology that fits how data is accessed.

In practice: load tests, right instance families (for example Graviton), caching, and performance monitoring over time.

Q32. A Lambda function works when you test it but fails when S3 events trigger it. What could be wrong? Mid level
  • Permissions: the function's resource policy must allow s3.amazonaws.com to invoke it for that bucket.
  • Event notification: is it configured for the right event types, prefix and suffix? Overlapping rules on the same bucket are rejected.
  • The event shape: real S3 events have URL-encoded object keys (spaces become +), so code that uses the key directly fails on some files.
  • The function's role lacks s3:GetObject (or KMS permission) for the objects it reads.
  • Recursive loop risk: writing output to the same bucket and prefix triggers the function again.

Check the function's CloudWatch logs for the real event and error.

Q33. An ECS service or Auto Scaling group did not scale out during a traffic spike. Why? Mid level
  • The scaling policy watched the wrong metric, or the metric reacted too slowly (for example 5-minute averages).
  • Maximum capacity was already reached.
  • New instances or tasks failed to start: capacity errors, quota limits (vCPU or ENI limits), missing subnet IPs, or failed health checks during start-up.
  • Cooldown or warm-up settings delayed new actions.
  • The scaling was based on CPU, but the real bottleneck was the database or connections.

Check the scaling activity history and service events, which usually show the reason.

Q34. How do you use CloudWatch Logs Insights to find when an incident started? Give an example. Mid level

Logs Insights lets you search and count log events quickly across log groups during an incident.

Example: find the most common errors in the last 30 minutes.

fields @timestamp, @message | filter @message like /ERROR/ | stats count(*) as errors by bin(1m) | sort errors desc

This shows how many errors happened in each minute, so you can see exactly when the problem started and match it to a deployment or change.

You can also group by error type or by request path to find the failing feature.

Q35. How do the Well-Architected pillars sometimes conflict, and how do you decide? Mid level

Examples of trade-offs:

  • Reliability versus cost: Multi-AZ and multi-Region designs cost more.
  • Security versus performance: deep inspection adds latency.
  • Performance versus cost: provisioned capacity for low latency costs more than on-demand.
  • Sustainability versus reliability: idle standby capacity uses energy.

Decide with the business: what is the cost of downtime, what are the compliance needs, what is the budget? Document the decision and the accepted risk, and review it when things change.

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.

Q36. A retry storm is overloading your service after a short database blip. What happened and how do you stop it? Senior

When the database had a short problem, every client retried immediately, many times. When the database came back, it received far more requests than normal and failed again. This loop can continue for a long time.

Stop it:

  • Shed load: temporarily reduce traffic, for example with rate limits at the API or WAF, or by scaling down non-critical consumers.
  • Let the database recover.

Prevent it:

  • Exponential backoff with jitter and a maximum number of retries in all clients.
  • Retry only at one layer, not at every layer of the stack.
  • Circuit breakers and token-bucket retry budgets.
  • Queues to buffer work.
Q37. One Availability Zone is having problems, and part of your application is failing. What do you do? Senior
  • Confirm with the AWS Health Dashboard and your metrics per AZ (errors and latency by AZ).
  • Move traffic away from the bad AZ: for ALB and NLB, use zonal shift in Application Recovery Controller, or remove the AZ's subnets temporarily from the Auto Scaling group or ECS service.
  • Make sure the healthy AZs have enough capacity: scale them up.
  • For RDS Multi-AZ, check whether the primary is in the bad AZ and fail over if needed.
  • Communicate impact and actions.

Afterwards, check that every component really was spread across AZs.

Q38. An engineer deleted a production DynamoDB table by mistake. How do you recover, and how do you prevent it? Senior

Recover:

  • If point-in-time recovery (PITR) was on, restore the table to a time just before the deletion. For deleted tables, DynamoDB keeps a system backup for PITR-enabled tables for a period, so check the backups list.
  • Otherwise, restore from on-demand backups or AWS Backup.
  • Restored tables need settings re-applied: auto scaling, alarms, streams, TTL and IAM policies.
  • Point the application to the restored table (or restore with the original name).

Prevent:

  • Deletion protection on tables, PITR on, and AWS Backup plans.
  • IAM and SCP deny statements on DeleteTable for production.
  • Changes through IaC with review.
Q39. Users in one Region see errors after a configuration change that went to all Regions at once. How should configuration be deployed? Senior

Global, simultaneous changes turn one mistake into a global outage.

Better approach:

  • Deploy configuration like code: validated, reviewed and versioned.
  • Roll out in waves: one AZ or one Region first (a canary Region), then the rest, with wait times and health checks between waves.
  • Use AppConfig or the pipeline with automatic rollback on alarms.
  • Keep the ability to roll back quickly to the last known good configuration.

For the current incident: roll back the configuration in the affected Region first, then everywhere.

Q40. Your monthly CloudWatch bill tripled. How do you find and fix the cause? Senior
  • Cost Explorer by usage type: is it log ingestion (DataProcessing-Bytes), log storage, custom metrics, dashboards, alarms or API calls?
  • Logs: find the log groups with the most ingested bytes (IncomingBytes metric per log group). A debug log level left on is common.
  • Metrics: high-cardinality custom metrics, such as a dimension per user or per request ID, create huge numbers of metrics.
  • API calls: frequent GetMetricData calls from third-party monitoring tools.

Fix: lower log levels, set retention, use the Infrequent Access log class, remove bad dimensions, and add a budget alert.

Q41. How do you run an incident with several teams involved? Senior
  • Assign roles: an incident commander who coordinates (not the person fixing), a communications lead who updates stakeholders, and subject matter experts who investigate.
  • One incident channel and one bridge call, with a running log of times and actions.
  • Clear severity levels that decide who is paged and how often updates go out.
  • Focus on mitigation first: rollback, failover, feature flag off.
  • Hand over clearly if the incident runs long.
  • After recovery, schedule a blameless review.

AWS Systems Manager Incident Manager or other incident tools can help automate paging and timelines.

Q42. What should a good post-incident review contain? Senior
  • Summary: what happened, impact (users, duration, money), and severity.
  • Timeline: detection, actions and recovery with exact times.
  • Root cause and contributing factors: technical and process, using a method like "5 whys".
  • What went well and what did not, such as slow detection or missing runbooks.
  • Action items with owners and due dates: alarms, tests, design changes.
  • Blameless tone: focus on systems and processes, not on blaming a person.

Track actions to completion, and share lessons with other teams.

Q43. A critical service depends on a third-party API that is often slow. How do you protect your users? Senior
  • Timeouts shorter than your own response target.
  • Retries with backoff for safe requests, with a limit.
  • A circuit breaker that stops calling the API when it is failing and returns a fallback.
  • Caching of responses that do not change often.
  • Asynchronous processing: accept the user's request, put the work in a queue, and complete it later.
  • Monitor the third party's latency and errors separately, and agree an SLA with them.

This keeps your service working even when theirs is not.

Q44. Your team keeps getting paged for alarms that need no action. How do you fix alert fatigue? Senior
  • Review every alarm from the last month: did it need action? Remove or change the ones that did not.
  • Page only on symptoms users feel (error rate, latency, availability), and send cause-based alerts (CPU, disk) to a ticket queue unless urgent.
  • Use composite alarms to combine signals, and require several data points before alarming.
  • Use anomaly detection for metrics with daily patterns.
  • Make every paging alarm link to a runbook.
  • Track pages per week as a team health metric.
Q45. How would you apply the Well-Architected Framework to a fast-growing startup with a small team? Senior
  • Focus on the highest risks first: backups and restore tests, IAM and MFA, a second AZ for production, and basic monitoring.
  • Use managed and serverless services to reduce operations work.
  • Use IaC from the start, even simple templates.
  • Set budgets and cost alerts early, because surprise bills hurt startups.
  • Run a light Well-Architected review every quarter and track a few improvements each time.

Do not try to fix everything at once. Accept some risks consciously and write them down.

Q46. How do you design an application so it degrades gracefully instead of failing completely? Senior
  • Identify core features (checkout, login) and optional features (recommendations, reviews).
  • When a dependency for an optional feature fails, hide that part of the page instead of returning an error.
  • Serve cached or static content when the backend is slow.
  • Put non-urgent work (emails, analytics) in queues so it can wait.
  • Use feature flags to turn off heavy features during incidents.
  • Set limits and priorities so core traffic is served first.

Test degradation with fault injection, so you know it works.

Q47. An S3 bucket used by the app was accidentally made public for two hours. What do you do? Senior
  • Fix immediately: turn on Block Public Access for the bucket and the account, and remove the public policy or ACL.
  • Assess exposure: which objects are in the bucket, do they contain sensitive data (Macie), and were they accessed? Check S3 server access logs or CloudTrail data events for GET requests from unknown IPs.
  • Find who made the change and how, using CloudTrail.
  • If sensitive data was exposed, follow the incident and legal notification process, and rotate any credentials stored there.
  • Prevent: account-level Block Public Access, SCPs that stop turning it off, and Config rules with auto-remediation.
Q48. How do you prepare a system for a 10-times traffic increase next month? Senior
  • Load test now at 10 times traffic in a production-like environment, and find the first bottleneck. Fix it and test again.
  • Check quotas: Lambda concurrency, EC2 vCPU limits, API Gateway limits, and request increases early.
  • Database: read replicas, caching, connection pooling, and query tuning.
  • Auto scaling settings and warm capacity, plus capacity reservations if needed.
  • Protect the system: rate limits, queues for slow work, and graceful degradation.
  • Prepare dashboards, runbooks and an on-call plan for the event.
Q49. You suspect a memory leak in a containerised service on ECS. How do you confirm and handle it? Senior
  • Look at the memory utilization metric per task over days: a leak shows as a steady climb after each deployment, then a drop when tasks restart.
  • Check stopped task reasons: "OutOfMemoryError: Container killed due to memory usage" confirms the limit was reached.
  • Correlate with traffic: a leak grows even when traffic is flat.
  • Reproduce in staging with a load test and a memory profiler for the language (heap dumps for Java, heap snapshots for Node.js).

Short term: raise the memory limit or restart tasks regularly while you fix the code. Long term: fix the leak and add an alarm on memory growth.

Q50. How do you set useful SLOs and error budgets for a service on AWS? Senior
  • Choose service level indicators users feel: the share of successful requests and the share of requests faster than a threshold, measured at the load balancer or API.
  • Set targets, for example 99.9% of requests succeed over 30 days. That leaves an error budget of 0.1%, about 43 minutes of full outage per month.
  • Alarm on burn rate: page when the budget is being used too fast, not on every small spike.
  • Use the budget to decide: when it is used up, slow releases and fix reliability work first.

CloudWatch Application Signals supports SLOs; you can also build them from CloudWatch metrics.

5. Frequently asked questions

What if I do not know the exact AWS error?

Say how you would find it: CloudWatch metrics and logs, CloudTrail, the AWS Health Dashboard and the service console. A clear method is worth more than memorised error codes.

How long should a scenario answer be?

About two minutes. Give an ordered list of checks, say what each result would mean, and end with the fix and prevention.

Is the Well-Architected Framework only for architects?

No. Every engineer uses its ideas: automate, test recovery, use least privilege, measure and optimise. Interviewers use it to check whether you think beyond "it works on my machine".

6. Quick revision

  • First questions: what changed, who is affected, is AWS having an event?
  • Roll back first when a recent deployment is the likely cause.
  • Throttling: retry with backoff and jitter, then fix the request pattern or raise quotas.
  • AccessDenied: check identity policy, resource policy, KMS key policy, SCPs and boundaries.
  • After every incident: a blameless review with actions that have owners.

This page is one part of a 1000-question AWS interview set. Open the full list here: All 1000 AWS interview questions.