1. A Developer is creating a serverless website with content that includes HTML files, images, videos, and JavaScript (client-side scripts). Which combination of services should the Developer use to create the website?
A) Amazon ECS and Redis B) Amazon S3 and Amazon CloudFront C) Amazon EC2 and Amazon ElastiCache D) AWS Lambda and Amazon API Gateway
2. A Developer wants to debug an application by searching and filtering log data. The application logs are stored in Amazon CloudWatch Logs. The Developer creates a new metric filter to count exceptions in the application logs. However, no results are returned from the logs. What is the reason that no filtered results are being returned?
A) CloudWatch Logs only publishes metric data for events that happen after the filter is created B) A setup of the Amazon CloudWatch interface VPC endpoint is required for filtering the CloudWatch Logs in the VPC C) Metric data points for logs groups can be filtered only after they are exported to an Amazon S3 bucket D) The log group for CloudWatch Logs should be first streamed to Amazon Elasticsearch Service before metric filtering returns the results
3. An application writes items to an Amazon DynamoDB table. As the application scales to thousands of instances, calls to the DynamoDB API generate occasional ThrottlingException errors. The application is coded in a language incompatible with the AWS SDK. How should the error be handled?
A) Add exponential backoff to the application logic B) Send the items to DynamoDB through Amazon Kinesis Data Firehose C) Use Amazon SQS as an API message bus D) Pass API calls through Amazon API Gateway
4. An application is designed to use Amazon SQS to manage messages from many independent senders. Each sender's messages must be processed in the order they are received. Which SQS feature should be implemented by the Developer?
A) Enable B) Enable C) Configure each message with unique MessageGroupIds. D) Configure each sender with a unique
5. A Developer created a Lambda function for a web application backend. When testing the Lambda function from the AWS Lambda console, the Developer can see that the function is being executed, but there is no log data being generated in Amazon CloudWatch Logs, even after several minutes. What could cause this situation?
A) The execution role for the Lambda function is missing permissions to write log data to the CloudWatch Logs. B) The Lambda function is missing a target CloudWatch Log group. C) The Lambda function does not have any explicit log statements for the log data to send it to CloudWatch Logs. D) The Lambda function is missing CloudWatch Logs as a source trigger to send log data.
1. Right Answer: B Explanation: Reference: https://d1.awsstatic.com/whitepapers/Building%20Static%20Websites%20on%20AWS.pdf
2. Right Answer: A Explanation: Reference: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/MonitoringLogData.html
3. Right Answer: A Explanation: Reference: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Programming.Errors.html
4. Right Answer: C Explanation: Reference: https://aws.amazon.com/blogs/developer/how-the-amazon-sqs-fifo-api-works/
5. Right Answer: A Explanation: Reference: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions.html (see note)
Leave a comment