Exams / DVA-C02 / Root cause analysis / Question 1
DVA-C02 practice question: Root cause analysis
Troubleshooting and Optimization A free question from our original DVA-C02 practice exam. Try it, then open the answer to see why each option is right or wrong.
Yesterday a Lambda function in production started failing because one of its environment variables had been changed. No trail or CloudTrail Lake event data store has been set up. The team wants to find out who changed the configuration and when. Where should the developer look?
Choose one answer.
- AA. The function's CloudWatch Logs log group
- BB. The X-Ray trace map for the function
- CC. AWS CloudTrail event history
- DD. The function's CloudWatch metrics
Show the answer and explanation
Answer: C
- A. Wrong: Function logs show what the code wrote while running. They do not record who changed the configuration.
- B. Wrong: X-Ray traces show request paths and latency. They do not record management API calls.
- C. Right: Correct. Event history records the last 90 days of management events, such as UpdateFunctionConfiguration, without needing a trail.
- D. Wrong: Metrics such as Errors show that failures began, but not who made the change.
Explanation
AWS CloudTrail records API activity by users, roles and services. Its event history is on by default and keeps 90 days of management events per Region, including who called an API such as UpdateFunctionConfiguration and when. For longer retention or data events, create a trail or an event data store.
Study
Keep practising
Answer questions with a score at the end, or practise just this topic with the explanation after each one. No sign-up needed.