Free AWS Certified Developer Associate DVA-C02 Practice Question

A developer is implementing a logging solution for an AWS Lambda-based service, which processes a series of online retail operations. Each operation must be traceable back to the specific session, item involved, and the shopper involved in the interaction. What kind of logging technique should the developer utilize to ensure that the log data can be indexed effectively, facilitating the extraction of relevant information for any investigation or analysis?

  • Format logs as delimited text with special characters to separate different pieces of information such as session, item, and shopper details.

  • Generate distinct log streams categorized by type of operation and involved entities for better segregation.

  • Embed CloudWatch Logs insights within the log entries to enhance the searchability of operations.

  • Use JSON formatting for logs, which allows indexing and querying based on specific keys like session, item, and shopper details.

This question's topic:
AWS Certified Developer Associate DVA-C02 / 
Troubleshooting and Optimization
Your Score:

Check or uncheck an objective to set which questions you will receive.