AWS-DA(111-120)
AWS Developer Quiz: Test Your Serverless Skills
Welcome to the AWS Developer Quiz, where you can test your knowledge on serverless architecture, specifically focusing on AWS Lambda, DynamoDB, and Kinesis. This quiz consists of 10 thought-provoking questions designed to challenge your understanding of the tools and practices needed for building efficient applications in the cloud.
- Evaluate your skills with real-world scenarios.
- Enhance your understanding of AWS services.
- Perfect for developers looking to bolster their cloud expertise.
A developer is now working on a serverless Java app. Initial testing indicates that a cold start for AWS Lambda functions takes around 8 seconds on average. What should the developer do to lessen the time required for a cold start? (Select two.)
Add the Spring Framework to the project and enable dependency injection.
Reduce the deployment package by including only needed modules from the AWS SDK for Java.
Increase the memory allocation setting for the Lambda function.
Increase the timeout setting for the Lambda function.
Change the Lambda invocation mode from synchronous to asynchronous.
A business created an online event platform. The firm conducts quizzes and creates leaderboards based on the quiz results for each event. The organization maintains leaderboard data in Amazon DynamoDB and preserves it for 30 days after the conclusion of an event. The firm then deletes the outdated leaderboard data through a scheduled process. The DynamoDB table has a fixed write capacity defined. When the scheduled deletion task runs during months with a high volume of events, the DynamoDB write API calls are throttled. A developer must construct a long-term solution that permanently deletes historical leaderboard data and maximizes write performance. Which solution satisfies these criteria?
Configure a TTL attribute for the leaderboard data.
Use DynamoDB Streams to schedule and delete the leaderboard data.
Use AWS Step Functions to schedule and delete the leaderboard data.
Set a higher write capacity when the scheduled delete job runs.
A programmer is developing a new application that will make use of an Amazon DynamoDB database. All objects older than 48 hours must be eliminated, according to the standard. Which solution will satisfy this criterion?
Create a new attribute that has the Number data type. Add a local secondary index (LSI) for this attribute, and enable TTL with an expiration of 48 hours. In the application code, set the value of this attribute to the current timestamp for each new item that is being inserted.
Create a new attribute that has the String data type. Add a local secondary index (LSI) for this attribute, and enable TTL with an expiration of 48 hours. In the application code, set the value of this attribute to the current timestamp for each new item that is being inserted.
Create a new attribute that has the Number data type. Enable TTL on the DynamoDB table for this attribute. In the application code, set the value of this attribute to the current timestamp plus 48 hours for each new item that is being inserted.
Create a new attribute that has the String data type. Enable TTL on the DynamoDB table for this attribute. In the application code, set the value of this attribute to the current timestamp plus 48 hours for each new item that is being inserted.
Amazon Kinesis is being used to handle clickstream data for an application. Periodic spikes occur in the clickstream data flow into Kinesis. Occasionally, the PutRecords API request fails, and the logs indicate that the unsuccessful call provides the following response:
Which approaches will aid in mitigating this circumstance? (Select two.)
A. Implement retries with exponential backoff.
B. Use a PutRecord API instead of PutRecords.
C. Reduce the frequency and/or size of the requests.
D. Use Amazon SNS instead of Kinesis.
E. Reduce the number of KCL consumers.
AWS Lambda functions must connect to an external site using a user name and password that are rotated on a regular basis. These elements must be securely stored and cannot be included inside the function code. Which AWS services may be utilized in conjunction with one another to achieve this? (Select two.)
A. AWS Certificate Manager (ACM)
B. AWS Systems Manager Parameter Store
C. AWS Trusted Advisor
D. AWS KMS
E. Amazon GuardDuty
A development team is hard at work on a mobile application that will enable users to submit images to Amazon S3. The company anticipates that hundreds of thousands of people will use the app concurrently during a single event. After the images are submitted, the backend service scans and parses them for objectionable material. Which strategy is the MOST robust way to accomplish this aim while also smoothing out transitory backend service traffic spikes?
A. Develop an AWS Lambda function to check the upload folder in the S3 bucket. If new uploaded pictures are detected, the Lambda function will scan and parse them.
B. Once a picture is uploaded to Amazon S3, publish the event to an Amazon SQS queue. Use the queue as an event source to trigger an AWS Lambda function. In the Lambda function, scan and parse the picture.
C. When the user uploads a picture, invoke an API hosted in Amazon API Gateway. The API will invoke an AWS Lambda function to scan and parse the picture.
D. Create a state machine in AWS Step Functions to check the upload folder in the S3 bucket. If a new picture is detected, invoke an AWS Lambda function to scan and parse it.
A developer has developed a web application that will be hosted on Amazon EC2 instances. The program creates and uploads thousands of new items to the same AWS Region's Amazon S3 bucket. Each item is less than 1 MB in size. The program is taking an excessive amount of time to operate. How might the application's performance be enhanced?
A. Use the S3 Multipart Upload API.
B. Use S3 Transfer Acceleration.
C. Upload the objects in parallel to Amazon S3.
D. Add a random prefix to the object Keys.
In an Amazon DynamoDB database, a business caches session information for a web application. The organization want to automate the process of deleting obsolete entries from the table. What is the easiest method for doing this?
A. Write a script that deletes old records; schedule the scripts as a cron job on an Amazon EC2 instance.
B. Add an attribute with the expiration time; enable the Time To Live feature based on that attribute.
C. Each day, create a new table to hold session data; delete the previous day's table.
D. Add an attribute with the expiration time; name the attribute ItemExpiration.
Two Amazon DynamoDB tables are accessed using an AWS Lambda function. A developer wishes to optimize the Lambda function's performance by finding bottlenecks inside the function. How can a developer determine the duration of DynamoDB API calls?
A. Add DynamoDB as an event source to the Lambda function. View the performance with Amazon CloudWatch metrics.
B. Place an Application Load Balancer (ALB) in front of the two DynamoDB tables. Inspect the ALB logs.
C. Limit Lambda to no more than five concurrent invocations. Monitor from the Lambda console.
D. Enable AWS X-Ray tracing for the function. View the traces from the X-Ray service.
When new items are produced in a bucket, a developer uses Amazon S3 as the event source to run a Lambda function. The bucket notification configuration stores the information about the event source mapping. The developer is experimenting with various Lambda function versions and is constantly required to alter notification settings to ensure that Amazon S3 invokes the proper version. What is the MOSTefficient and effective method for mapping the S3 event to Lambda?
A. Use a different Lambda trigger.
B. Use Lambda environment variables.
C. Use a Lambda alias.
D. Use Lambda tags.
{"name":"AWS-DA(111-120)", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Welcome to the AWS Developer Quiz, where you can test your knowledge on serverless architecture, specifically focusing on AWS Lambda, DynamoDB, and Kinesis. This quiz consists of 10 thought-provoking questions designed to challenge your understanding of the tools and practices needed for building efficient applications in the cloud.Evaluate your skills with real-world scenarios.Enhance your understanding of AWS services.Perfect for developers looking to bolster their cloud expertise.","img":"https:/images/course5.png"}