7 questions
You have been hired as a Database administrator by a start-up. You first task is to modify a DynamoDB table so that its data expires automatically after a certain period of time. Upon looking at the documentation, you figured out that DynamoDB supports a concept of TTL, which you can achieve the requirement. What are the steps to use this feature?
Enable TTL and use the dataExpiry keyword as a key attribute to store the expiry timestamp.
It is by default enabled and will automatically pick a key attribute with timestamp value
Enable TTL and use any name of your choice as a key attribute to store the expiry timestamp
Enable TTL and use the keywork expiryTTL as a key attribute to store the expiry timestamp
Your mobile application includes a photo-sharing feature that is expecting tens of thousands of users at launch. You will Leverage S3 to store the user images and must decide how to authenticate and authorize your users for access to these images. You also need to manage the storage of these images. Which two of the following approaches should you use? (SELECT TWO)
Create a S3 bucket per user and use your application to generate the S3 URL for the appropriate content
Use AWS IAM user accounts as your application-level user database and offload the burden of authentication from your application code
Authenticate your users at the application level and use AWS STS to grant token-based authorization to S3 objects
Authenticate your users at the application level and send a SMS token message to the user. Create a S3 bucket with the same name as the SMS message token and move the user's objects to that bucket
Use a key-based naming scheme comprised from the user IDs for all user objects in a single S3 bucket
An organization is using Elastic Beanstalk for a web application. The Developer needs to configure the Elastic Beanstalk environment with the deployment methods to create new instances and deploy code to those instances.
Which methods will deploy code ONLY to new instances (SELECT 2)
All at once deployment
Immutable deployment
Rolling deployment
Linear deployment
Blue/ Green deployment
You are a developer that has recently been hired for your API expertise. The company is currently using API Gateway for development. You need to control the behavior of an API's front-end interactions. Which of the following could be done to achieve this? (SELECT 2)
Modify the configuration of the Method request
Modify the configuration of the Integration request
Modify the configuration of the Method response
Modify the configuration of the Integration response
Modify the API Gateway stage to development and add more methods
You have been asked to design a serverless web application with DynamoDB as its database. The client wants to record each and every change in the data in DynamoDB and store it individually as a file on S3. How can you achieve this?
Write a script that will record each and every create or update request and store it on S3
Enable DynamoDB streams and attach them to Lambda which will read the data and store it on S3
Enable DynamoDB streams and set the destination to S3. This will automatically store each change on S3
Use DynamoDB binary logging feature to record each and every change on S3
You have a stock market trading application. It sends real-time data to Kinesis which is then connected to a Lambda function to process and sort the information before it saves it to a DynamoDB table. Customers then consume this table via a dashboard. As soon as the market opens, your customers complain that not all data is delivered to them. Which Lambda CloudWatchMetric should you look at first to resolve this problem?
Throttles
Dwell time
Concurrent Executions
Iterator Age
You are working on a web application whose database was created by a DB admin who is no longer workoing with your company. The manager has asked you to handle the database administration. You are working on a new reporting feature for which you need to query a DynamoDB table and the attributes you need to query upon are not set as Partition Key and Sort Key. What is the best way to solve this problem?
Clone the existing table and change the Partition and Sort Key during the table creation process.
Create a Local Secondary Index (LSI) and set required attributes as Partition and Sort Key.
Create a Global Secondary Index (GSI) and set required attributes as Partition and Sort Key.
Edit the table and change the existing Partition and Sort Key to the required ones.