Cover Page

AWS
Certified Solutions Architect

Study Guide
Associate (SAA-C01) Exam

Second Edition

Wiley Logo

Ben Piper

David Clinton

Wiley Logo

Acknowledgments

We would like to thank the following people who helped us create this AWS Certified Solutions Architect Study Guide: Associate SAA-C01 Exam, Second Edition.

First, a special thanks to our friends at Wiley. Kenyon Brown, senior acquisitions editor, got the ball rolling on this project and pushed to get this book published quickly. His experience and guidance throughout the project was critical. Kathi Duggan, development editor, helped push this book forward by keeping us accountable to our deadlines. Her edits made many of the technical parts of this book more readable. Thanks also go to Katie Wisor, production manager; Christine O’Connor, production editor; Pete Gaughan, content enablement manager; and Nancy Carrasco, proofreader.

John Mueller reviewed the chapters and questions for technical accuracy. Not only did his comments and suggestions make this book more accurate, he also provided additional ideas for the chapter review questions to make them more challenging and relevant to the exam. Thanks also go to Sara Perrott and Shlomo Swidler for providing technical proofreading.

Lastly, the authors would like to thank each other!

About the Authors

David Clinton is a Linux server admin who has worked with IT infrastructure in both academic and enterprise environments. He has authored books—including Learn Amazon Web Services in a Month of Lunches (Manning Publications, 2017) and Linux in Action (Manning Publications, 2018)—and created more than 15 video courses teaching Amazon Web Services and Linux administration, server virtualization, and IT security for Pluralsight.

image

In a “previous life,” David spent 20 years as a high school teacher. He currently lives in Toronto, Canada, with his wife and family and can be reached through his website: https://bootstrap-it.com.

 

Ben Piper, a native of Augusta, Georgia, is an IT consultant who works with clients in the Georgia-Carolina area. He has created more than 20 training courses covering Amazon Web Services, Cisco routing and switching, Puppet configuration management, and Windows Server Administration. He’s also the author of Learn Cisco Network Administration in a Month of Lunches (Manning Publications, 2017). Over the years he has designed, implemented, and maintained a variety of technologies including VMware vSphere, Citrix XenApp, XenServer, NetScaler, and Cisco network infrastructure. You can contact Ben by visiting his website: https://benpiper.com.

image

Introduction

Studying for any certification always involves deciding how much of your studying should be practical hands-on experience and how much should be simply memorizing facts and figures. Between the two of us, we’ve taken more than 20 different IT certification exams, so we know how important it is to use your study time wisely. We’ve designed this book to help you discover your strengths and weaknesses on the AWS platform so that you can focus your efforts properly. Whether you’ve been working with AWS for a long time or whether you’re relatively new to it, we encourage you to carefully read this book from cover to cover.

Passing the AWS Certified Solutions Architect – Associate exam requires understanding the components and operation of the core AWS services as well as how those services interact with each other. Read through the official documentation for the various AWS services. Amazon offers HTML, PDF, and Kindle documentation for many of them. Use this book as a guide to help you identify your strengths and weaknesses so that you can focus your study efforts properly.

Hands-on experience is crucial for exam success. Each chapter in this AWS Certified Solutions Architect Study Guide: Associate SAA-C01 Exam, Second Edition contains hands-on exercises that you should strive to complete during or immediately after your reading of the chapter. It’s vital to understand that the exercises don’t cover every possible scenario for every AWS service. In fact, it’s quite the opposite. The exercises provide you with a foundation to build on. Use them as your starting point, but don’t be afraid to venture out on your own. Feel free to modify them to match the variables and scenarios you might encounter in your own organization. Keep in mind that some of the exercises and figures use the AWS web console, which is in constant flux. As such, screenshots and step-by-step details of exercises may change. Use these eventualities as excuses to dig into the AWS online documentation and browse around the web console on your own. Also remember that although you can complete many of the exercises within the bounds of the AWS Free Tier, getting enough practice to pass the exam will likely require you to spend some money. But it’s money well spent, as getting certified is an investment in your career and your future.

