Spring Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

DVA-C02 Leak Questions

Page: 17 / 40
Total 546 questions

AWS Certified Developer - Associate Questions and Answers

Question 65

A developer is building various microservices for an application that will run on Amazon EC2 instances. The developer needs to monitor the end-to-end view of the requests between the microservices and debug any issues in the various microservices.

What should the developer do to accomplish these tasks?

Options:

A.

Use Amazon CloudWatch to aggregate the microservices ' logs and metrics, and build the monitoring dashboard.

B.

Use AWS CloudTrail to aggregate the microservices ' logs and metrics, and build the monitoring dashboard.

C.

Use the AWS X-Ray SDK to add instrumentation in all the microservices, and monitor using the X-Ray service map.

D.

Use AWS Health to monitor the health of all the microservices.

Question 66

For a deployment using AWS Code Deploy, what is the run order of the hooks for in-place deployments?

Options:

A.

BeforeInstall - > ApplicationStop - > ApplicationStart - > AfterInstall

B.

ApplicationStop - > BeforeInstall - > AfterInstall - > ApplicationStart

C.

BeforeInstall - > ApplicationStop - > ValidateService - > ApplicationStart

D.

ApplicationStop - > BeforeInstall - > ValidateService - > ApplicationStart

Question 67

A company is running a custom web application on Amazon EC2 instances behind an Application Load Balancer. The instances run in an Auto Scaling group. The company ' s development team is using AWS CloudFormation to deploy all the services. The application is time-consuming to install and configure when the development team launches a new instance.

Which combination of steps should a developer take to optimize the performance when a new instance is launched? (Select TWO.)

Options:

A.

Use an AWS Marketplace Amazon Machine Image (AMI) with a prebuilt application.

B.

Create a prebuilt Amazon Machine Image (AMI) with the application installed and configured.

C.

Update the launch template resource in the CloudFormation template.

D.

Use AWS Systems Manager Run Command to install and configure the application.

E.

Use CloudFormation helper scripts to install and configure the application.

Question 68

A developer is building a multi-tenant application that uses an AWS Lambda function and an Amazon S3 bucket. An S3 event notification invokes the Lambda function when a new file is uploaded to the S3 bucket. The function reads each new file from the S3 bucket, processes the file, and writes data to an Amazon DynamoDB table. Each file in the S3 bucket has a prefix that corresponds with the name of the tenant that owns the file. Items in the DynamoDB table use tenant name as the partition key.

The developer must reduce the risk that file data will leak across tenants during processing.

Which combination of actions will meet this requirement? (Select THREE.)

Options:

A.

Create a data access IAM role. Allow the Lambda function to assume the data access role. Configure the role to allow the sts:TagSession action.

B.

Create a data access IAM role. Allow the Lambda function execution role to assume the data access role.

C.

Configure a policy for the data access IAM role to allow access to DynamoDB and Amazon S3 only for data that corresponds with the tenant session tag.

D.

Create a resource-based policy for the DynamoDB table to restrict access based on the principal tag of the IAM role that the Lambda function assumes.

E.

Create a resource control policy (RCP) that allows access to the S3 bucket by using the aws:PrincipalTag global condition key.

F.

Configure the Lambda function to assume the data access IAM role that has the tenant name as a session tag. Use the assumed role credentials to access data.

Page: 17 / 40
Total 546 questions