ExamGecko
Home Home / Amazon / DVA-C01

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

Question list
Search
Search

List of questions

Search

Related questions











A company is developing a report executed by AWS Step Functions Amazon CloudWatch shows errors in the Step Functions task state machine To troubleshoot each task, the state input needs to be included along with the error message in the state output.

Which coding practice can preserve both the original input and the error for the state?

A.
Use ResultPath in a Catch statement to include the error with the original input
A.
Use ResultPath in a Catch statement to include the error with the original input
Answers
B.
Use inputPath in a Catch statement and set the value to null.
B.
Use inputPath in a Catch statement and set the value to null.
Answers
C.
Use ErrorEquals in a Retry statement to include the error with the original input
C.
Use ErrorEquals in a Retry statement to include the error with the original input
Answers
D.
Use OutputPath in a Retry statement and set the value to $.
D.
Use OutputPath in a Retry statement and set the value to $.
Answers
Suggested answer: A

Explanation:

Use ResultPath in a Catch to include the error with the original input.

Reference: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-resultpath.html

A developer registered an AWS Lambda function as a target for an Application Load Balancer (ALB) using a CLI command. However, the Lambda function is not being invoked when the client sends requests through the ALB. Why is the Lambda function not being invoked?

A.
A Lambda function cannot be registered as a target for an ALB
A.
A Lambda function cannot be registered as a target for an ALB
Answers
B.
A Lambda function can be registered with an ALB using AWS Management Console only
B.
A Lambda function can be registered with an ALB using AWS Management Console only
Answers
C.
The permissions to invoke the Lambda function are missing
C.
The permissions to invoke the Lambda function are missing
Answers
D.
Cross-zone is not enabled on the ALB
D.
Cross-zone is not enabled on the ALB
Answers
Suggested answer: C

Explanation:

Reference: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambdafunctions.html

A company has implemented AWS CodePipeline to automate its release pipelines The development team is writing an AWS Lambda function that will send notifications for state changes of each of the actions in the stages. Which steps must be taken to associate the Lambda function with the event source?

A.
Create a trigger that invokes the Lambda function from the Lambda console by selecting CodePipeline as the event source
A.
Create a trigger that invokes the Lambda function from the Lambda console by selecting CodePipeline as the event source
Answers
B.
Create an event trigger and specify the Lambda function from the CodePipeline console.
B.
Create an event trigger and specify the Lambda function from the CodePipeline console.
Answers
C.
Create an Amazon CloudWatch alarm that monitors status changes in CodePipeline and triggers the Lambda function
C.
Create an Amazon CloudWatch alarm that monitors status changes in CodePipeline and triggers the Lambda function
Answers
D.
Create an Amazon CloudWatch Events rule that uses CodePipeline as an event source.
D.
Create an Amazon CloudWatch Events rule that uses CodePipeline as an event source.
Answers
Suggested answer: B

A developer is preparing a deployment package using AWS Cloud Formation. The package consists of two separate templates: one for the infrastructure and one for the application. The application has to be inside the VPC that is created from the infrastructure template How can the application stack refer to the VPC created from the infrastructure template?

A.
Use the Ret function to import the VPC into the application stack from the infrastructure template
A.
Use the Ret function to import the VPC into the application stack from the infrastructure template
Answers
B.
Use the export flag in the infrastructure template, and then use the Fn::lmportValue function in the application template
B.
Use the export flag in the infrastructure template, and then use the Fn::lmportValue function in the application template
Answers
C.
Use the DependsOn attribute to specify that the application instance depends on the VPC in the application template
C.
Use the DependsOn attribute to specify that the application instance depends on the VPC in the application template
Answers
D.
Use the Fn::GetAtt function to include the attribute of the VPC in the application template.
D.
Use the Fn::GetAtt function to include the attribute of the VPC in the application template.
Answers
Suggested answer: A

A company s website runs on an Amazon EC2 instance and uses Auto Scale the environment during peak times Website users across the world are experiencing high to sea latency due to static content on the EC2 instance, even during non-peak hours.

Which combination of steps will resolve the latency issue? (Select TWO )

A.
Double the Auto Scaling group's maximum number of servers.
A.
Double the Auto Scaling group's maximum number of servers.
Answers
B.
Host the application code on AWS Lambda
B.
Host the application code on AWS Lambda
Answers
C.
Scale vertically by resizing the EC2 instances
C.
Scale vertically by resizing the EC2 instances
Answers
D.
Create an Amazon CloudFront distribution to cache the static content
D.
Create an Amazon CloudFront distribution to cache the static content
Answers
E.
Store the application's static content in Amazon S3
E.
Store the application's static content in Amazon S3
Answers
Suggested answer: C, D

Explanation:

Reference: https://aws.amazon.com/getting-started/tutorials/deliver-content-faster/

A developer is writing an application that will process data delivered into an Amazon S3 bucket. The data is delivered approximately 10 times a day, and the developer expects the data will be processed in less than 1 minute, on average. How can the developer deploy and invoke the application with the lowest cost and lowest latency?