Each chapter contains review questions to thoroughly test your understanding of the services and concepts covered in that chapter. They also test your ability to integrate the concepts with information from preceding chapters. Although the difficulty of the questions varies, rest assured that they are not “fluff.” We’ve designed the questions to help you realistically gauge your understanding and readiness for the exam. Avoid the temptation to rush through the questions to just get to the answers. Once you complete the assessment in each chapter, referring to the answer key will give you not only the correct answers but a detailed explanation as to why they’re correct. It will also explain why the other answers are incorrect.

The book also contains a self-assessment exam with 39 questions, two practice exams with 50 questions each to help you gauge your readiness to take the exam, and flashcards to help you learn and retain key facts needed to prepare for the exam.

This AWS Certified Solutions Architect Study Guide: Associate SAA-C01 Exam, Second Edition is divided into two parts: The Core AWS Services and The Well-Architected Framework.

Part I, “:"?>The Core AWS Services

The first part of the book dives deep into each of the core AWS services. These services include ones you probably already have at least a passing familiarity with: Elastic Compute Cloud (EC2), Virtual Private Cloud (VPC), Identity and Access Management (IAM), Route 53, and Simple Storage Service (S3), to name just a few.

Some AWS services seem to serve similar or even nearly identical purposes. You’ll learn about the subtle but important differences between seemingly similar services and, most importantly, when to use each.

Part II, “:"?>The Well-Architected Framework

The second part of the book is a set of best practices and principles aimed at helping you design, implement, and operate systems in the cloud. Part II focuses on the following five pillars of good design:

  • Reliability
  • Performance efficiency
  • Security
  • Cost optimization
  • Operational excellence

Each chapter of Part II revisits the core AWS services in light of a different pillar. Also, because not every AWS service is large enough to warrant its own chapter, Part II simultaneously introduces other services that, although less well known, may still show up on the exam.

Achieving the right balance among these pillars is a key skill you need to develop as a solutions architect. Prior to beginning Part II, we encourage you to peruse the Well-Architected Framework white paper, which is available for download at https://d0.awsstatic.com/whitepapers/architecture/AWS_Well-Architected_Framework.pdf.

What Does This Book Cover?

This book covers topics you need to know to prepare for the Amazon Web Services (AWS) Certified Solutions Architect – Associate exam:

Chapter 1: Introduction to Cloud Computing and AWS This chapter overviews the AWS Cloud computing platform and its core services and concepts.

Chapter 2: Amazon Elastic Compute Cloud and Amazon Elastic Block Store This chapter covers EC2 instances—the virtual machines that you can use to run Linux and Windows workloads on AWS. It also covers the Elastic Block Store service that EC2 instances depend on for persistent data storage.

Chapter 3: Amazon Simple Storage Service and Amazon Glacier Storage In this chapter, you’ll learn about Simple Storage Service (S3) and Glacier, which provide unlimited data storage and retrieval for AWS services, your applications, and the Internet.

Chapter 4: Amazon Virtual Private Cloud This chapter explains Amazon Virtual Private Cloud (Amazon VPC), a virtual network that contains network resources for AWS services.

Chapter 5: Databases In this chapter, you will learn about some different managed database services offered by AWS, including Relational Database Service (RDS), DynamoDB, and Redshift.

Chapter 6: AWS Identity and Access Management This chapter covers AWS Identity and Access Management (IAM), which provides the primary means for protecting the AWS resources in your account.

Chapter 7: CloudTrail, CloudWatch, and AWS Config In this chapter, you’ll learn how to log, monitor, and audit your AWS resources.

Chapter 8: The Domain Name System and Network Routing: Amazon Route 53 and Amazon CloudFront This chapter focuses on the domain name system (DNS) and Route 53, the service that provides public and private DNS hosting for both internal AWS resources and the Internet. It also covers CloudFront, Amazon’s global content delivery network.

Chapter 9: The Reliability Pillar This chapter will show you how to architect and integrate AWS services to achieve a high level of reliability for your applications. You’ll learn how to plan around and recover from inevitable outages to keep your systems up and running.

Chapter 10: The Performance Efficiency Pillar This chapter covers how to build highly performing systems and use the AWS elastic infrastructure to rapidly scale up and out to meet peak demand.

