ExamGecko
Home Home / Amazon / DVA-C01

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

Question list
Search
Search

List of questions

Search

Related questions











A developer is attempting to use the Amazon S3 PutObject API operation to upload an object to an S3 bucket that has default encryption enabled. The developer receives a 400 Bad Request error. What is the MOST likely cause of this error?

A.
The API operation cannot access the encryption key
A.
The API operation cannot access the encryption key
Answers
B.
The HTTP Content-Length header is missing.
B.
The HTTP Content-Length header is missing.
Answers
C.
The object exceeds the maximum object size that is allowed.
C.
The object exceeds the maximum object size that is allowed.
Answers
D.
The S3 bucket exceeds the maximum storage capacity that is allowed
D.
The S3 bucket exceeds the maximum storage capacity that is allowed
Answers
Suggested answer: D

A company is using AWS CloudFormation templates to deploy AWS resources. The company needs to update one of its AWS CloudFormation stacks What can the company do to find out how the changes will impact the resources that are running?

A.
Investigate the change sets
A.
Investigate the change sets
Answers
B.
Investigate the stack policies
B.
Investigate the stack policies
Answers
C.
Investigate the Metadata section.
C.
Investigate the Metadata section.
Answers
D.
Investigate the Resources section.
D.
Investigate the Resources section.
Answers
Suggested answer: A

A developer has created a Node js web application on a local development machine. The developer wants to use AWS technology to host the website. The developer needs a solution that requires the least possible operational overhead and no code changes.

Which AWS service should the developer use to meet these requirements?

A.
AWS Elastic Beanstalk
A.
AWS Elastic Beanstalk
Answers
B.
Amazon EC2
B.
Amazon EC2
Answers
C.
AWS Lambda
C.
AWS Lambda
Answers
D.
Amazon Elastic Kubernetes Service (Amazon EKS)
D.
Amazon Elastic Kubernetes Service (Amazon EKS)
Answers
Suggested answer: A

A developer is creating AWS CloudFormation templates to manage an application's deployment in Amazon Elastic Container Service (Amazon ECS) through AWS CodeDeploy. The developer wants to automatically deploy new versions of the application to a percentage of users before the new version becomes available for all users.

How should the developer manage the deployment of the new version?

A.
Modify the CloudFormation template to include a Transform section and the AWS "CodeDeploy::BlueGreen hook.
A.
Modify the CloudFormation template to include a Transform section and the AWS "CodeDeploy::BlueGreen hook.
Answers
B.
Deploy the new version in a new CloudFormation stack After testing is complete, update the application's DNS records for the new stack.
B.
Deploy the new version in a new CloudFormation stack After testing is complete, update the application's DNS records for the new stack.
Answers
C.
Run CloudFormation stack updates on the application stack to deploy new application versions when they are available.
C.
Run CloudFormation stack updates on the application stack to deploy new application versions when they are available.
Answers
D.
Create a nested stack for the new version. Include a Transform section and the AWS: CodeDeploy BlueGreen hook.
D.
Create a nested stack for the new version. Include a Transform section and the AWS: CodeDeploy BlueGreen hook.
Answers
Suggested answer: B

A developer is writing an application to analyze the traffic to a fleet of Amazon EC2 instances The EC2 instances run behind a public Application Load Balancer (ALB). An HTTP server runs on each of the EC2 instances, logging all requests to a log file.

The developer wants to capture the client public IP addresses. The developer analyzes the log files and notices only the IP address of the ALB What must the developer do to capture the client public IP addresses in the log file?

A.
Add a Host header to the HTTP server log configuration file
A.
Add a Host header to the HTTP server log configuration file
Answers
B.
Install the Amazon CloudWatch Logs agent on each EC2 instance. Configure the agent to write to the log file.
B.
Install the Amazon CloudWatch Logs agent on each EC2 instance. Configure the agent to write to the log file.
Answers
C.
Install the AWS X-Ray daemon on each EC2 instance Configure the daemon to write to the log file.
C.
Install the AWS X-Ray daemon on each EC2 instance Configure the daemon to write to the log file.
Answers
D.
Add an X-Forwarded-For header to the HTTP server log configuration file.
D.
Add an X-Forwarded-For header to the HTTP server log configuration file.
Answers
Suggested answer: C

A developer at a company writes an AWS ClojdForination template. The template refers to subnets that were created by a separate AWS Cloud Formation template that the company's network team wrote. When the developer attempts to launch the stack for the first time, the launch fails.

Which template coding mistakes could have caused this failure? (Select TWO.)

A.
The developer's template does not use the Ref intrinsic function to refer to the subnets
A.
The developer's template does not use the Ref intrinsic function to refer to the subnets
Answers
B.
The developer's template does not use the ImportValue intrinsic function to refer to the subnets
B.
The developer's template does not use the ImportValue intrinsic function to refer to the subnets
Answers
C.
The Mappings section of the developer's template does not refer to the subnets.
C.
The Mappings section of the developer's template does not refer to the subnets.
Answers
D.
The network team's template does not export the subnets in the Outputs section
D.
The network team's template does not export the subnets in the Outputs section
Answers
E.
The network team's template does not export the subnets in the Mappings section
E.
The network team's template does not export the subnets in the Mappings section
Answers
Suggested answer: B, D

