Tüm alıştırma soruları
1542 soru
A developer is implementing a messaging solution for a retail checkout application. When a purchase is completed, an event must be sent to an Amazon SNS topic and fanned out to two Amazon SQS queues: one for shipping logistics and one for customer notifications.
Which of the following actions must the developer take to ensure that messages published to the SNS topic are successfully delivered to both SQS queues? (Select TWO.)
Geçerli olan tümünü seçin
A developer is building an order processing system. A frontend application publishes order events to an Amazon SNS FIFO topic. An Amazon SQS FIFO queue is subscribed to the topic. An AWS Lambda function is configured to process messages from the queue. The Lambda function has a timeout of seconds.
During testing under heavy load, the developer notices two issues:
1. Some orders are processed multiple times by different Lambda invocations even though the Lambda function executes successfully without errors.
2. Multiple distinct orders submitted by the same customer in rapid succession are being discarded by the SQS FIFO queue.
Which TWO actions should the developer take to resolve these issues?
Geçerli olan tümünü seçin
A developer is writing a backend service for an internal corporate directory application. The application stores employee project assignments in an Amazon DynamoDB table where the partition key is and the sort key is . The developer needs to retrieve all project assignments for a single specific employee. Which approach should the developer take to retrieve this data in the most cost-effective and performant manner?
A developer is optimizing and troubleshooting an AWS Lambda function that reads transaction configurations from an Amazon DynamoDB table and then posts authorization requests to a third-party payment gateway via HTTPS.
The Lambda function is configured to run inside a VPC within two private subnets. The VPC has a Gateway VPC Endpoint configured for DynamoDB. During testing, the Lambda function successfully queries DynamoDB but fails with a network timeout error when attempting to connect to the payment gateway's external API. Additionally, Amazon CloudWatch logs show high execution latency during warm starts because the DynamoDB client is re-instantiated on every invocation.
Which two actions must the developer take to resolve the network timeout and optimize execution performance? (Select two.)
Geçerli olan tümünü seçin
A developer is designing a real-time ticketing system for high-demand concert sales. The booking requests are published to an Amazon SNS FIFO topic, which fans out to an Amazon SQS FIFO queue. An AWS Lambda function processes messages from the SQS FIFO queue in batches of up to messages.
During high-traffic events, some payments fail temporarily due to external payment provider rate limits, causing the Lambda function to return an error. The developer notices that when a single booking message fails in a batch, the entire batch of messages is retried. This leads to redundant processing of successfully authorized bookings in the same batch and blocks messages belonging to other users' sessions from being processed.
Which combination of configuration changes should the developer implement to resolve this issue, ensuring that only failed messages are retried while maintaining strict message ordering for each user?
A developer is designing an IoT home alert system. When a sensor detects an anomaly, it publishes a message to an Amazon SNS topic. An Amazon SQS queue is subscribed to this topic to buffer messages for an AWS Lambda function that processes alerts and notifies users. The Lambda function takes up to seconds to process a single message and send notifications. Currently, the SQS queue's Visibility Timeout is set to seconds, and the Lambda function's timeout is set to seconds. Users are receiving duplicate alert notifications for the same event. Which modification should the developer make to resolve the duplicate notifications?
A developer is migrating an Amazon API Gateway REST API from a Lambda custom (non-proxy) integration to a Lambda proxy integration. The API endpoint handles user profile updates and accepts query string parameters. Which TWO changes must the developer make to ensure the backend Lambda function and API Gateway integration function correctly after this migration?
Geçerli olan tümünü seçin
A developer is building a product catalog application where items are stored in an Amazon DynamoDB table. The developer wants to retrieve specific product items based on their category while keeping the read latency and consumption of Read Capacity Units (RCUs) as low as possible. Which of the following strategies should the developer implement to achieve this goal? (Select TWO.)
Geçerli olan tümünü seçin
A retail platform uses an Amazon SNS topic to publish order transaction events. Two backend applications consume these events via individual Amazon SQS standard queues subscribed to the SNS topic. The first application, the Inventory Service, requires up to seconds to process a single transaction message. However, the developer notices that the Inventory Service is processing the same messages multiple times. The queue's default Visibility Timeout is set to seconds. The second application, the High-Value Alert Service, should only process transaction messages where the order total is greater than . Which two configuration changes should the developer implement to resolve these issues? (Select TWO.)
Geçerli olan tümünü seçin
A developer is designing a messaging architecture for a smart thermostat application. The application publishes temperature alert messages to an Amazon SNS topic. The developer needs to process these alerts using an AWS Lambda function. The solution must ensure that no alerts are lost if the Lambda function experiences a sudden surge in invocations and is throttled.
Which two configuration steps should the developer perform to meet these requirements?
Geçerli olan tümünü seçin
A developer is designing a high-throughput REST API using Amazon API Gateway. To minimize latency, operational cost, and code maintenance, the API must place incoming message payloads directly into an Amazon Simple Queue Service (Amazon SQS) queue without utilizing an intermediate AWS Lambda function. Which configuration in API Gateway meets these requirements?
A developer is designing a mobile fitness application that stores daily step counts in an Amazon DynamoDB table. The table has as the partition key and as the sort key. The developer needs to retrieve all step counts for a specific user over the past month.
Which DynamoDB operation should the developer use to retrieve this data in the most efficient manner?
A developer is building a high-throughput backend microservice that processes sensor telemetry events from an Amazon SQS queue. The microservice is written in Java and runs on Amazon ECS. During performance testing under high load, the developer notices high network latency, CPU spikes on the ECS container, and elevated AWS billing charges due to a large number of empty SQS `ReceiveMessage` API calls. Additionally, the application's polling loop exhausts local ephemeral port resources.
Which two actions should the developer take to optimize the SDK client and reduce cost and resource utilization? (Choose two.)
Geçerli olan tümünü seçin
A developer is configuring an AWS Lambda function in AWS Account A (111111111111) that needs to read objects from an Amazon S3 bucket in AWS Account B (222222222222) by assuming an IAM role named CrossAccountS3Reader in Account B. The Lambda function is assigned an execution role in Account A named LambdaExecutionRole. However, when the Lambda function attempts to assume the CrossAccountS3Reader role using AWS STS, the API call fails with an AccessDenied error. Which of the following configurations are required to resolve this issue? (Select TWO.)
Geçerli olan tümünü seçin
A developer is designing a backend report generation system where users can request custom PDF reports. Due to network latency, the client application occasionally retries request submissions, resulting in duplicate messages being sent to the integration queue. The developer wants to ensure that if a request with the exact same payload is sent within a 5-minute window, the duplicate message is discarded and not processed. Which configuration will meet this requirement with the least development effort?
A company is refactoring its web API backend. A developer configures an Amazon API Gateway REST API to use a Lambda proxy integration with an existing AWS Lambda function. During testing, clients receive 502 Bad Gateway errors. The CloudWatch logs show that the Lambda function completed its execution successfully without errors and returned the computed payload. Which action should the developer take to resolve the integration error?
A developer is building a web application that allows users to upload videos. When a video is uploaded, two separate tasks must run in parallel: one to generate a video thumbnail and another to extract metadata. The developer wants to decouple these tasks using a message-based architecture.
Which two actions should the developer take to implement this architecture? (Select TWO.)
Geçerli olan tümünü seçin
A developer is implementing a desktop gaming client that needs to authenticate users and allow them to upload gameplay screenshots directly to a private Amazon S3 bucket. The application must also communicate with a backend API hosted on Amazon API Gateway, where endpoints should only be accessible to authenticated users.
Which TWO actions must the developer take to implement this authentication and authorization design? (Select TWO.)
Geçerli olan tümünü seçin
A retail e-commerce company uses an Amazon DynamoDB table to store product inventory details. During a flash sale event, the product detail page experiences a huge spike in read traffic, resulting in `ProvisionedThroughputExceededException` errors on the DynamoDB table. To resolve this and reduce read latency, a developer deploys an Amazon DynamoDB Accelerator (DAX) cluster. However, despite deploying the DAX cluster, the table continues to experience throttling and read latency remains high. Analysis reveals that the DAX cache hit rate is .
Which two actions should the developer take to ensure the application successfully uses the DAX cache and resolves the throttling? (Select two.)
Geçerli olan tümünü seçin
A developer is deploying a Java application on Amazon EC2 instances in AWS account `123456789012`. The application requires access to retrieve database credentials from AWS Systems Manager Parameter Store. The developer creates an IAM role named `SSMParameterReaderRole` and attaches a permissions policy that allows the `ssm:GetParameter` action. The developer then configures an Amazon EC2 Instance Profile to associate the EC2 instances with this role. During startup, the application fails to retrieve the parameters, and CloudTrail logs show that the EC2 service was unable to assume the role.
The trust policy currently attached to `SSMParameterReaderRole` is as follows:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::123456789012:root"
},
"Action": "sts:AssumeRole"
}
]
}
Which modification must the developer make to the trust policy of `SSMParameterReaderRole` to resolve this issue?