ExamGecko
Home Home / Amazon / DVA-C02

Amazon DVA-C02 Practice Test - Questions Answers, Page 25

Question list
Search
Search

List of questions

Search

Related questions











A company is working on a new serverless application. A developer needs to find an automated way to deploy AWS Lambda functions and the dependent Infrastructure with minimum coding effort. The application also needs to be reliable.

Which method will meet these requirements with the LEAST operational overhead?

A.

Build the application by using shell scripts to create .zip files for each Lambda function. Manually upload the .zip files to the AWS Management Console.

A.

Build the application by using shell scripts to create .zip files for each Lambda function. Manually upload the .zip files to the AWS Management Console.

Answers
B.

Build the application by using the AWS Serverless Application Model (AWS SAM). Use a continuous integration and continuous delivery (CI/CD) pipeline and the SAM CLI to deploy the Lambda functions.

B.

Build the application by using the AWS Serverless Application Model (AWS SAM). Use a continuous integration and continuous delivery (CI/CD) pipeline and the SAM CLI to deploy the Lambda functions.

Answers
C.

Build the application by using shell scripts to create .zip files for each Lambda function. Upload the .zip files. Deploy the .zip files as Lambda functions by using the AWS CLI in a continuous integration and continuous delivery (CI/CD) pipeline.

C.

Build the application by using shell scripts to create .zip files for each Lambda function. Upload the .zip files. Deploy the .zip files as Lambda functions by using the AWS CLI in a continuous integration and continuous delivery (CI/CD) pipeline.

Answers
D.

Build a container for each Lambda function. Store the container images in AWS CodeArtifact. Deploy the containers as Lambda functions by using the AWS CLI in a continuous integration and continuous delivery (CI/CD) pipeline.

D.

Build a container for each Lambda function. Store the container images in AWS CodeArtifact. Deploy the containers as Lambda functions by using the AWS CLI in a continuous integration and continuous delivery (CI/CD) pipeline.

Answers
Suggested answer: B

A company maintains a REST service using Amazon API Gateway and the API Gateway native API key validation. The company recently launched a new registration page, which allows users to sign up for the service. The registration page creates a new API key using CreateApiKey and sends the new key to the user. When the user attempts to call the API using this key. the user receives a 403 Forbidden error. Existing users are unaffected and can still call the API.

What code updates will grant these new users access to the API?

A.

The createDeploymer.t method must be called so the API can be redeployed to include the newly created API key.

A.

The createDeploymer.t method must be called so the API can be redeployed to include the newly created API key.

Answers
B.

The updateAuthorizer method must be called to update the API's authorizer to include the newly created API key

B.

The updateAuthorizer method must be called to update the API's authorizer to include the newly created API key

Answers
C.

The importApiKeys method must be called to import all newly created API keys into the current stage of the API.

C.

The importApiKeys method must be called to import all newly created API keys into the current stage of the API.

Answers
D.

The createUsagePlanKey method must be called to associate the newly created API key with the correct usage plan.

D.

The createUsagePlanKey method must be called to associate the newly created API key with the correct usage plan.

Answers
Suggested answer: D

A developer is building a microservice that uses AWS Lambda to process messages from an Amazon Simple Queue Service (Amazon SQS) standard queue. The Lambda function calls external APIs to enrich the SOS message data before loading the data into an Amazon Redshift data warehouse. The SOS queue must handle a maximum of 1.000 messages per second.

During initial testing, the Lambda function repeatedly inserted duplicate data into the Amazon Redshift table. The duplicate data led to a problem with data analysis. All duplicate messages were submitted to the queue within 1 minute of each other.

How should the developer resolve this issue?

A.

Create an SOS FIFO queue. Enable message deduplication on the SOS FIFO queue.

A.

Create an SOS FIFO queue. Enable message deduplication on the SOS FIFO queue.

Answers
B.

Reduce the maximum Lambda concurrency that the SOS queue can invoke.

B.

Reduce the maximum Lambda concurrency that the SOS queue can invoke.

Answers
C.

Use Lambda's temporary storage to keep track of processed message identifiers.

C.

Use Lambda's temporary storage to keep track of processed message identifiers.

Answers
D.

Configure a message group ID for every sent message. Enable message deduplication on the SQS standard queue.

D.

Configure a message group ID for every sent message. Enable message deduplication on the SQS standard queue.

Answers
Suggested answer: A

A company launched an online portal to announce a new product that the company will release in 6 months. The portal requests that users enter an email address to receive communications about the product. The company needs to create a REST API that will store the email addresses in Amazon DynamoDB.

A developer has created an AWS Lambda function that can store the email addresses. The developer will deploy the Lambda function by using the AWS Serverless Application Model (AWS SAM). The developer must provide access to the Lambda function over HTTP.

Which solutions will meet these requirements with the LEAST additional configuration? (Select TWO.)

A.

Expose the Lambda function by using function URLs.

A.

Expose the Lambda function by using function URLs.

Answers
B.

Expose the Lambda function by using a Gateway Load Balancer.

B.

Expose the Lambda function by using a Gateway Load Balancer.

Answers
C.

Expose the Lambda function by using a Network Load Balancer.

C.

Expose the Lambda function by using a Network Load Balancer.

Answers
D.

Expose the Lambda function by using AWS Global Accelerator

D.

Expose the Lambda function by using AWS Global Accelerator

Answers
E.

