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

Page 40 of 116

An application runs on multiple EC2 instances behind an ELB.
Where is the session data best written so that it can be served reliably across multiple requests?

  1. Write data to Amazon ElastiCache.
  2. Write data to Amazon Elastic Block Store.
  3. Write data to Amazon EC2 Instance Store.
  4. Write data to the root filesystem.

Answer(s): A



An ecommerce application is running behind an Application Load Balancer. A developer observes some unexpected load on the application during non-peak hours. The developer wants to analyze patterns for the client IP addresses that use the application.
Which HTTP header should the developer use for this analysis?

  1. The X-Forwarded-Proto header
  2. The X-Forwarded-Host header
  3. The X-Forwarded-For header
  4. The X-Forwarded-Port header

Answer(s): C



A developer migrated a legacy application to an AWS Lambda function. The function uses a third-party service to pull data with a series of API calls at the end of each month. The function then processes the data to generate the monthly reports.
The function has been working with no issues so far.
The third-party service recently issued a restriction to allow a fixed number of API calls each minute and each day. If the API calls exceed the limit for each minute or each day, then the service will produce errors. The API also provides the minute limit and daily limit in the response header. This restriction might extend the overall process to multiple days because the process is consuming more API calls than the available limit.
What is the MOST operationally efficient way to refactor the serverless application to accommodate this change?

  1. Use an AWS Step Functions state machine to monitor API failures. Use the
    Wait state to delay calling the Lambda function.
  2. Use an Amazon Simple Queue Service (Amazon SQS) queue to hold the API calls.
    Configure the Lambda function to poll the queue within the API threshold limits.
  3. Use an Amazon CloudWatch Logs metric to count the number of API calls.
    Configure an Amazon CloudWatch alarm that stops the currently running instance of the Lambda function when the metric exceeds the API threshold limits.
  4. Use Amazon Kinesis Data Firehose to batch the API calls and deliver them to an Amazon S3 bucket with an event notification to invoke the Lambda function.

Answer(s): A



A developer must analyze performance issues with production-distributed applications written as AWS Lambda functions. These distributed Lambda applications invoke other components that make up the applications.
How should the developer identify and troubleshoot the root cause of the performance issues in production?

  1. Add logging statements to the Lambda functions, then use Amazon CloudWatch to view the logs.
  2. Use AWS CloudTrail and then examine the logs.
  3. Use AWS X-Ray, then examine the segments and errors.
  4. Run Amazon Inspector agents and then analyze performance.

Answer(s): C



Page 40 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