ExamGecko
Home Home / Amazon / DVA-C01

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

Question list
Search
Search

List of questions

Search

Related questions











An application runs on multiple EC2 instances behind an ELB.

Where is the session data best written so that it can be served reliably across multiple requests?

A.
Write data to Amazon ElastiCache
A.
Write data to Amazon ElastiCache
Answers
B.
Write data to Amazon Elastic Block Store.
B.
Write data to Amazon Elastic Block Store.
Answers
C.
Write data to Amazon EC2 Instance Store.
C.
Write data to Amazon EC2 Instance Store.
Answers
D.
Write data to the root filesystem.
D.
Write data to the root filesystem.
Answers
Suggested answer: C

Explanation:

Reference:

https://docs.aws.amazon.com/aws-technical-content/latest/microservices-on-aws/microserviceson-aws.pdf?icmpid=link_from_whitepapers_page (14)

A Developer is creating a Lambda function that will generate and export a file. The function requires 100 MB of temporary storage for temporary files while executing. These files will not be needed after the function is complete. How can the Developer MOST efficiently handle the temporary files?

A.
Store the files in EBS and delete the files at the end of the Lambda function.
A.
Store the files in EBS and delete the files at the end of the Lambda function.
Answers
B.
Copy the files to EFS and delete the files at the end of the Lambda function.
B.
Copy the files to EFS and delete the files at the end of the Lambda function.
Answers
C.
Store the files in the /tmp directory and delete the files at the end of the Lambda function.
C.
Store the files in the /tmp directory and delete the files at the end of the Lambda function.
Answers
D.
Copy the files to an S3 bucket with a lifecycle policy to delete the files.
D.
Copy the files to an S3 bucket with a lifecycle policy to delete the files.
Answers
Suggested answer: C

A Developer has developed a web application and wants to deploy it quickly on a Tomcat server on AWS. The Developer wants to avoid having to manage the underlying infrastructure. What is the easiest way to deploy the application, based on these requirements?

A.
AWS CloudFormation
A.
AWS CloudFormation
Answers
B.
AWS Elastic Beanstalk
B.
AWS Elastic Beanstalk
Answers
C.
Amazon S3
C.
Amazon S3
Answers
D.
AWS CodePipeline
D.
AWS CodePipeline
Answers
Suggested answer: B

An application uses Lambda functions to extract metadata from files uploaded to an S3 bucket; the metadata is stored in Amazon DynamoDB. The application starts behaving unexpectedly, and the Developer wants to examine the logs of the Lambda function code for errors.

Based on this system configuration, where would the Developer find the logs?

A.
Amazon S3
A.
Amazon S3
Answers
B.
AWS CloudTrail
B.
AWS CloudTrail
Answers
C.
Amazon CloudWatch
C.
Amazon CloudWatch
Answers
D.
Amazon DynamoDB
D.
Amazon DynamoDB
Answers
Suggested answer: C

An organization is using Amazon CloudFront to ensure that its users experience low-latency access to its web application. The organization has identified a need to encrypt all traffic between users and CloudFront, and all traffic between CloudFront and the web application.

How can these requirements be met? (Choose two.)

A.
Use AWS KMS to encrypt traffic between CloudFront and the web application.
A.
Use AWS KMS to encrypt traffic between CloudFront and the web application.
Answers
B.
Set the Origin Protocol Policy to “HTTPS Only”.
B.
Set the Origin Protocol Policy to “HTTPS Only”.
Answers
C.
Set the Origin’s HTTP Port to 443.
C.
Set the Origin’s HTTP Port to 443.
Answers
D.
Set the Viewer Protocol Policy to “HTTPS Only” or “Redirect HTTP to HTTPS”.
D.
Set the Viewer Protocol Policy to “HTTPS Only” or “Redirect HTTP to HTTPS”.
Answers
E.
Enable the CloudFront option Restrict Viewer Access.
E.
Enable the CloudFront option Restrict Viewer Access.
Answers
Suggested answer: A, B

Explanation:

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-tocloudfront.html

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-cloudfrontto-custom-origin.html

An application is using Amazon DynamoDB as its data store, and should be able to read 100 items per second as strongly consistent reads. Each item is 5 KB in size. To what value should the table’s provisioned read throughput be set?

A.
50 read capacity units
A.
50 read capacity units
Answers
B.
100 read capacity units
B.
100 read capacity units
Answers
C.
200 read capacity units
C.
200 read capacity units
Answers
D.
500 read capacity unitsc
D.
500 read capacity unitsc
Answers
Suggested answer: C

