Amazon DVA-C01 Practice Test - Questions Answers, Page 33
List of questions
Question 321

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?
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
Question 322

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?
Explanation:
Reference: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/lambdafunctions.html
Question 323

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?
Question 324

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?
Question 325

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 )
Explanation:
Reference: https://aws.amazon.com/getting-started/tutorials/deliver-content-faster/
Question 326

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?
Explanation:
Reference: https://docs.aws.amazon.com/lambda/latest/dg/with-s3.html
Question 327

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?
Question 328

A developer needs temporary access to resources in a second account
What is the MOST secure way to achieve this?
Explanation:
Reference: https://docs.aws.amazon.com/IAM/latest/UserGuide/tutorial_cross-account-withroles.html
Question 329

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?
Question 330

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?
Question