Expose the Lambda function by using Amazon API Gateway.

E.

Expose the Lambda function by using Amazon API Gateway.

Answers
Suggested answer: A, E

A developer has created a large AWS Lambda function. Deployment of the function Is failing because of an InvalidParameterValueException error. The error message indicates that the unzipped size of the function exceeds the maximum supported value.

Which actions can the developer take to resolve this error? (Select TWO.)

A.

Submit a quota increase request to AWS Support to increase the function to the required size.

A.

Submit a quota increase request to AWS Support to increase the function to the required size.

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 up the function into multiple smaller functions.

C.

Break up the function into multiple smaller functions.

Answers
D.

Zip the .zip file twice to compress the file more.

D.

Zip the .zip file twice to compress the file more.

Answers
E.

Move common libraries, function dependencies, and custom runtimes into Lambda layers.

E.

Move common libraries, function dependencies, and custom runtimes into Lambda layers.

Answers
Suggested answer: C, E

A developer is creating a new batch application that will run on an Amazon EC2 instance. The application requires read access to an Amazon S3 bucket. The developer needs to follow security best practices to grant S3 read access to the application.

Which solution meets these requirements?

A.

Add the permissions to an 1AM policy. Attach the policy to a role. Attach the role to the EC2 instance profile.

A.

Add the permissions to an 1AM policy. Attach the policy to a role. Attach the role to the EC2 instance profile.

Answers
B.

Add the permissions inline to an 1AM group. Attach the group to the EC2 instance profile.

B.

Add the permissions inline to an 1AM group. Attach the group to the EC2 instance profile.

Answers
C.

Add the permissions to an 1AM policy. Attach the policy to a user. Attach the user to the EC2 instance profile.

C.

Add the permissions to an 1AM policy. Attach the policy to a user. Attach the user to the EC2 instance profile.

Answers
D.

Add the permissions to an 1AM policy. Use 1AM web identity federation to access the S3 bucket with the policy.

D.

Add the permissions to an 1AM policy. Use 1AM web identity federation to access the S3 bucket with the policy.

Answers
Suggested answer: A

An 1AM role is attached to an Amazon EC2 instance that explicitly denies access to all Amazon S3 API actions. The EC2 instance credentials file specifies the 1AM access key and secret access key, which allow full administrative access.

Given that multiple modes of 1AM access are present for this EC2 instance, which of the following is correct?

A.

The EC2 instance will only be able to list the S3 buckets.

A.

The EC2 instance will only be able to list the S3 buckets.

Answers
B.

The EC2 instance will only be able to list the contents of one S3 bucket at a time.

B.

The EC2 instance will only be able to list the contents of one S3 bucket at a time.

Answers
C.

The EC2 instance will be able to perform all actions on any S3 bucket.

C.

The EC2 instance will be able to perform all actions on any S3 bucket.

Answers
D.

The EC2 instance will not be able to perform any S3 action on any S3 bucket.

D.

The EC2 instance will not be able to perform any S3 action on any S3 bucket.

Answers
Suggested answer: D

A developer is writing unit tests tor a new application that will be deployed on AWS. The developer wants to validate all pull requests with unit tests and merge the code with the main branch only when all tests pass

The developer stores the code in AWS CodeCommit and sets up AWS CodeBuild to run the unit tests. The developer creates an AWS Lambda function to start the CodeBuild task. The developer needs to identify the CodeCommit events in an Amazon EventBridge event that can invoke the Lambda function when a pull request is created or updated.

Which CodeCommit event will meet these requirements?

A.

Option A

A.

Option A

Answers
B.

Option B

B.

Option B

Answers
C.

Option C

C.

Option C

Answers
D.

Option D

D.

Option D

Answers
Suggested answer: C

Explanation:

https://aws.amazon.com/blogs/devops/automated-code-review-on-pull-requests-using-aws-codecommit-and-aws-codebuild/

A company has a website that displays a daily newsletter. When a user visits the website, an AWS Lambda function processes the browser's request and queries the company's on-premises database to obtain the current newsletter. The newsletters are stored in English. The Lambda function uses the Amazon Translate TranslateText API operation to translate the newsletters, and the translation is displayed to the user.

Due to an increase in popularity, the website's response time has slowed. The database is overloaded. The company cannot change the database and needs a solution that improves the response time of the Lambda function.

Which solution meets these requirements?

A.

Change to asynchronous Lambda function invocation.

A.

Change to asynchronous Lambda function invocation.

Answers
B.

Cache the translated newsletters in the Lambda /tmp directory.

B.

Cache the translated newsletters in the Lambda /tmp directory.

Answers
C.

Enable TranslateText API caching.

C.

Enable TranslateText API caching.

Answers
D.

Change the Lambda function to use parallel processing.

D.

Change the Lambda function to use parallel processing.

Answers
Suggested answer: B

A developer creates an AWS Lambda function that is written in Java. During testing, the Lambda function does not work how the developer expected. The developer wants to use tracing capabilities to troubleshoot the problem.

Which AWS service should the developer use to accomplish this goal?

A.

AWS Trusted Advisor

A.

AWS Trusted Advisor

Answers
B.

Amazon CloudWatch

B.

Amazon CloudWatch

Answers
C.

AWS X-Ray

C.

AWS X-Ray

Answers
D.

AWS CloudTrail

D.

AWS CloudTrail

Answers
Suggested answer: C
Total 292 questions
Go to page: of 30