Free AWS Certified Developer - Associate DVA-C02 Exam Braindumps (page: 14)

Page 14 of 116

A developer is using an AWS Lambda function to generate avatars for profile pictures that are uploaded to an Amazon S3 bucket. The Lambda function is automatically invoked for profile pictures that are saved under the /original/ S3 prefix. The developer notices that some pictures cause the Lambda function to time out. The developer wants to implement a fallback mechanism by using another Lambda function that resizes the profile picture.
Which solution will meet these requirements with the LEAST development effort?

  1. Set the image resize Lambda function as a destination of the avatar generator Lambda function for the events that fail processing.
  2. Create an Amazon Simple Queue Service (Amazon SQS) queue. Set the SQS queue as a destination with an on failure condition for the avatar generator
    Lambda function. Configure the image resize Lambda function to poll from the
    SQS queue.
  3. Create an AWS Step Functions state machine that invokes the avatar generator
    Lambda function and uses the image resize Lambda function as a fallback.
    Create an Amazon EventBridge rule that matches events from the S3 bucket to invoke the state machine.
  4. Create an Amazon Simple Notification Service (Amazon SNS) topic. Set the SNS
    topic as a destination with an on failure condition for the avatar generator
    Lambda function. Subscribe the image resize Lambda function to the SNS
    topic.

Answer(s): A



A developer needs to migrate an online retail application to AWS to handle an anticipated increase in traffic. The application currently runs on two servers: one server for the web application and another server for the database. The web server renders webpages and manages session state in memory. The database server hosts a
MySQL database that contains order details.
When traffic to the application is heavy, the memory usage for the web server approaches 100% and the application slows down considerably.
The developer has found that most of the memory increase and performance decrease is related to the load of managing additional user sessions. For the web server migration, the developer will use Amazon EC2 instances with an Auto Scaling group behind an Application Load Balancer.
Which additional set of changes should the developer make to the application to improve the application's performance?

  1. Use an EC2 instance to host the MySQL database. Store the session data and the application data in the MySQL database.
  2. Use Amazon ElastiCache for Memcached to store and manage the session data.
    Use an Amazon RDS for MySQL DB instance to store the application data.
  3. Use Amazon ElastiCache for Memcached to store and manage the session data and the application data.
  4. Use the EC2 instance store to manage the session data. Use an Amazon RDS for
    MySQL DB instance to store the application data.

Answer(s): B



An application uses Lambda functions to extract metadata from files uploaded to an
S3 bucket; the metadata is stored in Amazon DynamoDB. The application starts behaving unexpectedly, and the developer wants to examine the logs of the Lambda function code for errors.
Based on this system configuration, where would the developer find the logs?

  1. Amazon S3
  2. AWS CloudTrail
  3. Amazon CloudWatch
  4. Amazon DynamoDB

Answer(s): C



A company is using an AWS Lambda function to process records from an Amazon Kinesis data stream. The company recently observed slow processing of the records. A
developer notices that the iterator age metric for the function is increasing and that the Lambda run duration is constantly above normal.
Which actions should the developer take to increase the processing speed? (Choose two.)

  1. Increase the number of shards of the Kinesis data stream.
  2. Decrease the timeout of the Lambda function.
  3. Increase the memory that is allocated to the Lambda function.
  4. Decrease the number of shards of the Kinesis data stream.
  5. Increase the timeout of the Lambda function.

Answer(s): A,C



Page 14 of 116



Post your Comments and Discuss Amazon AWS Certified Developer - Associate DVA-C02 exam with other Community members:

Ernesto commented on August 26, 2024
Prepared and passed this exam. Valid question and very tough exam. So good luck.
Spain
upvote