AWS Certified Developer Associate

AWS Certified Developer Associate practice questions, page 12 of 18, with answer review and explanations.

Question 56

A company needs to ingest terabytes of data each hour from thousands of sources that are delivered almost continually throughout the day. The volume of messages generated varies over the course of the day. Messages must be delivered in real time for fraud detection and live operational dashboards. Which approach will meet these requirements?

  1. Send the messages to an Amazon SQS queue, then process the messages by using a fleet of Amazon EC2 instances
  2. Use the Amazon S3 API to write messages to an S3 bucket, then process the messages by using Amazon Redshift
  3. Use AWS Data Pipeline to automate the movement and transformation of data
  4. Use Amazon Kinesis Data Streams with Kinesis Client Library to ingest and deliver messages

Question 57

A developer is debugging an AWS Lambda function behind an Amazon API Gateway. Whenever the API Gateway endpoint is called, HTTP status code 200 is returned even though AWS Lambda is recording a 4xx error. What change needs to be made to return a proper error code through the API Gateway?

  1. Enable CORS in the API Gateway method settings
  2. Use a Lambda proxy integration to return HTTP codes and headers
  3. Enable API Gateway error pass-through.
  4. Return the value in the header x-Amzn-ErrorType.

Question 58

For a deployment using AWS CodeDeploy, what is the run order of the hooks for in-place deployments?

  1. Before Install -> Application Stop -> Application Start -> After Install
  2. Application Stop -> Before Install -> After Install -> Application Start
  3. Before Install -> Application Stop -> Validate Service -> Application Start
  4. Application Stop -> Before Install -> Validate Service -> Application Start

Question 59

A developer is using Amazon S3 as the event source that invokes a Lambda function when new objects are created in the bucket. The event source mapping information is stored in the bucket notification configuration. The developer is working with different versions of the Lambda function, and has a constant need to update notification configuration so that Amazon S3 invokes the correct version. What is the MOST efficient and effective way to achieve mapping between the S3 event and Lambda?

  1. Use a different Lambda trigger.
  2. Use Lambda environment variables.
  3. Use a Lambda alias.
  4. Use Lambda tags.

Question 60

A company has a multi-tier application that uses Amazon API Gateway, AWS Lambda, and Amazon RDS. The company wants to investigate a slow response time to calls that come from the API Gateway API. What is the MOST operationally efficient way for the company to determine which internal call is causing the slow response times?

  1. Use Amazon CloudWatch.
  2. Use AWS X-Ray.
  3. Use AWS CloudTrail.
  4. Use VPC Flow Logs.