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

Page 56 of 116

An application needs to use the IP address of the client in its processing. The application has been moved into AWS and has been placed behind an Application Load
Balancer (ALB). However, all the client IP addresses now appear to be the same. The application must maintain the ability to scale horizontally.
Based on this scenario, what is the MOST cost-effective solution to this problem?

  1. Remove the application from the ALB. Delete the ALB and change Amazon Route
    53 to direct traffic to the instance running the application.
  2. Remove the application from the ALCreate a Classic Load Balancer in its place. Direct traffic to the application using the HTTP protocol.
  3. Alter the application code to inspect the X-Forwarded-For header. Ensure that the code can work properly if a list of IP addresses is passed in the header.
  4. Alter the application code to inspect a custom header. Alter the client code to pass the IP address in the custom header.

Answer(s): C



A developer is designing a serverless application that customers use to select seats for a concert venue. Customers send the ticket requests to an Amazon API Gateway API
with an AWS Lambda function that acknowledges the order and generates an order ID.
The application includes two additional Lambda functions: one for inventory management and one for payment processing. These two Lambda functions run in parallel and write the order to an Amazon Dynamo DB
table.
The application must provide seats to customers according to the following requirements. If a seat is accidently sold more than once, the first order that the application received must get the seat. In these cases, the application must process the payment for only the first order. However, if the first order is rejected during payment processing, the second order must get the seat. In these cases, the application must process the payment for the second order.
Which solution will meet these requirements?

  1. Send the order ID to an Amazon Simple Notification Service (Amazon SNS) FIFO
    topic that fans out to one Amazon Simple Queue Service (Amazon SQS) FIFO
    queue for inventory management and another SQS FIFO queue for payment processing.
  2. Change the Lambda function that generates the order ID to initiate the
    Lambda function for inventory management. Then initiate the Lambda function for payment processing.
  3. Send the order ID to an Amazon Simple Notification Service (Amazon SNS)
    topic. Subscribe the Lambda functions for inventory management and payment processing to the topic.
  4. Deliver the order ID to an Amazon Simple Queue Service (Amazon SQS) queue.
    Configure the Lambda functions for inventory management and payment processing to poll the queue.

Answer(s): A



An application uses AWS X-Ray to generate a large amount of trace data on an hourly basis. A developer wants to use filter expressions to limit the returned results through user-specified custom attributes.
How should the developer use filter expressions to filter the results in X-Ray?

  1. Add custom attributes as annotations in the segment document.
  2. Add custom attributes as metadata in the segment document.
  3. Add custom attributes as new segment fields in the segment document.
  4. Create new sampling rules that are based on custom attributes.

Answer(s): A



A web application is using Amazon Kinesis Data Streams for clickstream data that may not be consumed for up to 12 hours.
How can the developer implement encryption at rest for data within the Kinesis Data Streams?

  1. Enable SSL connections to Kinesis.
  2. Use Amazon Kinesis Consumer Library.
  3. Encrypt the data once it is at rest with a Lambda function.
  4. Enable server-side encryption in Kinesis Data Streams.

Answer(s): D



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