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

Page 32 of 116

A developer is creating an AWS Serverless Application Model (AWS SAM) template. The
AWS SAM template contains the definition of multiple AWS Lambda functions, an Amazon
S3 bucket, and an Amazon CloudFront distribution. One of the Lambda functions runs on Lambda@Edge in the CloudFront distribution. The S3 bucket is configured as an origin for the CloudFront distribution.
When the developer deploys the AWS SAM template in the eu-west-1 Region, the creation of the stack fails.
Which of the following could be the reason for this issue?

  1. CloudFront distributions can be created only in the us-east-1 Region.
  2. Lambda@Edge functions can be created only in the us-east-1 Region.
  3. A single AWS SAM template cannot contain multiple Lambda functions.
  4. The CloudFront distribution and the S3 bucket cannot be created in the same
    Region.

Answer(s): B



A developer is integrating Amazon ElastiCache in an application. The cache will store data from a database. The cached data must populate real-time dashboards.
Which caching strategy will meet these requirements?

  1. A read-through cache
  2. A write-behind cache
  3. A lazy-loading cache
  4. A write-through cache

Answer(s): D



A developer is creating an AWS Lambda function. The Lambda function needs an external library to connect to a third-party solution. The external library is a collection of files with a total size of 100 MB. The developer needs to make the external library available to the Lambda execution environment and reduce the Lambda package space.
Which solution will meet these requirements with the LEAST operational overhead?

  1. Create a Lambda layer to store the external library. Configure the Lambda function to use the layer.
  2. Create an Amazon S3 bucket. Upload the external library into the S3 bucket.
    Mount the S3 bucket folder in the Lambda function. Import the library by using the proper folder in the mount point.
  3. Load the external library to the Lambda function's /tmp directory during deployment of the Lambda package. Import the library from the /tmp directory.
  4. Create an Amazon Elastic File System (Amazon EFS) volume. Upload the external library to the EFS volume. Mount the EFS volume in the Lambda function. Import the library by using the proper folder in the mount point.

Answer(s): A



A company has a front-end application that runs on four Amazon EC2 instances behind an Elastic Load Balancer (ELB) in a production environment that is provisioned by
AWS Elastic Beanstalk. A developer needs to deploy and test new application code while updating the Elastic Beanstalk platform from the current version to a newer version of Node.js. The solution must result in zero downtime for the application.
Which solution meets these requirements?

  1. Clone the production environment to a different platform version. Deploy the new application code, and test it. Swap the environment URLs upon verification.
  2. Deploy the new application code in an all-at-once deployment to the existing
    EC2 instances. Test the code. Redeploy the previous code if verification fails.
  3. Perform an immutable update to deploy the new application code to new EC2
    instances. Serve traffic to the new instances after they pass health checks.
  4. Use a rolling deployment for the new application code. Apply the code to a subset of EC2 instances until the tests pass. Redeploy the previous code if the tests fail.

Answer(s): C



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