CCNA 200-301

CCNP Enterprise

CCNP Security

CCIE Enterprise Lab

CCIE Security Lab

CCNP Service Provider

CCNP Data Center

CCNP Collaboration

CCIE DC Lab

SPOTO AWS DVA-C02 exam practice tests include real AWS DVA-C02 exam questions and answers, allowing you to quickly learn about the topics included in the AWS DVA-C02 exam!

This article will now include 11 AWS DVA-C02 test practice questions and verified answers. Put yourself to the test right now!

SPOTO 100 percent authentic AWS DVA-C02 test dumps are the ideal study products for your pre-exam preparation if you want to pass the AWS DVA-C02 exam on the first try.

QUESTION 1

A company has an AWS Lambda function that runs hourly, reads log files that are stored in Amazon S3, and forwards alerts to Amazon Simple Notification Service (Amazon SNS) topics based on content. A developer wants to add a custom metric to the Lambda function to track the number of alerts of each type for each run. The developer needs to log this information in Amazon CloudWatch in a metric that is named Lambda/AlertCounts.

How should the developer modify the Lambda function to meet this requirement with the LEAST operational overhead?

A. Add a print statement to standard out for each alert and the number of occurrences.

B. Add a call to the PutMetricData API operation. Pass an array for alerts and the number of occurrences in the Values and Counts fields with a namespace of “Lambda/AlertCounts”.

C. Add a call to the PutMetricAlarm API operation. Pass an array of alerts in the metrics member with the namespace of “Lambda/AlertCounts”

D. Add a call to the PutDashboard API operation. Pass an array of alerts in the metrics member with the namespace of “Lambda/AlertCounts” .

 

Correct Answer: B

 

QUESTION 2

A developer is creating a serverless ecommerce application that is based on AWS Lambda. An asynchronous workflow manages the checkout process and must orchestrate different Lambda functions. The workflow runs one function for each item in the shopping cart. The developer is using AWS Step Functions to orchestrate the process.

The checkout process is running the Lambda functions serially, and the developer needs to improve the performance of the process. What should the developer do to meet these requirements?

A. Use a Choice state to identify the size of the cart and invoke a specific Lambda function with the entire cart content

B. Use a Retry field for a second run to process all the items that failed.

C. Use a Parallel state to iterate over all the items in parallel.

D. Use a Map state to iterate over all the items in the cart.

 

Correct Answer: D

 

QUESTION 3

A social media website is storing user information in an Amazon DynamoDB table. How should a developer configure the table keys to achieve the MOST throughput?

A. Create a partition key that is the combination of the user ID and a hash of the user ID.

B. Create a partition key of the user ID. Use a sequential integer for the user ID.

C. Create a sort key that is the combination of the user ID and a hash of the user ID.

D. Create a sort key of the user ID. Use a sequential integer for the user ID.

 

Correct Answer: D

 

QUESTION 4

A weather company deploys a new version of its Docker container image in a continuous integration/ continuous delivery (CI/CD) pipeline. The continuous deployment process creates a new image and uploads the new image to a registry in Amazon Elastic Container Registry (Amazon ECR). The company wants to reduce the number of images that it retains to an exact number.

What is the MOST operationally efficient solution that will meet these requirements?

A. Create an AWS Lambda function to determine images for deletion and call the ECR BatchDeletelmage API operation. Invoke the function upon each new image creation in the ECR registry.

B. Create an AWS Lambda function that deletes any image that is not tagged “latest.” Schedule the function with Amazon EventBridge (Amazon CloudWatch Events) to run once a day.

C. Set up an Amazon CloudWatch alarm that is based on the number of images. Receive a notification if the image count exceeds the number that the company has decided to retain. Use the AWS Management Console to delete old images.

D. Add a lifecycle policy to the ECR registry that removes the oldest images so that the number of remaining images is the number that the company has decidedto retain.

 

Correct Answer: A

 

QUESTION 5

A team is developing an application that is deployed on Amazon EC2 instances. During testing, the team receives an error. The EC2 instances are unable to access an Amazon S3 bucket.

Which steps should the team take to troubleshoot this issue? (Select TWO.)

A. Check whether the policy that is assigned to the IAM role that is attached to the EC2 instances grants access to Amazon S3.

Check the S3 bucket policy to validate the access permissions for the S3 bucket.

B. Check whether the policy that is assigned to the IAM user that is attached to the EC2 instances grants access to Amazon S3.