A web application is designed to allow new users to create accounts using their email addresses. The application will store attributes for each user, and is expecting millions of user to sign up. What should the Developer implement to achieve the design goals?

A.
Amazon Cognito user pools
A.
Amazon Cognito user pools
Answers
B.
AWS Mobile Hub user data storage
B.
AWS Mobile Hub user data storage
Answers
C.
Amazon Cognito Sync
C.
Amazon Cognito Sync
Answers
D.
AWS Mobile Hub cloud logic
D.
AWS Mobile Hub cloud logic
Answers
Suggested answer: A

A company needs a new REST API that can return information about the contents of an Amazon S3 bucket, such as a count of the objects stored in it. The company has decided that the new API should be written as a microservice using AWS Lambda and Amazon API Gateway.

How should the Developer ensure that the microservice has the necessary access to the Amazon S3 bucket, while adhering to security best practices?

A.
Create an IAM user that has permissions to access the Amazon S3 bucket, and store the IAM user credentials in the Lambda function source code.
A.
Create an IAM user that has permissions to access the Amazon S3 bucket, and store the IAM user credentials in the Lambda function source code.
Answers
B.
Create an IAM role that has permissions to access the Amazon S3 bucket and assign it to the Lambda function as its execution role.
B.
Create an IAM role that has permissions to access the Amazon S3 bucket and assign it to the Lambda function as its execution role.
Answers
C.
Create an Amazon S3 bucket policy that specifies the Lambda service as its principal and assign it to the Amazon S3 bucket.
C.
Create an Amazon S3 bucket policy that specifies the Lambda service as its principal and assign it to the Amazon S3 bucket.
Answers
D.
Create an IAM role, attach the AmazonS3FullAccess managed policy to it, and assign the role to the Lambda function as its execution role.
D.
Create an IAM role, attach the AmazonS3FullAccess managed policy to it, and assign the role to the Lambda function as its execution role.
Answers
Suggested answer: B

Explanation:

https://aws.amazon.com/premiumsupport/knowledge-center/lambda-execution-role-s3-bucket/

An application is running on an EC2 instance. The Developer wants to store an application metric in Amazon CloudWatch. What is the best practice for implementing this requirement?

A.
Use the PUT Object API call to send data to an S3 bucket. Use an event notification to invoke a Lambda function to publish data to CloudWatch.
A.
Use the PUT Object API call to send data to an S3 bucket. Use an event notification to invoke a Lambda function to publish data to CloudWatch.
Answers
B.
Publish the metric data to an Amazon Kinesis Stream using a PutRecord API call. Subscribe a Lambda function that publishes data to CloudWatch.
B.
Publish the metric data to an Amazon Kinesis Stream using a PutRecord API call. Subscribe a Lambda function that publishes data to CloudWatch.
Answers
C.
Use the CloudWatch PutMetricData API call to submit a custom metric to CloudWatch. Provide the required credentials to enable the API call.
C.
Use the CloudWatch PutMetricData API call to submit a custom metric to CloudWatch. Provide the required credentials to enable the API call.
Answers
D.
Use the CloudWatch PutMetricData API call to submit a custom metric to CloudWatch. Launch the EC2 instance with the required IAM role to enable the API call.
D.
Use the CloudWatch PutMetricData API call to submit a custom metric to CloudWatch. Launch the EC2 instance with the required IAM role to enable the API call.
Answers
Suggested answer: D

Explanation:

https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-ec2.html

Queries to an Amazon DynamoDB table are consuming a large amount of read capacity. The table has a significant number of large attributes. The application does not need all of the attribute data. How can DynamoDB costs be minimized while maximizing application performance?

A.
Batch all the writes, and perform the write operations when no or few reads are being performed.
A.
Batch all the writes, and perform the write operations when no or few reads are being performed.
Answers
B.
Create a global secondary index with a minimum set of projected attributes.
B.
Create a global secondary index with a minimum set of projected attributes.
Answers
C.
Implement exponential backoffs in the application.
C.
Implement exponential backoffs in the application.
Answers
D.
Load balance the reads to the table using an Application Load Balancer.
D.
Load balance the reads to the table using an Application Load Balancer.
Answers
Suggested answer: C

Explanation:

https://docs.aws.amazon.com/AWSEC2/latest/APIReference/query-api-troubleshooting.html

Total 608 questions
Go to page: of 61