AWS Certified Developer Associate

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

Question 31

A Developer is migrating an on-premises application to AWS. The application currently takes user uploads and saves them to a local directory on the server. All uploads must be saved and made immediately available to all instances in an Auto Scaling group. Which approach will meet these requirements?

  1. Use Amazon EBS and configure the application AMI to use a snapshot of the same EBS instance on boot.
  2. Use Amazon S3 and rearchitect the application so all uploads are placed in S3.
  3. Use instance storage and share it between instances launched from the same Amazon Machine Image (AMI).
  4. Use Amazon EBS and file synchronization software to achieve eventual consistency among the Auto Scaling group.

Question 32

A developer is creating a script to automate the deployment process for a serverless application. The developer wants to use an existing AWS Serverless Application Model (AWS SAM) template for the application. What should the developer use for the project? (Choose two.)

  1. Call aws cloudformation package to create the deployment package. Call aws cloudformation deploy to deploy the package afterward.
  2. Call sam package to create the deployment package. Call sam deploy to deploy the package afterward.
  3. Call aws s3 cp to upload the AWS SAM template to Amazon S3. Call aws lambda update-function-code to create the application.
  4. Create a ZIP package locally and call aws serverlessrepo create-application to create the application.
  5. Create a ZIP package and upload it to Amazon S3. Call aws cloudformation create-stack to create the application.

Question 33

A developer has built a market application that stores pricing data in Amazon DynamoDB with Amazon ElastiCache in front. The prices of items in the market change frequently. Sellers have begun complaining that, after they update the price of an item, the price does not actually change in the product listing. What could be causing this issue?

  1. The cache is not being invalidated when the price of the item is changed
  2. The price of the item is being retrieved using a write-through ElastiCache cluster
  3. The DynamoDB table was provisioned with insufficient read capacity
  4. The DynamoDB table was provisioned with insufficient write capacity

Question 34

The developer is creating a web application that collects highly regulated and confidential user data through a POST request. The web application is served through Amazon CloudFront. User names and phone numbers must be encrypted at the edge and must remain encrypted throughout the entire application stack. What is the MOST secure way to meet these requirements?

  1. Enforce Match Viewer with HTTPS Only on CloudFront.
  2. Use only the newest TLS security policy on CloudFront.
  3. Enforce a signed URL on CloudFront on the front end.
  4. Use field-level encryption on CloudFront.

Question 35

A Developer has been asked to create an AWS Lambda function that is triggered any time updates are made to items in an Amazon DynamoDB table. The function has been created, and appropriate permissions have been added to the Lambda execution role. Amazon DynamoDB streams have been enabled for the table, but the function is still not being triggered. Which option would enable DynamoDB table updates to trigger the Lambda function?

  1. Change the StreamViewType parameter value to NEW_AND_OLD_IMAGES for the DynamoDB table
  2. Configure event source mapping for the Lambda function
  3. Map an Amazon SNS topic to the DynamoDB streams
  4. Increase the maximum execution time (timeout) setting of the Lambda function