ExamGecko
Home Home / Amazon / DVA-C01

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

Question list
Search
Search

List of questions

Search

Related questions











A company is creating a continuous integration and continuous delivery (CI/CD) process by using AWS CodePipeline for its application on AWS The CI/CD process will pull code from an AWS CodeCommit repository, create the application infrastructure by using AWS Cloud Formation, deploy the frontend code to an Amazon S3 bucket that is configured for static website hosting, and deploy the application backend on an Amazon Elastic Container Service (Amazon ECS) cluster.

A developer needs to create a new CodePipeline stage that creates the application infrastructure.

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

A.
Create a new action with AWS Lambda as the action provider Create a Lambda function that makes an AWS SDK API call to create the CloudFormation stack
A.
Create a new action with AWS Lambda as the action provider Create a Lambda function that makes an AWS SDK API call to create the CloudFormation stack
Answers
B.
Create a new action with CloudFormation as the action provider Set the action mode to CREATE UPDATE Target the CloudFormation stack to be launched.
B.
Create a new action with CloudFormation as the action provider Set the action mode to CREATE UPDATE Target the CloudFormation stack to be launched.
Answers
C.
Create a new action with Jenkins as the action provider. Create and configure a Jenkins job to make an API call by using the AWS CLI to create the CloudFormation stack.
C.
Create a new action with Jenkins as the action provider. Create and configure a Jenkins job to make an API call by using the AWS CLI to create the CloudFormation stack.
Answers
D.
Create a new action with AWS CodeBuikl as the action provider Configure the buildspec to make an API call by using the AWS CLI to create the CloudFormation stack
D.
Create a new action with AWS CodeBuikl as the action provider Configure the buildspec to make an API call by using the AWS CLI to create the CloudFormation stack
Answers
Suggested answer: D

A developer wants to implement authentication using Amazon Cognito user pools for an existing API in Amazon API Gateway. After creating the Amazon Cognito user pool, the developer tests the GET request to the API. Unauthenticated requests to the API return a 200 OK status response.

Which combination of additional steps are required to complete the authentication implementation?

(Select TWO.)

A.
Create an Amazon Cognito authonzer in API Gateway and specify the Amazon Cognito user pool.
A.
Create an Amazon Cognito authonzer in API Gateway and specify the Amazon Cognito user pool.
Answers
B.
Create an AWS Lambda authorizer in API Gateway and specify the Amazon Cognito user pool.
B.
Create an AWS Lambda authorizer in API Gateway and specify the Amazon Cognito user pool.
Answers
C.
Specify the authofizer in the GET method section of API Gateway and redeploy the API.
C.
Specify the authofizer in the GET method section of API Gateway and redeploy the API.
Answers
D.
Use Amazon Cognito user pools to make and authenticate the request to API Gateway.
D.
Use Amazon Cognito user pools to make and authenticate the request to API Gateway.
Answers
E.
Create an Amazon Cognito authorizer in API Gateway and specify the Amazon Cognito identity pool.
E.
Create an Amazon Cognito authorizer in API Gateway and specify the Amazon Cognito identity pool.
Answers
Suggested answer: A, D

A company is building an application for stock trading. The application needs sub-millisecond latency for processing trade requests. The company uses Amazon DynamoDB to store all the trading data that is used to process each trading request A development team performs load testing on the application and finds that the data retrieval time is higher than expected. The development team needs a solution that reduces the data retrieval time with the least possible effort. Which solution meets these requirements?

A.
Add local secondary indexes (LSIs) for the trading data
A.
Add local secondary indexes (LSIs) for the trading data
Answers
B.
Store the trading data in Amazon S3, and use S3 Transfer Acceleration.
B.
Store the trading data in Amazon S3, and use S3 Transfer Acceleration.
Answers
C.
Add retries with exponential backoff for DynamoDB queries.
C.
Add retries with exponential backoff for DynamoDB queries.
Answers
D.
Use DynamoDB Accelerator (DAX) to cache the trading data
D.
Use DynamoDB Accelerator (DAX) to cache the trading data
Answers
Suggested answer: D

A developer is building varKHJS 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?

A.
Use Amazon CloudWatch to aggregate the microservices' logs and metrics, and build the monitoring dashboard
A.
Use Amazon CloudWatch to aggregate the microservices' logs and metrics, and build the monitoring dashboard
Answers
B.
Use AWS CloudTrail 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
Answers
C.
Use the AWS X-Ray SDK to add instrumentation in all the microsen/ices, and monitor using the XRay service map.
C.
Use the AWS X-Ray SDK to add instrumentation in all the microsen/ices, and monitor using the XRay service map.
Answers
D.
Use AWS Health to monitor the health of all the microservices
D.
Use AWS Health to monitor the health of all the microservices
Answers
Suggested answer: C

Explanation:

https://docs.aws.amazon.com/whitepapers/latest/microservices-on-aws/distributedmonitoring.html#distributed-tracing https://aws.amazon.com/xray/

An application adds a processing date to each transaction that it receives. The application writes each transaction to an Amazon DynamoDB table by using the Putitem operation. Each transaction has a unique ID (transactionlD). Sometimes the application receives transactions more than once.

A developer notices that duplicate transactions in DynamoDB have the latest processing date instead of the date when the transaction was first received. Duplicate records happen infrequently, and most of the transactions are unique. What is the MOST cost-effective solution that the developer can implement to ensure that Putltem does not update an existing record?

