AWS Certified Developer Associate DVA-C01 – Question020

A company wants to implement a continuous integration for its workloads on AWS. The company wants to trigger unit test in its pipeline for commits-on its code repository, and wants to be notified of failure events in the pipeline.
How can these requirements be met?

A.
Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon SNS to trigger notifications of failure events.
B. Store the source code in GitHub. Create a CodePipeline to automate unit testing. Use Amazon SES to trigger notifications of failure events.
C. Store the source code on GitHub. Create a CodePipeline to automate unit testing. Use Amazon CloudWatch to trigger notifications of failure events.
D. Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon CloudWatch to trigger notification of failure events.

Correct Answer: A

AWS Certified Developer Associate DVA-C01 – Question019

An application stores images in an S3 bucket. Amazon S3 event notifications are used to trigger a Lambda function that resizes the images. Processing each image takes less than a second.
How will AWS Lambda handle the additional traffic?

A.
Lambda will scale out to execute the requests concurrently.
B. Lambda will handle the requests sequentially in the order received.
C. Lambda will process multiple images in a single execution.
D. Lambda will add more compute to each execution to reduce processing time.

Correct Answer: A

Explanation:

AWS Certified Developer Associate DVA-C01 – Question018

Given the source code for an AWS Lambda function in the local store.py containing a handler function called get_storeand the following AWS CloudFormation template:

What should be done to prepare the template so that it can be deployed using the AWS CLI command aws cloudformation deploy?

A.
Use aws cloudformation compileto base64 encode and embed the source file into a modified CloudFormation template.
B. Use aws cloudformation packageto upload the source code to an Amazon S3 bucket and produce a modified CloudFormation template.
C. Use aws lambda zipto package the source file together with the CloudFormation template and deploy the resulting zip archive.
D. Use aws serverless create-packageto embed the source file directly into the existing CloudFormation template.

Correct Answer: D

AWS Certified Developer Associate DVA-C01 – Question017

A Developer has created a large Lambda function, and deployment is failing with the following error:
ClientError: An error occurred (InvalidParameterValueException) when calling the CreateFunctionoperation: Unzipped size must be smaller than XXXXXXXXX bytes’, where XXXXXXXXX is the currentLambda limit
What can the Developer do to fix this problem?

A.
Submit a limit increase request to AWS Support to increase the function to the size needed.
B. Use a compression algorithm that is more efficient than ZIP.
C. Break the function into multiple smaller Lambda functions.
D. ZIP the ZIP file twice to compress it further.

Correct Answer: C

AWS Certified Developer Associate DVA-C01 – Question016

An application reads data from an Amazon DynamoDB table. Several times a day, for a period of 15 seconds, the application receives multiple ProvisionedThroughputExceeded errors.
How should this exception be handled?

A.
Create a new global secondary index for the table to help with the additional requests.
B. Retry the failed read requests with exponential backoff.
C. Immediately retry the failed read requests.
D. Use the DynamoDB “UpdateItem” API to increase the provisioned throughput capacity of the table.

AWS Certified Developer Associate DVA-C01 – Question015

A Developer needs temporary access to resources in a second account. What is the MOST secure way to achieve this?

A.
Use the Amazon Cognito user pools to get short-lived credentials for the second account.
B. Create a dedicated IAM access key for the second account, and send it by mail.
C. Create a cross-account access role, and use sts:AssumeRoleAPI to get short-lived credentials.
D. Establish trust, and add an SSH key for the second account to the IAM user.

AWS Certified Developer Associate DVA-C01 – Question014

A company is building a stock trading application that requires sub-millisecond latency in processing trading requests. Amazon DynamoDB is used to store all the trading data that is used to process each request. After load testing the application, the development team found that due to data retrieval times, the latency requirement is not satisfied. Because of sudden high spikes in the number of requests, DynamoDB read capacity has to be significantly over-provisioned to avoid throttling.
What steps should be taken to meet latency requirements and reduce the cost of running the application?

A.
Add Global Secondary Indexes for trading data.
B. Store trading data in Amazon S3 and use Transfer Acceleration.
C. Add retries with exponential back-off for DynamoDB queries
D. Use DynamoDB Accelerator to cache trading data.

Correct Answer: A

AWS Certified Developer Associate DVA-C01 – Question013

A large e-commerce site is being designed to deliver static objects from Amazon S3. The Amazon S3 bucket will server more than
300 GET requests per second. What should be done to optimize performance? (Choose two.)

A.
Integrate Amazon CloudFront with Amazon S3.
B. Enable Amazon S3 cross-region replication.
C. Delete expired Amazon S3 server log files.
D. Configure Amazon S3 lifecycle rules.
E. Randomize Amazon S3 key name prefixes.

Correct Answer: AB

Explanation:

AWS Certified Developer Associate DVA-C01 – Question012

A current architecture uses many Lambda functions invoking one another as large state machine. The coordination of this state machine is legacy custom code that breaks easily.
Which AWS Service can help refactor and manage the state machine?

A.
AWS Data Pipeline
B. AWS SNS with AWS SQS
C. Amazon Elastic MapReduce
D. AWS Step Functions

Correct Answer: D

AWS Certified Developer Associate DVA-C01 – Question011

A Developer is asked to implement a caching layer in front of Amazon RDS. Cached content is expensive to regenerate in case of service failure. Which implementation below would work while maintaining maximum uptime?

A.
Implement Amazon ElastiCache Redis in Cluster Mode
B. Install Redis on an Amazon EC2 instance.
C. Implement Amazon ElastiCache Memcached.
D. Migrate the database to Amazon Redshift.