ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 598 - DVA-C01 discussion

Report
Export

A developer creates a web service that performs many critical activities. The web service code uses an AWS SDK to publish noncritical metrics to Amazon CloudWatch by using the PutMetricData API. The web service must return results to the caller as quickly as possible. The response data from the PutMetricData API is not necessary to create the web service response. Which solution will MOST improve the response time of the web service?

A.
Upgrade to the latest version of the AWS SDK.
Answers
A.
Upgrade to the latest version of the AWS SDK.
B.
Call the PutMetricData API in a background thread.
Answers
B.
Call the PutMetricData API in a background thread.
C.
Use the AWS SDK to perform a synchronous call to an AWS Lambda function. Call the PutMetricData API within the Lambda function.
Answers
C.
Use the AWS SDK to perform a synchronous call to an AWS Lambda function. Call the PutMetricData API within the Lambda function.
D.
Send metric data to an Amazon Simple Queue Service (Amazon SQS) queue. Configure an AWS Lambda function with the queue as the event source. Call the PutMetricData API within the Lambda function.
Answers
D.
Send metric data to an Amazon Simple Queue Service (Amazon SQS) queue. Configure an AWS Lambda function with the queue as the event source. Call the PutMetricData API within the Lambda function.
Suggested answer: D

Explanation:

https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-api

asked 16/09/2024
Jesse Serrano
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first