Chapter 11: The Security Pillar In this chapter, you’ll learn how to use encryption and security controls to protect the confidentiality, integrity, and availability of your data and systems on AWS. You’ll also learn about the various security services such as GuardDuty, Inspector, Shield, and Web Application Firewall.

Chapter 12: The Cost Optimization Pillar This chapter will show you how to estimate and control your costs in the cloud.

Chapter 13: The Operational Excellence Pillar In this chapter, you’ll learn how to keep your systems running smoothly on AWS. You’ll learn how to implement a DevOps mind-set using CloudFormation, Systems Manager, and the AWS Developer Tools.

Interactive Online Learning Environment and Test Bank

The authors have worked hard to provide some really great tools to help you with your certification process. The interactive online learning environment that accompanies this AWS Certified Solutions Architect Study Guide: Associate SAA-C01 Exam, Second Edition provides a test bank with study tools to help you prepare for the certification exam—and increase your chances of passing it the first time! The test bank includes the following:

Sample Tests All the questions in this book are provided, including the assessment test at the end of this Introduction and the chapter tests that include the review questions at the end of each chapter. In addition, there are two practice exams with 50 questions each. Use these questions to test your knowledge of the study guide material. The online test bank runs on multiple devices.

Flashcards The online text banks include 100 flashcards specifically written to hit you hard, so dont get discouraged if you dont ace your way through them at first. Theyre there to ensure that youre really ready for the exam. And no worries—armed with the review questions, practice exams, and flashcards, youll be more than prepared when exam day comes. Questions are provided in digital flashcard format (a question followed by a single correct answer). You can use the flashcards to reinforce your learning and provide last-minute test prep before the exam.

Resources You’ll find some AWS CLI and other code examples from the book for you to cut and paste for use in your own environment. A glossary of key terms from this book is also available as a fully searchable PDF.

inline  Go to www.wiley.com/go/sybextestprep to register and gain access to this interactive online learning environment and test bank with study tools.

Exam Objectives

The AWS Certified Solutions Architect Associate exam is intended for people who have experience in designing distributed applications and systems on the AWS platform. In general, you should have the following before taking the exam:

The exam covers five different domains, with each domain broken down into objectives.

Objective Map

The following table lists each domain and its weighting in the exam, along with the chapters in the book where that domain’s objectives are covered.

Domain Percentage of Exam Chapter
Domain 1: Design Resilient Architectures 34%
1.1 Choose reliable/resilient storage. 2, 3, 5, 9, 10
1.2 Determine how to design decoupling mechanisms using AWS services. 5, 9, 10
1.3 Determine how to design a multitier architecture solution. 3, 4, 5, 8, 9, 10
1.4 Determine how to design high availability and/or fault tolerant architectures. 2, 3, 5, 7, 8, 9, 10
Domain 2: Define Performant Architectures 24%
2.1 Choose performant storage and databases. 2, 3, 5, 10
2.2 Apply caching to improve performance. 8, 10
2.3 Design solutions for elasticity and scalability. 2, 3, 5, 7, 8, 10
Domain 3: Specify Secure Applications and Architectures 26%
3.1 Determine how to secure application tiers. 2, 3, 4, 6, 7, 11
3.2 Determine how to secure data. 2, 3, 6, 7, 11
3.3 Define the networking infrastructure for a single VPC application. 4, 11
Domain 4: Design Cost-Optimized Architectures 10%
4.1 Determine how to design cost-optimized storage. 2, 3, 12
4.2 Determine how to design cost-optimized compute. 2, 12
Domain 5: Define Operationally-Excellent Architectures 6%
5.1 Choose design features in solutions that enable operational excellence. 7, 10, 13

