AWS Certified Solutions Architect - Associate: SAA-C03 Exam Practice Questions | Provider: Amazon

Which AWS Services Do Not Asynchronously Invoke AWS Lambda Functions?

Prev Question Next Question

Question

Which of the following services does not asynchronously invoke the AWS Lambda function? (choose 2 options)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Answer: C, E.

The following are the functions that invoke synchronously and asynchronously the AWS Lambda function.

https://docs.aws.amazon.com/lambda/latest/dg/lambda-dg.pdf
Servi

‘That Invoke Lambda Functions Synchronously_

+ Elastic Load Balancing (Application Load Balancer) (p. 170)
+ Amazon Cognito (p. 216)

+ Amazon Lex (p. 265)

+ Amazon Alexa (p. 172)

+ Amazon API Gateway (p. 173)

+ Amazon CloudFront (Lambda@Edge) (p. 205)

+ Amazon Kinesis Data Firehose (p. 264)

+ AWS Step Functions

+ Amazon Simple Storage Service Batch (p. 285)

For asynchronous invocation, Lambda queues the event before passing it to your function. The other
service gets a success response as soon as the event is queued and isn't aware of what happens
afterwards. If an error occurs, Lambda handles retries(p. 117), and can send failed events to a dead-

letter queue (p. 104) that you configure.
Servi

That Invoke Lambda Functions Asynchronously

‘+ Amazon Simple Storage Service (p. 270)
+ Amazon Simple Notification Service (p. 289)
‘+ Amazon Simple Email Service (p. 287)

‘+ AWS CloudFormation (p. 203)

+ Amazon CloudWatch Logs (p. 202)

‘+ Amazon CloudWatch Events (p. 196)

‘+ AWS CodeCommit (p. 207)

‘+ AWS Config (p. 217)

+ AWS loT (p. 246)

+ AWS loT Events (p. 247)

‘+ AWS CodePipeline (p. 208)

Among the options listed, the two services that do not asynchronously invoke AWS Lambda functions are:

C. AWS Cognito and D. AWS CodeCommit.

AWS Lambda can be triggered in two ways - Synchronous and Asynchronous.

Synchronous invocation of Lambda function happens when the calling service waits for the Lambda function to return a response or the calling service receives a failure response immediately.

Asynchronous invocation of Lambda function happens when the calling service sends an event to the Lambda function and does not wait for the response. Instead, Lambda function processes the event asynchronously and writes the response to an Amazon S3 bucket or an Amazon Kinesis stream or an Amazon DynamoDB table.

Let's look at the options:

A. AWS S3 can trigger a Lambda function when a new object is created in the S3 bucket. This can happen either synchronously or asynchronously, depending on how the Lambda function is configured to be triggered.

B. AWS SNS can trigger a Lambda function asynchronously when a new message is published to an SNS topic.

C. AWS Cognito is an identity management service that can authenticate and authorize users. However, it does not trigger a Lambda function.

D. AWS CodeCommit is a version control service that stores code in repositories. It does not trigger a Lambda function.

E. AWS CloudFront is a content delivery network that can trigger a Lambda function asynchronously when a viewer request is received for a resource that is associated with the Lambda function.

So, the correct options are C. AWS Cognito and D. AWS CodeCommit.