ExamGecko
Home Home / Amazon / DVA-C01

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

Question list
Search
Search

List of questions

Search

Related questions











A developer is migrating a legacy monolithic application to AWS and wants to convert the application's internal processes to microservices The application's internal processes communicate through internal asynchronous messaging Occasionally messages need to be reprocessed by multiple microservices How should the developer migrate the application's internal messaging to AWS to meet these requirements?

A.
Use Amazon Simple Queue Service (Amazon SQS) queues to communicate messages between the microservices
A.
Use Amazon Simple Queue Service (Amazon SQS) queues to communicate messages between the microservices
Answers
B.
Use Amazon API Gateway to provide REST interfaces between the microservices
B.
Use Amazon API Gateway to provide REST interfaces between the microservices
Answers
C.
Use Amazon Kinesis Data Streams to communicate messages between the microservices
C.
Use Amazon Kinesis Data Streams to communicate messages between the microservices
Answers
D.
Use Amazon API Gateway to provide WebSocket APIs between the microservices.
D.
Use Amazon API Gateway to provide WebSocket APIs between the microservices.
Answers
Suggested answer: A

A company hosts a monolithic application on Amazon EC2 instances. The company starts converting some features of the application to a serverless architecture by using Amazon API Gateway and AWS Lambda After the migration, some users report problems with payment processing Upon inspection, a developer discovers that the Lambda function that calls the external payment API is taking longer than expected Therefore, the API Gateway requests are timing out What should the developer do to resolve this issue in the serverless architecture?

A.
Use the EC2 instances to make the API calls to the payment API
A.
Use the EC2 instances to make the API calls to the payment API
Answers
B.
Use Amazon Simple Queue Service (Amazon SQS) with API Gateway and the Lambda function to asynchronously call the payment API
B.
Use Amazon Simple Queue Service (Amazon SQS) with API Gateway and the Lambda function to asynchronously call the payment API
Answers
C.
Increase the API Gateway timeout duration to match the payment API time
C.
Increase the API Gateway timeout duration to match the payment API time
Answers
D.
Increase the Lambda function's memory to increase the network bandwidth and increase the speed of the payment API calls
D.
Increase the Lambda function's memory to increase the network bandwidth and increase the speed of the payment API calls
Answers
Suggested answer: B

A developer is troubleshooting a new AWS Lambda function. The function should run automatically each time a new object is uploaded to an Amazon S3 bucket. However, the developer finds that all calls failed before they reached the application code inside the function.

Which of the following is a possible reason for this failure?

A.
The function resource policy does not allow access from Amazon S3.
A.
The function resource policy does not allow access from Amazon S3.
Answers
B.
The function execution role does not allow access from Amazon S3.
B.
The function execution role does not allow access from Amazon S3.
Answers
C.
The function execution role does not allow access to Amazon S3.
C.
The function execution role does not allow access to Amazon S3.
Answers
D.
The IAM user does not have access to Amazon S3.
D.
The IAM user does not have access to Amazon S3.
Answers
Suggested answer: C

A developer has built an application running on AWS Lambda using AWS Serverless Application Model (AWS SAM). What is the correct sequence of steps to successfully deploy the application?

A.
1. Build the SAM template in Amazon EC2.
A.
1. Build the SAM template in Amazon EC2.
Answers
B.
Package the SAM template to Amazon EBS storage.
B.
Package the SAM template to Amazon EBS storage.
Answers
C.
Deploy the SAM template from Amazon EBS.
C.
Deploy the SAM template from Amazon EBS.
Answers
D.
1. Build the SAM template locally.
D.
1. Build the SAM template locally.
Answers
E.
Package the SAM template onto Amazon S3.
E.
Package the SAM template onto Amazon S3.
Answers
F.
Deploy the SAM template from Amazon S3.
F.
Deploy the SAM template from Amazon S3.
Answers
G.
1. Build the SAM template locally.
G.
1. Build the SAM template locally.
Answers
H.
Deploy the SAM template from Amazon S3.
H.
Deploy the SAM template from Amazon S3.
Answers
I.
Package the SAM template for use.
I.
Package the SAM template for use.
Answers
J.
1. Build the SAM template locally.2 Package the SAM template from AWS CodeCommit.
J.
1. Build the SAM template locally.2 Package the SAM template from AWS CodeCommit.
Answers
Suggested answer: B

A company has a front-end application that runs on four Amazon EC2 instances behind an Elastic Load Balancer (ELB) in a production environment that is provisioned by AWS Elastic Beanstalk. A developer needs to deploy and test new application code while updating the Elastic Beanstalk platform from the current version to a newer version of Node.js. The solution must result in zero downtime for the application. Which solution meets these requirements?

A.
Clone the production environment to a different platform version. Deploy the new application code, and test it. Swap the environment URLs upon verification.
A.
Clone the production environment to a different platform version. Deploy the new application code, and test it. Swap the environment URLs upon verification.
Answers
B.
Deploy the new application code in an all-at-once deployment to the existing EC2 instances. Test the code. Redeploy the previous code if verification fails.
B.
Deploy the new application code in an all-at-once deployment to the existing EC2 instances. Test the code. Redeploy the previous code if verification fails.
Answers
C.
Perform an immutable update to deploy the new application code to new EC2 instances. Serve traffic to the new instances after they pass health checks
C.
Perform an immutable update to deploy the new application code to new EC2 instances. Serve traffic to the new instances after they pass health checks
Answers
D.
Use a rolling deployment for the new application code. Apply the code to a subset of EC2 instances until the tests pass. Redeploy the previous code if the tests fail.
D.
Use a rolling deployment for the new application code. Apply the code to a subset of EC2 instances until the tests pass. Redeploy the previous code if the tests fail.
Answers
Suggested answer: D

