AWS Certified Developer Associate DVA-C02 Practice Question
Your development team is tasked with tracking the number of successful new user registrations in a serverless environment. In order to create more granular monitoring, the team has decided to publish a custom metric called 'UserSignUpSuccessCount' to a monitoring service whenever a registration is completed. Which approach allows for the efficient transmission of this custom metric adhering to a structured logging format provided by the platform's native monitoring service?
You selected this option
Enable a distributed tracing tool within the serverless function and tag the tracing segments with the metric's data.
You selected this option
Output a specifically structured JSON log from the serverless function according to the service's embedded metric format standards.
You selected this option
Modify the serverless function's permissions to include metrics publishing directly to the monitoring system.
You selected this option
Invoke the service's API to directly submit metric data from within the serverless function's execution code.
To implement the custom metric 'UserSignUpSuccessCount' effectively, the serverless function should output a JSON structure according to the monitoring service's embedded metric format, which is automatically parsed and converted into a custom metric by the service. Using the direct API call for putting metric data is less efficient and typically not necessary when leveraging the embedded metric format. Altering the function's execution role permissions is a separate concern and doesn't directly result in the creation of custom metrics. Lastly, integrating a distributed tracing system is useful for obtaining detailed insights into requests flowing through the system but isn't specifically designed for sending custom metrics.
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 is a custom metric in the context of AWS?
Open an interactive chat with Bash
What is structured logging and why is it important?
Open an interactive chat with Bash
What is AWS CloudWatch and how does it relate to monitoring?
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
Oh snap!
Loading...
Loading...
Loading...
Information Technology Package Join Premium for Full Access