1. A company has written a Java AWS Lambda function to be triggered whenever a user uploads an image to an Amazon S3 bucket. The function converts the original image to several different formats and then copies the resulting images to another Amazon S3 bucket. The Developers find that no images are being copied to the second Amazon S3 bucket. They have tested the code on an Amazon EC2 instance with 1GB of RAM, and it takes an average of 500 seconds to complete. What is the MOST likely cause of the problem?
A) Lambda functions have a maximum execution limit of 300 seconds, therefore the function is not completing. B) There is a problem with the Java runtime for Lambda, and the function needs to be converted to node.js. C) The Lambda function has insufficient memory and needs to be increased to 1 GB to match the Amazon EC2 instance D) Files need to be copied to the same Amazon S3 bucket for processing, so the second bucket needs to be deleted.
2. A serverless application uses an API Gateway and AWS Lambda. Where should the Lambda function store its session information across function calls?
A) In an Amazon DynamoDB table B) In the local filesystem C) In an Amazon SQS queue D) In an SQLite session table using
3. The Developer for a retail company must integrate a fraud detection solution into the order processing solution. The fraud detection solution takes between ten and thirty minutes to verify an order. At peak, the web site can receive one hundred orders per minute. What is the most scalable method to add the fraud detection solution to the order processing pipeline?
A) Add all new orders to an Amazon Kinesis Stream. Subscribe a Lambda function to automatically read batches of records from the Kinesis Stream. The Lambda function includes the fraud detection software and will update the order with a pass or fail status. B) Write all new orders to Amazon DynamoDB. Configure DynamoDB Streams to include all new orders. Subscribe a Lambda function to automatically read batches of records from the Kinesis Stream. The Lambda function includes the fraud detection software and will update the order with a pass or fail status. C) Add all new orders to an Amazon SQS queue. Configure a fleet of 10 EC2 instances spanning multiple AZs with the fraud detection solution installed on them to pull orders from this queue. Update the order with a pass or fails status. D) Add all new orders to an SQS queue. Configure an Auto Scaling group that uses the queue depth metric as its unit of scale to launch a dynamically-sized fleet of EC2 instances spanning multiple AZs with the fraud detection solution installed on them to pull orders from this queue. Update the order with a pass or fails status.
4. AWS CodeBuild builds code for an application, creates the Docker image, pushes the image to Amazon Elastic Container Registry (Amazon ECR), and tags the image with a unique identifier. If the Developers already have AWS CLI configured on their workstations, how can the Docker images be pulled to the workstations?(Select 2answers)
A) Run the output of the following: B) Run the output of the following: C) Run the following: D) Run the following:
5. A Development team is working on a case management solution that allows medical claims to be processed and reviewed. Users log in to provide information related to their medical and financial situations. As part of the application, sensitive documents such as medical records, medical imaging, bank statements, and receipts are uploaded to Amazon S3. All documents must be securely transmitted and stored. All access to the documents must be recorded for auditing. What is the MOST secure approach?
A) Use S3 default encryption using Advanced Encryption Standard-256 (AES-256) on the destination bucket. B) Use Amazon Cognito for authorization and authentication to ensure the security of the application and documents. C) Use client-side encryption/decryption with Amazon S3 and AWS KMS. D) Use AWS Lambda to encrypt and decrypt objects as they are placed into the S3 bucket.
Leave a comment