A company is running an application on AWS Elastic Beanstalk in a single-instance environment. The company's deployments must avoid any downtime. Which deployment option will meet these requirements?

A.
All at once
A.
All at once
Answers
B.
Rolling
B.
Rolling
Answers
C.
Rolling with additional batch
C.
Rolling with additional batch
Answers
D.
Immutable
D.
Immutable
Answers
Suggested answer: D

A developer is receiving an intermittent ProvisionedThroughputExceededException error from an application that is based on Amazon DynamoDB. According to the Amazon CloudWatch metrics for the table, the application is not exceeding the provisioned throughput What could be the cause of the issue?

A.
The DynamoDB table storage size is larger than the provisioned size.
A.
The DynamoDB table storage size is larger than the provisioned size.
Answers
B.
The application is exceeding capacity on a particular hash key.
B.
The application is exceeding capacity on a particular hash key.
Answers
C.
The DynamoDB table is exceeding the provisioned scaling operations.
C.
The DynamoDB table is exceeding the provisioned scaling operations.
Answers
D.
The application is exceeding capacity on a particular sort key.
D.
The application is exceeding capacity on a particular sort key.
Answers
Suggested answer: B

A developer is working on a Python application that runs on Amazon EC2 instances. The developer wants to enable tracing of application requests to debug performance issues in the code. Which combination of actions should the developer take to achieve this goal? (Select TWO.)

A.
Install the Amazon CloudWatch agent on the EC2 instances.
A.
Install the Amazon CloudWatch agent on the EC2 instances.
Answers
B.
Install the AWS X-Ray daemon on the EC2 instances
B.
Install the AWS X-Ray daemon on the EC2 instances
Answers
C.
Configure the application to write JSON-formatted logs to /var/log/cloudwatch.
C.
Configure the application to write JSON-formatted logs to /var/log/cloudwatch.
Answers
D.
Configure the application to write trace data to /var/log/xray.
D.
Configure the application to write trace data to /var/log/xray.
Answers
E.
Install and configure the AWS X-Ray SDK for Python in the application.
E.
Install and configure the AWS X-Ray SDK for Python in the application.
Answers
Suggested answer: B, E

A company is building a serverless application that uses AWS Lambd a. The application includes Lambda functions that are exposed by Amazon API Gateway The functions will use several large third-party libraries, and the build artifacts will exceed 50 MB in size.

Which combination of steps should a developer take to prepare and perform the deployment?

(Select TWO.)

A.
Issue the aws lambda update-function-code CLI command with the -zip-file fileb://my-function.zip parameter
A.
Issue the aws lambda update-function-code CLI command with the -zip-file fileb://my-function.zip parameter
Answers
B.
Upload the build artifact to Amazon S3.
B.
Upload the build artifact to Amazon S3.
Answers
C.
Issue the aws cloudformation package CLI command.
C.
Issue the aws cloudformation package CLI command.
Answers
D.
Issue the aws lambda update-function-code CLI command with the -s3-bucket and -s3-key parameters.
D.
Issue the aws lambda update-function-code CLI command with the -s3-bucket and -s3-key parameters.
Answers
E.
Issue the aws lambda update-function-code CLI command with a parameter that points to the source code in AWS CodeCommit.
E.
Issue the aws lambda update-function-code CLI command with a parameter that points to the source code in AWS CodeCommit.
Answers
Suggested answer: B, D

A developer is migrating a Windows-based legacy application from on premises to AWS. The application will run on Amazon EC2 instances that run Amazon Linux. The application stores a large number of files in an NFS drive. The migration solution must minimize downtime and application code changes.

Which solution should the developer use to migrate the application data?

A.
Create an Amazon S3 bucket. Use the s3 sync command to upload the files to the S3 bucket.
A.
Create an Amazon S3 bucket. Use the s3 sync command to upload the files to the S3 bucket.
Answers
B.
Create an Amazon Elastic Block Store (Amazon E8S) volume. Upload the files to the volume. Attach the volume to the EC2 instances.
B.
Create an Amazon Elastic Block Store (Amazon E8S) volume. Upload the files to the volume. Attach the volume to the EC2 instances.
Answers
C.
Create an Amazon Elastic File System (Amazon EFS) file system. Use AWS DataSync to transfer the files to Amazon EFS.
C.
Create an Amazon Elastic File System (Amazon EFS) file system. Use AWS DataSync to transfer the files to Amazon EFS.
Answers
D.
Create an Amazon Elastic File System (Amazon EFS) file system. Mount the EFS file system from the legacy application. Copy the files to the EFS mount.
D.
Create an Amazon Elastic File System (Amazon EFS) file system. Mount the EFS file system from the legacy application. Copy the files to the EFS mount.
Answers
Suggested answer: C
Total 608 questions
Go to page: of 61