Tüm alıştırma soruları
1542 soru
A ticketing application named 'PassGate' registers entry scans for high-attendance live events in a DynamoDB table. The table is configured with provisioned write capacity units (WCUs). During the check-in period for a major music concert, the application frequently encounters ProvisionedThroughputExceededException errors. CloudWatch metrics indicate that the table's overall consumed WCUs are well below the provisioned threshold, but a single partition key matching the popular EventID is receiving almost all the write traffic. Which action should the developer take to resolve this throttling issue?
A developer is building a video translation system where upload events are published to an Amazon SNS topic. The events are fanned out to an Amazon SQS standard queue, which is polled by a fleet of containerized workers running on Amazon ECS. Each video transcription job takes between 2 to 5 minutes to complete, but occasionally takes up to 12 minutes for larger files. The default visibility timeout of the SQS queue is configured to 3 minutes. During peak traffic, the developer notices that some videos are transcribed multiple times, resulting in duplicate outputs and wasted compute resources.
Which of the following actions should the developer take to resolve this issue in a secure and efficient manner?
A high-volume logistics application uses an Amazon SQS standard queue to buffer telemetry data from delivery vehicles. A worker process retrieves messages, performs geo-spatial calculations, and writes the results to an Amazon DynamoDB table. The worker process takes up to seconds to process each telemetry payload. Currently, the SQS queue visibility timeout is set to seconds. Consequently, some telemetry records are duplicated in the DynamoDB table. Which two actions should the developer take to resolve this duplication issue?
Geçerli olan tümünü seçin
A developer is configuring a Python application running on an Amazon EC2 instance in Account A () to retrieve files from a private Amazon S3 bucket located in Account B (). The EC2 instance is associated with an IAM instance profile utilizing a role named `EC2ReadRole`. The developer creates an IAM role named `S3AccessRole` in Account B. However, when the application attempts to assume the role, it receives an `AccessDenied` error. The trust policy for `S3AccessRole` in Account B is currently configured as follows:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::111122223333:role/EC2ReadRole"
},
"Action": "sts:AssumeRole"
}
]
}
Which two configuration steps must the developer perform to successfully establish this cross-account access and resolve the `AccessDenied` error? (Select TWO.)
Geçerli olan tümünü seçin
A logistics company uses a serverless transit-tracking application where fleet sensors publish real-time telemetry updates. The updates are published to an Amazon SNS FIFO topic, which is subscribed to by multiple Amazon SQS FIFO queues. An AWS Lambda function is configured to process messages from one of the SQS FIFO queues. The Lambda function has a timeout of 1 minute, while the SQS queue's visibility timeout is set to 30 seconds. During peak hours, the developer notices that some telemetry updates are processed out of order, and the database shows duplicate entries for the same sensor updates. Which two of the following configuration changes will resolve the out-of-order execution issues and prevent duplicate message processing?
Geçerli olan tümünü seçin
A logistics delivery application named 'RouteSpeed' updates the status of packages in an Amazon DynamoDB table. The partition key is `delivery_date` and the sort key is `package_id`. During peak delivery hours on a major shopping holiday, the application encounters a high rate of `ProvisionedThroughputExceededException` errors. CloudWatch metrics indicate that the table's total consumed write capacity is well below the provisioned write capacity.
Which TWO actions should the developer take to resolve these throttling issues? (Select TWO.)
Geçerli olan tümünü seçin
A corporate employee portal retrieves employee profile metadata and contact information from an Amazon DynamoDB table. During morning log-in hours, the portal experiences high read latency and ProvisionedThroughputExceededException errors when fetching the profiles of executive leadership, which are queried by many employees. The developer wants to reduce read latency to sub-millisecond levels for these read-heavy requests without modifying the existing query API calls. Which of the following actions should the developer take? (Select two.)
Geçerli olan tümünü seçin
A developer is building a serverless application where Amazon API Gateway routes requests to a backend AWS Lambda function using a Lambda custom (non-proxy) integration. The Lambda function expects a JSON input containing a key named `userId`. However, client requests send this identifier as a query string parameter named `uid` (for example, `/users?uid=123`). How should the developer configure API Gateway to map the incoming query string parameter to the JSON payload format required by the Lambda function?
An enterprise IoT application ingests high-frequency status updates from millions of devices into an Amazon Kinesis Data Stream. The updates are currently partitioned by `DeviceType`. A small number of popular device types account for of the total data volume, leading to frequent `ProvisionedThroughputExceededException` errors.
A developer must design a solution that achieves the following:
1. Resolves the stream throttling issue without unnecessary cost.
2. Archives all raw status updates to an Amazon S3 bucket.
3. Routes only the status updates containing a `severity` of `"FATAL"` to Amazon EventBridge for incident management.
Which approach meets these requirements with the lowest latency and operational overhead?
A developer is migrating a REST API to Amazon API Gateway with an AWS Lambda backend. The developer configures a new resource with a GET method using Lambda Proxy Integration. The Lambda function executes successfully and returns the following JSON response:
{
"status": "success",
"data": {
"items": ["item1", "item2"]
}
}
However, when testing the API endpoint via a client, the client receives an HTTP Bad Gateway status code. The CloudWatch execution logs for API Gateway show: "Malformed Lambda proxy response" and "Execution failed due to configuration error". What is the root cause of this error, and how should the developer resolve it?
An application publishes transaction events to an Amazon SNS topic. A fraud detection service is subscribed to this topic and must only process transactions where the amount is greater than $10,000. Other subscribers must continue to receive all transaction events. Which configuration should the developer implement to meet this requirement?
A developer is designing a transaction auditing system for a financial application. The system must process transaction events generated by upstream microservices. The requirements are:
* Transaction events for each customer must be processed in the exact order they occurred.
* Events must be sent to two different backend systems: an auditing service and a compliance archiving service.
* If the auditing service fails to process an event after three attempts, that specific event must be isolated for manual inspection without permanently blocking subsequent transactions for that customer.
* Duplicate events sent within 5 minutes must be automatically discarded.
Which combination of actions should the developer take to meet these requirements? (Select TWO.)
Geçerli olan tümünü seçin
A developer is configuring an AWS Lambda function in Account A () to be triggered by an Amazon SQS queue named `IncomingQueue` in Account B (). The developer wants to establish this cross-account event source mapping under the principle of least privilege, without requiring the Lambda function to perform an explicit assume-role operation in its application code.
The developer has already attached the following permissions policy to the Lambda function's execution role, `LambdaQueueReaderRole`, in Account A:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sqs:ReceiveMessage",
"sqs:DeleteMessage",
"sqs:GetQueueAttributes"
],
"Resource": "arn:aws:sqs:us-east-1:444455556666:IncomingQueue"
}
]
}
Which of the following configurations are also required to establish this cross-account trigger? (Select TWO.)
Geçerli olan tümünü seçin
A developer is configuring an Amazon API Gateway REST API that integrates with an HTTP backend service hosted on-premises. The backend service requires a custom HTTP header named X-Backend-Token, which must be populated using the client's identity identifier found in the $context.authorizer.claims.sub context variable. Additionally, the backend service returns responses in XML format, but the API client expects a JSON payload.
Which two configurations must the developer implement in API Gateway to achieve this integration? (Select TWO.)
Geçerli olan tümünü seçin
A retail company processes high-frequency transactional data using an Amazon Kinesis Data Stream with shards. An AWS Lambda function acts as the consumer to process and save these records to Amazon DynamoDB. The records contain a `transactionId` (UUID), `customerId` (high entropy), `region` (only unique values), and `transactionType` (e.g., 'purchase', 'refund'). The developer notices frequent `ProvisionedThroughputExceededException` errors on one specific shard, while the other shards are underutilized. Additionally, the developer needs to route all 'refund' transactions with an amount greater than to a third-party audit API using Amazon EventBridge.
Which two configurations should the developer implement to resolve the throttling issue and route the required transaction events?
Geçerli olan tümünü seçin
A developer is building a video transcoding application where upload events are published to an Amazon SNS topic and fanned out to an Amazon SQS standard queue. A fleet of worker instances running on Amazon EC2 polls this queue to retrieve and transcode the videos. The transcoding process takes between to minutes per video depending on its file size. The SQS queue has a default Visibility Timeout of minutes. The developer notices that during peak usage, larger videos that require more than minutes to process are being transcoded multiple times by different EC2 worker instances.
Which of the following actions will resolve this issue and prevent duplicate transcoding?
A developer is implementing a background worker service on Amazon ECS to process batch image transcoding jobs from an Amazon SQS standard queue. The average transcoding job takes 4 minutes to complete, but high-resolution images can take up to 12 minutes. During testing, the developer observes that multiple ECS tasks are frequently processing the same image file concurrently, resulting in duplicate outputs and wasted compute resources. Additionally, corrupt image files that fail to transcode are retried indefinitely, blocking the queue.
Which combination of configuration steps should the developer perform to resolve these issues? (Select TWO.)
Geçerli olan tümünü seçin
A video streaming platform uses an Amazon DynamoDB table to track user watch progress. The table uses as the partition key and as the sort key. As users watch videos, progress updates create a high volume of writes. The platform's homepage must display the most recently watched videos that are currently in progress (where the attribute is ), sorted by the timestamp in descending order.
To minimize both Read Capacity Unit (RCU) consumption and query latency, which strategy should the developer implement?
A customer loyalty rewards platform named "LoyaltyLink" processes member transactions and records reward point updates in an Amazon DynamoDB table. During a flash sale event, the application experiences a high volume of writes and starts throwing `ProvisionedThroughputExceededException` errors. The DynamoDB table partition key is `transaction_date` (formatted as YYYY-MM-DD), and the sort key is `member_id`. Although the total write throughput is well within the table's provisioned write capacity units (WCUs), the requests are heavily skewed towards the current date, causing throttling on a single partition. Which of the following approaches should a developer implement to resolve this throttling issue?
A developer is configuring a containerized application to run on Amazon ECS using the AWS Fargate launch type. The application needs to read messages from an Amazon SQS queue and write records to an Amazon DynamoDB table. During container initialization, the ECS container agent must pull the container image from Amazon ECR, retrieve a database credential from AWS Secrets Manager to set as an environment variable, and send container logs to Amazon CloudWatch Logs. Which two IAM roles must the developer configure in the ECS task definition to meet these requirements with the minimum required privileges? (Select TWO.)
Geçerli olan tümünü seçin