DVA-C02 · Question #601
A company has an application that consists of different microservices that run inside an AWS account. The microservices are running in containers inside a single VPC. The number of microservices is co
The correct answer is A. Create a different Amazon CloudWatch Logs stream for each microservice.. To create a central logging solution for microservices, using Amazon CloudWatch Logs is a recommended and effective approach. Amazon CloudWatch Logs Streams allow you to centralize logs from different services, which is crucial as the number of microservices increases. Each micro
Question
A company has an application that consists of different microservices that run inside an AWS account. The microservices are running in containers inside a single VPC. The number of microservices is constantly increasing. A developer must create a central logging solution for application logs. Which solution will meet these requirements?
Options
- ACreate a different Amazon CloudWatch Logs stream for each microservice.
- BCreate an AWS CloudTrail trail to log all the API calls.
- CConfigure VPC Flow Logs to track the communications between the microservices.
- DUse AWS Cloud Map to map the interactions of the microservices.
How the community answered
(36 responses)- A75% (27)
- B3% (1)
- C14% (5)
- D8% (3)
Explanation
To create a central logging solution for microservices, using Amazon CloudWatch Logs is a recommended and effective approach. Amazon CloudWatch Logs Streams allow you to centralize logs from different services, which is crucial as the number of microservices increases. Each microservice can have its own dedicated log stream within Amazon CloudWatch Logs, providing clear segregation of logs while still allowing centralized management. This setup enables developers to monitor, search, and analyze logs efficiently using tools like CloudWatch
Community Discussion
No community discussion yet for this question.