A developer is building an application. The application's front end is developed in JavaScript, and the data is stored in an Amazon DynamoDB table During testing, the application returns an HTTP 5xx error from the strongly consistent reads to the DynamoDB table; "Internal server error (Service:

AmazonDynamoDBv2. Status Code: 500; Error Code; InternalServerError)." Which actions should the developer take to mitigate this error? (Select TWO )

A.
Avoid strongly consistent reads
A.
Avoid strongly consistent reads
Answers
B.
Use DynamoDB Accelerator (DAX)
B.
Use DynamoDB Accelerator (DAX)
Answers
C.
Increase read/write capacity of DynamoDB to meet the peak load.
C.
Increase read/write capacity of DynamoDB to meet the peak load.
Answers
D.
Retry the failed read requests with exponential backoff
D.
Retry the failed read requests with exponential backoff
Answers
E.
Configure DynamoDB auto scaling
E.
Configure DynamoDB auto scaling
Answers
Suggested answer: A, D

A developer wants to modify the following AWS Cloud Formation template to embed another CloudFormation stack:

Which syntax should the developer add to the blank line of the CloudFormation template to meet this requirement?

A.
"Mapping" : "AWS::CloudFormation::Stack",
A.
"Mapping" : "AWS::CloudFormation::Stack",
Answers
B.
"Type" : "AWS;:CloudFcrmation::NestedStack",
B.
"Type" : "AWS;:CloudFcrmation::NestedStack",
Answers
C.
"Typ©" : "AWS::CloudFormation::Stack",
C.
"Typ©" : "AWS::CloudFormation::Stack",
Answers
D.
"Mapping" : "AWS::CloudFormation::NestedStack",
D.
"Mapping" : "AWS::CloudFormation::NestedStack",
Answers
Suggested answer: A

A developer is working on a serverless application. The application uses Amazon API Gateway. AWS Lambda functions that are written in Python, and Amazon DynamoDB. Which combination of steps should the developer take so that the Lambda functions can be debugged in the event of application failures? (Select TWO )

A.
Configure an AWS CloudTrail trail to deliver log files to an Amazon S3 bucket
A.
Configure an AWS CloudTrail trail to deliver log files to an Amazon S3 bucket
Answers
B.
Ensure that the Lambda functions write log messages to stdout and stderr
B.
Ensure that the Lambda functions write log messages to stdout and stderr
Answers
C.
Enable an AWS CloudTrail trail for the Lambda function
C.
Enable an AWS CloudTrail trail for the Lambda function
Answers
D.
Ensure that the execution role for the Lambda function has access to write to Amazon CloudWatch Logs.
D.
Ensure that the execution role for the Lambda function has access to write to Amazon CloudWatch Logs.
Answers
E.
Use the Amazon CloudWatch metric for Lambda errors to create a CloudWatch alarm.
E.
Use the Amazon CloudWatch metric for Lambda errors to create a CloudWatch alarm.
Answers
Suggested answer: D, E

A developer supports an application that accesses data in an Amazon DynamoDB table One of the item attributes is expirationDate In the timestamp format The application uses this attribute to find items archive them and remove them from the table based on the timestamp value The application will be decommissioned soon, and the developer must find another way to implement this functionality The developer needs a solution that will require the least amount of code to write. Which solution will meet these requirements?

A.
Enable TTL on the expirationDate attribute in the table. Create a DynamoDB stream. Create an AWS Lambda function to process the deleted items. Create a DynamoDB trigger for the Lambda function
A.
Enable TTL on the expirationDate attribute in the table. Create a DynamoDB stream. Create an AWS Lambda function to process the deleted items. Create a DynamoDB trigger for the Lambda function
Answers
B.
Create two AWS Lambda functions one to delete the items and one to process the items Create a DynamoDB stream Use the Deleteltem API operation to delete the items based on the expirationDate attribute Use the GetRecords API operation to get the items from the DynamoDB stream and process them
B.
Create two AWS Lambda functions one to delete the items and one to process the items Create a DynamoDB stream Use the Deleteltem API operation to delete the items based on the expirationDate attribute Use the GetRecords API operation to get the items from the DynamoDB stream and process them
Answers
C.
Create two AWS Lambda functions one to delete the items and one to process the items Create an Amazon EventBridge (Amazon CloudWatch Events) scheduled rule to invoke the Lambda functions Use the Deleteltem API operation to delete the items based on the expirationDate attribute Use the GetRecords API operation to get the items from the DynamoDB table and process them
C.
Create two AWS Lambda functions one to delete the items and one to process the items Create an Amazon EventBridge (Amazon CloudWatch Events) scheduled rule to invoke the Lambda functions Use the Deleteltem API operation to delete the items based on the expirationDate attribute Use the GetRecords API operation to get the items from the DynamoDB table and process them
Answers
D.
Enable TTL on the expirationDate attribute in the table Specify an Amazon Simple Queue Service(Amazon SQS) dead-letter queue as the target to delete the items Create an AWS Lambda function to process the items.
D.
Enable TTL on the expirationDate attribute in the table Specify an Amazon Simple Queue Service(Amazon SQS) dead-letter queue as the target to delete the items Create an AWS Lambda function to process the items.
Answers
Suggested answer: C
Total 608 questions
Go to page: of 61