Home / AWS Certified SysOps Administrator - Associate (SOA-C02) / Mock exam
AWS Certified SysOps Administrator - Associate (SOA-C02) Exam-style mock test

AWS Certified SysOps Administrator Associate (SOA-C02) Practice Exams|Practice test

Full explanations Exam format Pass line 72%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Monitoring, Logging, and Remediation
A SysOps administrator runs a fleet of EC2 instances hosting a web application. The team needs to monitor memory utilization and available disk space on the root volume, but the default CloudWatch metrics do not expose these values. The solution must report the metrics to CloudWatch without manually logging into each instance. What should the administrator do?
・Enable detailed monitoring on each EC2 instance so that memory and disk metrics are published at a one-minute granularity to CloudWatch.
Incorrect. Detailed monitoring only increases the frequency of existing hypervisor-level metrics and does not add memory or disk metrics.
✓Install and configure the CloudWatch agent on the instances to collect memory and disk metrics and publish them as custom metrics.
Correct. The CloudWatch agent is the supported way to collect guest-level memory and disk metrics and publish them as custom metrics.
・Create a CloudWatch metric math expression that derives memory usage from the existing CPUUtilization and NetworkIn metrics.
Incorrect. Memory usage cannot be mathematically derived from CPU and network metrics.
・Turn on EC2 instance health checks in the Auto Scaling group to surface memory and disk utilization in the CloudWatch console automatically.
Incorrect. Auto Scaling health checks evaluate instance status and do not produce memory or disk metrics.
Explanation
Guest-level metrics such as memory and disk require the CloudWatch agent, which publishes them as custom metrics.
Example2 · Reliability and Business Continuity
A company runs a stateless web tier behind an Application Load Balancer across two Availability Zones. During a recent AZ impairment, users still received errors because the Auto Scaling group kept routing traffic to instances in the degraded AZ. As a SysOps administrator, what should you configure so the system automatically stops sending traffic to unhealthy instances and replaces them?
✓Enable ALB health checks on the target group and set the Auto Scaling group's health check type to ELB so unhealthy instances are replaced.
Correct. Setting the ASG health check type to ELB lets the ALB target-group health check mark instances unhealthy, triggering termination and replacement.
・Increase the Auto Scaling group's desired capacity manually whenever CloudWatch reports elevated request latency or error rates in one Availability Zone during the impairment.
Incorrect. Manual scaling is reactive and does not detect or replace unhealthy instances automatically.
・Switch the load balancer to a Network Load Balancer because only NLB can detect application-layer failures and reroute all affected user sessions to healthy zones.
Incorrect. NLB operates at Layer 4 and does not perform application-layer checks better than ALB; this is fabricated reasoning.
・Configure Route 53 simple routing with multiple A records so that DNS resolution gradually moves client traffic away from the failed instances over time.
Incorrect. Simple routing does not perform health checks and will continue returning records for unhealthy targets.
Explanation
Using ELB health check type on the Auto Scaling group ties instance health to the ALB target-group checks so failures are detected and remediated automatically.
Example3 · Deployment, Provisioning, and Automation
A SysOps administrator maintains a CloudFormation stack that provisions an Amazon RDS instance and several security groups. A teammate manually changed an inbound rule on one of the security groups through the EC2 console. The administrator needs to identify exactly which stack resources no longer match the template before the next deployment. Which action should the administrator take?
✓Run drift detection on the stack and review the drift status of each resource
Correct. CloudFormation drift detection compares actual resource configurations against the template and flags resources that have drifted, including modified security group rules.
・Delete and recreate the entire stack so all resources return to the template definition
Incorrect. Recreating the stack causes unnecessary downtime and does not identify what drifted.
・Enable termination protection on the stack to prevent further manual changes
Incorrect. Termination protection only prevents stack deletion; it does not detect or report configuration drift.
・Create a new change set and inspect the proposed resource modifications in the change set preview
Incorrect. A change set previews differences the template would introduce, not out-of-band manual changes already applied to resources.
Explanation
Drift detection is the purpose-built mechanism for finding resources whose live configuration diverges from the CloudFormation template.
Example4 · Security and Compliance
A fintech company runs an EC2-based batch job that must read a database password at runtime. The password is currently hardcoded in a user data script. A SysOps administrator must store the credential so it is encrypted at rest and automatically rotated every 30 days without writing custom rotation code. Which service meets these requirements with the least operational effort?
✓AWS Secrets Manager with a managed rotation schedule
Correct. Secrets Manager encrypts secrets with KMS and provides built-in managed rotation for supported databases, requiring no custom code.
・SSM Parameter Store standard String parameter
Incorrect. A standard String parameter is not encrypted and has no rotation capability.
・A plaintext object stored in an encrypted S3 bucket
Incorrect. An S3 object is not purpose-built for secrets and provides no automatic rotation.
・AWS Systems Manager Parameter Store with a manually invoked Lambda rotation function on a cron EventBridge rule
Incorrect. This reintroduces the custom rotation code and scheduling the requirement explicitly wants to avoid.
Explanation
Secrets Manager is purpose-built for credentials, encrypting them with KMS and offering managed rotation on a schedule for RDS and other supported engines without custom code.
Example5 · Networking and Content Delivery
A SysOps administrator runs an application in a private subnet that must download operating system patches from the internet, but the instances must never be reachable from the internet. The VPC already has an internet gateway attached for its public subnets. What should the administrator do to allow outbound patch downloads from the private subnet instances?
✓Deploy a NAT gateway in a public subnet and add a route to 0.0.0.0/0 via the NAT gateway in the private route table.
Correct. A NAT gateway in a public subnet provides outbound-only internet access; the private route table points 0.0.0.0/0 at it.
・Attach a completely separate second internet gateway directly onto the private subnet itself so that the instances inside of it can reach the public internet.
Incorrect. A VPC can have only one internet gateway, and subnets are not directly attached to it this way.
・Assign Elastic IP addresses to each of the private instances so that they can route their traffic out through the internet gateway.
Incorrect. Elastic IPs would require a public route and make instances reachable from the internet, violating the requirement.
・Create a VPC peering connection between the private subnet and a separate public VPC that hosts the patch repository servers.
Incorrect. VPC peering provides private connectivity between VPCs, not outbound internet access for patch downloads.
Explanation
A NAT gateway allows instances in private subnets to initiate outbound internet connections while blocking inbound connections, which is exactly what is needed for patching.
Example6 · Cost and Performance Optimization
A media company stores 40 TB of video archives in an S3 bucket. The files are almost never accessed after upload, but when a legal request arrives they must be retrievable within 12 hours. The team wants the lowest possible storage cost. Which S3 storage class should a SysOps administrator configure for these objects?
・S3 Standard-Infrequent Access
Incorrect. S3 Standard-IA is cheaper than Standard but far more expensive than Glacier tiers for rarely accessed archives.
✓S3 Glacier Deep Archive
Correct. S3 Glacier Deep Archive is the lowest-cost class and its standard retrieval completes within 12 hours, meeting the requirement.
・S3 Standard
Incorrect. S3 Standard is the most expensive option and is designed for frequently accessed data.
・S3 Glacier Flexible Retrieval with expedited retrieval enabled at all times for faster access
Incorrect. Glacier Flexible Retrieval costs more than Deep Archive, and a 12-hour window does not require expedited retrieval.
Explanation
When data is rarely accessed and a multi-hour retrieval window is acceptable, S3 Glacier Deep Archive provides the lowest storage cost while still meeting a 12-hour retrieval SLA via standard retrieval.
Example7 · Monitoring, Logging, and Remediation
A fleet of EC2 instances publishes a custom application metric named RequestLatency to CloudWatch every minute. The traffic pattern is highly seasonal, with predictable daily and weekly swings, so a static threshold alarm produces constant false alerts. The SysOps team wants alarms that adapt to the expected pattern without manual tuning. Which CloudWatch capability should they use?
✓Create a CloudWatch alarm based on an anomaly detection band that learns the expected range
Correct. CloudWatch anomaly detection applies machine learning to model the metric's normal range, including seasonality, and alarms fire when values fall outside the learned band.
・Lower the static threshold on the alarm progressively until the recurring false alerts finally stop appearing.
Incorrect. A lower static threshold still cannot follow seasonal swings and will simply shift where false positives or missed detections occur.
・Switch the alarm's statistic from Average to Maximum for the RequestLatency metric across every evaluation period.
Incorrect. Changing the statistic to Maximum does not account for predictable seasonal variation and would likely increase noise.
・Configure the alarm to evaluate the RequestLatency metric over only a single one-minute datapoint period.
Incorrect. Shortening the evaluation period makes a static alarm more sensitive, not adaptive to patterns.
Explanation
Anomaly detection bands adapt to seasonality and trends, which is exactly the problem static thresholds cannot solve.
Example8 · Monitoring, Logging, and Remediation
An application running on EC2 writes logs to CloudWatch Logs. The SysOps engineer must trigger an SNS notification whenever the string "OutOfMemoryError" appears in the log stream, and also track how often it occurs over time. What is the most appropriate way to meet both requirements?
・Enable CloudWatch Logs Insights and schedule a recurring hourly query that emails formatted result tables to the on-call distribution list
Incorrect. Logs Insights runs ad hoc or scheduled queries but does not natively drive real-time alarms, and this does not give a continuous metric for alarming.
✓Create a metric filter on the log group that matches the term and alarm on the metric
Correct. A metric filter converts matching log events into a CloudWatch metric that can both be graphed over time and attached to an alarm that notifies SNS.
・Configure a Lambda subscription filter that parses every single log event in the stream and calls SNS directly from the function code
Incorrect. A Lambda subscription filter can work but is more operational overhead and does not inherently produce a trackable metric.
・Turn on X-Ray tracing for the application so errors are surfaced in the service map
Incorrect. X-Ray traces request paths and latency; it is not a mechanism for matching arbitrary log strings.
Explanation
Metric filters are the standard low-overhead way to turn log patterns into alarmable, graphable CloudWatch metrics.
Example9 · Monitoring, Logging, and Remediation
A SysOps engineer needs an automated remediation: whenever an EC2 instance enters the stopped state in a specific account, a Systems Manager Automation runbook must run to restart it and record an audit entry. The solution should be event-driven with minimal custom code. How should this be implemented?
・Poll the DescribeInstances API every five minutes from a scheduled script to detect stopped instances
Incorrect. Polling introduces latency and recurring compute cost and is not truly event-driven.
✓Create an EventBridge rule matching the EC2 state-change event and target the Automation runbook
Correct. EventBridge can match the EC2 Instance State-change Notification event and invoke a Systems Manager Automation runbook directly as a target with no custom polling.
・Enable detailed CloudWatch monitoring on each instance and alarm on the StatusCheckFailed metric
Incorrect. Status check metrics detect impaired instances, not a deliberate stopped state, and do not trigger stop events.
・Install an elaborate custom agent on every instance that reports its lifecycle to a central service
Incorrect. A custom per-instance agent is unnecessary overhead when AWS already emits native state-change events.
Explanation
EventBridge rules on EC2 state-change events are the canonical event-driven trigger for Systems Manager Automation remediation.
Example10 · Monitoring, Logging, and Remediation
A SysOps administrator runs a fleet of EC2 instances behind an Application Load Balancer. The team wants to be paged whenever the aggregate HTTPCode_Target_5XX_Count climbs sharply, but request volume varies widely by hour so a static threshold produces false alarms. Which approach meets the requirement with the least operational effort?
✓Create a CloudWatch alarm using anomaly detection on the metric with a band, and send to SNS
Correct. CloudWatch anomaly detection builds a model of expected values and alarms when the metric leaves the band, adapting to variable traffic automatically.
・Set a static threshold alarm that is manually adjusted every hour by an operator
Incorrect. Manual hourly adjustment is high-effort and error-prone, exactly what the requirement avoids.
・Use a scheduled Lambda function that recalculates and rewrites the alarm threshold each hour based on recent traffic averages
Incorrect. A custom Lambda to rewrite thresholds reinvents anomaly detection with far more operational overhead.
・Enable CloudWatch Contributor Insights and review the top-N talkers each morning
Incorrect. Contributor Insights identifies top contributors but does not generate paging alarms on anomalous counts.
Explanation
Anomaly detection alarms adapt to seasonal and variable traffic patterns and page via SNS with minimal maintenance.
Example11 · Monitoring, Logging, and Remediation
An application writes structured JSON logs to a CloudWatch Logs log group. The operations team must count how many log events per minute contain a field level equal to ERROR and alarm when that count exceeds 50 in five minutes. What should the administrator configure?
✓A metric filter on the log group matching ERROR and a CloudWatch alarm on the metric
Correct. A metric filter extracts matching events into a custom CloudWatch metric that an alarm can evaluate directly.
・A CloudWatch Logs subscription filter that streams every matching event to Amazon Kinesis Data Streams for downstream counting
Incorrect. Streaming to Kinesis adds unnecessary infrastructure for a simple count-and-alarm requirement.
・An EventBridge rule that triggers on each PutLogEvents API call and increments an external counter value
Incorrect. EventBridge does not fire per individual log event, so it cannot count ERROR lines this way.
・A CloudWatch Synthetics canary that periodically queries the log group and reports matches
Incorrect. Synthetics canaries monitor endpoints and workflows, not log group content counts.
Explanation
Metric filters turn matching log patterns into metrics, which alarms can evaluate without extra services.
Example12 · Monitoring, Logging, and Remediation
A fleet of EC2 instances runs a custom Java application that writes garbage-collection pause times to a local file. The SysOps team needs these pause-time values to appear as a numeric CloudWatch metric so they can graph p99 latency on a dashboard. Which approach collects this custom value into CloudWatch with the least custom scripting?
✓Install the CloudWatch agent and configure it to collect the application log file, then create a metric filter in CloudWatch Logs that extracts the pause-time field into a custom metric.
Correct. The CloudWatch agent ships the log to CloudWatch Logs and a metric filter parses the numeric pause-time field into a custom metric with no custom code.
・Use the EC2 instance metadata service to read the file and publish it.
Incorrect. The instance metadata service exposes instance attributes, not application log file contents.
・Enable detailed monitoring on each EC2 instance in the fleet.
Incorrect. Detailed monitoring only increases the frequency of built-in EC2 metrics and cannot read an application file.
・Configure an Amazon EventBridge scheduled rule to poll the application log file on each instance once every minute, parse the newest garbage-collection pause-time values it finds, and forward them into a graphable dashboard widget automatically.
Incorrect. EventBridge rules match events and cannot poll or parse a local file on an instance.
Explanation
Pushing the log via the CloudWatch agent and extracting values with a metric filter turns log data into a graphable custom metric without writing collection code.
Example13 · Monitoring, Logging, and Remediation
An e-commerce site experiences unpredictable traffic, so static CloudWatch alarm thresholds on request latency produce frequent false alarms during normal peak hours. The SysOps engineer wants alarms to fire only when latency deviates from the expected pattern for that time of day. What should the engineer configure?
✓A CloudWatch alarm based on an anomaly detection band on the latency metric.
Correct. Anomaly detection learns the metric's expected range per time of day and alarms only on deviations outside the band.
・A CloudWatch alarm with a fixed static threshold set to the highest peak value.
Incorrect. A single static threshold at the peak value would miss real problems during off-peak hours and defeats the goal.
・A CloudWatch composite alarm combining several unrelated metrics.
Incorrect. A composite alarm aggregates existing alarm states and does not model time-of-day expectations.
・A CloudWatch dashboard widget with a manually drawn trend line.
Incorrect. A manually drawn dashboard line is visual only and cannot trigger notifications.
Explanation
CloudWatch anomaly detection builds a model of normal behavior over time, so alarms adapt to daily traffic cycles and reduce false positives.
Example14 · Monitoring, Logging, and Remediation
A fleet of EC2 instances runs a batch-processing worker that occasionally hangs without crashing the process. The SysOps administrator must detect when per-instance throughput drops to zero and automatically restart the application. A CloudWatch agent already publishes a custom JobsPerMinute metric. What is the most operationally efficient way to trigger the remediation?
✓Create a CloudWatch alarm on JobsPerMinute with a threshold of 0 and configure an alarm action that invokes a Systems Manager Automation runbook to restart the service.
Correct. A CloudWatch alarm on the custom metric can directly invoke a Systems Manager Automation runbook to restart the service with no custom polling.
・Poll the metric every minute from a cron job on a separate monitoring instance and SSH into the affected host to restart the service manually.
Incorrect. Manual SSH restarts via a polling cron job are brittle, not scalable, and defeat the goal of automatic remediation.
・Enable detailed monitoring on the instances and have an engineer manually review the JobsPerMinute metric each and every morning to decide which particular instances need to be rebooted by the on-call engineer.
Incorrect. Manual morning review introduces delay and human effort and does not restart the application automatically.
・Configure EC2 instance recovery so the instance moves to new hardware whenever the JobsPerMinute metric reaches zero during the batch window.
Incorrect. Instance recovery only applies to system-status-check failures and cannot be driven by an arbitrary custom metric threshold.
・Set up an SNS topic that sends an email notification to the on-call team whenever JobsPerMinute is reported as missing data.
Incorrect. An email notification alerts the team but performs no automatic restart of the hung worker.
Explanation
CloudWatch alarm actions can trigger Systems Manager Automation runbooks, enabling closed-loop remediation of a hung application based on a custom metric.
Example15 · Monitoring, Logging, and Remediation
An application writes JSON-formatted logs to a CloudWatch Logs log group. The security team needs an alarm when the string "AccessDenied" appears more than five times in any five-minute window across all streams. Which approach satisfies this requirement?
✓Create a metric filter on the log group that matches "AccessDenied", publishes a count metric, and build a CloudWatch alarm on that metric with a threshold of 5 over 5 minutes.
Correct. A metric filter converts matching log events into a CloudWatch metric that a standard alarm can evaluate against a threshold.
・Stream the logs to Amazon S3 and schedule a nightly Athena query that counts occurrences and writes the results into a spreadsheet for the security team to review.
Incorrect. A nightly Athena query cannot alarm in near real time within a five-minute window.
・Enable CloudWatch Logs subscription filters that forward every single individual log event to a custom Lambda function which parses each individual message and then increments a dedicated DynamoDB counter continuously in real time.
Incorrect. A custom Lambda-plus-DynamoDB pipeline is unnecessary complexity when metric filters provide this natively.
・Use CloudWatch Logs Insights with a saved query and ask an engineer to run it manually every five minutes to check whether the count exceeds the threshold value.
Incorrect. Manually running a Logs Insights query every five minutes is not an automated alarm.
・Turn on CloudTrail data events so that each AccessDenied occurrence is captured as a management event and then reviewed by an analyst later on.
Incorrect. CloudTrail data events capture API activity, not arbitrary application log strings, and provide no alarm here.
Explanation
Metric filters turn log patterns into numeric metrics, which CloudWatch alarms can evaluate for near-real-time alerting.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)