AWS Data Analytics and AI Interview Questions and Answers: Kinesis, Glue, Athena, Redshift, EMR, SageMaker and Bedrock (50 Questions)
This page has 50 interview questions on data analytics and AI services on AWS, with full answers. Data engineers, cloud engineers and even DevOps engineers now get these questions, because every company wants dashboards, data lakes and generative AI features.
1. An everyday example: a fruit juice factory
Why do these services come up in cloud interviews?
Companies collect huge amounts of data: clicks, orders, logs and sensor readings. They want reports by morning and AI features in their apps. Cloud engineers build and run the pipelines that make this possible, safely and at a sensible cost.
Think of a juice factory. Kinesis and Data Firehose are the conveyor belts that bring fruit in all day. S3 is the big cold storage. Glue is the washing and cutting machine that cleans and prepares the fruit. Athena and Redshift are the tasting rooms where people ask questions about the stock. EMR is a heavy industrial machine for very large batches. SageMaker AI and Bedrock are the recipe experts who create new drinks.
How to use this page
- Know the job of each service in one sentence first.
- For mid-level questions, focus on file formats, partitions and cost.
- For AI questions, be careful and honest: say what the service does, and how you keep data safe and answers grounded.
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 is a data lake on AWS? Fresher
A data lake is a central place to store all your data, structured and unstructured, in its raw and processed forms, usually in Amazon S3.
Typical parts:
- Storage: S3 buckets with zones such as raw, cleaned and curated.
- Catalog: the AWS Glue Data Catalog stores table definitions (schemas and locations).
- Processing: Glue jobs, EMR or Lambda.
- Query: Athena, Redshift Spectrum or EMR.
- Security: Lake Formation permissions and encryption.
Everyday example: a big warehouse where everything is stored with labels, so different teams can find and use what they need.
Q2. When would you choose Amazon Data Firehose instead of writing your own Kinesis Data Streams consumer? Fresher
- Kinesis Data Streams: a real-time stream where your applications write and read records. You build consumers (Lambda, apps, Flink) and control processing. Data is kept for 24 hours by default, up to 365 days.
- Amazon Data Firehose (formerly Kinesis Data Firehose): a fully managed delivery service that loads streaming data into destinations such as S3, Redshift, OpenSearch and HTTP endpoints. It buffers, can transform with Lambda, can convert to Parquet, and needs no consumer code.
Use Streams when you need custom real-time processing or replay. Use Firehose when you just need to land data somewhere.
Q3. What is a shard in Kinesis Data Streams? Fresher
A shard is a unit of capacity in a stream. In provisioned mode, each shard supports:
- Writes: up to 1 MB per second or 1,000 records per second.
- Reads: up to 2 MB per second shared by standard consumers (enhanced fan-out gives each registered consumer its own 2 MB per second).
Records go to a shard based on the partition key.
On-demand mode manages shards for you and scales automatically, which is easier when traffic is unpredictable.
Q4. What does AWS Glue do? Fresher
AWS Glue is a serverless data integration service.
- Data Catalog: a central metadata store of databases and tables, used by Athena, EMR, Redshift Spectrum and others.
- Crawlers: scan data in S3 or databases and create or update table definitions.
- ETL jobs: Spark or Python shell jobs that clean and transform data, for example CSV to Parquet.
- Glue Studio: a visual editor for jobs.
- Data quality rules and workflows to chain jobs.
You pay for the time jobs and crawlers run.
Q5. What is Amazon Athena? Fresher
Athena is a serverless SQL query service for data in S3 (and other sources through connectors).
- No servers or clusters to manage.
- Tables come from the Glue Data Catalog.
- You pay mainly for the amount of data each query scans (or for provisioned capacity if you choose it).
aws athena start-query-execution --query-string "SELECT count(*) FROM sales.orders WHERE dt='2026-11-19'" --work-group analysts --query QueryExecutionId --output textOutput:
4f1c2d3e-5a6b-7c8d-9e0f-112233445566The query started in the analysts workgroup. Get results with get-query-results using this ID.
Q6. Why is Parquet better than CSV for analytics on S3? Fresher
- Columnar: queries read only the columns they need. A query on 3 of 50 columns reads much less data.
- Compressed: Parquet files compress well, so they are smaller.
- Has a schema and statistics, so engines can skip blocks that do not match a filter.
Result: Athena and Redshift Spectrum scan less data, so queries are faster and cheaper.
CSV is fine for small files and data exchange, but convert to Parquet (or ORC) for analytics.
Q7. What is Amazon Redshift? Fresher
Amazon Redshift is a managed cloud data warehouse for fast SQL analytics on large amounts of structured data.
- Columnar storage and massively parallel processing across nodes.
- Provisioned clusters (for example RA3 nodes with managed storage) or Redshift Serverless, which scales automatically and charges for usage.
- Redshift Spectrum queries data in S3 without loading it.
- Integrates with BI tools through standard SQL drivers.
Use it for business reporting, dashboards and complex joins across billions of rows.
Q8. What is Amazon EMR used for? Fresher
Amazon EMR runs big data frameworks such as Apache Spark, Hive, Presto/Trino and HBase.
Options:
- EMR on EC2 clusters: full control, with primary, core and task nodes.
- EMR Serverless: you submit Spark or Hive jobs, and AWS manages capacity.
- EMR on EKS: run Spark jobs on an existing Kubernetes cluster.
Use EMR for large-scale processing, machine learning feature preparation, and when you need a specific open-source version or custom settings that Glue does not offer.
Q9. What is AWS Lake Formation? Fresher
Lake Formation helps you build and secure a data lake. Its main value is central, fine-grained permissions.
- Grant access to databases, tables and columns in the Glue Data Catalog.
- Row-level and cell-level filters, so an analyst sees only rows for their country.
- LF-Tags: tag-based access control at scale.
- Share data across accounts.
Athena, Redshift Spectrum, EMR and Glue respect these permissions, so you manage access in one place instead of many S3 bucket policies.
Q10. What is Amazon MSK? Fresher
Amazon Managed Streaming for Apache Kafka (MSK) runs Apache Kafka clusters for you.
- MSK provisioned: you choose broker types and storage.
- MSK Serverless: capacity is managed automatically.
- MSK Connect runs Kafka Connect connectors.
Choose MSK when your team already uses Kafka tools and APIs, needs Kafka features like long retention and many consumer groups, or is moving an existing Kafka system to AWS. Choose Kinesis for simpler AWS-native streaming.
Q11. What is Amazon SageMaker AI used for? Fresher
Amazon SageMaker AI (the machine learning service, formerly just called Amazon SageMaker) helps you build, train and deploy machine learning models.
- Notebooks and Studio for data scientists.
- Managed training jobs on CPU or GPU instances, including Spot training.
- Model hosting: real-time endpoints, serverless inference, asynchronous and batch transform.
- MLOps: pipelines, model registry and monitoring for data drift.
AWS also offers a wider SageMaker platform with a unified studio for data and AI work. In interviews, focus on the ML lifecycle: data, train, evaluate, deploy, monitor.
Q12. What is Amazon Bedrock? Fresher
Amazon Bedrock is a managed service to use foundation models (large language models and image models) from Amazon and other providers through one API.
- No servers or GPUs to manage. You call the model by API.
- Features for building apps: Knowledge Bases (for retrieval-augmented generation), Guardrails (safety filters), agents, model evaluation and fine-tuning for some models.
- AWS states that your prompts and outputs are not used to train the base models and are not shared with model providers.
Example: a support app sends a customer question and gets a draft answer from a model.
Q13. What is retrieval-augmented generation (RAG)? Fresher
RAG makes a language model answer using your own documents.
Steps:
- Split documents into chunks and convert them into vectors (embeddings), stored in a vector store.
- When a user asks a question, find the most relevant chunks.
- Send the question plus those chunks to the model, and ask it to answer from them.
Benefits: answers use current, private data without training the model, and you can show sources.
In AWS, Bedrock Knowledge Bases can manage this flow with vector stores such as OpenSearch Serverless or Aurora PostgreSQL with pgvector.
Q14. Name a few AWS AI services that work without building your own model. Fresher
- Amazon Rekognition: image and video analysis, such as object and text detection.
- Amazon Textract: extracts text, forms and tables from scanned documents.
- Amazon Transcribe: speech to text.
- Amazon Polly: text to speech.
- Amazon Translate: language translation.
- Amazon Comprehend: text analysis, such as sentiment and entities.
These are API services: you send data and get results. They are a good choice when the task is common and you do not need a custom model.
Q15. What is the difference between OLTP and OLAP, with AWS examples? Fresher
- OLTP (online transaction processing): many small, fast reads and writes, such as placing an order. AWS examples: RDS, Aurora, DynamoDB.
- OLAP (online analytical processing): fewer but large queries that scan and summarise lots of data, such as monthly sales by region. AWS examples: Redshift, Athena, EMR.
Do not run heavy reports on the production OLTP database, because they slow down customer transactions. Copy the data to an analytics system instead.
Q16. What is a Glue crawler and when should you not use one? Fresher
A crawler scans data in S3 or databases, guesses the schema and partitions, and creates or updates tables in the Glue Data Catalog.
Useful for exploring new data or when files change shape.
When not to rely on it:
- When you know the schema already, define tables in IaC or use partition projection, so the schema is stable and controlled.
- When the data is messy, crawlers may create many wrong tables or change column types unexpectedly.
- When you need new partitions immediately and the crawler runs on a schedule.
Q17. How do you secure data in an S3 data lake? Fresher
- Encrypt at rest with SSE-KMS and in transit with HTTPS only.
- Block public access on all buckets.
- Use Lake Formation for table, column and row permissions instead of broad S3 access.
- Separate raw data with personal information from curated data, and mask or tokenise sensitive columns.
- Log access with CloudTrail data events.
- Use Macie to find unexpected sensitive data.
- Set lifecycle policies so old data is archived or deleted according to policy.
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. How do partitions make Athena queries cheaper? Mid level
Data is stored in folders by a column, such as s3://shop-lake/orders/dt=2026-11-19/.
When a query filters on the partition column (WHERE dt = '2026-11-19'), Athena reads only that folder instead of the whole table.
Example: one year of orders is 365 GB. A query on one day scans about 1 GB instead of 365 GB, so it is much cheaper and faster.
Tips:
- Partition by columns that queries filter on, such as date.
- Avoid too many tiny partitions.
- Use partition projection so Athena calculates partitions without catalog lookups.
Q19. What is the "small files problem" in S3 data lakes and how do you fix it? Mid level
Streaming and frequent jobs often write thousands of tiny files (a few KB each).
Problems: query engines spend more time opening files than reading data, S3 request costs grow, and queries become slow.
Fixes:
- Increase Firehose buffer size or interval so it writes bigger files.
- Run compaction jobs (Glue or EMR) that merge small files into larger Parquet files, for example 128 MB to 1 GB.
- Use table formats like Apache Iceberg, which support compaction and other maintenance.
Q20. What are Glue job bookmarks? Mid level
Job bookmarks let a Glue ETL job remember which data it already processed.
On the next run, it processes only new files or new rows, instead of everything again.
Example: an hourly job reads new files from s3://shop-raw/clicks/ and writes Parquet to the cleaned zone. With bookmarks, it does not reprocess yesterday's files.
If you reprocess data on purpose, you can reset the bookmark. Bookmarks work best with clear, append-only input.
Q21. How do Redshift distribution styles affect performance? Mid level
Redshift spreads table rows across slices on nodes. The distribution style decides how:
- KEY: rows with the same key value go to the same slice. Good when two large tables are joined on that key, because the join needs no data movement.
- ALL: a full copy on every node. Good for small dimension tables.
- EVEN: rows spread round-robin. Good when there is no clear join key.
- AUTO: Redshift chooses and can change it as the table grows.
Wrong choices cause data to move between nodes during joins, which makes queries slow.
Q22. What are sort keys in Redshift and why do they matter? Mid level
A sort key decides the order of data on disk.
Redshift stores min and max values for blocks, so when a query filters on the sort key (for example a date range), it can skip blocks that do not match.
Example: an orders table sorted by order_date. A query for last week reads only recent blocks.
Choose columns that are often used in range filters or joins. AUTO sort keys let Redshift choose based on query patterns.
Q23. How do you load data into Redshift efficiently? Mid level
Use the COPY command from S3, not many single INSERT statements.
- COPY loads files in parallel across slices.
- Split data into multiple files, ideally a multiple of the number of slices, of similar size.
- Use compressed, columnar formats like Parquet.
- Use an IAM role attached to the cluster for S3 access.
For near real-time data, consider streaming ingestion from Kinesis or MSK, or zero-ETL integrations from supported databases such as Aurora.
Q24. How do you handle late or duplicate records in a streaming pipeline on AWS? Mid level
Streams are usually "at least once", so duplicates happen, and some records arrive late.
- Give every event a unique ID and an event timestamp.
- Deduplicate in the processing step (for example with a key in DynamoDB, or in Flink state) or in the target table with merge logic.
- Process by event time, not arrival time, and allow a lateness window for windowed aggregations.
- Write late records to a correction path and update aggregates later.
Interviewers want to hear that you design for duplicates instead of hoping they do not occur.
Q25. What is Apache Iceberg and why are AWS services adding support for it? Mid level
Apache Iceberg is an open table format for data lakes. It adds database-like features on top of files in S3:
- ACID transactions, so readers do not see half-written data.
- Updates and deletes on rows (useful for data protection requests).
- Schema evolution and time travel to older versions.
- Hidden partitioning and compaction.
Athena, Glue, EMR, Redshift and S3 Tables support Iceberg, so many teams use it as the standard table format for new data lakes.
Q26. How do you control Athena costs for a team of analysts? Mid level
- Use workgroups per team, with a per-query data scanned limit and workgroup-level limits.
- Store data in Parquet with compression and partitions.
- Teach SELECT only needed columns and filter on partitions.
- Use CTAS or views to create smaller, summarised tables for common reports.
- Reuse query results for repeated queries where allowed.
- Review the costliest queries using workgroup metrics in CloudWatch.
For very heavy, constant use, consider provisioned capacity, or move frequent dashboards to Redshift.
Q27. What is the difference between Glue ETL and EMR for Spark jobs? Mid level
Glue ETL:
- Serverless. You choose workers (DPUs), and AWS runs Spark.
- Integrated with the Data Catalog, bookmarks and visual editing.
- Best for standard ETL jobs with less tuning.
EMR (on EC2, Serverless or EKS):
- More control over Spark versions, configuration and instance types.
- Can be cheaper at large, steady scale, especially with Spot.
- Supports more frameworks and custom libraries.
Many teams start with Glue and move heavy or special workloads to EMR.
Q28. How do you choose between Kinesis Data Streams on-demand and provisioned mode? Mid level
- On-demand: no shard planning. It scales automatically with traffic. You pay per GB written and read plus a per-stream charge. Good for new or unpredictable workloads.
- Provisioned: you choose the number of shards and pay per shard hour. Cheaper for steady, predictable high traffic, but you must scale shards yourself and watch for hot shards.
You can switch modes, with some limits on how often. Start with on-demand, measure, and move to provisioned if the traffic is steady and the cost saving is clear.
Q29. What do Bedrock Guardrails do? Mid level
Guardrails apply safety and policy checks to model inputs and outputs.
You can configure:
- Content filters for harmful categories, and prompt attack detection.
- Denied topics, for example "no investment advice".
- Word filters for banned words.
- Sensitive information filters to block or mask personal data, such as phone numbers.
- Contextual grounding checks to detect answers not supported by the source documents.
The same guardrail can be applied to different models, so rules stay consistent.
Q30. What are the main cost drivers when you use Amazon Bedrock? Mid level
- Tokens: for on-demand use, you pay per input and output token, and prices differ by model.
- Model choice: larger models cost more per token. Use smaller models where quality is enough.
- Prompt size: long system prompts and large retrieved context on every request add up. Prompt caching (on supported models) can cut repeated input costs.
- Batch inference for non-urgent jobs is cheaper than on-demand for supported models.
- Provisioned Throughput for steady, high usage or custom models.
- Extra services: vector stores, Knowledge Base ingestion, guardrails and logging.
Measure tokens per request and set budgets.
Q31. What is the difference between fine-tuning a model and using RAG? Mid level
- RAG: the model stays the same. You give it relevant documents at question time. Best for facts that change, private knowledge and when you need source citations. Easier to update: just change the documents.
- Fine-tuning: you train the model further on your examples so it learns a style, format or task. Best for consistent tone, special formats or domain language. It needs good training data, costs more and must be repeated when needs change.
Many systems use RAG first, and fine-tuning only if prompts and RAG are not enough.
Q32. How do you deploy a trained model for different inference patterns in SageMaker AI? Mid level
- Real-time endpoint: always-on instances for low-latency requests, such as fraud checks during payment.
- Serverless inference: scales to zero, good for spiky, low-volume traffic, with possible cold starts.
- Asynchronous inference: for large payloads or long processing, with requests queued and results in S3.
- Batch transform: for scoring a whole dataset offline.
Choose based on latency needs, traffic pattern and cost. Use auto scaling on real-time endpoints.
Q44. What is Amazon Managed Service for Apache Flink used for? Mid level
It runs Apache Flink applications without managing servers. Flink is a framework for stateful, real-time stream processing.
Uses:
- Windowed aggregations, such as orders per minute per city.
- Real-time anomaly detection and alerts.
- Joining two streams, or a stream with reference data.
- Exactly-once processing with checkpoints and state.
It reads from Kinesis Data Streams or MSK and writes to destinations such as S3, OpenSearch or another stream. Choose it when Lambda consumers become too complex for stateful logic.
Q45. What are Amazon S3 Tables? Mid level
S3 Tables are a type of S3 storage built for tabular data in the Apache Iceberg format. You create a table bucket, and tables inside it.
Benefits compared with managing Iceberg files yourself in a normal bucket:
- Automatic maintenance, such as compaction and snapshot cleanup.
- Table-level permissions.
- Higher query performance for analytics, according to AWS.
They integrate with AWS analytics services such as Athena, EMR and Redshift through the catalog integration. Check current Region availability and pricing before choosing them.
Q46. How is an agent in Amazon Bedrock different from a single model call? Mid level
A single model call sends a prompt and gets one answer.
An agent can plan several steps to reach a goal: it decides which tools to call (for example an API that checks order status, through an action group or a Lambda function), reads the results, may search a knowledge base, and then writes the final answer.
Example: "Cancel my last order" leads the agent to find the last order, check the cancellation rules, call the cancel API, and confirm.
Agents need careful permissions, input validation and limits, because they take actions, not just write text.
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.
Q33. Design a near real-time clickstream analytics pipeline for an e-commerce site. Senior
- Ingest: the website sends events to an API (API Gateway or ALB) that writes to Kinesis Data Streams (on-demand), or directly to Data Firehose.
- Real-time use: a Lambda or Managed Service for Apache Flink app reads the stream for live counters and alerts.
- Storage: Data Firehose writes to S3 in Parquet, partitioned by date and hour, with a Glue table.
- Query: Athena for ad hoc analysis, Redshift for dashboards with heavy joins.
- Governance: Lake Formation permissions, PII masking, lifecycle rules.
- Monitoring: stream iterator age, Firehose delivery errors and data freshness alarms.
Q34. Athena queries suddenly became 10 times more expensive. How do you investigate? Senior
- Find the costly queries: workgroup metrics, query history, and DataScannedInBytes per query.
- Check for a schema or data change: did a job start writing CSV instead of Parquet, or stop partitioning?
- Check whether a crawler changed partition columns or table definitions.
- Look for new dashboards or users running SELECT * without partition filters, or on a schedule every minute.
- Check the small files problem after a pipeline change.
Fix the source, add workgroup scan limits and alert on daily scanned bytes.
Q35. A Kinesis consumer falls behind and the iterator age keeps growing. What do you do? Senior
Iterator age (GetRecords.IteratorAgeMilliseconds) shows how old the data being read is. If it grows, consumers are too slow, and data may expire before it is processed.
Check:
- Consumer errors and retries: a poison record can block a shard if errors are not handled.
- Lambda consumer settings: batch size, parallelization factor, concurrency limits and function duration.
- Hot shards: one partition key gets most of the traffic.
- Read throughput limits: too many consumers sharing a shard. Use enhanced fan-out.
Fix: handle bad records with bisect-on-error and a failure destination, increase parallelism or shards, and spread partition keys.
Q36. How would you build a secure RAG chatbot on internal company documents with AWS services? Senior
- Documents in S3 with access controls, synced into a Bedrock Knowledge Base, with a vector store such as OpenSearch Serverless.
- Metadata on each document (department, access level), and filters at query time so users only retrieve what they are allowed to see.
- The app calls Bedrock through a backend with IAM roles, not from the browser, using VPC endpoints where possible.
- Guardrails for content, personal data and grounding checks.
- Show source links with every answer.
- Log prompts and responses carefully (they may contain sensitive data), and evaluate answer quality regularly.
- Control cost with smaller models, prompt limits and usage quotas per user.
Q37. How do you design Lake Formation permissions for 20 teams sharing one data lake? Senior
- Register the S3 locations with Lake Formation and stop granting direct S3 access to analysts.
- Define LF-Tags such as domain=sales, sensitivity=confidential, and tag databases, tables and columns.
- Grant permissions to IAM Identity Center groups or roles by tag expressions, for example sales analysts can read domain=sales and sensitivity in (public, internal).
- Use data filters for row-level restrictions, such as country.
- Share data with other accounts through Lake Formation cross-account sharing.
- Audit access with CloudTrail.
Tag-based access scales much better than per-table grants.
Q38. A nightly Glue job that used to take 20 minutes now takes 3 hours. How do you troubleshoot? Senior
- Compare input size: did data volume grow, or did a source start sending many small files?
- Look at Spark UI and job metrics: one long-running task means data skew (one key with most rows).
- Check for a changed join that now causes a huge shuffle, or a new column that broke partition pruning.
- Check worker type and count, and whether auto scaling is on.
- Check the target: writing to a database with slow inserts or locks.
Fixes: fix skew (salting keys), compact inputs, filter early, increase workers, and add a duration alarm.
Q39. How do you move a large on-premises data warehouse to Redshift? Senior
- Assess: schemas, data size, ETL jobs, reports and SQL features used.
- Convert schemas and code with AWS Schema Conversion Tool or DMS Schema Conversion, and review the parts it cannot convert.
- Move historical data: export to files, transfer to S3 (DataSync, Direct Connect or offline transfer for very large volumes), then COPY into Redshift.
- Keep data in sync during migration with DMS change data capture or the existing ETL writing to both.
- Rebuild ETL in Glue or other tools, and validate numbers with business users.
- Cut over reports gradually.
Q40. How do you control the quality and safety of a generative AI feature in production? Senior
- Evaluation before release: test sets with expected answers, automated scoring (Bedrock model evaluation or your own), and human review for risky areas.
- Guardrails for harmful content, denied topics, personal data and grounding.
- Prompt and template version control, with A/B testing.
- Monitoring: user feedback, refusal rates, latency, cost per request and errors.
- Logging with privacy controls, and a way to report bad answers.
- Clear user messages that answers are AI generated, and a human escalation path for sensitive cases.
Q41. Your analytics team needs data from 15 Aurora databases without slowing them down. What do you suggest? Senior
- Do not run heavy reports on the production databases.
- Use zero-ETL integrations from Aurora to Redshift, where supported, to replicate data in near real time without building pipelines.
- Or use DMS with change data capture into S3 (Parquet) or Redshift.
- Or export snapshots to S3 for daily batch analysis.
- Build curated models in Redshift for reporting, and govern access with Lake Formation or Redshift permissions.
Pick based on freshness needs, cost and team skills.
Q42. How do you make sure a streaming pipeline does not lose data during failures? Senior
- Producers: retry with backoff, check partial failures in PutRecords responses, and buffer locally if needed.
- Stream retention long enough to replay after an outage (for example 7 days).
- Consumers: checkpoint only after successful processing, and send failed records to a dead-letter destination.
- Firehose: S3 backup for failed transformations or deliveries.
- Idempotent writes downstream, so replay does not create duplicates.
- Alarms on iterator age, failed records and delivery errors, and regular replay tests.
Q43. How do you protect sensitive data when using foundation models on AWS? Senior
- Classify data first: which data may be sent to a model at all.
- Use Bedrock in your own account and Region, through IAM roles and VPC endpoints, and check the provider and data handling terms of each model.
- Mask or remove personal data before prompts when it is not needed, and use guardrails sensitive information filters.
- Encrypt logs and stored prompts with KMS, set retention, and restrict who can read them.
- Control which models are allowed with IAM policies and SCPs.
- Review outputs for data leakage in testing, such as one user's data appearing in another user's answer through shared context.
Q47. Design a cost-efficient platform to analyse 5 TB of application logs per day. Senior
- Ingest with Data Firehose (or CloudWatch Logs subscriptions into Firehose) and write compressed Parquet to S3, partitioned by date, hour and service.
- Keep recent logs hot for search in OpenSearch only if needed, for example 7 days, with UltraWarm or cold storage for older data where useful.
- Query older logs with Athena on S3.
- Apply S3 lifecycle rules to move old logs to cheaper storage classes and delete them after the retention period.
- Drop or sample noisy debug logs at the source.
- Monitor cost by usage type every week.
Q48. Redshift dashboards are slow every weekday at 9 a.m. when everyone logs in. What do you do? Senior
- Confirm it is a concurrency peak: query queue times and the number of running queries at 9 a.m.
- Turn on concurrency scaling, which adds temporary capacity for queued read queries, or use Redshift Serverless with suitable base capacity.
- Use workload management (WLM) queues or automatic WLM with query priorities, so dashboards are not blocked by heavy ETL.
- Precompute: materialized views and summary tables refreshed before 9 a.m.
- Move ETL loads to earlier hours.
- Tune the slowest queries: sort keys, distribution, and avoiding SELECT *.
Q49. A data scientist wants to train a model on production customer data. How do you set it up safely? Senior
- Agree the purpose and the minimum data needed with the data owner and privacy team.
- Create a separate ML account or environment, not production.
- Provide a curated, de-identified dataset: remove or tokenise names, emails and phone numbers.
- Control access with Lake Formation and IAM roles, and run notebooks and training in private VPC subnets without internet access, using VPC endpoints.
- Encrypt data, models and outputs with KMS.
- Log access and set data retention, and delete datasets when the project ends.
Q50. How do you delete one customer's data from an S3 data lake for a privacy request? Senior
Deleting rows from plain Parquet files is hard, because you must rewrite whole files.
Approach:
- Know where personal data lives: a data catalog with tags for personal columns, and Macie scans.
- Use a table format such as Apache Iceberg, which supports row-level deletes, then run maintenance to remove old snapshots that still contain the data.
- For plain files, run a job that rewrites affected partitions without that customer's rows.
- Also handle copies: raw zone, backups, replicas, extracts and search indexes.
- Record the deletion for audit.
Design for this early, for example by separating personal data from event data with a customer key.
5. Frequently asked questions
I am a cloud engineer, not a data engineer. How deep should I go?
Know the pipeline shape (ingest, store, process, query, visualise), the main services, security (encryption and Lake Formation) and cost drivers. Data engineers also need Spark, SQL and data modelling.
Is generative AI now part of AWS interviews?
Often, yes, at a basic level: what Amazon Bedrock is, what RAG means, how to protect data, and how to control cost. Do not claim experience you do not have. Build a small lab instead.
Some AI service names change. What should I say?
AWS renamed and regrouped some services, for example the machine learning service is now called Amazon SageMaker AI, inside a wider SageMaker platform. Explain the purpose, and say the current name if you know it.
6. Quick revision
- Kinesis Data Streams: you manage consumers and shards (or use on-demand mode). Data Firehose: fully managed delivery.
- Data lakes: S3 plus a catalog plus query engines.
- Athena cost depends on data scanned: use Parquet, compression and partitions.
- Redshift: columnar storage, distribution and sort keys.
- Bedrock: foundation models by API. RAG grounds answers in your own documents.
7. Related chapters
- What Is Amazon Kinesis? Streaming Data on AWS Explained
- AWS Glue and Athena: ETL and SQL on S3 Data Lakes Explained
- What Is Amazon Redshift? Data Warehouse on AWS Explained
- What Is Amazon SageMaker? Machine Learning on AWS Explained
- What Is Amazon Bedrock? Generative AI APIs on AWS Explained
- What Is Amazon Bedrock Agents? Action Groups and Tools Explained
This page is one part of a 1000-question AWS interview set. Open the full list here: All 1000 AWS interview questions.