AWS Cost Optimization Interview Questions: Storage, Data Transfer, Tagging, Budgets, CUR and FinOps Scenarios (50 Questions)
This page has 50 interview questions on AWS storage costs, data transfer costs and FinOps (the practice of managing cloud spend as a team). Compute discounts are on the previous page. Here you learn where hidden costs come from and how companies track and control spend across accounts.
1. An everyday example: a household electricity bill
Why do storage and data transfer surprise people?
Compute is easy to see: you launched the servers. Storage and data transfer grow quietly, gigabyte by gigabyte, and often become a big part of the bill before anyone notices.
Think of a household electricity bill. The big appliances (compute) are obvious. But lights left on in empty rooms (unused volumes and snapshots), and the charge for sending power between buildings (data transfer between AZs and Regions), add up silently. FinOps is the family agreeing who uses what and checking the meter every month.
How to use this page
- Open Cost Explorer and group by usage type to see real cost lines in your own account.
- Prices vary by Region and change over time. This page explains how charges work; it gives no rates. Any number is an example only.
- All IDs and names are examples, such as account 111122223333.
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. What are the parts of an S3 bill? Fresher
- Storage: GB-months per storage class (plus per-object overhead for some archive classes).
- Requests: PUT, COPY, POST, LIST (higher price) and GET, SELECT (lower price), per thousand requests.
- Retrieval: per GB for Standard-IA, One Zone-IA and Glacier classes.
- Data transfer: out to the internet or to other Regions (in is free; same-Region to most AWS services is free).
- Management and features: Inventory, Storage Lens advanced metrics, replication, Object Lambda, Intelligent-Tiering monitoring, KMS requests.
Group S3 cost by usage type to see which part grows.
Q2. Why is moving EBS volumes from gp2 to gp3 usually a quick saving? Fresher
- gp3 has a lower price per GB than gp2.
- gp3 gives a baseline of IOPS and throughput regardless of size; gp2 performance grows with size, so people often over-sized gp2 volumes just for IOPS.
- The change is online with Elastic Volumes, with no downtime.
aws ec2 modify-volume --volume-id vol-0aa1b2c3d4e5f6789 --volume-type gp3Before switching large gp2 volumes that rely on high IOPS, set the gp3 IOPS and throughput to match what the volume actually uses (check CloudWatch), otherwise performance can drop.
Q3. How do you find unattached EBS volumes from the CLI? Fresher
aws ec2 describe-volumes --filters Name=status,Values=available --query "Volumes[].[VolumeId,Size,VolumeType,CreateTime]" --output tableOutput:
| vol-0aa1b2c3d4e5f6789 | 500 | gp2 | 2025-03-14T10:22:00Z |This 500 GiB volume is not attached to any instance and has been billed for months.
Before deleting: check tags and owners, take a final snapshot if unsure, and confirm with the team. Run it in every Region, because volumes are Regional.
Q4. Why do public IPv4 addresses show up on the bill? Fresher
Since February 2024, AWS charges per hour for every public IPv4 address, whether attached to a running instance, a load balancer, a NAT gateway or sitting idle as an Elastic IP.
To reduce it:
- Do not give private workloads public IPs (turn off auto-assign public IP on private subnets).
- Release unused Elastic IPs.
- Put many services behind one load balancer or CloudFront.
- Use IPv6 where possible.
VPC IP Address Manager (IPAM) public IP insights lists every public IPv4 address and what owns it.
Q5. Which data transfers are free and which are charged? Fresher
Common rules (check current pricing for details):
| Transfer | Usually charged? |
|---|---|
| Internet into AWS | No |
| AWS to the internet | Yes, per GB (tiered) |
| Within the same AZ using private IPs | No |
| Between AZs in the same Region | Yes, in each direction |
| Between Regions | Yes |
| EC2 to S3 or DynamoDB in the same Region | No (but NAT gateway processing applies if traffic goes through NAT) |
| Origin to CloudFront | No for AWS origins |
Design so heavy traffic stays in one AZ or uses endpoints and caching.
Q6. What is the AWS Cost and Usage Report (CUR 2.0)? Fresher
CUR is the most detailed billing dataset: hourly or daily line items for every resource, usage type, price, discount, tag and cost category. CUR 2.0 is delivered through AWS Data Exports to an S3 bucket in Parquet format.
Uses:
- Query with Athena or load into QuickSight or a FinOps tool.
- Resource-level analysis (which volume, which function).
- Showback and chargeback with tags and amortised cost.
Cost Explorer is enough for quick views; CUR is for deep analysis and automation.
Q7. What can an AWS Budgets action do? Fresher
Besides sending alerts, a budget can run an action when a threshold is crossed:
- Attach an IAM policy that denies creating new resources.
- Apply an SCP to an account or OU.
- Stop specific EC2 or RDS instances.
Actions can run automatically or wait for approval.
Use them for sandbox and training accounts. In production, prefer alerts plus human decisions, because automatic stops can cause outages.
Q8. What is AWS Cost Anomaly Detection? Fresher
Cost Anomaly Detection uses machine learning to learn normal spending patterns and alerts when spend jumps unexpectedly, for example a service suddenly costing five times more today.
- Monitors can watch services, accounts, cost categories or tags.
- Alerts go to email or SNS (for example a chat channel) individually or as daily or weekly summaries.
- Each anomaly shows the root cause (service, account, Region, usage type).
It is free to use and catches surprises within a day instead of at month end.
Q9. What do unblended, blended and amortised cost mean? Fresher
- Unblended: the actual rate charged for each line item when it happened (upfront payments show on the purchase day).
- Blended: an average rate across accounts in an organisation for some reservations; rarely useful today.
- Amortised: upfront commitment payments spread evenly over the term, plus recurring fees, so each day carries its fair share.
Use amortised cost for team showback and trends, and unblended cost to match invoices.
Q10. Why does a NAT gateway cost money even when almost no traffic passes through it? Fresher
A NAT gateway has two charges:
- An hourly charge for every hour it exists, in each AZ where you create one.
- A per-GB data processing charge for traffic through it (plus normal data transfer charges).
So three NAT gateways in a quiet dev VPC cost money all month just for existing. In addition, the NAT gateway's public IPv4 address is billed.
For dev and test: share one NAT gateway (accepting less resilience), remove it when not needed, use gateway endpoints for S3 and DynamoDB, or use IPv6 with an egress-only internet gateway.
Q11. What is the DynamoDB Standard-Infrequent Access table class? Fresher
A DynamoDB table can use the Standard or Standard-IA table class.
- Standard-IA: lower storage price, higher read and write request price.
- Standard: the reverse.
Pick Standard-IA when storage is the biggest part of the table's cost, for example old orders or logs kept for occasional lookups. You can switch a table's class (with limits on how often). Check the table's cost split between storage and throughput in Cost Explorer first.
Q12. What are AWS Cost Categories? Fresher
Cost Categories let you define rules that group costs into business terms, such as "Team: Payments" = accounts A and B plus anything tagged team=payments.
- Rules can use accounts, tags, services, charge types and other categories.
- Shared costs can be split across categories (even, proportional or fixed).
- Categories appear in Cost Explorer, Budgets and CUR.
They are useful when account structure and tags are messy, because rules can combine both.
Q13. Why do orphaned snapshots keep costing money after an instance is gone? Fresher
Terminating an instance deletes its root volume by default, but not the snapshots or AMIs taken from it. Snapshots created by scripts, old backups and deregistered AMIs' snapshots stay and are billed.
Find snapshots not used by any AMI and older than your retention:
aws ec2 describe-snapshots --owner-ids self --query "Snapshots[?StartTime<='2025-11-01'].[SnapshotId,VolumeSize,Description]" --output textClean up with lifecycle policies (DLM or AWS Backup retention) rather than one-off scripts, and check the Recycle Bin rules so you understand what deletion really does.
Q14. How does CloudFront reduce data transfer cost for a website? Fresher
- Data transfer from AWS origins (S3, ALB, EC2) to CloudFront is not charged.
- CloudFront's own data transfer out to users is often priced lower than direct transfer out from EC2 or S3, and CloudFront has a free monthly allowance.
- Caching means fewer requests reach the origin, so origin compute and S3 request costs fall too.
- Compression (gzip, Brotli) sends fewer bytes.
Check the cache hit ratio: a low hit ratio means you pay for CloudFront and still load the origin.
Q15. How does AWS Budgets differ for forecasted versus actual alerts? Fresher
- Actual alert: fires when real spend crosses the threshold (for example 80% of the monthly budget).
- Forecasted alert: fires when AWS predicts that spend by month end will cross the threshold, often days or weeks earlier.
Use both: forecasted alerts give time to act; actual alerts confirm. Also use budgets for usage (hours, GB) and for Savings Plans or RI utilisation and coverage, not only for cost.
Q16. What does a lifecycle policy on an ECR repository save? Fresher
Each image layer stored in ECR is billed per GB-month. CI pipelines push a new image on every build, so repositories grow forever.
Output:
{"rules":[{"rulePriority":1,"description":"keep last 30 images","selection":{"tagStatus":"any","countType":"imageCountMoreThan","countNumber":30},"action":{"type":"expire"}}]}Only the newest 30 images are kept. Add a rule that keeps release-tagged images longer, and make sure images running in production are not expired (pin by digest and keep them tagged).
Q17. Why does log storage cost keep rising, and what is the quickest fix? Fresher
CloudWatch log groups keep data forever by default, and you pay for ingestion and storage. Every new service adds log groups with no retention.
Quickest fixes:
- Set retention on every log group (for example 30 days for application logs).
- Lower the log level (no debug in production).
- Use the Infrequent Access log class for logs rarely searched.
- Export or send long-term logs to S3 with lifecycle rules.
Enforce retention with an AWS Config rule or IaC defaults.
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. Why do container image pulls from ECR through a NAT gateway cost money, and how do you avoid it? Mid level
Private subnets reach ECR's public endpoints through the NAT gateway, which charges per GB processed. Image layers are actually stored in S3, so large images pulled by many tasks add up fast.
Avoid it with VPC endpoints:
- Interface endpoints for ecr.api and ecr.dkr.
- A gateway endpoint for S3 (free) so layer downloads skip NAT.
- Also endpoints for CloudWatch Logs and other frequently used services.
Smaller images and image caching on nodes reduce the bytes as well.
Q19. How do microservices create cross-AZ data transfer costs, and how do you reduce them? Mid level
Each call from a service in AZ a to a service in AZ b is charged in both directions. With chatty microservices, load balancers spreading requests across AZs, and databases or caches in one AZ, this grows quickly.
Reduce it:
- Prefer same-AZ routing where safe: Kubernetes topology-aware routing, client-side AZ-aware load balancing, or turning off cross-zone load balancing on NLBs where it fits.
- Read from replicas in the same AZ.
- Compress payloads and cut chatty calls (batch, cache).
Keep enough capacity in each AZ so AZ-local routing does not overload one zone.
Q20. How do you find which resources cause cross-AZ data transfer? Mid level
- Cost Explorer: filter usage type DataTransfer-Regional-Bytes and group by resource or tag (resource-level data needs CUR or hourly granularity options).
- CUR with Athena: sum line items with that usage type by resource ID.
- VPC Flow Logs (with AZ fields, such as az-id and pkt-src-aws-service in custom formats) to see which sources and destinations talk across AZs.
- For EKS, network monitoring tools can show pod-to-pod traffic by AZ.
Then fix the top talkers first; usually a few services cause most of the cost.
Q21. How do you enforce cost tags on new resources? Mid level
- Tag policies in Organizations standardise tag keys and allowed values (for example team must be one of a list) and report non-compliance.
- SCPs or IAM policies can deny creating resources without a tag, using conditions like aws:RequestTag/team with Null checks (only for services that support tag-on-create).
- IaC default tags (Terraform default_tags, CDK Tags.of(app)) apply tags automatically.
- AWS Config rules (required-tags) catch what slips through.
Start with reporting, then enforce, so teams are not suddenly blocked.
Q22. A new cost allocation tag does not appear in Cost Explorer. Why? Mid level
- User-defined tags must be activated as cost allocation tags in the Billing console of the management (payer) account.
- After activation, it takes up to about a day to appear.
- Costs before the tag existed on a resource are not tagged; a backfill option can apply activated tags to past months in some cases, but resources must have had the tag at that time.
- Some charges cannot be tagged (some data transfer, support).
- Check the exact key spelling and case: "Team" and "team" are different tags.
Q23. How do you find the top 10 most expensive resources last month with CUR and Athena? Mid level
Output:
SELECT line_item_resource_id, product['product_name'] AS product,
ROUND(SUM(line_item_unblended_cost), 2) AS cost
FROM cur2 WHERE billing_period = '2026-10'
AND line_item_resource_id <> ''
GROUP BY 1, 2 ORDER BY cost DESC LIMIT 10;You get the resources (instances, buckets, NAT gateways) that cost the most. Column names depend on your CUR version and settings, so check the table schema. Include resource IDs when you create the export, or this column is empty.
Q24. How does cross-Region replication affect cost, and how do you plan it? Mid level
Costs added by replicating data to another Region:
- Inter-Region data transfer for every replicated GB.
- Storage in the destination (often a cheaper class is fine).
- Request charges for replication, and extra charges for features like Replication Time Control.
- For databases: replica instances running in the second Region.
Plan it: replicate only what the recovery or latency goal needs (prefix or tag filters), choose a cheaper destination storage class, and avoid replicating temporary or derived data that can be rebuilt.
Q25. An application issues billions of S3 LIST and PUT requests. Why is this costly, and how do you fix it? Mid level
LIST and PUT requests cost more per thousand than GETs. Systems that poll prefixes for new files, or write millions of tiny objects, can make request charges larger than storage.
Fixes:
- Use S3 event notifications instead of polling with LIST.
- Batch small records into larger files (for example every minute or 100 MB) with Firehose or a buffer.
- Use S3 Inventory for periodic full listings instead of LIST calls.
- Cache metadata in DynamoDB if the app needs fast lookups of keys.
Q26. When is Intelligent-Tiering more expensive than a simple lifecycle rule? Mid level
- Intelligent-Tiering adds a small monitoring and automation fee per object; with huge numbers of objects just over 128 KB, the fee can outweigh savings.
- If you already know the pattern (for example "logs are never read after 30 days"), a lifecycle rule to a cheaper class saves the same or more without the monitoring fee.
- Short-lived objects never reach the cheaper tiers.
Intelligent-Tiering wins when access patterns are unknown or change, and objects are fairly large.
Q27. Should VPC Flow Logs go to CloudWatch Logs or S3 for cost reasons? Mid level
| Point | CloudWatch Logs | S3 |
|---|---|---|
| Ingestion cost | Higher (vended log rates to CloudWatch) | Lower |
| Query | Logs Insights, metric filters, alarms | Athena |
| Format | Text | Text or Parquet, with Hive-style partitions |
| Retention | Log group retention | Lifecycle to cheaper classes |
Pick S3 (Parquet, partitioned) for large volumes and investigations. Use CloudWatch Logs only where you need real-time alarms on flow data, and consider sampling only critical subnets.
Q28. How do load balancer costs work, and when can you save by consolidating? Mid level
ALBs and NLBs charge per hour plus per capacity unit (LCU or NLCU), based on new connections, active connections, processed bytes and rule evaluations.
Saving ideas:
- Many small internal apps can share one ALB with host or path rules instead of one ALB each.
- Remove idle load balancers left from old environments.
- Check if an NLB or API Gateway fits better for very low traffic.
Do not over-consolidate: a shared ALB is a shared blast radius and has rule and certificate limits.
Q29. How can Direct Connect lower data transfer cost? Mid level
Data transfer out of AWS over Direct Connect is charged at lower per-GB rates than data transfer out to the internet, and you pay port hours for the connection.
It saves money when large, steady volumes flow from AWS to on-premises (backups, analytics exports, hybrid apps). For small volumes, port and provider fees can cost more than the savings.
Calculate: monthly GB out x (internet rate - DX rate) vs DX port and partner costs.
Q30. How do you reduce Aurora and RDS storage and backup costs? Mid level
- Backup storage up to the size of the database (per Region) is included; extra retention and manual snapshots are billed. Clean old manual snapshots.
- Shorten automated backup retention where the business allows, and use AWS Backup for long-term copies to cold storage where supported.
- Aurora storage shrinks automatically when data is deleted (dynamic resizing), but RDS EBS storage cannot shrink; plan RDS storage carefully and use storage autoscaling.
- Archive old rows to S3 (export, partitioning and drop) instead of keeping years of history in the database.
- Remove unused databases and test copies (Aurora clones are cheap until they diverge).
Q31. How do you calculate a unit cost such as cost per order? Mid level
- Choose a business driver the team understands: orders, active users, API calls, GB processed.
- Allocate the relevant cloud cost to the product (accounts, tags, cost categories, plus a share of shared costs).
- Divide by the business volume for the same period.
Example only: product cost for the month divided by orders that month.
- Track it weekly: if traffic doubles and unit cost stays flat, efficiency is stable; if unit cost rises, something got less efficient.
Unit cost turns the cost conversation from "the bill went up" into "each order costs more" or "less".
Q32. Which cost signals should every engineering team get each week? Mid level
- Their spend this week vs last week and vs budget (amortised).
- Top 5 cost drivers by service and usage type.
- Anomalies detected and their status.
- Waste list: idle resources, untagged resources, right-sizing suggestions.
- Commitment coverage for their usage, if they own it.
- Unit cost trend for their product.
Send it where they work (chat or email digest), keep it short, and link to the details.
Q33. How do you handle costs that cannot be tagged, such as support or shared networking? Mid level
- Put shared services in their own accounts (network, security, logging) so their cost is clearly visible.
- Use Cost Categories with split charge rules to allocate them: proportional to each team's direct spend, evenly, or fixed percentages.
- Document the rule and keep it stable, so teams trust trends.
- For shared platforms (EKS, data lake), use usage-based allocation (split cost allocation data, query metrics) when the share is large.
Perfect allocation is not the goal; fair and consistent allocation is.
Q45. How can CloudWatch custom metrics become expensive, and how do you prevent it? Mid level
Each unique combination of metric name and dimension values is a separate billed metric. Adding a dimension like customer_id, request_id or container ID can create thousands or millions of metrics.
Prevent it:
- Keep dimensions low-cardinality (service, environment, AZ), not per user or request.
- Put high-cardinality details in logs (embedded metric format with only a few dimensions), and query them with Logs Insights.
- Publish fewer metrics at lower resolution where 1-second data is not needed.
- Review metric counts per namespace in Cost Explorer (usage type MetricMonitorUsage).
Q46. A compliance team restores archived S3 data every month "to test", and the retrieval bill is high. What do you change? Mid level
- Test with a small random sample of objects instead of full restores; restoring a sample proves the process works.
- Use Bulk retrieval, which is the cheapest tier, unless the test needs speed.
- Restore for the minimum number of days needed, so the temporary copy is not stored longer than necessary.
- Keep frequently needed archive data in Glacier Instant Retrieval (no restore step), and only the truly cold data in Flexible Retrieval or Deep Archive.
- Record the test results as evidence so audits do not require repeated full restores.
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. The bill shows a sharp rise in DataTransfer-Regional-Bytes. Walk through your investigation. Senior
- Confirm the usage type and Region in Cost Explorer; find when it started (daily view).
- CUR: group by resource ID to find the top resources (often load balancers, NAT gateways, EC2 instances in a cluster).
- Match the start date to changes: a new service, a cache or database moved to another AZ, cross-zone load balancing turned on, a replica added.
- Flow Logs with AZ fields to see which pairs of services talk across AZs.
- Fix: AZ-local routing, compress or reduce payloads, co-locate chatty components, cache.
- Add an anomaly monitor on that usage type.
Q35. How would you start a FinOps practice in a company with 50 AWS accounts and no cost ownership? Senior
- Visibility: activate CUR 2.0, define an account and tag strategy, create Cost Categories per team or product.
- Ownership: every account and major resource has a named owner team.
- Rhythm: monthly cost reviews per team, with a short report (spend, trends, waste, actions).
- Guardrails: budgets and anomaly alerts per account, tag policies, sandbox limits.
- Optimisation: a backlog from Cost Optimization Hub, prioritised by savings and effort.
- Commitments: central Savings Plans and reservations managed by a small FinOps function.
- Culture: share wins and unit costs; make cost a non-functional requirement in design reviews.
Q36. A data lake's storage cost grows 10% every month. How do you control it? Senior
- Measure: Storage Lens and Inventory to see growth by prefix, storage class, object age and size, and noncurrent versions.
- Lifecycle by zone: raw data to cheaper classes after processing, temporary and staging data expired quickly, old versions expired.
- Formats: convert raw JSON or CSV to compressed Parquet; compact small files.
- Remove duplicates: the same data copied by several teams; share with access points or Lake Formation instead.
- Retention policy agreed with legal and business, enforced by lifecycle.
- Owners: tag prefixes or buckets by team so growth is visible to them.
Q37. A video app's internet data transfer is now its biggest cost. What are the options? Senior
- CloudFront in front of all media with long cache times; check the cache hit ratio and origin shield to reduce origin fetches.
- Right formats: adaptive bitrate streaming, efficient codecs and resolution matched to the device, so fewer bytes are sent.
- CloudFront savings options (such as committed-use pricing for steady high volume) through AWS; discuss with your account team.
- Avoid serving media directly from S3 or EC2 to users.
- Check for abuse: hotlinking or scraping; use signed URLs or cookies and WAF rate rules.
Measure cost per hour of video watched as the unit cost.
Q38. You need to migrate 4,000 gp2 volumes to gp3 across 30 accounts. How do you do it safely? Senior
- Inventory with Config or a script: volume ID, size, IOPS usage (CloudWatch p99 over 30 days), attached instance and owner.
- Group volumes: small and low-IOPS volumes convert with default gp3 settings; high-IOPS volumes get gp3 IOPS and throughput set to measured peak plus headroom.
- Automate with SSM Automation or a script per account, in waves (dev first), respecting the 6-hour modification limit per volume.
- Monitor latency and queue length during and after changes.
- Update launch templates, AMIs and IaC so new volumes are gp3, and add a Config rule to flag new gp2 volumes.
Q39. A service team claims their costs doubled because of the shared platform's allocation rule. How do you resolve it? Senior
- Recalculate their share with the current rule and show the inputs (their usage, total shared cost).
- Check for real changes: did another team leave the platform (fewer payers), or did the platform's cost grow?
- Check the rule's fairness: proportional to requests may punish a team with many cheap calls; proportional to CPU requests may suit better.
- Agree changes with all teams and finance; apply from the next month, not retroactively.
- Publish the rule and a dashboard so surprises do not repeat.
Trust in allocation is more important than precision.
Q40. Finance asks for next year's AWS budget. How do you forecast it? Senior
- Start from current run-rate (amortised), by product and environment.
- Add organic growth from business forecasts (users, orders) using unit costs.
- Add known projects: new Regions, migrations, launches; subtract decommissions.
- Apply planned savings and commitment renewals (Savings Plans, Database Savings Plans, reservations), with expiry dates.
- Include price changes you know about and a contingency (for example 10%).
- Use Cost Explorer's forecast as a sanity check, and review the forecast quarterly.
Present it as ranges and assumptions, not a single number.
Q41. Tag coverage is only 40% of spend. How do you raise it to over 90%? Senior
- Measure coverage by account and service; untagged spend often comes from a few big sources.
- Fix accounts first: if each account belongs to one team, account-level Cost Categories cover its spend without tags.
- Default tags in IaC pipelines and in Service Catalog products.
- Tag backfill: scripts or Resource Groups Tagging API for existing resources, with owners confirming.
- Enforcement: tag policies, then deny-on-create for key services.
- Report coverage weekly by team; celebrate improvements.
Remember some costs are untaggable; allocate them with rules instead.
Q42. Which hidden costs do you check during a cost review of a new architecture? Senior
- Data transfer: cross-AZ calls, NAT gateway processing, inter-Region replication, internet egress.
- Per-request charges at scale: API Gateway, S3 LIST/PUT, KMS, Secrets Manager calls, CloudWatch custom metrics and API calls.
- Logs and monitoring ingestion volumes.
- Idle baseline: NAT gateways per AZ, interface endpoints per AZ, load balancers, public IPv4 addresses.
- Backups and snapshots growth.
- Support plan and Marketplace subscriptions.
Ask for a cost estimate per environment, and add these lines explicitly to the Pricing Calculator estimate.
Q43. An old database keeps 10 years of rows, making storage and backups costly. How do you archive safely? Senior
- Agree retention rules: what must stay online (for example 2 years) and what must be kept but rarely read.
- Export older data to S3 in Parquet (by month), verify row counts and checksums, and make it queryable with Athena.
- Delete archived rows in small batches, or, if the table is partitioned by date, detach and drop old partitions.
- For RDS (EBS), storage does not shrink after deletes; migrate to a right-sized instance or use Aurora, which resizes storage.
- Protect the archive with S3 Object Lock and lifecycle to archive classes if needed.
- Update reports that used the old rows to read from the archive.
Q44. How do you prevent a forgotten test environment from running for months? Senior
- Every environment has an owner tag and an expiry date tag set at creation (enforced by policy).
- A scheduled job (Lambda or Systems Manager) reports environments past expiry, notifies owners, then stops or deletes them after a grace period.
- Ephemeral environments in CI are destroyed automatically when the pull request closes.
- Sandbox accounts have budgets with actions.
- Weekly waste reports name the owners.
Make cleanup the default, and keeping something running the exception that needs a reason.
Q47. An active-active setup in two Regions doubles the cost. How do you reduce it while meeting the recovery target? Senior
- Revisit the targets: if the RTO is an hour, not seconds, warm standby or pilot light in the second Region may be enough.
- Run the second Region smaller and scale up on failover (auto scaling, pre-approved quotas, capacity reservations only if required).
- Replicate only the data needed for recovery; rebuild derived data after failover.
- Use serverless and on-demand services in the secondary Region, which cost little when idle.
- Keep traffic mostly in one Region to avoid double inter-Region transfer.
Test failover regularly, because a cheaper standby only helps if it actually works.
Q48. Sending EKS logs and metrics to a third-party observability SaaS adds a large data transfer bill. What can you do? Senior
- The data leaves AWS to the internet (often through NAT), so you pay NAT processing and egress.
- Use the vendor's PrivateLink endpoint if offered, which avoids NAT and internet egress (endpoint and PrivateLink charges apply instead).
- Filter and sample at the collector: drop debug logs, health check logs and high-cardinality metrics before sending.
- Compress and batch in the agent.
- Keep raw logs in S3 cheaply and send only what is needed for alerting and search.
Compare the vendor's own ingestion fees too; reducing volume saves on both sides.
Q49. Several teams started using Amazon Bedrock and nobody knows who spends what. How do you put governance in place? Senior
- Separate accounts per team, or application inference profiles with cost allocation tags per team or app, so usage is attributable.
- Budgets and anomaly alerts per team on Bedrock spend.
- Quotas and guardrails: limit which models each team may call (IAM, SCPs), and set rate limits in the gateway that calls Bedrock.
- Cost-aware design: smaller models where quality allows, prompt caching, shorter prompts and outputs, batch inference for offline jobs.
- Report cost per feature or per 1,000 requests, so product owners see the trade-off.
Q50. A company must keep 1 PB of records for 10 years and read them almost never. How do you design the cheapest safe storage? Senior
- S3 Glacier Deep Archive as the main class (lowest storage cost; restores take hours).
- Large objects: bundle small records into big archive files to avoid per-object overhead and request costs.
- An index (in DynamoDB or a small database) of what is in each archive file, so you can restore only the needed file.
- Object Lock (compliance mode) and versioning for immutability; a copy in a second Region only if regulation requires it.
- Lifecycle to expire after 10 years.
- Small periodic restore tests with Bulk retrieval.
Budget for the occasional large restore, because retrieval and request costs can be significant.
5. Frequently asked questions
What is the single most useful cost view?
Cost Explorer grouped by service, then by usage type. Usage types tell you exactly what is charged (for example NatGateway-Bytes or TimedStorage-ByteHrs).
Do I need FinOps certifications for cloud roles?
No, but you should know tagging, budgets, showback, commitments and unit costs. Senior interviews often ask how you would run cost reviews.
What should I practise?
Find unattached volumes and old snapshots with the CLI, create a budget with an alert, and query a Cost and Usage Report with Athena.
6. Quick revision
- Data in from the internet is free; data out and between AZs and Regions is charged.
- S3 bills storage, requests, retrieval, transfer and management features.
- gp3 is usually cheaper than gp2 for the same performance.
- User-defined cost allocation tags must be activated before they appear in billing tools.
- Unit cost (cost per order or per user) shows efficiency better than total spend.
7. Related chapters
- AWS Cost Optimization and FinOps: Cut Cloud Bills Safely
- AWS Architecture Interview Questions and Answers: High Availability, Disaster Recovery, Cost and Scenarios (50 Questions)
- AWS S3 and Storage Interview Questions and Answers (50 Questions on S3, EFS, FSx and Backup)
- 1000 AWS Interview Questions and Answers for Freshers and Experienced (Complete Set)
This page is one part of the complete AWS interview question set. Open the full list here: All 2052 AWS interview questions.