CompTIA Study Materials
AWS Study Materials
AWS Certified Developer Associate AWS Certified Developer Associate
AWS Certified Developer Associate DVA-C02
AWS Certified Solutions Architect Associate AWS Certified Solutions Architect Associate
AWS Certified Solutions Architect Associate SAA-C03
AWS Cloud Practitioner AWS Cloud Practitioner
AWS Cloud Practitioner CLF-C02
Microsoft Study Materials
Microsoft Azure Fundamentals Microsoft Azure Fundamentals
Microsoft Azure Fundamentals AZ-900

Free AWS Certified Developer Associate DVA-C02 Practice Question

A development team is refining their serverless application's logging approach to enable better insight during debug sessions. They need the capability to effortlessly filter and search through log entries for specific execution contexts like the runtime version and unique request identifiers. Which logging strategy should the team employ to ensure their log data is conducive to rapid and effective troubleshooting?

  • Use a rudimentary logging mechanism that captures standard output streams without specific structure to save on storage space.

  • Adopt structured logging with a consistent format like JSON that supports key-value pairs for all pertinent information, enhancing the interpretability and searchability of the logs.

  • Depend solely on a distributed tracing service to monitor the application, presuming it alleviates the need for detailed logs.

  • Focus on capturing only exception stack traces in the log files, considering that this information suffices for pinpointing issues.

This question's topic:
AWS Certified Developer Associate DVA-C02 / 
Troubleshooting and Optimization
Your Score:
Troubleshooting and Optimization
Development with AWS Services
Security
Deployment