Lesson 1 of 1 CloudOps Foundations

Working with Operational Tools and the Well-Architected Framework

This lesson explains the tools CloudOps engineers work through, the AWS Management Console, the AWS CLI, CloudShell and infrastructure as code, and the AWS Well-Architected Framework principles the exam assumes they apply to existing workloads.

Learning outcomes

After completing this lesson, you will be able to:

  • Choose between the console, the CLI and CloudShell for a task.
  • Explain why infrastructure as code and runbooks suit repeatable operational changes.
  • Apply the design principles of the operational excellence pillar.
  • Apply the shared responsibility model to operations.

Console, CLI and CloudShell

Every action in AWS, whether it starts in a browser or a script, is an API call. The tools differ in how those calls are made, and choosing the right one for a task is part of operating well. The AWS Management Console is the web interface. It is useful for exploration, for visual tools such as CloudWatch dashboards and the VPC resource map, and for one-off tasks. Its weakness is that a sequence of clicks is hard to repeat exactly, review or audit, so it is a poor fit for changes that must be made the same way in many accounts or environments.

The AWS CLI calls the same APIs from a terminal, so a command can be scripted, repeated and reviewed like code. Two features make it practical for operations. First, output can be returned as JSON, text, a table or YAML, and the --query option filters it with JMESPath, a query language for JSON documents. For example, --query 'Reservations[].Instances[].InstanceId' walks through every reservation and instance in the response and returns only the instance IDs. Second, named profiles in ~/.aws/config store settings under a name, such as the Region to use or a role to assume in another account, so --profile prod switches the whole command to the production account.

AWS CloudShell is a browser-based shell inside the console with the AWS CLI, Python, Node.js and common tools already installed. It uses the credentials of the signed-in console user, so no access keys need to be created or stored, and it provides 1 GB of persistent home directory storage per Region. It suits running CLI commands and short scripts without setting up a workstation, and most labs in this guide use it. The following commands confirm the identity and Region in use, then list running instances as a table.

# Who am I, and which Region am I using?
aws sts get-caller-identity
aws configure get region

# List running instance IDs and their types as a table
aws ec2 describe-instances --filters Name=instance-state-name,Values=running \
  --query 'Reservations[].Instances[].[InstanceId,InstanceType]' --output table

Infrastructure as code and automation

The console and the CLI change resources one call at a time. Infrastructure as code (IaC) instead describes the desired resources in a template, such as an AWS CloudFormation template or an AWS CDK application, and a service creates or updates them to match. Because the template is a file, it can be stored in version control, reviewed before it is applied, used again to build an identical environment, and rolled back if a change fails. CloudFormation also detects drift, which is a difference between the template and a resource that someone changed by hand.

Operational procedures can be automated in the same way. AWS Systems Manager Automation runbooks define the steps of a task, such as restarting an instance or patching a fleet, so that the task runs identically every time and can be started by an alarm or an event instead of a person. As a rule for the exam, the console suits exploring and one-off investigation, the CLI and CloudShell suit scripted tasks, and IaC and runbooks suit anything that must be repeatable, reviewed or applied at scale. The AWS CloudFormation, AWS CDK, Terraform and Git, and Systems Manager Automation and Remediation modules cover these tools in depth.

Sort into groups

Which tool fits the task?

Exam skills 3.1.2 · 3.2.1

Choose the kind of tool that suits each operational task.

Log in to try this activity Interactive activities are free with an account.

Operational excellence principles

The operational excellence pillar of the Well-Architected Framework is the pillar closest to this exam. Its design principles are to organise teams around business outcomes, implement observability for actionable insights, safely automate where possible, make frequent, small, reversible changes, refine operations procedures frequently, anticipate failure, learn from operational events, and use managed services. In practice this means alarms that lead to runbooks, runbooks that are automated, changes deployed through infrastructure as code with rollback, and post-incident reviews that produce prevention actions.

The other pillars appear throughout the exam as well. Reliability covers scaling, Multi-AZ and backups; performance efficiency covers instance and storage selection; security covers IAM, encryption and detection; cost optimisation covers right-sizing and network costs; and sustainability covers using only the resources you need. The following table summarises how each pillar shows up in SOA-C03 questions.

PillarTypical SOA-C03 subjects
Operational excellenceRunbooks, Systems Manager, infrastructure as code, observability
SecurityIAM policies, SCPs, KMS, ACM, Security Hub findings
ReliabilityAuto Scaling, health checks, Multi-AZ, AWS Backup, DR strategies
Performance efficiencyInstance types, EBS volume types, caching, placement groups
Cost optimisationCompute Optimizer, Savings Plans, gateway endpoints, lifecycle rules
SustainabilityRight-sizing, scaling to demand, efficient storage classes

Shared responsibility in operations

AWS is responsible for the security and operation of the cloud: hardware, facilities, the hypervisor and managed service infrastructure. Customers are responsible for what they run in the cloud. The boundary moves with the service. On EC2 you patch the operating system; on RDS AWS patches the database engine during the maintenance window you choose; on Lambda AWS manages the runtime environment while you manage your code and its dependencies. The AWS Health Dashboard tells you when AWS-side events, such as scheduled instance retirement or a regional service issue, affect your resources.

The following diagram shows who operates each layer for the three services in the paragraph above.

Who operates each layer for three services. On EC2 the customer patches the operating system and everything above it. On RDS, AWS patches the operating system and database engine in the maintenance window the customer chooses. On Lambda, AWS manages the runtime environment, and the customer manages the code and its dependencies. AWS always operates the hardware and hypervisor.
The boundary moves with the service: the more managed the service, the fewer layers the customer operates.
Sort into groups

Who operates it?

Exam skills 1.3.1 · 4.1.1

Decide whether AWS or the customer is responsible for each task.

Log in to try this activity Interactive activities are free with an account.
Check yourself

Which AWS CLI option filters command output with a JMESPath expression?

Show answer

--query, which selects and reshapes fields before the output is printed.

Exam Tips

Remember for the exam

  • CloudShell provides a preauthenticated AWS CLI in the browser with persistent home storage.
  • Use --query with JMESPath to filter CLI output.
  • Operational excellence favours small, reversible, automated changes and learning from events.
  • On RDS AWS patches the engine; on EC2 you patch the operating system.