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

Page 43 of 116

A company is using Amazon RDS as the backend database for its application. After a recent marketing campaign, a surge of read requests to the database increased the latency of data retrieval from the database. The company has decided to implement a caching layer in front of the database. The cached content must be encrypted and must be highly available.
Which solution will meet these requirements?

  1. Amazon CloudFront
  2. Amazon ElastiCache for Memcached
  3. Amazon ElastiCache for Redis in cluster mode
  4. Amazon DynamoDB Accelerator (DAX)

Answer(s): C



A developer at a company recently created a serverless application to process and show data from business reports. The application’s user interface (UI) allows users to select and start processing the files. The UI displays a message when the result is available to view. The application uses AWS Step Functions with AWS Lambda functions to process the files. The developer used Amazon API Gateway and Lambda functions to create an API to support the
UI.
The company’s UI team reports that the request to process a file is often returning timeout errors because of the size or complexity of the files. The UI team wants the API to provide an immediate response so that the UI can display a message while the files are being processed. The backend process that is invoked by the API needs to send an email message when the report processing is complete.
What should the developer do to configure the API to meet these requirements?

  1. Change the API Gateway route to add an X-Amz-Invocation-Type header with a static value of ‘Event’ in the integration request. Deploy the API Gateway stage to apply the changes.
  2. Change the configuration of the Lambda function that implements the request to process a file. Configure the maximum age of the event so that the Lambda function will run asynchronously.
  3. Change the API Gateway timeout value to match the Lambda function timeout value. Deploy the API Gateway stage to apply the changes.
  4. Change the API Gateway route to add an X-Amz-Target header with a static value of ‘Async’ in the integration request. Deploy the API Gateway stage to apply the changes.

Answer(s): A



A developer has an application that is composed of many different AWS Lambda functions. The Lambda functions all use some of the same dependencies. To avoid security issues, the developer is constantly updating the dependencies of all of the
Lambda functions. The result is duplicated effort for each function.
How can the developer keep the dependencies of the Lambda functions up to date with the LEAST additional complexity?

  1. Define a maintenance window for the Lambda functions to ensure that the functions get updated copies of the dependencies.
  2. Upgrade the Lambda functions to the most recent runtime version.
  3. Define a Lambda layer that contains all of the shared dependencies.
  4. Use an AWS CodeCommit repository to host the dependencies in a centralized location.

Answer(s): C



A mobile app stores blog posts in an Amazon DynamoDB table. Millions of posts are added every day, and each post represents a single item in the table. The mobile app requires only recent posts. Any post that is older than 48 hours can be removed.
What is the MOST cost-effective way to delete posts that are older than 48 hours?

  1. For each item, add a new attribute of type String that has a timestamp that is set to the blog post creation time. Create a script to find old posts with a table scan and remove posts that are older than 48 hours by using the
    BatchWriteItem API operation. Schedule a cron job on an Amazon EC2 instance once an hour to start the script.
  2. For each item, add a new attribute of type String that has a timestamp that is set to the blog post creation time. Create a script to find old posts with a table scan and remove posts that are older than 48 hours by using the
    BatchWriteItem API operation. Place the script in a container image.
    Schedule an Amazon Elastic Container Service (Amazon ECS) task on AWS
    Fargate that invokes the container every 5 minutes.
  3. For each item, add a new attribute of type Date that has a timestamp that is set to 48 hours after the blog post creation time. Create a global secondary index (GSI) that uses the new attribute as a sort key. Create an AWS Lambda function that references the GSI and removes expired items by using the
    BatchWriteItem API operation. Schedule the function with an Amazon
    CloudWatch event every minute.
  4. For each item, add a new attribute of type Number that has a timestamp that is set to 48 hours after the blog post creation time. Configure the DynamoDB
    table with a TTL that references the new attribute.

Answer(s): D



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