ExamGecko
Home / Amazon / DVA-C01 / List of questions
Ask Question

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

List of questions

Question 71

Report
Export
Collapse

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?

Submit a limit increase request to AWS Support to increase the function to the size needed.
Submit a limit increase request to AWS Support to increase the function to the size needed.
Use a compression algorithm that is more efficient than ZIP.
Use a compression algorithm that is more efficient than ZIP.
Break the function into multiple smaller Lambda functions.
Break the function into multiple smaller Lambda functions.
ZIP the ZIP file twice to compress it further.
ZIP the ZIP file twice to compress it further.
Suggested answer: C
asked 16/09/2024
Mark Anthony Acorda
36 questions

Question 72

Report
Export
Collapse

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:

Amazon DVA-C01 image Question 72 3830 09162024005626000000

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

Use aws cloudformation compile to base64 encode and embed the source file into a modified CloudFormation template.
Use aws cloudformation compile to base64 encode and embed the source file into a modified CloudFormation template.
Use aws cloudformation package to upload the source code to an Amazon S3 bucket and produce a modified CloudFormation template.
Use aws cloudformation package to upload the source code to an Amazon S3 bucket and produce a modified CloudFormation template.
Use aws lambda zip to package the source file together with the CloudFormation template and deploy the resulting zip archive.
Use aws lambda zip to package the source file together with the CloudFormation template and deploy the resulting zip archive.
Use aws serverless create-package to embed the source file directly into the existing CloudFormation template.
Use aws serverless create-package to embed the source file directly into the existing CloudFormation template.
Suggested answer: B

Explanation:

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

asked 16/09/2024
Dennis Rodrigues
21 questions

Question 73

Report
Export
Collapse

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?

Lambda will scale out to execute the requests concurrently.
Lambda will scale out to execute the requests concurrently.
Lambda will handle the requests sequentially in the order received.
Lambda will handle the requests sequentially in the order received.
Lambda will process multiple images in a single execution.
Lambda will process multiple images in a single execution.
Lambda will add more compute to each execution to reduce processing time.
Lambda will add more compute to each execution to reduce processing time.
Suggested answer: A
asked 16/09/2024
Courage Marume
35 questions

Question 74

Report
Export
Collapse

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?

Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon SNS to trigger notifications of failure events.
Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon SNS to trigger notifications of failure events.
Store the source code in GitHub. Create a CodePipeline to automate unit testing. Use Amazon SES to trigger notifications of failure events.
Store the source code in GitHub. Create a CodePipeline to automate unit testing. Use Amazon SES to trigger notifications of failure events.
Store the source code on GitHub. Create a CodePipeline to automate unit testing. Use Amazon CloudWatch to trigger notifications of failure events.
Store the source code on GitHub. Create a CodePipeline to automate unit testing. Use Amazon CloudWatch to trigger notifications of failure events.
Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon CloudWatch to trigger notification of failure events.
Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon CloudWatch to trigger notification of failure events.
Suggested answer: D
asked 16/09/2024
DAVID LOPEZ MORGADO
41 questions

Question 75

Report
Export
Collapse

A serverless application uses an API Gateway and AWS Lambda.

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

In an Amazon DynamoDB table
In an Amazon DynamoDB table
In an Amazon SQS queue
In an Amazon SQS queue
In the local filesystem
In the local filesystem
In an SQLite session table using –DSQLITE_ENABLE_SESSION
In an SQLite session table using –DSQLITE_ENABLE_SESSION
Suggested answer: A
asked 16/09/2024
manuele groppi
30 questions

Question 76

Report
Export
Collapse

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.)

Use the AWS CLI to retrieve the IAM group.
Use the AWS CLI to retrieve the IAM group.
Query Amazon EC2 metadata for in-line IAM policies.
Query Amazon EC2 metadata for in-line IAM policies.
Request a token from AWS STS, and perform a describe action.
Request a token from AWS STS, and perform a describe action.
Perform a get action using the –-dry-run argument.
Perform a get action using the –-dry-run argument.
Validate the IAM role policy with the IAM policy simulator.
Validate the IAM role policy with the IAM policy simulator.
Suggested answer: A, E
asked 16/09/2024
Danilo Romelli
49 questions

Question 77

Report
Export
Collapse

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

Legibility and stylistic convention
Legibility and stylistic convention
Taking advantage of connection re-use
Taking advantage of connection re-use
Better error handling
Better error handling
Creating a new instance per invocation
Creating a new instance per invocation
Suggested answer: B
asked 16/09/2024
Mita Balija
41 questions

Question 78

Report
Export
Collapse

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?

Publish a custom metric on Amazon CloudWatch and use Amazon SES for notification.
Publish a custom metric on Amazon CloudWatch and use Amazon SES for notification.
Use an Amazon CloudWatch API-error metric and use Amazon SNS for notification.
Use an Amazon CloudWatch API-error metric and use Amazon SNS for notification.
Use an Amazon CloudWatch API-error metric and use Amazon SES for notification.
Use an Amazon CloudWatch API-error metric and use Amazon SES for notification.
Publish a custom metric on Amazon CloudWatch and use Amazon SNS for notification.
Publish a custom metric on Amazon CloudWatch and use Amazon SNS for notification.
Suggested answer: D
asked 16/09/2024
Fahim Thanawala
43 questions

Question 79

Report
Export
Collapse

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?

Amazon S3 throttles the rate at which uploaded objects can be encrypted using Customer Master Keys.
Amazon S3 throttles the rate at which uploaded objects can be encrypted using Customer Master Keys.
The AWS KMS API calls limit is less than needed to achieve the desired performance.
The AWS KMS API calls limit is less than needed to achieve the desired performance.
The client encryption of the objects is using a poor algorithm.
The client encryption of the objects is using a poor algorithm.
KMS requires that an alias be used to create an independent display name that can be mapped to a CMK.
KMS requires that an alias be used to create an independent display name that can be mapped to a CMK.
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.

asked 16/09/2024
I Haq
35 questions

Question 80

Report
Export
Collapse

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?

An Amazon SNS topic to be triggered when a concurrent user threshold is met
An Amazon SNS topic to be triggered when a concurrent user threshold is met
An Amazon Cloudwatch Networkin metric
An Amazon Cloudwatch Networkin metric
Amazon CloudFront to leverage AWS Edge Locations
Amazon CloudFront to leverage AWS Edge Locations
A Custom Amazon CloudWatch metric for concurrent users.
A Custom Amazon CloudWatch metric for concurrent users.
Suggested answer: D
asked 16/09/2024
Marrapu Sreenivasarao
31 questions
Total 608 questions
Go to page: of 61
Search

Related questions