For IndividualsFor Educators
ExpertMinds LogoExpertMinds
ExpertMinds

Ace your certifications with Practice Exams and AI assistance.

  • Browse Exams
  • For Educators
  • Blog
  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • Support
  • AWS SAA Exam Prep
  • PMI PMP Exam Prep
  • CPA Exam Prep
  • GCP PCA Exam Prep

© 2026 TinyHive Labs. Company number 16262776.

    PracticeAWS Solutions Architect Professional (SAP-C02)AWS Solutions Architect Professional SAP-C02 Practice Exam 5Question 45
    Easy1 markMultiple Choice
    Domain 3.1: Operational ExcellenceMonitoringCloudWatchOperational Excellence

    AWS SAP-C02 · Question 45 · Domain 3.1: Operational Excellence

    A company has a legacy application running on a single large EC2 instance. The application writes logs to a local file. The operations team wants to centralize these logs in Amazon CloudWatch Logs to set up metric filters and alarms. The application cannot be modified to use the AWS SDK. How can the Architect achieve this with the LEAST operational overhead?

    Answer options:

    A.

    Install and configure the unified CloudWatch agent on the EC2 instance to push the local log file to CloudWatch Logs.

    B.

    Write a cron job that copies the log file to an Amazon S3 bucket every minute. Configure an S3 event to trigger a Lambda function to write to CloudWatch.

    C.

    Mount an Amazon EFS file system to the EC2 instance. Configure the application to write logs to EFS. Use AWS DataSync to sync EFS to CloudWatch.

    D.

    Enable VPC Flow Logs for the EC2 instance's elastic network interface.

    How to approach this question

    Identify the standard AWS tool for collecting OS and application logs from EC2 instances.

    Full Answer

    A.Install and configure the unified CloudWatch agent on the EC2 instance to push the local log file to CloudWatch Logs.✓ Correct
    The unified CloudWatch agent enables you to collect internal system-level metrics from Amazon EC2 instances and on-premises servers. It can also collect system logs and custom application log files and send them to Amazon CloudWatch Logs. This requires no changes to the application code.

    Common mistakes

    Over-engineering a solution with S3 and Lambda instead of using the native agent.
    Question 44All questionsQuestion 46

    Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 5

    75 questions · hints · full answers · grading

    Sign up freeTake the exam

    More questions from this exam

    Q01A global enterprise is redesigning its AWS network architecture across 50 AWS accounts and 3 AWS ...HardQ02A company uses AWS Organizations to manage multiple accounts. The security team mandates that no ...MediumQ03A financial institution requires a disaster recovery strategy for its critical trading applicatio...HardQ04An enterprise is setting up a new multi-account AWS environment using AWS Control Tower. They nee...MediumQ05A company has a complex AWS environment with hundreds of linked accounts under AWS Organizations....Hard
    View all 75 questions →