AWS Certified Solutions Architect Professional SAP-C02 Practice Question

A global e-commerce company has deployed a microservices application on AWS using a combination of Amazon EKS, AWS Lambda, and Amazon EC2 instances. The platform generates a high volume of structured (JSON) and unstructured application logs. The security team requires near real-time analysis of logs for threat detection. The operations team needs a solution for application performance monitoring (APM) with complex query capabilities. Additionally, all logs must be retained for 7 years for compliance, with a focus on minimizing storage costs. The company wants a solution that maximizes the use of managed services to reduce operational overhead. Which logging and monitoring strategy is the most appropriate to meet all these requirements?

  • Configure all services to send logs to Amazon CloudWatch Logs. Use CloudWatch Logs subscription filters to stream logs to an Amazon OpenSearch Service domain for real-time security analysis and APM. Use a separate subscription filter with Amazon Kinesis Data Firehose to deliver logs to Amazon S3 for long-term retention.

  • Install the CloudWatch agent on all EC2 and EKS nodes to send logs directly to an Amazon S3 bucket. Use Amazon Athena to query the logs for security analysis and APM. Implement an S3 Lifecycle policy to transition logs for long-term retention.

  • Stream all logs to a central Amazon Kinesis Data Stream. Configure an AWS Lambda function to process the stream, filtering and storing logs in an Amazon Redshift cluster for analysis. Use Amazon Redshift's UNLOAD command to archive old data to Amazon S3.

  • Deploy a self-managed Elasticsearch, Logstash, and Kibana (ELK) stack on a fleet of EC2 instances. Configure log forwarders on all services to send logs directly to this cluster. Create a custom script to periodically snapshot indices and copy them to Amazon S3 for backup.

AWS Certified Solutions Architect Professional SAP-C02
Continuous Improvement for Existing Solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot