CloudGuild · Blog · Cheat sheets · Lessons · Certifications
Real-Time Data Processing with Serverless Architecture: A Walkthrough
Explore a practice question on AWS serverless architecture and understand how to choose the right services for real-time data processing.
Deploying a serverless application can trip up many candidates, especially when it comes to integrating the right AWS services for real-time data processing. Understanding how services work together is key to passing the SAA-C03 exam.
The question
Your company is planning to deploy a serverless application that requires data processing from various sources. The data must be collected in real-time and processed before being stored. Which combination of services should you use?
- A. Amazon S3 and AWS Glue
- B. Amazon Kinesis and AWS Lambda
- C. Amazon RDS and Amazon EC2
- D. AWS Step Functions and Amazon SQS
Think before you scroll
This question tests your understanding of serverless architecture and real-time data processing. Consider the capabilities of each service and how they fit together to meet the application's requirements.
The answer
The correct option is B. Amazon Kinesis and AWS Lambda. Amazon Kinesis specializes in real-time data streaming, allowing you to collect and process data as it arrives. AWS Lambda can then process that data without the need for server management, aligning perfectly with the serverless model.
Why the other options lose
- A. Amazon S3 and AWS Glue: While S3 is great for storage and Glue can help with ETL tasks, they do not provide real-time data processing capabilities. This option fails to meet the requirement for immediate data handling.
- C. Amazon RDS and Amazon EC2: This option involves managing servers, which contradicts the serverless requirement. RDS is for relational databases and EC2 requires provisioning and managing instances, making it unsuitable for this scenario.
- D. AWS Step Functions and Amazon SQS: Step Functions orchestrate workflows and SQS handles message queuing. Neither service directly processes data in real-time, leaving a gap in the requirements for immediate data processing.
The concept behind it
Real-time data processing in a serverless architecture usually involves services that can ingest, process, and output data without manual intervention or server management. Amazon Kinesis provides the necessary streaming capabilities, while AWS Lambda processes that data instantly. Knowing how these services interact is crucial for similar questions.
Exam trap to remember
For serverless architectures requiring real-time processing, remember: Kinesis for streaming, Lambda for processing.