Assessment Test

  1. True/false: The Developer Support plan provides access to a support application programming interface (API).

    1. True
    2. False
  2. True/false: AWS is responsible for managing the network configuration of your EC2 instances.

    1. True
    2. False
  3. Which of the following services is most useful for decoupling the components of a monolithic application?

    1. SNS
    2. KMS
    3. SQS
    4. Glacier
  4. An application you want to run on EC2 requires you to license it based on the number of physical CPU sockets and cores on the hardware you plan to run the application on. Which of the following tenancy models should you specify?

    1. Dedicated host
    2. Dedicated instance
    3. Shared tenancy
    4. Bring your own license
  5. True/false: Changing the instance type of an EC2 instance will change its elastic IP address.

    1. True
    2. False
  6. True/false: You can use a Quick Start Amazon Machine Image (AMI) to create any instance type.

    1. True
    2. False
  7. Which S3 encryption option does not require AWS persistently storing the encryption keys it uses to decrypt data?

    1. Client-side encryption
    2. SSE-KMS
    3. SSE-S3
    4. SSE-C
  8. True/false: Durability measures the percentage of likelihood that a given object will not be inadvertently lost by AWS over the course of a year.

    1. True
    2. False
  9. True/false: After uploading a new object to S3, there will be a slight delay (one to two seconds) before the object is available.

    1. True
    2. False
  10. You created a Virtual Private Cloud (VPC) using the Classless Inter-Domain Routing (CIDR) block 10.0.0.0/24. You need to connect to this VPC from your internal network, but the IP addresses in use on your internal network overlap with the CIDR. Which of the following is a valid way to address this problem?

    1. Remove the CIDR and use IPv6 instead.
    2. Change the VPC’s CIDR.
    3. Create a new VPC with a different CIDR.
    4. Create a secondary CIDR for the VPC.
  11. True/false: An EC2 instance must be in a public subnet to access the internet.

    1. True
    2. False
  12. True/false: The route table for a public subnet must have a default route pointing to an Internet gateway as a target.

    1. True
    2. False
  13. Which of the following use cases is well suited for DynamoDB?

    1. Running a MongoDB database on AWS
    2. Storing large binary files exceedingone "?> 1 GB in size
    3. Storing JSON documents that have a consistent structure
    4. Storing image assets for aweb site "?> website
  14. True/false: You can create a DynamoDB global secondary index for an existing table at any time.

    1. True
    2. False
  15. True/false: Enabling point-in-time RDS snapshots is sufficient to give you a recovery point objective (RPO) of less than 10 minutes.

    1. True
    2. False
  16. Which of the following steps does the most to protect your AWS account?

    1. Deleting unused Identity and Access Management (IAM) policies
    2. Revoking unnecessary access for IAM users
    3. Rotating root access keys
    4. Restricting access to S3 buckets
    5. Rotating Ss "?>ecure Ss "?>hell (SSH) key pairs
  17. Which of the following can be used to encrypt the operating system of an EC2 instance?

    1. AWS Secrets Manager
    2. CloudHSM
    3. AWS Key Management Service (KMS)
    4. AWS Security Token Service (STS)
  18. What is a difference between a token generated by the AWS Security Token Service (STS) and an IAM access key?

    1. The token generated by STS can’t be used by an IAM principal.
    2. An IAM access key is unique.
    3. The token generated by STS can be used only once.
    4. The token generated by STS expires.
  19. True/false: EC2 sends instance memory utilization metrics to CloudWatch every five minutes.

    1. True
    2. False
  20. You configured a CloudWatch alarm to monitor CPU utilization for an EC2 instance. The alarm began in the INSUFFICIENT_DATA state and then entered the ALARM state. What can you conclude from this?

    1. The instance recently rebooted.
    2. CPU utilization is too high.
    3. The CPU utilization metric crossed the alarm threshold.
    4. The instance is stopped.
  21. Where do AWS Config and CloudTrail store their logs?

    1. S3 buckets
    2. CloudWatch Logs
    3. CloudTrail Events
    4. DynamoDB
    5. Amazon Athena
  22. True/false: An EC2 instance in a private subnet can resolve an “A” resource record for a public hosted zone hosted in Route 53.

    1. True
    2. False
  23. You want to use Route 53 to send users to the application load balancer closest to them. Which of the following routing policies lets you do this with the least effort?

    1. Latency routing
    2. Geolocation routing
    3. Geoproximity routing
    4. Edge routing
  24. True/false: You can use an existing domain name with Route 53 without switching its registration to AWS.

    1. True
    2. False
  25. You’re designing an application that takes multiple image files and combines them into a video file that users on the Internet can download. Which of the following can help you quickly implement your application in the fastest, most highly available, and most cost-effective manner?

    1. EC2 spot fleet
    2. Lambda
    3. Relational Database Service (RDS)
    4. Auto Scaling
  26. You’re using EC2 Auto Scaling and want to implement a scaling policy that adds one extra instance only when the average CPU utilization of each instance exceeds 90 percent. However, you don’t want it to add more than one instance every five minutes. Which of the following scaling policies should you use?

    1. Simple
    2. Step
    3. Target tracking
    4. PercentChangeInCapacity
  27. True/false: EC2 Auto Scaling automatically replaces group instances directly terminated by the root user.

    1. True
    2. False
  28. Which ElastiCache engine can persistently store data?

    1. MySQL
    2. Memcached
    3. MongoDB
    4. Redis
  29. Which of the following is not an AWS service?

    1. CloudFormation
    2. Puppet
    3. OpsWorks
    4. Snowball
  30. True/false: S3 cross-region replication uses transfer acceleration.

    1. True
    2. False
  31. Which of the following services can you deactivate on your account?

    1. Security Token Service (STS)
    2. CloudWatch
    3. Virtual Private Cloud (VPC)
    4. Lambda
  32. Which of the following services can alert you to malware on an EC2 instance?

    1. AWS GuardDuty
    2. AWS Inspector
    3. AWS Shield
    4. AWS Web Application Firewall
  33. True/false: If versioning is enabled on an S3 bucket, applying encryption to an unencrypted object in that bucket will create a new, encrypted version of that object.

    1. True
    2. False
  34. Which instance type will, if left running, continue to incur costs?

    1. Spot
    2. Standard reserved
    3. On-demand
    4. Convertible reserved
  35. True/false: The EBS Lifecycle Manager can take snapshots of volumes that were once attached to terminated instances.

    1. True
    2. False
  36. Which of the following lets you spin up new web servers the quickest?

    1. Lambda
    2. Auto Scaling
    3. Elastic Container Service
    4. CloudFront
  37. True/false: CloudFormation stack names are case-sensitive.

    1. True
    2. False
  38. Where might CodeDeploy look for the appspec.yml file? (Choose two.)

    1. GitHub
    2. CodeCommit
    3. S3
    4. CloudFormation
  39. True/false: You can use either CodeDeploy or an AWS Systems Manager command document to deploy a Lambda application.

    1. True
    2. False