A.
Call the Getltem operation first to confirm that the record does not exist. Then call Putltem
A.
Call the Getltem operation first to confirm that the record does not exist. Then call Putltem
Answers
B.
Enable the TTL attribute on the DynamoDB table.
B.
Enable the TTL attribute on the DynamoDB table.
Answers
C.
Implement a conditional put by using the attribute_exists(transactionlD) condition expression.
C.
Implement a conditional put by using the attribute_exists(transactionlD) condition expression.
Answers
D.
Implement a conditional put by using the attribute_not_exists(transactionlD) condition expression.
D.
Implement a conditional put by using the attribute_not_exists(transactionlD) condition expression.
Answers
Suggested answer: C

A developer is exposing an API by using Amazon API Gateway and AWS Lambda as the backend for an application. The developer wants to add validation rules for a POST method to ensure that the data (rom the frontend web form is valid. The validation rules must include mandatory fields, data type, length, and regular expressions. Which solution will meet these requirements?

A.
Create an API Gateway model with schema for data validation.
A.
Create an API Gateway model with schema for data validation.
Answers
B.
Create API Gateway HTTP request headers for data validation.
B.
Create API Gateway HTTP request headers for data validation.
Answers
C.
Create API Gateway URL query string parameters for data validation.
C.
Create API Gateway URL query string parameters for data validation.
Answers
D.
Create API Gateway URL path parameters for data validation
D.
Create API Gateway URL path parameters for data validation
Answers
Suggested answer: D

Explanation:

https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-method-requestvalidation.html

A developer is writing an application that stores data in an Amazon DynamoDB table by using the Putltem API operation. The table has a partition key of streamlD and has a sort key of seqlD. The developer needs to make sure that the Putltem invocation does not overwrite the existing partition key and sort key.

Which condition expression will maintain the uniqueness of the partition key and the sort key?

A.
A.
Answers
B.
B.
Answers
C.
C.
Answers
D.
D.
Answers
Suggested answer: A

Explanation:

https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.ConditionExpressions.html

A developer created a web API that receives requests by using an internet-facing Application Load Balancer (ALB) with an HTTPS listener. The developer configures an Amazon Cognito user pool and wants to ensure that every request to the API is authenticated through Amazon Cognito.

What should the developer do to meet this requirement?

A.
Add a listener rule to the listener to return a fixed response if the Authorization header is missing. Set the fixed response to 401 Unauthorized.
A.
Add a listener rule to the listener to return a fixed response if the Authorization header is missing. Set the fixed response to 401 Unauthorized.
Answers
B.
Create an authentication action for the listener rules of the ALB. Set the rule action type to authenticate-cognito Set the OnUnauthenticatedRequest field to "deny."
B.
Create an authentication action for the listener rules of the ALB. Set the rule action type to authenticate-cognito Set the OnUnauthenticatedRequest field to "deny."
Answers
C.
Create an Amazon API Gateway API. Configure all API methods to be forwarded to the ALB endpoint. Create an authorizer of the COGNITO_USER_POOLS type. Configure every API method to use that authorizer.
C.
Create an Amazon API Gateway API. Configure all API methods to be forwarded to the ALB endpoint. Create an authorizer of the COGNITO_USER_POOLS type. Configure every API method to use that authorizer.
Answers
D.
Create a new target group that includes an AWS Lambda function target that validates the Authorization header by using Amazon Cognito. Associate the target group with the listener.
D.
Create a new target group that includes an AWS Lambda function target that validates the Authorization header by using Amazon Cognito. Associate the target group with the listener.
Answers
Suggested answer: C

A company manages a financial services application that stores a large volume of data in an Amazon DynamoDB table. A developer needs to improve the performance of the DynamoDB read queries without increasing the cost. Which solution meets these requirements?

A.
Use parallel scans
A.
Use parallel scans
Answers
B.
Add a local secondary index (LSI).
B.
Add a local secondary index (LSI).
Answers
C.
Create a DynamoDB Accelerator (DAX) cluster.
C.
Create a DynamoDB Accelerator (DAX) cluster.
Answers
D.
Query with the Projection Expression parameter
D.
Query with the Projection Expression parameter
Answers
Suggested answer: C

A distributed application includes an AWS Lambda function that runs successfully in the DEV environment with 128 MB of memory assigned. The same function is failing in the TEST environment. The developer is monitoring the application using AWS X-Ray, but the Lambda function cannot be seen on the X-Ray service graph. The Lambda execution role has AWS X-Ray permissions What is the MOST LIKELY cause for AWS X-Ray not showing any data for the Lambda function?

A.
The AWS SDK needs to be included in the AWS Lambda deployment package.
A.
The AWS SDK needs to be included in the AWS Lambda deployment package.
Answers
B.
VPC Flow Logs are not enabled for the application VPC.
B.
VPC Flow Logs are not enabled for the application VPC.
Answers
C.
Active tracing needs to be enabled for the Lambda function
C.
Active tracing needs to be enabled for the Lambda function
Answers
D.
The memory needs to be increased to 2 GB for the TEST environments.
D.
The memory needs to be increased to 2 GB for the TEST environments.
Answers
Suggested answer: C

Explanation:

https://stackoverflow.com/questions/43728674/enabling-x-ray-support-in-aws-lambda You need to check the "Enable Active Tracing" checkbox in the Lambda console.

Total 608 questions
Go to page: of 61