- A
Use AWS CloudTrail to deliver logs to CloudWatch Logs with KMS encryption.
Why wrong: CloudTrail logs API calls, not application logs.
- B
Store logs in S3 with KMS encryption and use S3 event notifications to trigger Lambda to put logs in CloudWatch Logs.
Why wrong: Not real-time and overly complex.
- C
Install the CloudWatch Logs agent and enable encryption on the EC2 instance volume using KMS.
Why wrong: Volume encryption does not encrypt logs in CloudWatch Logs.
- D
Install the CloudWatch Logs agent and associate a KMS key with the log group using the 'associate-kms-key' API.
This enables encryption at rest with a customer-managed key.
Quick Answer
The correct approach is to install the CloudWatch Logs agent on the EC2 instance and then associate a customer-managed KMS key with the target log group using the `associate-kms-key` API or the equivalent `put-log-group-encryption` CLI command. This works because the agent streams log data in real time to CloudWatch Logs, while the KMS association encrypts the log group at rest using a key you control, meeting both requirements without needing additional services like Kinesis or Lambda. On the AWS Certified SysOps Administrator Associate SOA-C02 exam, this scenario tests your understanding of CloudWatch Logs agent configuration versus the unified CloudWatch agent, and the distinction between encrypting logs at rest (via the log group) versus in transit. A common trap is assuming you must encrypt the agent’s configuration file or the EC2 instance volume, but the exam focuses on the log group’s encryption setting. Memory tip: think “Agent streams, KMS key seals the group” — the agent handles delivery, the key handles rest encryption.
SOA-C02 Monitoring, Logging, and Remediation Practice Question
This SOA-C02 practice question tests your understanding of monitoring, logging, and remediation. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
An application writes logs to a file on an EC2 instance. The SysOps team needs to send these logs to Amazon CloudWatch Logs in real time. The logs must be encrypted at rest in CloudWatch Logs using a customer-managed KMS key. Which steps are required?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
Install the CloudWatch Logs agent and associate a KMS key with the log group using the 'associate-kms-key' API.
Option D is correct because the CloudWatch Logs agent can send log data from an EC2 instance to CloudWatch Logs in real time, and the 'associate-kms-key' API (or the equivalent AWS CLI command 'put-log-group-encryption') allows you to associate a customer-managed KMS key with a log group, encrypting the logs at rest. This meets both the real-time delivery and customer-managed KMS encryption requirements without additional services or workarounds.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use AWS CloudTrail to deliver logs to CloudWatch Logs with KMS encryption.
Why it's wrong here
CloudTrail logs API calls, not application logs.
- ✗
Store logs in S3 with KMS encryption and use S3 event notifications to trigger Lambda to put logs in CloudWatch Logs.
Why it's wrong here
Not real-time and overly complex.
- ✗
Install the CloudWatch Logs agent and enable encryption on the EC2 instance volume using KMS.
Why it's wrong here
Volume encryption does not encrypt logs in CloudWatch Logs.
- ✓
Install the CloudWatch Logs agent and associate a KMS key with the log group using the 'associate-kms-key' API.
Why this is correct
This enables encryption at rest with a customer-managed key.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse encrypting the log file on the EC2 instance volume (Option C) with encrypting the logs at rest in CloudWatch Logs, or they overcomplicate the solution by introducing unnecessary services like S3 and Lambda (Option B) instead of using the native KMS integration with CloudWatch Logs.
Detailed technical explanation
How to think about this question
The CloudWatch Logs agent (or the newer unified CloudWatch agent) uses the PutLogEvents API to stream log data to a log group. When you associate a KMS key with a log group via the 'associate-kms-key' API, CloudWatch Logs uses envelope encryption: the KMS key encrypts a data key, which then encrypts the log data at rest. This key association is per log group and can be changed, but logs already encrypted with a previous key remain encrypted with that key. In real-world scenarios, this is critical for compliance (e.g., HIPAA, PCI DSS) where customer-managed keys are required for auditability and key rotation.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Monitoring, Logging, and Remediation — study guide chapter
Learn the concepts, then practise the questions
- →
Monitoring, Logging, and Remediation practice questions
Targeted practice on this topic area only
- →
All SOA-C02 questions
1,546 questions across all exam domains
- →
AWS Certified SysOps Administrator Associate SOA-C02 study guide
Full concept coverage aligned to exam objectives
- →
SOA-C02 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related SOA-C02 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Monitoring, Logging, and Remediation practice questions
Practise SOA-C02 questions linked to Monitoring, Logging, and Remediation.
Reliability and Business Continuity practice questions
Practise SOA-C02 questions linked to Reliability and Business Continuity.
Deployment, Provisioning, and Automation practice questions
Practise SOA-C02 questions linked to Deployment, Provisioning, and Automation.
Security and Compliance practice questions
Practise SOA-C02 questions linked to Security and Compliance.
Networking and Content Delivery practice questions
Practise SOA-C02 questions linked to Networking and Content Delivery.
Cost and Performance Optimization practice questions
Practise SOA-C02 questions linked to Cost and Performance Optimization.
SOA-C02 fundamentals practice questions
Practise SOA-C02 questions linked to SOA-C02 fundamentals.
SOA-C02 scenario practice questions
Practise SOA-C02 questions linked to SOA-C02 scenario.
SOA-C02 troubleshooting practice questions
Practise SOA-C02 questions linked to SOA-C02 troubleshooting.
Practice this exam
Start a free SOA-C02 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this SOA-C02 question test?
Monitoring, Logging, and Remediation — This question tests Monitoring, Logging, and Remediation — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Install the CloudWatch Logs agent and associate a KMS key with the log group using the 'associate-kms-key' API. — Option D is correct because the CloudWatch Logs agent can send log data from an EC2 instance to CloudWatch Logs in real time, and the 'associate-kms-key' API (or the equivalent AWS CLI command 'put-log-group-encryption') allows you to associate a customer-managed KMS key with a log group, encrypting the logs at rest. This meets both the real-time delivery and customer-managed KMS encryption requirements without additional services or workarounds.
What should I do if I get this SOA-C02 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
2 more ways this is tested on SOA-C02
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A company's application running on EC2 instances is experiencing intermittent errors. The SysOps team needs to collect and analyze application logs from all instances centrally. The logs must be stored durably and searchable with minimal latency. Which solution meets these requirements?
medium- A.Enable AWS CloudTrail and store logs in an S3 bucket.
- B.Use Amazon Kinesis Data Firehose to send logs directly from each instance to Amazon Redshift.
- ✓ C.Install the CloudWatch Logs agent on each EC2 instance and stream logs to Amazon CloudWatch Logs.
- D.Store logs locally on each instance and periodically copy them to Amazon S3.
Why C: Option C is correct because the CloudWatch Logs agent (or unified CloudWatch agent) installed on each EC2 instance can stream application logs in near real-time to Amazon CloudWatch Logs, which provides durable storage, automatic encryption at rest, and a searchable interface via the console, CLI, or API with minimal latency. This centralized logging solution meets the requirements for collecting logs from all instances, storing them durably, and enabling immediate querying without additional infrastructure.
Variation 2. An application running on an EC2 instance writes logs to a local file. The operations team needs to monitor these logs in near real-time for troubleshooting. Which solution provides the most efficient way to stream these logs to CloudWatch Logs?
medium- A.Use the AWS CLI to periodically upload the log file using the put-log-events command.
- ✓ B.Install the CloudWatch Logs agent on the instance and configure it to tail the log file.
- C.Install the Amazon Kinesis Agent on the instance and configure it to send logs to CloudWatch Logs.
- D.Configure the application to write logs to an S3 bucket and use S3 Event Notifications to trigger a Lambda function that puts logs to CloudWatch.
Why B: The CloudWatch Logs agent (or the newer unified CloudWatch agent) is designed specifically to tail log files from EC2 instances and stream them to CloudWatch Logs in near real-time. This provides the most efficient solution because it continuously monitors the file for new entries and sends them with minimal latency, without requiring periodic uploads or complex event-driven pipelines.
Last reviewed: Jun 24, 2026
This SOA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SOA-C02 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.