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

Page 25 of 116

A developer has designed an application to store incoming data as JSON files in
Amazon S3 objects. Custom business logic in an AWS Lambda function then transforms the objects, and the Lambda function loads the data into an Amazon DynamoDB table.
Recently, the workload has experienced sudden and significant changes in traffic.
The flow of data to the DynamoDB table is becoming throttled.
The developer needs to implement a solution to eliminate the throttling and load the data into the DynamoDB table more consistently.
Which solution will meet these requirements?

  1. Refactor the Lambda function into two functions. Configure one function to transform the data and one function to load the data into the DynamoDB
    table. Create an Amazon Simple Queue Service (Amazon SQS) queue in between the functions to hold the items as messages and to invoke the second function.
  2. Turn on auto scaling for the DynamoDB table. Use Amazon CloudWatch to monitor the table's read and write capacity metrics and to track consumed capacity.
  3. Create an alias for the Lambda function. Configure provisioned concurrency for the application to use.
  4. Refactor the Lambda function into two functions. Configure one function to store the data in the DynamoDB table. Configure the second function to process the data and update the items after the data is stored in DynamoDB.
    Create a DynamoDB stream to invoke the second function after the data is stored.

Answer(s): A



A developer is creating an AWS Lambda function in VPC mode. An Amazon S3 event will invoke the Lambda function when an object is uploaded into an S3 bucket. The Lambda function will process the object and produce some analytic results that will be recorded into a file. Each processed object will also generate a log entry that will be recorded into a file.
Other Lambda functions, AWS services, and on-premises resources must have access to the result files and log file. Each log entry must also be appended to the same shared log file. The developer needs a solution that can share files and append results into an existing file.
Which solution should the developer use to meet these requirements?

  1. Create an Amazon Elastic File System (Amazon EFS) file system. Mount the EFS
    file system in Lambda. Store the result files and log file in the mount point. Append the log entries to the log file.
  2. Create an Amazon Elastic Block Store (Amazon EBS) Multi-Attach enabled volume. Attach the EBS volume to all Lambda functions. Update the Lambda function code to download the log file, append the log entries, and upload the modified log file to Amazon EBS.
  3. Create a reference to the /tmp local directory. Store the result files and log file by using the directory reference. Append the log entry to the log file.
  4. Create a reference to the /opt storage directory. Store the result files and log file by using the directory reference. Append the log entry to the log file.

Answer(s): A



A company has an AWS Lambda function that processes incoming requests from an Amazon
API Gateway API. The API calls the Lambda function by using a Lambda alias. A
developer updated the Lambda function code to handle more details related to the incoming requests. The developer wants to deploy the new Lambda function for more testing by other developers with no impact to customers that use the API.
Which solution will meet these requirements with the LEAST operational overhead?

  1. Create a new version of the Lambda function. Create a new stage on API
    Gateway with integration to the new Lambda version. Use the new API Gateway stage to test the Lambda function.
  2. Update the existing Lambda alias used by API Gateway to a weighted alias.
    Add the new Lambda version as an additional Lambda function with a weight of
    10%. Use the existing API Gateway stage for testing.
  3. Create a new version of the Lambda function. Create and deploy a second
    Lambda function to filter incoming requests from API Gateway. If the filtering Lambda function detects a test request, the filtering Lambda function will invoke the new Lambda version of the code. For other requests,
    the filtering Lambda function will invoke the old Lambda version. Update the
    API Gateway API to use the filtering Lambda function.
  4. Create a new version of the Lambda function. Create a new API Gateway API
    for testing purposes. Update the integration of the new API with the new
    Lambda version. Use the new API for testing.

Answer(s): A



A company uses AWS Lambda functions and an Amazon S3 trigger to process images into an S3 bucket. A development team set up multiple environments in a single AWS
account.
After a recent production deployment, the development team observed that the development S3 buckets invoked the production environment Lambda functions. These invocations caused unwanted execution of development S3 files by using production Lambda functions. The development team must prevent these invocations. The team must follow security best practices.
Which solution will meet these requirements?

  1. Update the Lambda execution role for the production Lambda function to add a policy that allows the execution role to read from only the production environment S3 bucket.
  2. Move the development and production environments into separate AWS accounts.
    Add a resource policy to each Lambda function to allow only S3 buckets that are within the same account to invoke the function.
  3. Add a resource policy to the production Lambda function to allow only the production environment S3 bucket to invoke the function.
  4. Move the development and production environments into separate AWS accounts.
    Update the Lambda execution role for each function to add a policy that allows the execution role to read from the S3 bucket that is within the same account.

Answer(s): B



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