AWS Certified Developer Associate DVA-C02 Practice Question
Your application is hosted on AWS and experiences intermittent failures. You need to implement a logging strategy to capture and store relevant application logs that will assist you in troubleshooting the issue. Given the requirement for minimal performance impact on your application and the ability to analyze the logs within minutes of the logged events, which logging approach should you employ?
Manually push application logs to an Amazon S3 bucket for storage and eventual analysis.
Configure the application to use the Amazon CloudWatch Logs agent to send logs to CloudWatch for storage and analysis.
Use Amazon DynamoDB to store log data as soon as it is generated by the application.
Implement log streaming directly to Amazon Kinesis Data Firehose for immediate storage and analysis.
Amazon CloudWatch Logs provides real-time monitoring and logging capabilities. By utilizing CloudWatch Logs agents, you can efficiently transmit logs to CloudWatch without significant performance impacts on the application due to optimized batching and transmission of logs. Moreover, CloudWatch allows querying of log data within minutes of ingestion using features such as CloudWatch Logs Insights. This is essential for troubleshooting issues that require a quick response. On the other hand, manually pushing logs to Amazon S3 would not provide real-time analysis and would require custom solutions for efficient log ingestion, which could also impact application performance. Amazon DynamoDB is not designed as a logging service, and using Amazon Kinesis Data Firehose for direct push of logs would be less efficient due to higher costs and complexity compared to CloudWatch. Streaming logs into the database could result in high write-throughput costs and may not be optimized for log data.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are Amazon CloudWatch Logs and how do they work?
Open an interactive chat with Bash
What is CloudWatch Logs Insights and how can it help with log analysis?
Open an interactive chat with Bash
Why is it not recommended to use Amazon DynamoDB for logging purposes?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Troubleshooting and Optimization
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access