ExamGecko
Home Home / Amazon / DVA-C01

Amazon DVA-C01 Practice Test - Questions Answers, Page 8

Question list
Search
Search

List of questions

Search

Related questions











A Developer has created a large Lambda function, and deployment is failing with the following error:

ClientError: An error occurred (InvalidParameterValueException) when calling the CreateFunction operation: Unzipped size must be smaller than XXXXXXXXX bytes’, where XXXXXXXXX is the current Lambda 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.
A.
Submit a limit increase request to AWS Support to increase the function to the size needed.
Answers
B.
Use a compression algorithm that is more efficient than ZIP.
B.
Use a compression algorithm that is more efficient than ZIP.
Answers
C.
Break the function into multiple smaller Lambda functions.
C.
Break the function into multiple smaller Lambda functions.
Answers
D.
ZIP the ZIP file twice to compress it further.
D.
ZIP the ZIP file twice to compress it further.
Answers
Suggested answer: C

Given the source code for an AWS Lambda function in the local store.py containing a handler function called get_store and 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 compile to base64 encode and embed the source file into a modified CloudFormation template.
A.
Use aws cloudformation compile to base64 encode and embed the source file into a modified CloudFormation template.
Answers
B.
Use aws cloudformation package to upload the source code to an Amazon S3 bucket and produce a modified CloudFormation template.
B.
Use aws cloudformation package to upload the source code to an Amazon S3 bucket and produce a modified CloudFormation template.
Answers
C.
Use aws lambda zip to package the source file together with the CloudFormation template and deploy the resulting zip archive.
C.
Use aws lambda zip to package the source file together with the CloudFormation template and deploy the resulting zip archive.
Answers
D.
Use aws serverless create-package to embed the source file directly into the existing CloudFormation template.
D.
Use aws serverless create-package to embed the source file directly into the existing CloudFormation template.
Answers
Suggested answer: B

Explanation:

https://docs.aws.amazon.com/cli/latest/reference/cloudformation/package.html

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.
A.
Lambda will scale out to execute the requests concurrently.
Answers
B.
Lambda will handle the requests sequentially in the order received.
B.
Lambda will handle the requests sequentially in the order received.
Answers
C.
Lambda will process multiple images in a single execution.
C.
Lambda will process multiple images in a single execution.
Answers
D.
Lambda will add more compute to each execution to reduce processing time.
D.
Lambda will add more compute to each execution to reduce processing time.
Answers
Suggested answer: A

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.
A.
Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon SNS to trigger notifications of failure events.
Answers
B.
Store the source code in GitHub. Create a CodePipeline to automate unit testing. Use Amazon SES 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.
Answers
C.
Store the source code on GitHub. Create a CodePipeline to automate unit testing. Use Amazon CloudWatch 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.
Answers
D.
Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon CloudWatch to trigger notification 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.
Answers
Suggested answer: D

A serverless application uses an API Gateway and AWS Lambda.

Where should the Lambda function store its session information across function calls?

A.
In an Amazon DynamoDB table
A.
In an Amazon DynamoDB table
Answers
B.
In an Amazon SQS queue
B.
In an Amazon SQS queue
Answers
C.
In the local filesystem
C.
In the local filesystem
Answers
D.
In an SQLite session table using –DSQLITE_ENABLE_SESSION
D.
In an SQLite session table using –DSQLITE_ENABLE_SESSION
Answers
Suggested answer: A

A Developer has created a software package to be deployed on multiple EC2 instances using IAM roles. What actions could be performed to verify IAM access to get records from Amazon Kinesis Streams?

(Select TWO.)

