AWS Certified Developer Associate DVA-C02 Practice Question
A developer is using the Amazon CloudWatch Logs Insights console to troubleshoot an application issue that occurred yesterday between 3:00 PM and 3:15 PM. What is the most direct method for the developer to limit the search to this specific time frame?
Use the absolute time range selector in the console to set the start and end times.
Add a filter command to the query that compares the @timestamp field to human-readable date strings.
Export all of yesterday's logs to an Amazon S3 bucket and use Amazon Athena to query for the specific time.
Run a stats query that groups results by minute using bin(1m).
The correct answer is to use the absolute time range selector. The CloudWatch Logs Insights console provides a prominent time range selector that allows users to specify either a relative time (like 'the last 30 minutes') or an absolute time range with specific start and end dates and times. This is the most direct and common method for isolating logs within a specific historical window. While it is possible to filter on the @timestamp field within a query, it requires converting times to epoch milliseconds and is less direct than using the console's UI feature. Using a stats command aggregates data but doesn't filter the raw log events for investigation. Exporting logs to S3 for querying with Athena is a valid but overly complex and indirect workflow for this immediate troubleshooting scenario.
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.
How do time-based queries work in CloudWatch Logs Insights?
Open an interactive chat with Bash
What query language does CloudWatch Logs Insights use?
Open an interactive chat with Bash
What are some common use cases for Amazon CloudWatch Logs Insights?
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