Answers to Assessment Test

  1. B. The Business plan offers access to a support API, but the Developer plan does not. See Chapter 1 for more information.

  2. B. Customers are responsible for managing the network configuration of EC2 instances. AWS is responsible for the physical network infrastructure. See Chapter 1 for more information.

  3. C. Simple Queue Service (SQS) allows for event-driven messaging within distributed systems that can decouple while coordinating the discrete steps of a larger process. See Chapter 1 for more information.

  4. A. The dedicated host option lets you see the number of physical CPU sockets and cores on a host. See Chapter 2 for more information.

  5. B. An elastic IP address will not change. A public IP address attached to an instance will change if the instance is stopped, as would happen when changing the instance type. See Chapter 2 for more information.

  6. A. A Quick Start AMI is independent of the instance type. See Chapter 2 for more information.

  7. D. With SSE-C you provide your own keys for Amazon to use to decrypt and encrypt your data. AWS doesn’t persistently store the keys. See Chapter 3 for more information.

  8. A. Durability corresponds to an average annual expected loss of objects stored on S3, not including objects you delete. Availability measures the amount of time S3 will be available to let you retrieve those objects. See Chapter 3 for more information.

  9. B. S3 uses a read-after-write consistency model for new objects, so once you upload an object to S3, it’s immediately available. See Chapter 3 for more information.

  10. C. You can’t change the primary CIDR for a VPC, so you must create a new one to connect it to your internal network. See Chapter 4 for more information.

  11. B. An EC2 instance can access the Internet from a private subnet provided it uses a NAT gateway or NAT instance. See Chapter 4 for more information.

  12. A. The definition of a public subnet is a subnet which "?>that has a default route pointing to an Internet gateway as a target. Otherwise, it’s a private subnet. See Chapter 4 for more information.

  13. C. DynamoDB is a key-value store which "?>that can be used to store items up to 400 KB in size. See Chapter 5 for more information.

  14. A. You can create a global secondary index for an existing table at any time. You can create a local secondary index only when you create the table. See Chapter 5 for more information.

  15. A. Enabling point-in-time recovery gives you an RPO of about five minutes. The recovery time objective (RTO) depends on the amount of data to restore. See Chapter 5 for more information.

  16. B. Revoking unnecessary access for IAM users is the most effective of the listed measures for protecting your AWS account. See Chapter 6 for more information.

  17. C. KMS can be used to encrypt Elastic Block Store (EBS) volumes which "?>that store an instance’s operating system. See Chapter 6 for more information.

  18. D. STS tokens expire while IAM access keys do not. An STS token can be used more than once. IAM access keys and STS tokens are both unique. An IAM principal can use an STS token. See Chapter 6 for more information.

  19. B. EC2 doesn’t track instance memory utilization. See Chapter 7 for more information.

  20. C. The transition to the ALARM state simply implies that the metric crossed a threshold but doesn’t tell you what the threshold is. Newly created alarms start out in the INSUFFICIENT_DATA state. See Chapter 7 for more information.

  21. A. Both store their logs in S3 buckets. See Chapter 7 for more information.

  22. A. An EC2 instance in a private subnet still has access to Amazon’s private DNS servers, which can resolve records stored in public hosted zones. See Chapter 8 for more information.

  23. C. Geoproximity routing routes users to the location closest to them. Geolocation routing requires you to create records for specific locations or create a default record. See Chapter 8 for more information.

  24. A. Route 53 is a true DNS service in that it can host zones for any domain name. You can also register domain names with or transfer them to Route 53. See Chapter 8 for more information.

  25. B. Lambda is a highly available, reliable, “serverless” compute platform that runs functions as- "?> needed and scales elastically to meet demand. EC2 spot instances can be shut down on short notice. See Chapter 9 for more information.

  26. A. A simple scaling policy changes the group size and then waits "?>has a cooldown period before doing so again. Step scaling policies don’t have cooldown periods. Target tracking policies attempt to keep a metric at a set value. PercentChangeInCapacity is a simple scaling adjustment type, not a scaling policy. See Chapter 9 for more information.

  27. A. Auto Scaling always attempts to maintain the minimum group size or, if set, the desired capacity. See Chapter 9 for more information.

  28. D. ElastiCache supports Memcached and Redis, but only the latter can store data persistently. See Chapter 10 for more information.

  29. B. Puppet is a configuration management platform that AWS offers via OpsWorks, "?> but is not itself an AWS service. See Chapter 10 for more information.

  30. B. S3 cross-region replication transfers objects between different buckets. Transfer acceleration uses a CloudFront edge location to speed up transfers between S3 and the Internet. See Chapter 10 for more information.

  31. A. You can deactivate STS for all regions except US East. See Chapter 11 for more information.

  32. A. GuardDuty looks for potentially malicious activity. Inspector looks for vulnerabilities that may result in compromise. Shield and Web Application Firewall protect applications from attack. See Chapter 11 for more information.

  33. A. Applying encryption to an unencrypted object will create a new, encrypted version of that object. Previous versions remain unencrypted. See Chapter 11 for more information.

  34. C. On-demand instances will continue to run and incur costs. Reserved instances cost the same whether they’re running or stopped. Spot instances will be terminated when the spot price exceeds your bid price. See Chapter 12 for more information.

  35. A. The EBS Lifecycle Manager can take scheduled snapshots of any EBS volume, regardless of attachment state. See Chapter 12 for more information.

  36. C. Elastic Container Service lets you run containers which "?>that can launch in a matter of seconds. EC2 instances take longer. Lambda is “serverless,” so you can’t use it to run a web server. CloudFront provides caching but isn’t a web server. See Chapter 12 for more information.

  37. A. Almost everything in CloudFormation is case sensitive. See Chapter 13 for more information.

  38. A, C. CodeDeploy looks for the appspec.yml file with the application files it is to deploy, which can be stored in S3 or on GitHub. See Chapter 13 for more information.

  39. B. You can use CodeDeploy to deploy an application to Lambda or EC2 instances. But an AWS Systems Manager command document works only on EC2 instances. See Chapter 13 for more information.

PART I
The Core AWS Services