38.3k views
5 votes
What is the proper flow for sending logs to Amazon CloudWatch Logs? A. Create a Log Group, then create a Log Stream and send Log Events from the application to the Log Stream. B. Create a Log Group, then create a Log Stream and send Log Events from the application to the Log Group. C. Create a Log Stream, add the Log Stream to the Log Group and send Log Events from the application to the Log Stream. D. Create a Log Stream, add the Log Stream to the Log Group and send Log Events from the application to the Log Group.

1 Answer

0 votes

Final Answer:

The proper flow for sending logs to Amazon CloudWatch Logs is to create a Log Group, then create a Log Stream, and send Log Events from the application to the Log Stream. Therefore, the correct option is A.

Step-by-step explanation:

Option A outlines the correct sequence for setting up logs in Amazon CloudWatch. First, a Log Group is created to organize and manage logs. Within the Log Group, Log Streams are created to represent different sources or components. Log Events generated by the application are then sent to the specific Log Stream. This flow ensures a structured and organized approach to logging, allowing for efficient management and analysis of logs in Amazon CloudWatch.

Option A is the answer.

User Kirill Rakhman
by
8.1k points