Lesson 15 of 36 · see all lessons
Start here: cloud concepts (domain 1, 24%)
- 1. Start here: the exam, the plan and what you already know
- 2. What the cloud is: benefits, service models and deployment models
- 3. AWS global infrastructure: Regions, Availability Zones and edge locations
- 4. Cloud economics: what you pay for on-premises vs in the cloud
- 5. The AWS Well-Architected Framework: six pillars
- 6. Moving to AWS: the Cloud Adoption Framework and migration strategies
Security and identity (domain 2, 30%)
- 7. The shared responsibility model: who secures what
- 8. IAM basics: users, groups, roles and policies
- 9. Protecting the root user, MFA and credentials
- 10. Identity at scale: IAM Identity Center, federation and cross-account access
- 11. Encryption and keys: protecting data at rest and in transit
- 12. Threat protection: Shield, WAF, GuardDuty, Inspector and Security Hub
Governance, ways of working and compute (domains 2 and 3)
- 13. Logging, auditing and compliance: CloudWatch, CloudTrail, Config and Artifact
- 14. Governing many accounts: Organizations, Control Tower and Service Catalog
- 15. Ways to use AWS: console, CLI, SDKs and infrastructure as code
- 16. Amazon EC2: virtual servers and instance types
- 17. Elasticity: Auto Scaling and Elastic Load Balancing
- 18. Containers and serverless: ECS, EKS, Fargate, Lambda and more
Storage, databases and networking (domain 3, 34%)
- 19. Block and file storage: EBS, instance store, EFS and FSx
- 20. Amazon S3: buckets, storage classes and lifecycle policies
- 21. Hybrid storage, backup and disaster recovery
- 22. Databases: RDS, Aurora, DynamoDB, ElastiCache and more
- 23. Networking: VPCs, subnets, gateways and security layers
- 24. Connecting and delivering: Route 53, CloudFront, VPN and Direct Connect
Analytics, AI, integration and more (domain 3)
Billing, pricing and support, then exam practice (domain 4, 12%)
- 29. Pricing models: On-Demand, Savings Plans, Reserved, Spot and Dedicated
- 30. Billing and cost tools: Budgets, Cost Explorer, Pricing Calculator and tags
- 31. AWS Support plans, Trusted Advisor and where to get help
- 32. Final review and exam day: every decision on one page
- 33. Mock exam 1
- 34. Mock exam 2 Exam Pack · $12
Extra practice: mock exams 3 and 4
16 min
Ways to use AWS: console, CLI, SDKs and infrastructure as code
Choose the console, CLI, SDKs, APIs or CloudFormation for one-time vs repeatable work.
By the end of this lesson you can
- Choose the console, CLI, an SDK or infrastructure as code for a task
- Decide when a task needs a repeatable process instead of a one-time action
- Explain what CloudFormation, Elastic Beanstalk and Systems Manager each do
From earlier lessons · 1 of 2
Cedar Lane Books attaches a service control policy (SCP) to its Test OU. What does the SCP do?
Pick one answer.
From earlier lessons · 2 of 2
Cedar Lane will keep its staff file shares on servers in the back office while its website runs on AWS, with the two connected. Which deployment model is this?
Pick one answer.
Cedar Lane's cloud lead spent a whole afternoon clicking through the console to build the shop's web servers and database. Now the company needs the same setup in a new EU account, and again in the test account. Nobody remembers every setting she picked. There has to be a better way than clicking it all again.
Every action is an API call
Exam depth: know it cold.
An API (application programming interface) is a set of requests a program can send to a service, such as "start this server". Every AWS service is controlled through its API.
All the ways of using AWS call those same APIs. The console sends API calls when you click. The AWS CLI sends them when you type commands. An SDK sends them from inside your code.
That's why CloudTrail can record everything. It sees the API call, whichever tool made it.
The AWS Management Console: point and click
Exam depth: know it cold.
The AWS Management Console is AWS's web application. It gives you one place to reach every service's console in your browser.
Use it to learn a service, explore what's there, view dashboards and do one-time tasks, such as checking a bill or making a single bucket.
Its weakness is repetition. Clicks are hard to repeat exactly, hard to review and slow for many resources. The deciding words: visual, web browser, one-time, no coding.
The AWS CLI and AWS SDKs: programmatic access
Exam depth: know it cold.
Programmatic access means using AWS through commands or code instead of clicks.
- The AWS CLI (command line interface) is an open-source tool. You type commands in a terminal on Windows, macOS or Linux. Commands can be saved in scripts, files that run the same steps every time.
- An AWS SDK (software development kit) is a library that lets your own application call AWS in its programming language. SDKs exist for Python, Java, JavaScript, .NET, Go and more.
The deciding words: script, terminal, automate point to the CLI. Application code and programming language point to an SDK.
aws s3 ls
A developer at Cedar Lane is writing a Python app that saves each customer's invoice to Amazon S3. Which option should the app use to call AWS?
Pick one answer.
One-time or repeatable?
Exam depth: know it cold.
Ask one question first: will this be done once, or again and again?
- One-time operation: a single change you'll never repeat. The console is fine.
- Repeatable process: the same task in many places or many times. Building the same environment in three accounts is one. So is a nightly clean-up. Use scripts or infrastructure as code.
Manual steps and scattered scripts lead to environments that don't match. A repeatable process gives the same result every time, and someone can review it before it runs.
Predict, then reveal
Cedar Lane needs three jobs done: check last month's bill once, copy 200 product images to S3 every night, and build the full shop setup in the EU and test accounts. Before you look, which approach fits each?
Infrastructure as code with AWS CloudFormation
Exam depth: know it cold.
Infrastructure as code (IaC) means describing your servers, networks and databases in a text file, then letting a service build them.
AWS CloudFormation is AWS's IaC service. You write a template, a JSON or YAML file that lists the resources you want. CloudFormation creates them as a stack, one unit you create, update or delete together. Deleting the stack deletes its resources.
Run the same template again in another account or Region, and you get the same setup. The deciding words: repeatable, consistent, template, provision the same environment.
Exam depth: recognize it.
The AWS Cloud Development Kit (AWS CDK) is also infrastructure as code. Instead of a JSON or YAML template, developers describe resources in a programming language such as Python, TypeScript or Java. The CDK turns that code into a CloudFormation template and deploys it through CloudFormation.
The deciding words: define infrastructure in a familiar programming language.
Cedar Lane needs to create the same web servers, load balancer and database in three AWS accounts, with identical settings each time. Which approach meets this requirement with the LEAST risk of mistakes?
Pick one answer.
AWS Elastic Beanstalk vs AWS CloudFormation
Exam depth: know it cold.
AWS Elastic Beanstalk deploys web applications for you. You upload your code. Beanstalk provisions the servers, sets up load balancing and health monitoring, and scales the app. It works like platform as a service (PaaS): you manage the app, AWS handles the setup. Beanstalk itself has no extra charge; you pay for the resources it uses.
| Elastic Beanstalk | CloudFormation | |
|---|---|---|
| You provide. | Your application code. | A template listing every resource. |
| Best for. | Getting a web app running fast. | Any infrastructure, built repeatably. |
Decision rule: just deploy my code is Beanstalk. Describe my whole infrastructure is CloudFormation.
A small team has written a web app and wants to deploy it without setting up servers, load balancing or scaling themselves. Which AWS service meets this requirement?
Pick one answer.
AWS Systems Manager: operate your servers at scale
Exam depth: recognize it.
AWS Systems Manager helps you view, manage and operate many servers at once, on AWS and on-premises. Know four of its tools:
- Session Manager: connect to a server without opening inbound ports or managing SSH keys.
- Run Command: run the same admin task on many servers at once.
- Patch Manager: install security and other updates automatically.
- Parameter Store: a central store for settings, with optional encryption. For secrets such as database passwords, AWS recommends AWS Secrets Manager.
The deciding words: patch a fleet, no SSH keys, run a command on many servers.
Cedar Lane runs 40 servers on Amazon EC2. The team wants to install operating system security updates on all of them automatically. Which AWS service meets this requirement?
Pick one answer.
The decision table
| The question says | Pick |
|---|---|
| Web browser, visual, one-time task, learning. | AWS Management Console |
| Commands, terminal, shell script, automate a task. | AWS CLI |
| Application code, programming language. | AWS SDK |
| Repeatable, consistent environments, template. | AWS CloudFormation |
| Infrastructure as code in Python or TypeScript. | AWS CDK |
| Upload code, AWS handles servers and scaling. | AWS Elastic Beanstalk |
| Patch, run commands, connect to many servers. | AWS Systems Manager |
Decision rule: once, click. Again and again, script or template. App code, SDK.
Exam-style practice
An administrator wants to write a script that stops all test servers every evening, run from her laptop's terminal. Which option should she use?
Pick one answer.
A security team wants administrators to connect to EC2 instances without opening inbound SSH ports or handing out SSH keys. Which AWS service meets this requirement?
Pick one answer.
Worth keeping
- Every AWS action is an API call; the console, CLI, SDKs and CloudFormation all make them.
- Console for one-time and visual work, CLI for scripts, SDKs for application code.
- Repeatable and consistent means infrastructure as code: CloudFormation templates build stacks.
- Elastic Beanstalk deploys your code; CloudFormation builds whatever a template describes.
- Systems Manager operates fleets: sessions without SSH keys, commands, patches and parameters.
Cedar Lane can now build its setup the same way every time. But what exactly is it building? Next lesson opens up the most famous AWS service: Amazon EC2, the virtual servers, and how to pick the right size.
Leaderboard
Loading…
50 XP for each lesson you finish, 10 for each right answer. Names show only for learners who turn on Show me on leaderboards.
Embed this practice on your site
Free for classrooms, blogs and study groups. Paste this into any page that accepts HTML.
Report a copyright problem with this lesson
Sources for this lesson (17)
Each fact in the lesson is marked with the number of the page it comes from.
- [4]AWS: CLF-C02 Content Domain 3: Cloud Technology and Services
- [7]AWS: CLF-C02 Out-of-Scope AWS Services
- [20]AWS: What is AWS Elastic Beanstalk?
- [87]AWS: AWS Systems Manager Parameter Store
- [128]AWS: What Is AWS CloudTrail?
- [155]AWS: What is the AWS Management Console?
- [156]AWS: What is the AWS Command Line Interface?
- [157]AWS: What is covered in the AWS SDKs and Tools Reference Guide
- [158]AWS: Manage access keys for IAM users
- [159]AWS: Infrastructure as code
- [160]AWS: What is CloudFormation?
- [161]AWS: How CloudFormation works
- [162]AWS: What is the AWS CDK?
- [163]AWS: What is AWS Systems Manager?
- [164]AWS: AWS Systems Manager Session Manager
- [165]AWS: AWS Systems Manager Run Command
- [166]AWS: AWS Systems Manager Patch Manager