SAP-C02 practice question 9 of 35
A company runs a processing engine in the AWS Cloud The engine processes environmental data from logistics centers to calculate a sustainability…
Full set: 689 questionsDomain Design Solutions for Organizational Complexity
This solution provides a highly scalable and resilient architecture for handling unpredictable traffic bursts without data loss. Amazon API Gateway is a managed service designed to handle API traffic at scale. By using a direct AWS service integration, API Gateway can place incoming requests directly into an Amazon SQS queue. This decouples the API ingress from the backend processing. The SQS queue acts as a durable buffer, absorbing traffic spikes and ensuring that no data is lost. An AWS Lambda function is then triggered by messages in the SQS queue, providing a scalable, event-driven compute layer to process the data asynchronously. This serverless pattern is cost-effective and automatically scales with the workload.
A. This architecture is not valid. An Application Load Balancer (ALB) cannot directly add an SQS queue as a target for its target group. ALB targets must be instances, IP addresses, Lambda functions, or other ALBs.
C. This synchronous pattern is less resilient to unpredictable bursts. A sudden traffic spike could overwhelm the EC2 instances before the Auto Scaling group can react, leading to request throttling and potential data loss.
D. This architecture is not valid. Amazon CloudFront cannot use an Amazon Kinesis Data Stream as a direct origin. A CloudFront origin must be an accessible HTTP endpoint, such as an S3 bucket, an ELB, or API Gateway.
1. API Gateway to SQS Integration: AWS API Gateway Developer Guide, "Working with AWS service integrations for HTTP APIs". The guide details how to configure an integration to send requests to other AWS services, including SQS. The tutorial "Creating an HTTP API with an AWS service integration" provides a concrete example.
2. Decoupling with SQS: AWS Documentation, Amazon SQS Developer Guide, "Common Amazon SQS use cases". Section "Decouple microservices" explains how SQS queues can be used as a buffer between components of an application that may produce and consume messages at different rates, which is ideal for handling traffic bursts.
3. ALB Target Groups: AWS Documentation, Elastic Load Balancing User Guide for Application Load Balancers, "Target groups for your Application Load Balancers". This page lists the valid target types for an ALB target group as: instance, ip, lambda, and application-load-balancer. SQS is not a supported target type.
4. CloudFront Origins: AWS Documentation, Amazon CloudFront Developer Guide, "Working with origins". This section specifies that origins can be Amazon S3 buckets, MediaStore containers, MediaPackage channels, or custom origins (like an HTTP server, which includes an ELB or EC2 instance). Kinesis Data Streams is not a valid origin type.
Keep practicing
Take the free SAP-C02 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other SAP-C02 practice questions
- Question 1A company runs an application in (he cloud that consists of a database and a website User…
- Question 2A company wants to migrate an Amazon Aurora MySQL DB cluster from an existing AWS account…
- Question 3A company is running a two-tier web-based application in an on-premises data center. The …
- Question 4A company is running a critical stateful web application on two Linux Amazon EC2 instance…
- Question 5A company plans to migrate a legacy on-premises application to AWS. The application is a …
- Question 6A company needs to migrate an on-premises SFTP site to AWS. The SFTP site currently runs …