A.
Deploy the application as an AWS Lambda function and invoke it with an Amazon CloudWatch alarm triggered by an S3 object upload
A.
Deploy the application as an AWS Lambda function and invoke it with an Amazon CloudWatch alarm triggered by an S3 object upload
Answers
B.
Deploy the application as an AWS Lambda function and invoke it with an S3 event notification
B.
Deploy the application as an AWS Lambda function and invoke it with an S3 event notification
Answers
C.
Deploy the application as an AWS Lambda function and invoke it with an Amazon CloudWatch scheduled event
C.
Deploy the application as an AWS Lambda function and invoke it with an Amazon CloudWatch scheduled event
Answers
D.
Deploy the application onto an Amazon EC2 instance and have it poll the S3 bucket for new objects.
D.
Deploy the application onto an Amazon EC2 instance and have it poll the S3 bucket for new objects.
Answers
Suggested answer: A

Explanation:

Reference: https://docs.aws.amazon.com/lambda/latest/dg/with-s3.html

A developer is testing an application that invokes an AWS Lambda function asynchronously During the testing phase, the Lambda function fails to process after two retries How can the developer troubleshoot the failure?

A.
Configure AWS CloudTrail logging to investigate the invocation failures
A.
Configure AWS CloudTrail logging to investigate the invocation failures
Answers
B.
Configure Dead Letter Queues by sending events to Amazon SQS for investigation.
B.
Configure Dead Letter Queues by sending events to Amazon SQS for investigation.
Answers
C.
Configure Amazon Simple Workflow Service to process any direct unprocessed events
C.
Configure Amazon Simple Workflow Service to process any direct unprocessed events
Answers
D.
Configure AWS Config to process any direct unprocessed events
D.
Configure AWS Config to process any direct unprocessed events
Answers
Suggested answer: A

A developer needs temporary access to resources in a second account

What is the MOST secure way to achieve this?

A.
Use the Amazon Cognito user pools to get short-lived credentials for the second account
A.
Use the Amazon Cognito user pools to get short-lived credentials for the second account
Answers
B.
Create a dedicated IAM access key for the second account, and send it by mail.
B.
Create a dedicated IAM access key for the second account, and send it by mail.
Answers
C.
Create a cross-account access role, and use sts:AssumeRcie API to get short-lived credentials
C.
Create a cross-account access role, and use sts:AssumeRcie API to get short-lived credentials
Answers
D.
Establish trust, and add an SSH key for the second account to the IAM user
D.
Establish trust, and add an SSH key for the second account to the IAM user
Answers
Suggested answer: C

Explanation:

Reference: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-withroles.html

A developer is updating an application deployed on AWS Elastic Beanstalk The new version is incompatible with the old version To successfully deploy the update, a full cutover to the new updated version must be performed on all instances at one time, with the ability to roll back changes in case of a deployment failure in the new version How can this be performed with the LEAST amount of downtime?

A.
Use the Elastic Beanstalk All at once deployment policy to update all instances simultaneously
A.
Use the Elastic Beanstalk All at once deployment policy to update all instances simultaneously
Answers
B.
Perform an Elastic Beanstalk Rolling with additional batch deployment
B.
Perform an Elastic Beanstalk Rolling with additional batch deployment
Answers
C.
Deploy the new version in a new Elastic Beanstalk environment and swap environment URLs
C.
Deploy the new version in a new Elastic Beanstalk environment and swap environment URLs
Answers
D.
Perform an Elastic Beanstalk Rolling deployment
D.
Perform an Elastic Beanstalk Rolling deployment
Answers
Suggested answer: C

A developer is setting up Amazon API Gateway for their company's products The API will be used by registered developers to query and update their environments. The company wants to limit the amount of requests end users can send for both cost and security reasons Management wants to offer registered developers the option of buying larger packages that allow for more requests. How can the developer accomplish this with the LEAST amount of overhead management?

A.
Enable throttling for the API Gateway stage. Set a value for both the rate and burst capacity. If a registered user chooses a larger package, create a stage for them, adjust the values, and share the new URL with them.
A.
Enable throttling for the API Gateway stage. Set a value for both the rate and burst capacity. If a registered user chooses a larger package, create a stage for them, adjust the values, and share the new URL with them.
Answers
B.
Set up Amazon CloudWatch API logging in API Gateway Create a filter based on the user and request Time fields and create an alarm on this filter Write an AWS Lambda function to analyze the values and requester information, and respond accordingly Set up the function as the target for the alarm If a registered user chooses a larger package, update the Lambda code with the values.
B.
Set up Amazon CloudWatch API logging in API Gateway Create a filter based on the user and request Time fields and create an alarm on this filter Write an AWS Lambda function to analyze the values and requester information, and respond accordingly Set up the function as the target for the alarm If a registered user chooses a larger package, update the Lambda code with the values.
Answers
C.
Enable Amazon CloudWatch metrics for the API Gateway stage Set up CloudWatch alarms based off the Count metric and the ApiName, Method, Resource, and Stage dimensions to alerts when request rates pass the threshold Set the alarm action to Deny If a registered user chooses a larger package create a user-specific alarm and adjust the values
C.
Enable Amazon CloudWatch metrics for the API Gateway stage Set up CloudWatch alarms based off the Count metric and the ApiName, Method, Resource, and Stage dimensions to alerts when request rates pass the threshold Set the alarm action to Deny If a registered user chooses a larger package create a user-specific alarm and adjust the values
Answers
D.
Set up a default usage plan, specify values for the rate and burst capacity, and associate it with a stage, if a registered user chooses a larger package, create a custom plan with the appropriate values and associate the plan with the user
D.
Set up a default usage plan, specify values for the rate and burst capacity, and associate it with a stage, if a registered user chooses a larger package, create a custom plan with the appropriate values and associate the plan with the user
Answers
Suggested answer: D
Total 608 questions
Go to page: of 61