1. A Developer must trigger an AWS Lambda function based on the item lifecycle activity in an Amazon DynamoDB table. How can the Developer create the solution?
A) Enable a DynamoDB stream, and trigger the Lambda function asynchronously from the stream. B) Enable a DynamoDB stream that publishes an Amazon SNS message. Trigger the Lambda function synchronously from the SNS message. C) Enable a DynamoDB stream, and trigger the Lambda function synchronously from the stream. D) Enable a DynamoDB stream that publishes an SNS message. Trigger the Lambda function asynchronously from the SNS message.
2. An organization is storing large files in Amazon S3, and is writing a web application to display meta-data about the files to end-users. Based on the metadata a user selects an object to download. The organization needs a mechanism to index the files and provide single-digit millisecond latency retrieval for the metadata. What AWS service should be used to accomplish this?
A) Amazon RDS B) Amazon EC2 C) Amazon DynamoDB D) AWS Lambda
3. For a deployment using AWS CodeDeploy, what is the run order of the hooks for in-place deployments?
A) Before Install -> Application Stop -> Validate Service -> Application Start B) Application Stop -> Before Install -> After Install -> Application Start C) Application Stop -> Before Install -> Validate Service -> Application Start D) Before Install -> Application Stop -> Application Start -> After Install
4. An application is real-time processing millions of events that are received through an API. What service could be used to allow multiple consumers to process the data concurrently and MOST cost-effectively?
A) Amazon Kinesis Firehouse B) Amazon SNS with fanout to an SQS queue for each application C) Amazon Kinesis Streams D) Amazon SNS with fanout to an SQS FIFO (first-in, firtst-out) queue for each application
5. A company caches session information for a web application in an Amazon DynamoDB table. The company wants an automated way to delete old items from the table. What is the simplest way to do this?
A) Each day, create a new table to hold session data; delete the previous day's table. B) Add an attribute with the expiration time; enable the Time To Live feature based on that attribute. C) Write a script that deletes old records; schedule the scripts as a cron job on an Amazon EC2 instance. D) Add an attribute with the expiration time; name the attribute
1. Right Answer: C Explanation: Reference: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.Lambda.html
2. Right Answer: C Explanation: Explanation: Amazon DynamoDB is a fast and flexible NoSQL database service for all applications that need consistent, single-digit millisecond latency at any scale. It is a fully managed database and supports both document and key-value data models. Its flexible data model and reliable performance make it a great fit for mobile, web, gaming, ad-tech, Internet of Things (IoT), and many other applications. Reference: https://docs.aws.amazon.com/aws-technical-content/latest/aws-overview/database-services.html
3. Right Answer: B Explanation: Reference: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html
4. Right Answer: C Explanation: Reference: https://aws.amazon.com/kinesis/data-streams/getting-started/
5. Right Answer: B Explanation: Reference: https://aws.amazon.com/about-aws/whats-new/2017/02/amazon-dynamodb-now-supports-automatic-item-expiration-with-time-to-live-ttl/
Leave a comment