A.
Use the AWS CLI to retrieve the IAM group.
A.
Use the AWS CLI to retrieve the IAM group.
Answers
B.
Query Amazon EC2 metadata for in-line IAM policies.
B.
Query Amazon EC2 metadata for in-line IAM policies.
Answers
C.
Request a token from AWS STS, and perform a describe action.
C.
Request a token from AWS STS, and perform a describe action.
Answers
D.
Perform a get action using the –-dry-run argument.
D.
Perform a get action using the –-dry-run argument.
Answers
E.
Validate the IAM role policy with the IAM policy simulator.
E.
Validate the IAM role policy with the IAM policy simulator.
Answers
Suggested answer: A, E

When writing a Lambda function, what is the benefit of instantiating AWS clients outside the scope of the handler?

A.
Legibility and stylistic convention
A.
Legibility and stylistic convention
Answers
B.
Taking advantage of connection re-use
B.
Taking advantage of connection re-use
Answers
C.
Better error handling
C.
Better error handling
Answers
D.
Creating a new instance per invocation
D.
Creating a new instance per invocation
Answers
Suggested answer: B

An application on AWS is using third-party APIs. The Developer needs to monitor API errors in the code, and wants to receive notifications if failures go above a set threshold value. How can the Developer achieve these requirements?

A.
Publish a custom metric on Amazon CloudWatch and use Amazon SES for notification.
A.
Publish a custom metric on Amazon CloudWatch and use Amazon SES for notification.
Answers
B.
Use an Amazon CloudWatch API-error metric and use Amazon SNS for notification.
B.
Use an Amazon CloudWatch API-error metric and use Amazon SNS for notification.
Answers
C.
Use an Amazon CloudWatch API-error metric and use Amazon SES for notification.
C.
Use an Amazon CloudWatch API-error metric and use Amazon SES for notification.
Answers
D.
Publish a custom metric on Amazon CloudWatch and use Amazon SNS for notification.
D.
Publish a custom metric on Amazon CloudWatch and use Amazon SNS for notification.
Answers
Suggested answer: D

A Developer has an application that can upload tens of thousands of objects per second to Amazon S3 in parallel within a single AWS account. As part of new requirements, data stored in S3 must use server side encryption with AWS KMS (SSE-KMS). After creating this change, performance of the application is slower.

Which of the following is MOST likely the cause of the application latency?

A.
Amazon S3 throttles the rate at which uploaded objects can be encrypted using Customer Master Keys.
A.
Amazon S3 throttles the rate at which uploaded objects can be encrypted using Customer Master Keys.
Answers
B.
The AWS KMS API calls limit is less than needed to achieve the desired performance.
B.
The AWS KMS API calls limit is less than needed to achieve the desired performance.
Answers
C.
The client encryption of the objects is using a poor algorithm.
C.
The client encryption of the objects is using a poor algorithm.
Answers
D.
KMS requires that an alias be used to create an independent display name that can be mapped to a CMK.
D.
KMS requires that an alias be used to create an independent display name that can be mapped to a CMK.
Answers
Suggested answer: B

Explanation:

https://aws.amazon.com/about-aws/whats-new/2018/08/aws-key-management-service-increasesapi-requests-per-second-limits/KMS API access limit is 10k/sec in us-east and some others and 5.5k/sec for the rest of the regions. Client can request this limit to be changed.

A company wants to migrate its web application to AWS and leverage Auto Scaling to handle pear workloads. The Solutions Architect determined that the best metric for an Auto Scaling event is the number of concurrent users. Based on this information, what should the Developer use to autoscale based on concurrent users?

A.
An Amazon SNS topic to be triggered when a concurrent user threshold is met
A.
An Amazon SNS topic to be triggered when a concurrent user threshold is met
Answers
B.
An Amazon Cloudwatch Networkin metric
B.
An Amazon Cloudwatch Networkin metric
Answers
C.
Amazon CloudFront to leverage AWS Edge Locations
C.
Amazon CloudFront to leverage AWS Edge Locations
Answers
D.
A Custom Amazon CloudWatch metric for concurrent users.
D.
A Custom Amazon CloudWatch metric for concurrent users.
Answers
Suggested answer: D
Total 608 questions
Go to page: of 61