C. Check the S3 Lifecycle policy to validate the permissions that are assigned to the S3 bucket.

D. Check the security groups that are assigned to the EC2 instances. Make sure that a rule is not blocking the access to Amazon S3.

 

Correct Answer: AB

Download more AWS Practice Demo Here

QUESTION 6

A developer has written an application that runs on Amazon EC2 instances. The developer is adding functionality for the application to write objects to an Amazon S3 bucket

Which policy must the developer modify to allow the instances to write these objects?

A. The IAM policy that is attached to the EC2 instance profile role

B. The session policy that is applied to the EC2 instance role session

C. The AWS Key Management Service (AWS KMS) key policy that is attached to the EC2 instance profile role

D. The Amazon VPC endpoint policy

 

Correct Answer: A

 

QUESTION 7

A developer is building a website that will be hosted in an Amazon S3 bucket with static website hosting enabled. The developer will use Amazon Route 53 for the DNS service and will use an alias record to point the company’s domain to the bucket. The developer must redirect one S3 object to a different URL.

What should the developer use so that the redirect will work correctly from a page on the website?

 

A. A Route 53 CNAME alias record that points to the new location

B. An S3 object-level redirect through system-defined metadata

C. A Route 53 A record that points to the new location

D. A redirect that is configured within the S3 bucket’s policy

 

Correct Answer: A

 

QUESTION 8

A developer is refactoring an on-premises API to a serverless approach on AWS. The developer is using a combination of Amazon API Gateway, Amazon RDS, and VPC-based AWS Lambda. When testing the Lambda function for the first time, the developer notices that the Lambda function code does not have a connection to the database.

Which of the following could be a cause for this issue?

 

A. Lambda will not work with Amazon RDS because Lambda is serverless and Amazon RDS is server based.

B. The code must be refactored to connect to the database outside of the handler function on the first invocation, and the handler should reuse the established connection on each subsequent invocation.

C. The Lambda function must be running outside of a VPC to connect to an RDS database.

D. The code must be refactored to connect to the database with each HTTP request through API Gateway instead of one time when the function starts.

 

Correct Answer: B

 

QUESTION 9

A developer is changing the configuration for a CPU-intensive AWS Lambda function that runs once an hour. The function usually takes 45 seconds to run, but sometimes the run time is up to 1 minute. The timeout parameter is set to 3 minutes, and all other parameters are set to default. The developer needs to optimize the run time of this function.

Which solution will meet this requirement?

A. Redeploy the function within the default VPC.

B. Increase the function’s memory.

C. Redeploy the function by using Lambda layers.

D. Increase the function’s reserved concurrency.

 

Correct Answer: D

 

QUESTION 10

A developer is writing a web application that is deployed on Amazon EC2 instances behind an internet-facing Application Load Balancer (ALB). The developer must add an Amazon CloudFront distribution in front of the ALB. The developer also must ensure that customer data from outside the VPC is encrypted in transit.

Which combination of CloudFront configuration settings should the developer use to meet these requirements? (Select TWO.)

A. Restrict viewer access by using signed URLs.

B. Set the Origin Protocol Policy setting to Match Viewer.

C. Enable field-level encryption.

D. Enable automatic object compression .

Set the Viewer Protocol Policy setting to Redirect HTTP to HTTPS.

 

Correct Answer: CE

 

QUESTION 11

A developer is writing a web application that allows users to sign in. The application will run on Amazon EC2 instances behind an Application Load Balancer (ALB). The instances will run in an Auto Scaling group across multiple Availability Zones.

How can the developer ensure that users stay signed in when the Auto Scaling group is scaled down?

A. Enable sticky sessions on the ALB target group.

B. Create an Amazon DynamoDB table. Configure the application to use theDynamoDB table to store session state such as login status.

C. Create an Amazon Elastic Block Store (Amazon EBS) volume. Use EBS Multi-Attach to attach the volume to all instances in the Auto Scaling group. Configure the application to use the volume to store session state such as login status.

D.Enable deregistration delay on the ALB target group.

 

Correct Answer: C

 

Conclusion

If you want more valid AWS DVA-C02 exam practice tests, please contact SPOTO to get more real DVA-C02 exam questions!

Get Love to Learn Offer to buy DVA-C02 at a favorable price!

Latest passing report-100% pass guarantee

 

Please follow and like us:
Last modified: November 5, 2024

Author

Comments

Write a Reply or Comment

Your email address will not be published.