ExamGecko
Home / Amazon / DVA-C01 / List of questions
Ask Question

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

List of questions

Question 321

Report
Export
Collapse

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?

Use ResultPath in a Catch statement to include the error with the original input
Use ResultPath in a Catch statement to include the error with the original input
Use inputPath in a Catch statement and set the value to null.
Use inputPath in a Catch statement and set the value to null.
Use ErrorEquals in a Retry statement to include the error with the original input
Use ErrorEquals in a Retry statement to include the error with the original input
Use OutputPath in a Retry statement and set the value to $.
Use OutputPath in a Retry statement and set the value to $.
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

asked 16/09/2024
Vasil Ishmatov
41 questions

Question 322

Report
Export
Collapse

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 Lambda function cannot be registered as a target for an ALB
A Lambda function cannot be registered as a target for an ALB
A Lambda function can be registered with an ALB using AWS Management Console only
A Lambda function can be registered with an ALB using AWS Management Console only
The permissions to invoke the Lambda function are missing
The permissions to invoke the Lambda function are missing
Cross-zone is not enabled on the ALB
Cross-zone is not enabled on the ALB
Suggested answer: C

Explanation:

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

asked 16/09/2024
Daniel williams
51 questions

Question 323

Report
Export
Collapse

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?

Create a trigger that invokes the Lambda function from the Lambda console by selecting CodePipeline as the event source
Create a trigger that invokes the Lambda function from the Lambda console by selecting CodePipeline as the event source
Create an event trigger and specify the Lambda function from the CodePipeline console.
Create an event trigger and specify the Lambda function from the CodePipeline console.
Create an Amazon CloudWatch alarm that monitors status changes in CodePipeline and triggers the Lambda function
Create an Amazon CloudWatch alarm that monitors status changes in CodePipeline and triggers the Lambda function
Create an Amazon CloudWatch Events rule that uses CodePipeline as an event source.
Create an Amazon CloudWatch Events rule that uses CodePipeline as an event source.
Suggested answer: B
asked 16/09/2024
Ahmed Khan
47 questions

Question 324

Report
Export
Collapse

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?

Use the Ret function to import the VPC into the application stack from the infrastructure template
Use the Ret function to import the VPC into the application stack from the infrastructure template
Use the export flag in the infrastructure template, and then use the Fn::lmportValue function in the application template
Use the export flag in the infrastructure template, and then use the Fn::lmportValue function in the application template
Use the DependsOn attribute to specify that the application instance depends on the VPC in the application template
Use the DependsOn attribute to specify that the application instance depends on the VPC in the application template
Use the Fn::GetAtt function to include the attribute of the VPC in the application template.
Use the Fn::GetAtt function to include the attribute of the VPC in the application template.
Suggested answer: A
asked 16/09/2024
Chakravarthy Sankaranarayanan
34 questions

Question 325

Report
Export
Collapse

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 )

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

Explanation:

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

asked 16/09/2024
G C
48 questions

Question 326

Report
Export
Collapse

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?

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

Explanation:

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

asked 16/09/2024
Martin Schouten
41 questions

Question 327

Report
Export
Collapse

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?

Configure AWS CloudTrail logging to investigate the invocation failures
Configure AWS CloudTrail logging to investigate the invocation failures
Configure Dead Letter Queues by sending events to Amazon SQS for investigation.
Configure Dead Letter Queues by sending events to Amazon SQS for investigation.
Configure Amazon Simple Workflow Service to process any direct unprocessed events
Configure Amazon Simple Workflow Service to process any direct unprocessed events
Configure AWS Config to process any direct unprocessed events
Configure AWS Config to process any direct unprocessed events
Suggested answer: A
asked 16/09/2024
sergio sombrero
34 questions

Question 328

Report
Export
Collapse

A developer needs temporary access to resources in a second account

What is the MOST secure way to achieve this?

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

Explanation:

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

asked 16/09/2024
matias alvarez
29 questions

Question 329

Report
Export
Collapse

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?

Use the Elastic Beanstalk All at once deployment policy to update all instances simultaneously
Use the Elastic Beanstalk All at once deployment policy to update all instances simultaneously
Perform an Elastic Beanstalk Rolling with additional batch deployment
Perform an Elastic Beanstalk Rolling with additional batch deployment
Deploy the new version in a new Elastic Beanstalk environment and swap environment URLs
Deploy the new version in a new Elastic Beanstalk environment and swap environment URLs
Perform an Elastic Beanstalk Rolling deployment
Perform an Elastic Beanstalk Rolling deployment
Suggested answer: C
asked 16/09/2024
Rui Carrapico
33 questions

Question 330

Report
Export
Collapse

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?

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.
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.
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.
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.
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
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
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
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
Suggested answer: D
asked 16/09/2024
Ivan Galir
47 questions
Total 608 questions
Go to page: of 61
Search

Related questions