MyCloudGuru Flashcards

1
Q

Which of the following are a part of AWS’ Networking & Content Delivery services?

(Choose 2)

A) Lambda

B) EC2

C) CloudFront

D) VPC

A

C) CloudFront

D) VPC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The VPC service is a member of which group of AWS services in the ‘All services’ view of the AWS Portal?

A) Networking & Content Delivery

B) Database Services

C) Global Infrastructure

D) Compute Services

A

A) Networking & Content Delivery

A Virtual Private Cloud (VPC) is a virtual network dedicated to a single AWS account. It is logically isolated from other virtual networks in the AWS cloud. VPC is found in the “Networking & Content Delivery” section of the AWS Portal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The AWS Global Infrastructure comprises Regions, Availability Zones, and edge locations, and there is a different number of each infrastructure element. Select the option that shows the correct order from greatest to least.

A) Number of Availability Zones > Number of Regions > Number of Edge Locations

B) Number of Edge Locations > Number of Availability Zones > Number of Regions

C) Number of Availability Zones > Number of Edge Locations > Number of Regions

D) Number of Regions > Number of Availability Zones > Number of Edge Locations

A

B) Number of Edge Locations > Number of Availability Zones > Number of Regions

Currently, there are more Edge Locations in the Global Cloud Infrastructure than Availability Zones; in turn, there are more Availability Zones than Regions. Reference: Global Infrastructure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an AWS region?

A) A region is a geographical area divided into Availability Zones. Each region contains at least two Availability Zones.

B) A region is a collection of Edge Locations available in specific countries.

C) A region is a subset of AWS technologies. For example, the Compute region consists of EC2, ECS, Lambda, etc.

D) A region is an independent data center, located in different countries around the globe.

A

A) A region is a geographical area divided into Availability Zones. Each region contains at least two Availability Zones.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

In which of the following is CloudFront content cached?

A) Region

B) Edge Location

C) Availability Zone

D) Data Center

A

B) Edge Location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does an AWS Region consist of?

A) A collection of databases that can only be accessed from a specific geographic region.

B) Each AWS Region consists of multiple, isolated, and physically separate Availability Zones within a geographic area.

C) A collection of data centers that is spread evenly around a specific continent.

D) A console that gives you a quick, global picture of your cloud computing environment.

A

B) Each AWS Region consists of multiple, isolated, and physically separate Availability Zones within a geographic area.

AWS has the concept of a Region, which is a physical location around the world where data centers are clustered. Each group of logical data centers is called an Availability Zone. Each AWS Region consists of multiple, isolated, and physically separate AZ’s within a geographic area.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an Amazon VPC?

A) Virtual Public Compute

B) Virtual Private Cloud

C) Virtual Private Compute

D) Virtual Public Cloud

A

B) Virtual Private Cloud

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which of the below are storage services in AWS?

(Choose 2)

A) EC2

B) S3

C) EFS

D) VPC

A

B) S3

C) EFS

S3 and EFS both provide the ability to store files in the cloud. EC2 provides compute, and is often augmented with other storage services. VPC is a networking service.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the below are AWS compute services?

(Choose 2)

A) S3

B) Lambda

C) VPC

D) EC2

A

B) Lambda

AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume.

D) EC2

Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale computing easier for developers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which of the below are factors that have helped make public cloud so powerful?

(Choose 2)

A) No special skills required

B) The ease of trying new solutions.

C) Traditional methods that are used for on-premise infrastructure always work just as well in cloud

D) Pay-as-you-go approach for pricing

A

B) The ease of trying new solutions.

D) Pay-as-you-go approach for pricing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

10,000 Foot Overview

Which of the below are database services from AWS?

(Choose 2)

A) S3

B) DynamoDB

C) EC2

D) Amazon RDS

A

B) DynamoDB

DynamoDB is a fast and flexible non-relational database service for any scale. DynamoDB enables customers to offload the administrative burdens of operating and scaling distributed databases to AWS so that they don’t have to worry about hardware provisioning, setup and configuration, throughput capacity planning, replication, software patching, or cluster scaling.

D) Amazon RDS

Amazon Relational Database Service (Amazon RDS) is a managed service that makes it easy to set up, operate, and scale a relational database in the cloud. Amazon RDS gives you access to the capabilities of a familiar MySQL, MariaDB, Oracle, SQL Server, or PostgreSQL database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Which statement best describes Availability Zones?

A) A Content Distribution Network used to distribute content to users.

B) Distinct locations from within an AWS region that are engineered to be isolated from failures.

C) Restricted areas designed specifically for the creation of Virtual Private Clouds.

D) Two zones containing compute resources that are designed to automatically maintain synchronized copies of each other’s data.

A

B) Distinct locations from within an AWS region that are engineered to be isolated from failures.

An Availability Zone (AZ) is a distinct location within an AWS Region. Each Region comprises at least two AZs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

You are a security administrator working for a hotel chain. You have a new member of staff who has started as a systems administrator, and she will need full access to the AWS console. You have created the user account and generated the access key id and the secret access key. You have moved this user into the group where the other administrators are, and you have provided the new user with their secret access key and their access key id. However, when she tries to log in to the AWS console, she cannot. Why might that be?

A) You have not applied the “log in from console” policy document to the user. You must apply this first so that they can log in.

B) Your user is trying to log in from the AWS console from outside the corporate network. This is not possible.

C) You cannot log in to the AWS console using the Access Key ID / Secret Access Key pair. Instead, you must generate a password for the user, and supply the user with this password and your organization’s unique AWS console login URL.

D) You have not yet activated multi-factor authentication for the user, so by default they will not be able to log in.

A

C) You cannot log in to the AWS console using the Access Key ID / Secret Access Key pair. Instead, you must generate a password for the user, and supply the user with this password and your organization’s unique AWS console login URL.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

You have created a new AWS account for your company, and you have also configured multi-factor authentication on the root account. You are about to create your new users. What strategy should you consider in order to ensure that there is good security on this account.

A) Require users only to be able to log in using biometric authentication.

B) Enact a strong password policy: user passwords must be changed every 45 days, with each password containing a combination of capital letters, lower case letters, numbers, and special symbols.

C) Give all users the same password so that if they forget their password they can just ask their co-workers.

D) Restrict login to the corporate network only.

A

B) Enact a strong password policy: user passwords must be changed every 45 days, with each password containing a combination of capital letters, lower case letters, numbers, and special symbols.

A password policy to set a minimum standard is good practice and is generally a top requirement for any industry compliance endorsement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Which statement best describes IAM?

A) IAM allows you to manage users, groups, roles, and their corresponding level of access to the AWS Platform.

B) IAM allows you to manage permissions for AWS resources only.

C) IAM stands for Improvised Application Management, and it allows you to deploy and manage applications in the AWS Cloud.

D) IAM allows you to manage users’ passwords only. AWS staff must create new users for your organization. This is done by raising a ticket.

A

A) IAM allows you to manage users, groups, roles, and their corresponding level of access to the AWS Platform.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

When you create a new user, that user ____.

A) Will be able to interact with AWS using their access key ID and secret access key using the API, CLI, or the AWS SDKs assuming programmatic access was enabled.

B) Will only be able to log in to the console in the region in which that user was created.

C) Will be able to log in to the console anywhere in the world, using their access key ID and secret access key.

D) Will be able to log in to the console only after multi-factor authentication is enabled on their account.

A

A) Will be able to interact with AWS using their access key ID and secret access key using the API, CLI, or the AWS SDKs assuming programmatic access was enabled.

To access the console you use an account and password combination. To access AWS programmatically you use a Key and Secret Key combination

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Power User Access allows ____.

A) Read Only access to all AWS services and resources.

B) Users to inspect the source code of the AWS platform

C) Full Access to all AWS services and resources.

D) Access to all AWS services except the management of groups and users within IAM.

A

D) Access to all AWS services except the management of groups and users within IAM.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Which of the following is not a feature of IAM?

A) IAM integrates with existing active directory account allowing single sign-on.

B) IAM allows you to set up biometric authentication, so that no passwords are required.

C) IAM offers centralized control of your AWS account.

D) IAM offers fine-grained access control to AWS resources.

A

B) IAM allows you to set up biometric authentication, so that no passwords are required.

AWS makes use of Accounts & Passwords, or Keys and Secret keys, and MFA, to prove identity. You may have a 3rd party device that uses BioMetrics to initiate and exchange of the password or secret key with AWS, but that is not an AWS / IAM service.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

In what language/format are policy documents written?

A) Python

B) Node.js

C) Java

D) JSON

A

D) JSON

JavaScript Object Notation is a human-readable and easily parsed structured data format used to pass blocks of data into and between systems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What level of access does the “root” account have?

A) Administrator Access

B) Read-only Access

C) Power User Access

D) No Access

A

A) Administrator Access

The root account in an AWS account represents the Owner of the account and can do anything including changing billing details and even close the account. The details for this account should be locked away and only used when absolutely necessary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Every user you create in the IAM systems starts with ____.

A) No Permissions

B) Partial Permissions

C) Inherited Permissions

D) Full Permissions

A

A) No Permissions

AWS systems are designed to be secure first. The system administrator needs to add permissions to allow accounts to take actions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is the default level of access a newly created IAM User is granted?

A) Read-only access to all AWS services.

B) Power user access to all AWS services.

C) No access to any AWS services.

D) Administrator access to all AWS services.

A

C) No access to any AWS services.

By default new IAM Users have no permissions to AWS services. They must be explicitly granted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

You are a solutions architect working for a large engineering company that are moving from a legacy infrastructure to AWS. You have configured the company’s first AWS account and you have set up IAM. Your company is based in Andorra, but there will be a small subsidiary operating out of South Korea, so that office will need its own AWS environment. Which of the following statements is true?

A) You will need to configure your policy documents regionally, however your users are global.

B) You will then need to configure Users and Policy Documents for each region, respectively.

C) You will need to configure Users and Policy Documents only once, as these are applied globally.

D) You will need to configure your users regionally, however your policy documents are global.

A

C) You will need to configure Users and Policy Documents only once, as these are applied globally.

IAM is a Global service.
You can have regional conditions in policies, however by default users & policies are Global.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is an additional way to secure the AWS accounts of both the root account and new users alike?

A) Implement Multi-Factor Authentication for all accounts.

B) Configure the AWS Console so that you can only log in to it from your internal network IP address range.

C) Store the access key id and secret access key of all users in a publicly accessible plain text document on S3 of which only you and members of your organization know the address.

D) Configure the AWS Console so that you can only log in to it from a specific IP Address range

A

A) Implement Multi-Factor Authentication for all accounts.

MFA provides an additional requirement for the person signing on to prove that they are who they claim to be. Username & password are things you ‘know’ the MFA is something that you ‘have’. e.g. you have the only device that can generate the token.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

A __ is an object in AWS stored as a JSON document that provides a formal statement of one or more permissions.

A) User

B) Role

C) Group

D) Policy

A

D) Policy

A policy is an object in AWS that, when associated with an identity or resource, defines their permissions. Most policies are stored in AWS as JSON documents.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Which of the following is not a component of IAM?

A) Organizational Units

B) Roles

C) Groups

D) Users

A

A) Organizational Units

Correct. Organization Units, or ‘OUs’ are a feature of AWS Organizations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Identity Access Management & S3

You are a developer at a fast-growing startup. Until now, you have used the root account to log in to the AWS console. However, as you have taken on more staff, you will need to stop sharing the root account to prevent accidental damage to your AWS infrastructure. What should you do so that everyone can access the AWS resources they need to do their jobs?

(Choose 2)

A) Create an additional AWS root account for each new user.

B) Give your users the root account credentials so that they can also sign in.

C) Create individual user accounts with minimum necessary rights and tell the staff to log in to the console using the credentials provided.

D) Create a customized sign-in link such as “yourcompany.signin.aws.amazon.com/console” for your new users to use to sign in with.

A

C) Create individual user accounts with minimum necessary rights and tell the staff to log in to the console using the credentials provided.

D) Create a customized sign-in link such as “yourcompany.signin.aws.amazon.com/console” for your new users to use to sign in with.

Read the AWS Security Best Practice white paper. Also note that the IAM account signin URL is different from the Root account signin URL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Your company has launched a new app. To access the app files, the development team needs access to a bucket that is located within your team’s AWS account. The development team is using a different account and requires programmatic and console level access to your team’s S3 bucket. How would you share this bucket with the development team’s account?

A) Setting up a cross account IAM Role

B) Setting up a resource-based policy

C) Setting up a Resource Based Access Control List (ACL)

D) Setting up a shared IAM policy

A

A) Setting up a cross account IAM Role

Setting up a cross account IAM role is currently the only method that will allow IAM users to access cross account S3 buckets both programmatically and via the AWS console.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

You have a client who is considering a move to AWS. In establishing a new account, what is the first thing the company should do?

A) Set up an account via SNS (Simple Notification Service)

B) Set up an account using Cloud Search.

C) Set up an account using their company email address.

D) Set up an account via SQS (Simple Queue Service).

A

C) Set up an account using their company email address.

This email address is a key part of linking the AWS account to your company. Using a private email address may make it harder to establish ownership if your need help from AWS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

A new employee has just started work, and it is your job to give her administrator access to the AWS console. You have given her a user name, an access key ID, a secret access key, and you have generated a password for her. She is now able to log in to the AWS console, but she is unable to interact with any AWS services. What should you do next?

A) Tell her to log out and try logging back in again.

B) Grant her Administrator access by adding her to an Administrators’ group.

C) Ensure she is logging in to the AWS console from your corporate network and not the normal internet.

D) Require multi-factor authentication for her user account.

A

B) Grant her Administrator access by adding her to an Administrators’ group.

By default new user accounts come with no permission to interact with services. These must be explicitly assigned by adding a Policy or adding them to a Group. The admin user should have also been configured with MFA as best practice, but MFA would not be related to the permission issue itself.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

To retrieve instance metadata or user data you will need to use the following IP Address:

A) http://192.168.0.254

B) http://127.0.0.1

C) http://10.0.0.1

D) http://169.254.169.254

A

D) http://169.254.169.254

This IP Address is specific to AWS, where you can use it on any instance to acquire information about that instance. It is a specific type of address called a ‘link-local address’, and is only accessible from that particular instance. You can also disable the metadata service to prevent it’s misuse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

To help you manage your Amazon EC2 instances, you can assign your own metadata in the form of ____.

A) Wildcards

B) Certificates

C) Notes

D) Tags

A

D) Tags

Tagging is a key part of managing an environment. Even in a lab, it is easy to lose track of the purpose of resources, and tricky determine why it was created and if it is still needed. This can rapidly translate into lost time and lost money.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

Which AWS CLI command should I use to create a snapshot of an EBS volume?

A) aws ec2 new-snapshot

B) aws ec2 create-snapshot

C) aws ec2 fresh-snapshot

D) aws ec2 deploy-snapshot

A

B) aws ec2 create-snapshot

When looking at the AWS CLI, remember the verbs, like ‘create’, which are used as part of commands. This helps you build the necessary command in your head, without referring to the documentation. For example, we might create a new image along with this snapshot. From this, we could understand that the command would likely be ‘aws ec2 create-image’.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

If an Amazon EBS volume is attached as an additional disk (not the root volume), can I detach it without stopping the instance?

A) Yes, although it may take some time.

B) No, you will need to stop the instance.

A

A) Yes, although it may take some time.

Since the additional disk does not contain the operating system, you can detach it in the EC2 Console while the instance is running. However, any data on that drive would become inaccessible, and possibly cause problems for the EC2 instance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

When creating a new security group, all inbound traffic is allowed by default.

TRUE / FALSE

A

FALSE

There are slight differences between a normal ‘new’ Security Group and a ‘default’ security group in the default VPC. For a ‘new’ security group nothing is allowed in by default.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

EBS Snapshots are backed up to S3 in what manner?

A) Exponentially

B) Differentially

C) Incrementally

D) EBS snapshots are NOT stored on S3.

A

C) Incrementally

EBS snapshots use incremental backups and are stored in S3. Restores can be done from any of the snapshots. The original full snapshot can be safely deleted without impacting the ability to use the other related incremental backups.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

Can Spread Placement Groups be deployed across multiple Availability Zones?

A) No.

B) Yes.

C) Yes, but only using the AWS API.

D) Only in Us-East-1.

A

B) Yes.

Spread Placement Groups can be deployed across availability zones since they spread the instances further apart. Cluster Placement Groups can only exist in one Availability Zone since they are focused on keeping instances together, which you cannot do across Availability Zones.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

Is it possible to perform API actions on an existing Amazon EBS Snapshot?

A) Yes, it possible to perform API actions on an existing Amazon EBS Snapshots.

B) It depends on the region.

C) EBS does not have snapshot functionality.

D) No

A

A) Yes, it possible to perform API actions on an existing Amazon EBS Snapshots.

It possible to perform API actions on an existing Amazon EBS Snapshot through the AWS APIs, CLI, and AWS Console. You can use AWS APIs, CLI or the AWS Console to copy snapshots, share snapshots, and create volumes from snapshots.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

You need to know both the private IP address and public IP address of your EC2 instance. You should ____.

A) Use the following command: AWS EC2 DisplayIP.

B) Retrieve the instance Metadata from http://169.254.169.254/latest/meta-data/local-ipv4 and http://169.254.169.254/latest/meta-data/public-ipv4.

C) Run IPCONFIG (Windows) or IFCONFIG (Linux).

D) Retrieve the instance User Data from http://169.254.169.254/latest/user-data/.

A

B) Retrieve the instance Metadata from http://169.254.169.254/latest/meta-data/local-ipv4 and http://169.254.169.254/latest/meta-data/public-ipv4.

Instance Metadata and User Data can be retrieved from within the instance via a special URL. Similar information can be extracted by using the API via the CLI or an SDK. The ipconfig and ifconfig tools don’t have the ability to see the Public IP Address directly, since it’s attached dynamically inside the AWS Software Defined Network which has to be queried by the API.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

What type of storage are Amazon’s EBS volumes based on?

A) Object-based

B) File-based

C) Block-based

D) Database-based

A

C) Block-based

EBS uses Block-based storage, where the data is stored on a virtual disk managed by the Operating System. EFS uses File-based storage, where the underlying filesystem is managed by AWS. S3 uses Object-based storage, where files are kept in a flat structure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

The use of a cluster placement group is ideal ___

A) When you need to distribute content on a CDN network.

B) When you need to deploy EC2 instances that require high disk IO.

C) Your fleet of EC2 Instances requires low latency and high network throughput across multiple availability zones.

D) Your fleet of EC2 instances requires high network throughput and low latency within a single availability zone.

A

D) Your fleet of EC2 instances requires high network throughput and low latency within a single availability zone.

Cluster Placement Groups are primarily about keeping you compute resources within one network hop of each other on high speed rack switches. This is only helpful when you have compute loads with network loads that are either very high or very sensitive to latency.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

Standard Reserved Instances can be moved between regions

TRUE / FALSE

A

FALSE

Standard Reserved Instances cannot be moved between regions. You can choose if a Reserved Instance applies to either a specific Availability Zone, or an Entire Region, but you cannot change the region.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

Will an Amazon EBS root volume persist independently from the life of the terminated EC2 instance to which it was previously attached? In other words, if I terminated an EC2 instance, would that EBS root volume persist?

A) Yes - But only for certain instance types

B) Yes - It will always persist until deleted manually

C) No - Unless ‘Delete on Termination’ is unchecked for the root volume

D) No - It will always be deleted immediately on termination

A

C) No - Unless ‘Delete on Termination’ is unchecked for the root volume

You can control whether an EBS root volume is deleted when its associated instance is terminated. The default delete-on-termination behavior depends on whether the volume is a root volume, or an additional volume. By default, the DeleteOnTermination attribute for root volumes is set to ‘true.’ However, this attribute may be changed at launch by using either the AWS Console or the command line. For an instance that is already running, the DeleteOnTermination attribute must be changed using the CLI.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

In order to enable encryption at rest using EC2 and Elastic Block Store, you must ____.

A) Configure encryption using the appropriate Operating Systems file system

B) Configure encryption using X.509 certificates

C) Mount the EBS volume in to S3 and then encrypt the bucket using a bucket policy.

D) Configure encryption when creating the EBS volume

A

D) Configure encryption when creating the EBS volume

The use of encryption at rest is default requirement for many industry compliance certifications. Using AWS managed keys to provide EBS encryption at rest is a relatively painless and reliable way to protect assets and demonstrate your professionalism in any commercial situation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

When updating the policy used by an IAM Role attached to an EC2 instance, what needs to happen for the changes to take effect?

A) Reattach the IAM Role to the EC2 instance

B) Wait up to 15 minutes for the change to take effect

C) Nothing - It will take effect almost immediately

D) Reboot the instance to force the change

A

C) Nothing - It will take effect almost immediately

Changes to IAM Policies take effect almost immediately (with maybe a few seconds delay). No substantial waiting time is required, nor changes to the system. This is because the IAM Policy exists in the AWS API, rather than on the instance itself. As a way to remember it in a scenario, if you think about a compromised system, you would need to revoke the access immediately, without waiting for changes to take effect.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

When can you attach/replace an IAM role on an EC2 instance?

A) Anytime, but only if there isn’t already an attached IAM Role

B) Only during launch and cannot be changed once the instance is launched

C) To attach an IAM role to an instance that has no role, the instance can be in the stopped or running state. To replace the IAM role on an instance that already has an attached IAM role, the instance must be in the running state.

D) Anytime, but the instance must be stopped

A

C) To attach an IAM role to an instance that has no role, the instance can be in the stopped or running state. To replace the IAM role on an instance that already has an attached IAM role, the instance must be in the running state.

IAM Roles can be attached to instances in the stopped or running state, or replaced for instances in the running state. Prior to early 2017, you would only be able to attach an IAM role at launch, and if you wanted to attach a role, you would have to terminate and re-launch the instance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

Specifically, where in the AWS Global Infrastructure are EC2 instances provisioned?

A) In Availability Zones

B) Globally

C) In Regions

A

A) In Availability Zones

When you’re setting up an EC2 instance, you select which subnet you’d like to place your EC2 instance in. Each subnet is tied to a specific availability zone. You cannot move an instance between Availability Zones, without setting up a copied version of the instance. Whilst they exist in Regions, they are not portable across the whole region, nor across the whole globe.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

TRUE / FALSE

Spread Placement Groups can be deployed across multiple Availability Zones.

A

TRUE

Spread Placement Groups can be deployed across availability zones since they spread the instances further apart. Cluster Placement Groups can only exist in one Availability Zone since they are focused on keeping instances together, which you cannot do across Availability Zones.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q

Which service would you use to run a general Windows File Server with minimal overhead?

A) EBS Multi Attach

B) S3

C) FSx for Windows

D) EFS

A

C) FSx for Windows

Amazon FSx for Windows File Server provides a fully managed native Microsoft Windows file system so you can easily move your Windows-based applications that require shared file storage to AWS. EBS Multi Attach allows you to attach a volume to up to 16 instances, but would have issues across multiple availability zones, and could not use NTFS natively. EFS uses the NFS protocol, and is explicitly not supported on Windows. S3 is object-based storage, and would not be suitable as the backend for a file server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

Which of the following provide the least expensive EBS options?

(Choose 2)

A) Cold (sc1)

B) Throughput Optimized (st1)

C) Provisioned IOPS (io1)

D) General Purpose (gp2)

A

A) Cold (sc1)

B) Throughput Optimized (st1)

Of all the EBS types, both current and of the previous generation, HDD based volumes will always be less expensive than SSD types. Therefore, of the options available in the question, the Cold (sc1) and Throughout Optimized (st1) types are HDD based and will be the least expensive options.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
51
Q

Can I delete a snapshot of the root device of an EBS volume used by a registered AMI?

A) Only via the Command-Line.

B) No.

C) Yes.

D) Only using the AWS API.

A

B) No.

If the original snapshot was deleted, then the AMI would not be able to use it as the basis to create new instances. For this reason, AWS protects you from accidentally deleting the EBS Snapshot, since it could be critical to your systems. To delete an EBS Snapshot attached to a registered AMI, first remove the AMI, then the snapshot can be deleted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q

Which EC2 feature uses SR-IOV?

A) IAM Roles

B) Bootstrap Scripts (User Data)

C) Enhanced networking

D) CloudWatch Agent

A

C) Enhanced networking

Enhanced networking uses single root I/O virtualization (SR-IOV) to provide high-performance networking capabilities on supported instance types. SR-IOV is a method of device virtualization that provides higher I/O performance and lower CPU utilization when compared to traditional virtualized network interfaces. Enhanced networking provides higher bandwidth, higher packet per second (PPS) performance, and consistently lower inter-instance latencies.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q

What are the valid underlying hypervisors for EC2?

(Choose 2)

A) ESX

B) Xen

C) OVM

D) Hyper-V

E) Nitro

A

B) Xen

E) Nitro

AWS originally used a modified version of the Xen Hypervisor to host EC2. In 2017, AWS began rolling out their own Hypervisor called Nitro.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
54
Q

TRUE / FALSE

When creating a single-AZ Amazon RDS instance, you can select the Availability Zone into which you deploy it.

A

TRUE

When you create a DB instance, you can choose an Availability Zone or have AWS choose one for you. An Availability Zone is represented by an AWS Region code followed by a letter identifier (for example, us-east-1a).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
55
Q

What data transfer charge is incurred when replicating data between Availability Zones for your Amazon RDS MySQL in a Multi-AZ deployment?

A) The charge is half of the standard data transfer charge.

B) The charge is double the standard data transfer charge.

C) There is no charge associated with this action.

D) The charge is the same as the standard data transfer charge.

A

C) There is no charge associated with this action.

Data transferred between Availability Zones for replication of Multi-AZ deployments is free.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
56
Q

In RDS, what is the maximum value I can set for my backup retention period?

A) 30 Days

B) 15 Days

C) 45 Days

D) 35 Days

A

D) 35 Days

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
57
Q

Which set of RDS database engines is currently available?

A) Amazon Aurora, MySQL, MariaDB, Oracle, SQL Server, and PostgreSQL

B) Aurora, MySQL, SQL Server, Cassandra

C) MariaDB, SQL Server, MySQL, Cassandra

D) PostgreSQL, MariaDB, MongoDB, Aurora

A

A) Amazon Aurora, MySQL, MariaDB, Oracle, SQL Server, and PostgreSQL

Amazon RDS supports Amazon Aurora, MySQL, MariaDB, Oracle, SQL Server, and PostgreSQL database engines.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
58
Q

If you are using Amazon RDS Provisioned IOPS storage with a Microsoft SQL Server database engine, what is the maximum size RDS volume you can have by default?

A) 16TB

B) 32TB

C) 500GB

D) 6TB

E) 1TB

A

A) 16TB

You can create Amazon RDS for SQL Server database instances with up to 16TB of storage. The 16TB storage limit is available when using the Provisioned IOPS and General Purpose (SSD) storage types.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
59
Q

TRUE / FALSE

RDS Reserved instances are available for multi-AZ deployments.

A

TRUE

Reserved DB instance benefits apply for both Multi-AZ and Single-AZ configurations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
60
Q

Which of the following is NOT a feature supported by DynamoDB?

A) The primary key can be either a single-attribute or a composite partition-sort key

B) The ability to perform operations by using a user-defined primary key

C) Data reads that are either eventually consistent or strongly consistent

D) Amazon DynamoDB supports MongoDB workloads.

A

D) Amazon DynamoDB supports MongoDB workloads.

This is not a feature supported by DynamoDB. Amazon DocumentDB (with MongoDB compatibility) is a fast, scalable, highly available, and fully managed document database service that supports MongoDB workloads.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
61
Q

Which SQL-based relational database is suitable for high-performance OLTP (Online Transactional Processing) workloads?

A) Amazon DynamoDB

B) Amazon RDS with Provisioned IOPS (SSD) Storage

C) Amazon ElastiCache

D) Amazon Redshift

A

B) Amazon RDS with Provisioned IOPS (SSD) Storage

Amazon RDS with provisioned IOPS (SSD) storage allows you to implement a SQL-based relational database solution for your high-performance OLTP workloads.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
62
Q

Which of the following AWS services is a non-relational database?

A) Amazon DynamoDB

B) Amazon Redshift

C) Amazon ElastiCache

D) Amazon RDS

A

A) Amazon DynamoDB

Amazon DynamoDB is a non-relational database that delivers reliable performance at any scale. It’s a fully managed, multi-region, multi-master database that provides consistent single-digit millisecond latency, and offers built-in security, backup and restore, and in-memory caching.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
63
Q

Under what circumstances would I choose provisioned IOPS over standard storage when creating an RDS instance?

A) If you have workloads that are not sensitive to latency/lag.

B) If this was a test Database.

C) If you need to run an I/O-intensive relational database for a mission-critical application in production.

D) If your business was trying to save money.

A

C) If you need to run an I/O-intensive relational database for a mission-critical application in production.

Provisioned IOPS becomes important when you are running production environments requiring rapid responses, such as those which run e-commerce websites. Without high performant responses from an RDS instance page loads of the website could suffer resulting in loss of business. If your workloads are not latency sensitive or you are running a test environment the additional cost of provisioned IOPS will not be cost beneficial to your project.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
64
Q

TRUE / FALSE

You can SSH into and control the operating system where your Amazon RDS MySQL instance is running.

A

FALSE

Amazon RDS provides a managed database offering, so you can’t SSH and have control over the underlying operating system configurations where your Amazon RDS MySQL instance is running. You can only have such control when you deploy and manage your databases on EC2 instances.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
65
Q

In RDS, when are changes to the backup window implemented?

A) The next day

B) During the next scheduled maintenance window or immediately

C) You cannot back up in RDS.

D) After 30 minutes

A

B) During the next scheduled maintenance window or immediately

When applying changes to the backup window, you can choose either to have the changes done during the next scheduled maintenance window or immediately. The schedule itself is modified right away.

66
Q

How many copies of my data does RDS - Aurora store by default?

A) 1

B) 3

C) 2

D) 6

A

D) 6

Amazon Aurora automatically maintains 6 copies of your data across 3 Availability Zones.

67
Q

You are hosting a MySQL database on the root volume of an EC2 instance. The database is using a large number of IOPS, and you need to increase the number of IOPS available to it. What should you do?

A) Add 2 additional EBS SSD volumes and create a RAID 0 volume to host the database.

B) Migrate the database to Glacier.

C) Migrate the database to an S3 bucket.

D) Use CloudFront to cache the database.

A

A) Add 2 additional EBS SSD volumes and create a RAID 0 volume to host the database.

RAID 0 provides performance improvements compared with a single volume as data can be read and written to multiple disks simultaneously. 2 disks, each with a bandwidth of 4,000 IOPS will provide a combined bandwidth of 8,000 IOPS.

68
Q

Which AWS service is ideal for Business Intelligence Tools/Data Warehousing?

A) Redshift

B) ElastiCache

C) Elastic Beanstalk

D) DynamoDB

A

A) Redshift

69
Q

What happens to the I/O operations of a single-AZ RDS instance during a database snapshot or backup?

A) I/O may be briefly suspended while the backup process initializes (typically under a few seconds), and you may experience a brief period of elevated latency.

B) I/O operations to the database are sent to a Secondary instance of a Multi-AZ installation (for the duration of the snapshot.)

C) I/O operations will function normally.

D) Nothing.

A

A) I/O may be briefly suspended while the backup process initializes (typically under a few seconds), and you may experience a brief period of elevated latency.

70
Q

Amazon’s ElastiCache uses which two engines?

A) Redis & Memcached

B) Redis & Memory

C) MyISAM & InnoDB

D) Reddit & Memcrush

A

A) Redis & Memcached

71
Q

MySQL installations default to port number ____.

A) 3306

B) 80

C) 1433

D) 3389

A

A) 3306

72
Q

Which of the following is most suitable for OLAP (Online Analytical Processing)?

A) RDS

B) Redshift

C) DynamoDB

D) ElastiCache

A

B) Redshift

Redshift is the most suitable AWS database for OLAP (Online Analytical Processing).

73
Q

Which of the following data formats does Amazon Athena support?

(Choose 3)

A) Apache Parquet

B) JSON

C) XML

D) Apache ORC

A

A) Apache Parquet

B) JSON

D) Apache ORC

Amazon Athena is an interactive query service that makes it easy to analyse data in Amazon S3, using standard SQL commands. It will work with a number of data formats including “JSON”, “Apache Parquet”, “Apache ORC” amongst others, but “XML” is not a format that is supported.

74
Q

If I wanted to run a database on an EC2 instance, which of the following storage options would Amazon recommend?

A) S3

B) RDS

C) EBS

D) Glacier

A

C) EBS

Elastic Block Storage (EBS) is recommended block level storage for EC2 instances if you were running a database on an EC2 instance. If the question didn’t focus on the solution being on the instance, RDS would be the preferred choice.

75
Q

TRUE / FALSE

With new RDS DB instances, automated backups are enabled by default?

A

TRUE

76
Q

TRUE / FALSE

DB security groups are used with DB instances that are not in a VPC and on the EC2-Classic platform. When you create a DB security group, you need to specify a destination port number.

A

FALSE

You don’t need to specify a destination port number when you create DB security group rules. The port number defined for the DB instance is used as the destination port number for all rules defined for the DB security group.

77
Q

Which of the following DynamoDB features are chargeable, when using a single region?

(Choose 2)

A) Local secondary indexes

B) Incoming Data Transfer

C) Read and Write Capacity

D) Storage of Data

A

C) Read and Write Capacity

D) Storage of Data

There will always be a charge for provisioning read and write capacity and the storage of data within DynamoDB, therefore these two answers are correct. There is no charge for the transfer of data into DynamoDB, providing you stay within a single region (if you cross regions, you will be charged at both ends of the transfer). There is no charge for local secondary indexes.

78
Q

If you want your application to check RDS for an error, have it look for an __ node in the response from the Amazon RDS API.

A) Incorrect

B) Error

C) Exit

D) Abort

A

B) Error

Typically, you want your application to check whether a request generated an error before you spend any time processing results. The easiest way to find out if an error occurred is to look for an Error node in the response from the Amazon RDS API.

79
Q

AWS’s NoSQL product offering is known as ____.

A) DynamoDB

B) MySQL

C) RDS

D) MongoDB

A

A) DynamoDB

80
Q

You are hosting websites in the eu-west-2 and ap-southeast-2 regions, and would like visitors from United Kingdom to see a different site than those in Australia. Which Routing Policy would help you to accomplish this?

(Choose 2)

A) Latency routing policy

B) Geolocation routing policy

C) Failover routing policy

D) Geoproximity routing policy

A

B) Geolocation routing policy

Geolocation routing lets you choose the resources that serve your traffic based on the geographic location of your users, meaning the location that DNS queries originate from. For example, you might want all queries from Europe to be routed to an ELB load balancer in the Frankfurt region.

D) Geoproximity routing policy

Geoproximity routing lets Amazon Route 53 route traffic to your resources based on the geographic location of your users and your resources.

81
Q

Your company hosts 8 web servers all serving the same web content in AWS. They want Route 53 to serve traffic to random web servers. Which routing policy will meet this requirement, and provide the best resiliency?

A) Latency Routing

B) Weighted Routing

C) Multivalue Routing

D) Simple Routing

A

C) Multivalue Routing

R53 Multivalue lets you respond to DNS queries with up to eight IP addresses of ‘healthy’ targets. Plus it will give a different set of 8 to different DNS resolvers. The R53 Simple policy will provide a list of multiple instances in random order, but Multivalue is the AWS preferred option for this type of service.

82
Q

True or False: There is a limit to the number of domain names that you can manage using Route 53.

A) False. By default, you can support as many domain names on Route 53 as you want.

B) True. There is a hard limit of 10 domain names. You cannot go above this number.

C) True and False. With Route 53, there is a default limit of 20 domain names. However, this limit can be increased by contacting AWS support.

A

C) True and False. With Route 53, there is a default limit of 20 domain names. However, this limit can be increased by contacting AWS support.

The limit is 20 for new customers as of March 2021. If you have an existing account and your default limit is 50 now, it will remain at 50.

83
Q

You have an enterprise solution that operates Active-Active with facilities in Regions US-West and India. Due to growth in the Asian market you have been directed by the CTO to ensure that only traffic in Asia (between Turkey and Japan) is directed to the India Region. Which of these will deliver that result?

(Choose 2)

A) Route 53 - Geolocation routing policy

B) Latency routing policy. This will ensure only customers that are close will go to the India installation.

C) CloudFront - a combination of blacklisting and whitelisting to control which countries go to which site

D) Route 53 - Weighted routing policy, calculate the proportion of customers in each and weight the policy to ensure that each location gets a fair load.

E) Route 53 - Geoproximity routing policy

A

A) Route 53 - Geolocation routing policy

E) Route 53 - Geoproximity routing policy

The instruction from the CTO is clear that that the division is based on geography. Latency based routing will approximate geographic balance only when all routes and traffic evenly supported which is rarely the case due to infrastructure and day night variations. You cannot combine blacklisting and whitelisting in CloudFront. Weighted routing is randomized and will not respect Geo boundaries. Geolocation is based on national boundaries and will meet the needs well. Geoproximity is based on Latitude & Longitude and will also provide a good approximation with potentially less configuration.

84
Q

In AWS Route 53, which of the following are true?

(Choose 2)

A) Route 53 allows you to create a CNAME record that has the same name as the hosted zone (the zone apex)

B) Alias Records can point at any resource with a Canonical Name.

C) Alias Records can point at any resources in AWS, but only within the same account

D) A CNAME record assigns an Alias name to an IP address.

E) Route 53 allows you to create an Alias record at the top node of a DNS namespace (zone apex)

F) Alias Records provide a Route 53–specific extension to DNS functionality

A

E) Route 53 allows you to create an Alias record at the top node of a DNS namespace (zone apex)

F) Alias Records provide a Route 53–specific extension to DNS functionality

Alias Records have special functions that are not present in other DNS servers. Their main function is to provide special functionality and integration into AWS services. Unlike CNAME records, they can also be used at the Zone Apex, where CNAME records cannot. Alias Records can also point to AWS Resources that are hosted in other accounts by manually entering the ARN

85
Q

Which of the following Route 53 policies allow you to route data to a second resource if the first is unhealthy, and route data to resources that have better performance?

A) Failover Routing and Latency-based Routing

B) Geolocation Routing and Latency-based Routing

C) Failover Routing and Simple Routing

D) Geoproximity Routing and Geolocation Routing

A

A) Failover Routing and Latency-based Routing

Failover Routing and Latency-based Routing are the only two correct options, as they consider routing data based on whether the resource is healthy or whether one set of resources is more performant than another. Any answer containing location based routing (Geoproximity and Geolocation) cannot be correct in this case, as these types only consider where the client or resources are located before routing the data. They do not take into account whether a resource is online or slow. Simple Routing can also be discounted as it does not take into account the state of the resources.

86
Q

Route 53 is named so because ____.

A) Beats me: only people in marketing can tell you the reason behind its name.

B) The route part of the Route 53 name came from a reference to Route 66. The 53 part came from the fact that the port for DNS is 53.

C) Route 66 was already registered with Microsoft.

D) It was invented in 1953.

A

B) The route part of the Route 53 name came from a reference to Route 66. The 53 part came from the fact that the port for DNS is 53.

87
Q

TRUE / FALSE

A

TRUE

Route 53 is Amazon’s highly available and scalable cloud DNS web service.

88
Q

You have created a new subdomain for your popular website, and you need this subdomain to point to an Elastic Load Balancer using Route53. Which DNS record set type (or DNS extension type) could you create? (Choose 2).

(Choose 2)

A) CNAME

B) Alias

C) AAAA

D) A

E) MX

A

A) CNAME

B) Alias

CNAME maps to the host name

An alias could be created for the ELB. Alias records provide a Route 53–specific extension to DNS functionality

89
Q

How many Amazon VPCs are allowed per AWS account per AWS Region? (Before any support requests to increase the number).

A) 2

B) 1

C) 6

D) 5

A

D) 5

You can have up to five Amazon VPCs per AWS account per AWS Region, but you can place a support request to increase the number.

90
Q

VPC stands for:

A) Very Public Cloud

B) Virtual Private Cloud

C) Virtual Public Cloud

D) Very Private Cloud

A

B) Virtual Private Cloud

VPC stand for Virtual Private Cloud. It is a logically isolated (private) section where you can place AWS resources within a virtual network.

91
Q

In a default VPC, when you launch an EC2 instance and don’t specify a subnet, the EC2 instances are assigned 2 IP addresses at launch. What are they?

A) A Public IP Address & Secret IP Address

B) An Elastic IP Address & Public IP Address

C) An IPv6 Address and Elastic IP Address

D) A Private IP Address & Public IP Address

A

D) A Private IP Address & Public IP Address

In a default VPC, when you launch an EC2 instance and don’t specify a subnet, it’s automatically launched into a default subnet in your default VPC. The default subnet may MapPublicIPOnLaunch set to the value of true. So when it is launched, a public and private IP is available for the instance.

92
Q

To save administration headaches, a consultant advises that you leave all security groups in web-facing subnets open on port 22 to 0.0.0.0/0 CIDR. That way, you can connect wherever you are in the world. Is this a good security design?

A) Yes

B) No

A

B) No

0.0.0.0/0 would allow ANYONE from ANYWHERE to connect to your instances. This is generally a bad plan. The phrase ‘web-facing subnets’ does not mean just web servers. It would include any instances in that subnet some of which you may not want strangers attacking. You would only allow 0.0.0.0/0 on port 80 or 443 to connect to your public-facing Web Servers, or preferably only to an ELB. Good security starts by limiting public access to only what the customer needs. Please see the AWS Security white paper for complete details.

93
Q

Which of the following is a chief advantage of using VPC gateway endpoints to connect your VPC to services such as S3 and DynamoDB?

A) VPC gateway endpoints are dedicated hardware devices that cannot be accessed without the correct IAM credentials.

B) VPC gateway endpoints ensure traffic between your VPC and the other service does not leave the Amazon network.

C) VPC gateway endpoints offer a faster path through the public internet than with a NAT instance.

D) VPC gateway endpoints require public IP addresses, offering rapid connectivity from the public internet.

A

B) VPC gateway endpoints ensure traffic between your VPC and the other service does not leave the Amazon network.

In contrast to a NAT gateway, traffic between your VPC and the other services does not leave the Amazon network when using VPC gateway endpoints. A gateway endpoint is a gateway that you specify as a target for a route in your route table for traffic destined to a supported AWS service (S3 and DynamoDB).

94
Q

When you create a custom VPC, which of the following are created automatically?

(Choose 3)

A) Network Access Control List (ACL)

B) Route Table

C) Security Group

D) NAT Gateway

E) Subnets

F) Internet Gateway

A

A) Network Access Control List (ACL)

B) Route Table

C) Security Group

When you create a custom VPC, a default Security Group, network access control list (ACL), and route table are created automatically. You must create your own subnets, internet gateway, and NAT gateway (if you need one).

95
Q

TRUE / FALSE

When peering VPCs, you may peer your VPC only with another VPC in your same AWS account.

A

FALSE

You may peer a VPC to another VPC that’s in your same account, or to any VPC in any other account.

96
Q

At which of the following levels can VPC Flow Logs be created?

(Choose 3)

A) Account Level

B) Subnet Level

C) Network Access Control List Level

D) Network Interface Level

E) Security Group Level

F) VPC Level

A

B) Subnet Level

D) Network Interface Level

F) VPC Level

VPC Flow Logs can be created at the VPC, subnet, and network interface levels. VPC Flow Logs is a feature that enables you to capture information about the IP traffic going to and from network interfaces in your VPC.

97
Q

You have created a new VPC and launched an EC2 instance into a public subnet. However, you did not assign a public IP to the instance during its creation. What is the easiest way to make your instance reachable from the internet?

A) Create an Elastic IP address and associate it with your EC2 instance.

B) Nothing – by default all instances deployed into any Public Subnet will automatically receive a Public IP.

C) Associate the Private IP of your instance to the Public IP of the Internet Gateway.

D) Create an Elastic IP and new Network Interface. Associate the Elastic IP to the new Network Interface, and the new Network Interface to your instance.

A

A) Create an Elastic IP address and associate it with your EC2 instance.

An Elastic IP address is a public IPv4 address, which is reachable from the internet. If your instance does not have a public IPv4 address, you can associate an Elastic IP address with your instance to enable communication with the internet. For example, this allows you to connect to your instance from your local computer.

98
Q

Which of the following options allows you to securely administer an EC2 instance located in a private subnet?

A) NAT Instance

B) NAT Gateway

C) Internet Gateway

D) Bastion Host

A

D) Bastion Host

A Bastion host allows you to securely administer (via SSH or RDP) an EC2 instance located in a private subnet. Don’t confuse Bastions and NATs, which allow outside traffic to reach an instance in a private subnet.

99
Q

A VPN connection consists of which of the following components?

(Choose 2)

A) Cross Connect

B) Virtual Private Gateway

C) Direct Connect Gateway

D) Customer Gateway

A

B) Virtual Private Gateway

D) Customer Gateway

A Virtual Private Gateway sits at the edge of your VPC and is a key component when using a VPN. It’s responsible for site-to-site connection from on-premises to a VPC.

A customer gateway is a resource that is installed on the customer side and provides a customer gateway inside a VPC.

100
Q

TRUE / FALSE

A subnet can span multiple Availability Zones.

A

FALSE

Each subnet must reside entirely within one Availability Zone and cannot span across zones.

101
Q

Which of the following is true?

A) Security groups are stateful and Network Access Control Lists (NACLs) are stateless.

B) Security groups are stateless and Network Access Control Lists (NACLs) are stateful.

C) Both security groups and Network Access Control Lists (NACLs) are stateful.

D) Both Security Groups and Network Access Control Lists are stateless.

A

A) Security groups are stateful and Network Access Control Lists (NACLs) are stateless.

Security groups are stateful and Network Access Control Lists are stateless. Stateful means if you send a request from your instance, the response traffic for that request is allowed to flow in regardless of inbound security group rules.

102
Q

How many internet gateways can be attached to a custom VPC?

A) 1

B) 2

C) 3

D) One per Availability Zone

A

A) 1

An internet gateway is a highly available VPC component; only one is attachable to a custom VPC.

103
Q

Which of the following are true for security groups?

(Choose 3)

A) Security groups operate at the subnet level.

B) Security groups operate at the instance level and are associated with network interfaces.

C) Security groups support “allow” rules only.

D) Security groups process rules in number order when deciding whether to allow traffic.

E) Security groups evaluate all rules before deciding whether to allow traffic.

F) Security groups support both “allow” and “deny” rules.

A

B) Security groups operate at the instance level and are associated with network interfaces.

C) Security groups support “allow” rules only.

E) Security groups evaluate all rules before deciding whether to allow traffic.

Security groups control access at the instance-level (as they are associated with network interfaces), they support “allow” rules only, and they evaluate all rules before deciding whether to allow traffic into the instance(s).

104
Q

What is the name of the AWS Global Accelerator component that services the static IP addresses for your accelerator from a unique IP subnet?

A) Availability Zone

B) Network Segment

C) Network Zone

D) Accelerator Zone

A

C) Network Zone

A network zone services the static IP addresses for your accelerator from a unique IP subnet. Similar to an AWS Availability Zone, a network zone is an isolated unit with its own set of physical infrastructure. When you configure an accelerator, by default, Global Accelerator allocates two IPv4 addresses for it. If one IP address from a network zone becomes unavailable due to IP address blocking by certain client networks, or network disruptions, then client applications can retry on the healthy static IP address from the other isolated network zone.

105
Q

TRUE / FALSE

An Application Load Balancer must be deployed into at least two Availability Zone subnets.

A

TRUE

When setting up your ALB, for availability zone subnets, you must select at least two Availability Zone subnets from different Availability Zones. Each Availability Zone subnet for your load balancer should have a CIDR block with at least a /27 bitmask (Example, 10.0.0.0/27) and at least 8 free IP addresses per subnet.

106
Q

You have five VPCs in a ‘hub and spoke’ configuration, with VPC ‘A’ in the center and individually peered with VPCs ‘B’, ‘C’, ‘D’, and ‘E’, which make up the spokes. There are no other VPC connections. Which of the following VPCs can VPC ‘B’ communicate with directly?

A) VPCs ‘C’, ‘D’, and ‘E’

B) VPCs ‘A’ and ‘E’

C) VPC ‘A’

D) VPCs ‘A’ and ‘C’

A

C) VPC ‘A’

As transitive peering is not allowed, VPC ‘B’ can communicate directly only with VPC ‘A’. (A good alternative to many peer connections is AWS Transit Gateway. AWS Transit Gateway can connect VPCs and on-premises networks via a central hub and get around the transitive problem).

107
Q

TRUE / FALSE

By default, EC2 instances in new subnets in a custom VPC can communicate with each other across Availability Zones.

A

TRUE

In a custom VPC with new subnets in each AZ, there is a route within the route table that supports communication across all subnets/AZs. Additionally, it has a Default SG with an “allow” rule: all traffic, all protocols, all ports, from resource using this default security group.

108
Q

TRUE / FALSE

You can accelerate your application by adding a second Internet Gateway to your VPC.

A

FALSE

You can only have one Internet Gateway per VPC.

109
Q

Which of the following offers the largest range of internal IP addresses?

A) /20

B) /24

C) /16

D) /28

A

C) /16

The /16 offers 65,536 possible addresses.

110
Q

Which of these is NOT a component of the AWS Global Accelerator service?

A) Listeners

B) Endpoint Groups

C) Static IP Address

D) CloudFront

A

D) CloudFront

AWS Global Accelerator and Amazon CloudFront are separate services that use the AWS global network and its edge locations around the world. CloudFront improves performance for both cacheable content (such as images and videos) and dynamic content (such as API acceleration and dynamic site delivery). Global Accelerator improves performance for a wide range of applications over TCP or UDP by proxying packets at the edge to applications running in one or more AWS Regions.

111
Q

Security groups act like a firewall at the instance level, whereas _________ are an additional layer of security that act at the subnet level. (Fill in the blank with the correct answer.)

A) Network ACLs

B) Database Security Groups

C) VPC Security Groups

D) Route Tables

A

A) Network ACLs

NACLs act on the subnet level, while security groups act on the instance level.

112
Q

TRUE / FALSE

When I create a new security group, all outbound traffic is allowed by default.

A

TRUE

By default, a security group includes an outbound rule that allows all outbound traffic. You can remove the rule and add outbound rules that allow specific outbound traffic only. If your security group has no outbound rules, no outbound traffic originating from your instance is allowed.

113
Q

What is the purpose of an egress-only internet gateway?

(Choose 2)

A) Allow instances communicating over IPv4 or IPv6 to access the internet

B) Allows VPC based IPv6 traffic to communicate to the internet

C) Prevents IPv6 traffic from accessing the internet by utilizing security groups

D) Prevents IPv6 based internet resources to initiate a connection into a VPC

A

B) Allows VPC based IPv6 traffic to communicate to the internet

D) Prevents IPv6 based internet resources to initiate a connection into a VPC

The purpose of an egress-only internet gateway is to allow IPv6 based traffic within a VPC to access the internet, whilst denying any internet based resources to connection back into the VPC.

114
Q

Are you permitted to conduct your own security assessments or penetration tests on your own VPC without alerting AWS first?

A) Yes. You can perform any security assessment or penetration test without alerting AWS first.

B) Depends on the type of security assessment or penetration test and the service being assessed. Some assessments can be performed without alerting AWS, some require you to alert.

C) No. You must always alert AWS before performing any type of security assessment or penetration test.

A

B) Depends on the type of security assessment or penetration test and the service being assessed. Some assessments can be performed without alerting AWS, some require you to alert.

AWS customers are welcome to carry out security assessments or penetration tests against their AWS infrastructure without prior approval for 8 services only. You should request authorization for other simulated events.

115
Q

What is the advantage of running your AWS VPN connection through your Direct Connect connection over using the ordinary Internet?

(Choose 2)

A) Improved security

B) Can use Transit Gateway to service multiple accounts/VPCs

C) No data transfer charges when using Direct Connect

D) Faster performance

A

A) Improved security

B) Faster performance

It is likely that if you choose to run your VPN through a Direct Connect from your datacenter to the AWS network that your VPN connection will be both faster, and more secure. However data charges are still incurred whilst using Direct Connect. Additionally Transit Gateway attachments may be made to VPN regardless of if it is through DX or not.

116
Q

Which of the following statements are NOT true of EC2 instances in a VPC?

A) In Amazon VPC, an instance retains its public IP when stopped and started.

B) You may have only 1 active internet gateway for your instances per VPC.

C) In Amazon VPC, an EBS backed instance retains its private IP when stopped and started.

D) It is possible to have private subnets in a VPC.

A

A) In Amazon VPC, an instance retains its public IP when stopped and started.

AWS releases your instance’s public IP address when it is stopped, hibernated, or terminated. Your stopped or hibernated instance receives a new public IP address when it is started.

117
Q

In discussions about Cloud services the words ‘Availability’, ‘Durability’, ‘Reliability’ and ‘Resiliency’ are often used. Which term is used to refer to the likelihood that a resource will work as designed?

A) Durability

B) Reliability

C) Availability

D) Resiliency

A

B) Reliability

Each word has a specific meaning and your ability to select a correct answer may depend on understanding the difference. Reliability is closely related to Availability, however a system can be ‘Available’ but not be working properly. Reliability is the probability that a system will work as designed. This term is not used much in AWS, but is still worth understanding.

118
Q

Following an unplanned outage, you have been called into a planning meeting. You are asked what can be done to reduce the risk of bad deployments and single point of failure for your AWS resources. Which solutions can be used to mitigate the problem? The options do not necessarily need to work together.

(Choose 4)

A) Use multiple autoscaling groups and boundaries for a staged or ‘canary’ deployment process.

B) Use Route 53 with health checks to distribute load across multiple ELBs.

C) Use automation to ensure that all updates are always deployed to all autoscaling groups at the same time.

D) Use Route 53 to direct traffic to the multi-region compute services on a round-robin basis.

E) Use a Classic Load Balancer to spread the load over several availability zones.

F) Use several Target groups or Auto Scaling groups under each Load Balancer.

G) Use an Application Load Balancer to spread the load over several regions.

A

A) Use multiple autoscaling groups and boundaries for a staged or ‘canary’ deployment process.

The purpose of a canary deployment is to reduce the risk of deploying a new version that impacts the workload.

B) Use Route 53 with health checks to distribute load across multiple ELBs.

Using Route 53 in combination with ELBs is a good pattern to distribute regionally as well as across AZs.

E) Use a Classic Load Balancer to spread the load over several availability zones.

Cross-zone load balancing reduces the need to maintain equivalent numbers of instances in each enabled Availability Zone, and improves your application’s ability to handle the loss of one or more instances.

F) Use several Target groups or Auto Scaling groups under each Load Balancer.

Although the methods vary, you can place multiple autoscaling or target groups behind ELBs.

119
Q

You are running an Amazon RDS Multi-AZ deployment. Can you use the secondary database as an independent read node?

A) No.

B) It depends on how you set it up.

C) Only in US-West-1.

D) Yes.

A

A) No.

You can’t use the standby (secondary database) to offload reads from an application. The standby instance is only there for failover. If you want an independent read node, you need to create a special type of DB instance called a read replica, from a source DB instance.

120
Q

You have a web site with three distinct services (mysite.co/accounts, mysite.co/sales, and mysite.co/support); each hosted by different web server Auto Scaling groups. You need to use advanced routing to send requests to specific web servers, based on configured rules. Which of the following AWS services should you use?

A) Network Load Balancers (NLB)

B) Application Load Balancers (ALB)

C) S3 Static web sites

D) Elastic Load Balancers (ELB)

E) Classic Load Balancers (CLB)

A

B) Application Load Balancers (ALB)

The ALB has functionality to distinguish traffic for different targets (mysite.co/accounts vs. mysite.co/sales vs. mysite.co/support) and distribute traffic based on rules for: target group, condition, and priority.

121
Q

A product manager walks into your office and advises that the simple single node MySQL RDS instance that has been used for a pilot needs to be upgraded for production. She also advises that they may need to alter the size of the instance once they see how many people use the system during peak periods. The key concern is that there can not be any outages of more than a few seconds during the go-live period. Which of the following might you recommend,

(Choose 2)

A) Consider replacing it with Aurora before go live.

B) Convert the RDS instance to a multi-AZ implementation.

C) Upgrade the RDS instance to a large size before go-live to avoid the 10-15 minute outage needed to change size later.

D) Implement Read-Replicas now to allow the instance size to be altered on the fly without any user impact.

A

A) Consider replacing it with Aurora before go live.

B) Convert the RDS instance to a multi-AZ implementation.

There are two issues to be addressed in this question. Minimizing outages, whether due to required maintenance or unplanned failures. Plus the possibility of needing to scale up or down. Read-replicas can help you with high read loads, but are not intended to be a solution to system outages. Multi-AZ implementations will increase availability because in the event of a instance outage one of the instances in another AZs will pick up the load with minimal delay. Aurora provided the same capability with potentially higher availability and faster response.

122
Q

Placement Groups can either be of the type ‘Cluster’, ‘Spread’, or ‘Partition’. Choose options from below which are only specific to Spread Placement Groups.

A) A spread placement group is a logical grouping of instances within a single Availability Zone

B) A spread placement group supports a maximum of seven running instances per Availability Zone.

C) An instance can be launched in one placement group at a time and cannot span multiple placement groups.

D) Spread placement groups require a name that is unique within your AWS account for the region

A

B) A spread placement group supports a maximum of seven running instances per Availability Zone.

A spread placement group supports a maximum of seven running instances per Availability Zone. For example, in a Region with three Availability Zones, you can run a total of 21 instances in the group (seven per zone). If you try to start an eighth instance in the same Availability Zone and in the same spread placement group, the instance will not launch. If you need to have more than seven instances in an Availability Zone, then the recommendation is to use multiple spread placement groups. Using multiple spread placement groups does not provide guarantees about the spread of instances between groups, but it does ensure the spread for each group, thus limiting impact from certain classes of failures.

123
Q

When an EC2 instance is being modified to have more RAM, is this considered Scaling Up or Scaling Out?

A) Scaling Up

B) Scaling Out

A

A) Scaling Up

Scaling out is where you have more of the same resource separately working in parallel (visualize services sitting side by side). Scaling Up is where you make it bigger and bigger like an ugly tower with more floors being added after the initial design was finished.

124
Q

Which service works in conjunction with EC2 Autoscaling in order to provide predictive scaling based on daily and weekly trends?

A) AWS Step Functions

B) SNS Queues

C) AWS Autoscaling

D) Lambda Functions

A

C) AWS Autoscaling

EC2 Autoscaling works in conjunction with the AWS Autoscaling service to provide a predictive ability to your autoscaling groups.

125
Q

Regarding the S3 Standard, S3 Intelligent-Tiering, S3 Standard-IA, S3 One Zone-IA, S3 Glacier, and S3 Glacier Deep Archive Amazon S3 storage classes, objects are designed for ____ durability.

A) 99 percent

B) 99.999999999 percent

C) 100 percent

D) 99.99 percent

A

B) 99.999999999 percent

S3 Standard, S3 Intelligent-Tiering, S3 Standard-IA, S3 One Zone-IA, S3 Glacier, and S3 Glacier Deep Archive Amazon S3 storage classes, objects are designed for 99.999999999% (11 9’s) durability.

126
Q

In discussions about Cloud services the words ‘Availability’, ‘Durability’, ‘Reliability’ and ‘Resiliency’ are often used. Which term is used to refer to the likelihood that a resource is able to recover from damage or disruption?

A) Durability

B) Reliability

C) Availability

D) Resiliency

A

D) Resiliency

Resiliency is the ability of a workload to recover from infrastructure or service disruptions, dynamically acquire computing resources to meet demand, and mitigate disruptions, such as misconfigurations or transient network issues.

127
Q

You work for a major news network in Europe. They have just released a new mobile app that allows users to post their photos of newsworthy events in real-time. Your organization expects this app to grow very quickly, essentially doubling its user base each month. The app uses S3 to store the images, and you are expecting sudden and sizable increases in traffic to S3 when a major news event takes place (as users will be uploading large amounts of content.) You need to keep your storage costs to a minimum, and you are happy to temporarily lose access to up to 0.1% of uploads per year. With these factors in mind, which storage media should you use to keep costs as low as possible?

A) S3 - Provisioned IOPS

B) S3 - OneZone-Infrequent Access

C) S3 Standard-IA

D) S3 Standard

E) Glacier

F) S3 - Reduced Redundancy Storage (RRS)

A

C) S3 Standard-IA

The key drivers here are availability and cost, so an awareness of cost is necessary to answer this. Glacier cannot be considered as it is not intended for direct access. S3 has an availability of 99.99%, S3 Standard-IA has an availability of 99.9% while S3-1Zone-IA only has 99.5%

128
Q

Your company has built an internal scrum tool for running all your scrum ceremonies. Usage is predictably high between 9 - 10AM Mon-Fri and also 1PM - 2PM Thu and Fri. Which feature of autoscaling will easily prepare your system to handle the load?

A) Manual Scaling

B) Over-provision your instances with more memory and CPU in order to cope with peak demand

C) Target tracking Scaling

D) Scheduled Scaling

A

D) Scheduled Scaling

Target tracking could work but you need to invest time in determining the correct metric to track (e.g. CPU, Memory, Load Balancer Requests). Also Manual Scaling requires that someone changes configuration to scale up and scale down every day. Finally over provisioning in order to cope with peak demand defeats the purpose of elastic scaling of your compute. For situations where your traffic is very predictable, the easiest way to scale with demand is to create scheduled scaling actions.

129
Q

You need to use an object-based storage solution to store your critical, non-replaceable data in a cost-effective way. This data will be frequently updated and will need some form of version control enabled on it. Which S3 storage solution should you use?

A) S3 Standard

B) S3 - Reduced Redundancy Storage (RRS)

C) S3 Intelligent-Tiering

D) S3 Standard-IA

E) S3 One Zone-IA

F) S3 Glacier

A

A) S3 Standard

From the question, we can identify that:

  • the data is non-replaceable (All S3 classes are at 11 9s of Durability now except for RRS)
  • the data is frequently updated (Classes outside of S3 Standard & S3 Intelligent-Tiering have extra charges for frequently accessed data).
  • cost-effective (S3 is more cost effective than S3 Intelligent-Tiering if the data is updated frequently)
  • version control must be an available feature (S3 has versioning as a feature) All of these items combined make S3 the best option for the available information.
130
Q

In discussions about Cloud services the words ‘Availability’, ‘Durability’, ‘Reliability’ and ‘Resiliency’ are often used. Which term is used to refer to the likelihood that you can access a resource or service when you need it?

A) Durability

B) Availability

C) Reliability

D) Resiliency

A

B) Availability

Each word has a specific meaning and your ability to select the correct answer may depend on understanding the difference. Availability can be described as the % of a time period when the service will be able to respond to your request in some fashion.

131
Q

You work for a manufacturing company that operate a hybrid infrastructure with systems located both in a local data center and in AWS, connected via AWS Direct Connect. Currently, all on-premise servers are backed up to a local NAS, but your CTO wants you to decide on the best way to store copies of these backups in AWS. He has asked you to propose a solution which will provide access to the files within milliseconds should they be needed, but at the same time minimizes cost. As these files will be copies of backups stored on-premise, availability is not as critical as durability, but both are important. Choose the best option from the following which meets the brief.

A) Copy the files from the NAS to an S3 bucket with the Standard-IA class.

B) Copy the files from the NAS to an S3 bucket with the Reduced Redundancy Storage class.

C) Copy the files from the NAS to an S3 bucket configured as Standard class.

D) Copy the files to an EC2 instance with a large EBS volume attached.

A

A) Copy the files from the NAS to an S3 bucket with the Standard-IA class.

S3 Standard-IA provides rapid access to files and is resilient against events that impact an entire Availability Zone, while offering the same 11 9’s of durability as all other storage classes. The trade-off is in the availability. It is designed for 99.9% availability over a given year, as opposed to 99.99% that S3 Standard offers. However in this brief as cost is more important than availability, S3 Standard-IA is the logical choice.

132
Q

Can I “force” a failover for any RDS instance that has Multi-AZ configured?

A) Yes.

B) No.

C) Only for Oracle RDS instances.

A

A) Yes.

In the event of a planned or unplanned outage of your DB instance, Amazon RDS automatically switches to a standby replica in another Availability Zone if you have enabled Multi-AZ. You can force a failover manually when you reboot a DB instance.

133
Q

Which of the below are not components of Amazon EC2 Auto Scaling?

A) Scaling Options

B) cfn-init

C) Configuration Templates

D) Groups

A

B) cfn-init

cfn-init is not a component of the EC2 Autoscaling service. Instead it is a feature which allows commands to be run, and software installed/configured on EC2 instances when they launch.

134
Q

You manage a high-performance site that collects scientific data using a bespoke protocol over TCP port 1414. The data comes in at high speed and is distributed to an autoscaling group of EC2 compute services spread over three AZs. Which type of AWS Load Balancer would best meet this requirement?

A) Application Load Balancers (ALB)

B) Classic Load Balancers (CLB)

C) Elastic Load Balancers (ELB)

D) CloudFront combined with Lambda@Edge

E) Network Load Balancers (NLB)

A

E) Network Load Balancers (NLB)

The Network Load Balancer is specifically designed for high performance traffic that is not conventional Web traffic. The Classic LB might also do the job, but would not offer the same performance.

135
Q

In discussions about Cloud services the words ‘Availability’, ‘Durability’, ‘Reliability’ and ‘Resiliency’ are often used. Which term is used to refer to the likelihood that a resource will continue to exist until you decide to remove it?

A) Reliability

B) Resiliency

C) Durability

D) Availabilit

A

C) Durability

Each word has a specific meaning and your ability to select a correct answer may depend on understanding the difference. Durability refers to the on-going existence of the object or resource. Note that it does not mean you can access it, only that it continues to exist.

136
Q

What application service allows you to decouple your infrastructure using message based queues?

A) SWF

B) SNS

C) SQS

D) SES

A

C) SQS

In IT the term ‘message’ can be used in the common sense, or to describe a piece of data of Task in an asynchronous queueing system such as MQseries, RabbitMQ or SQS.

137
Q

How can you prevent an application behind Amazon API Gateway from being overwhelmed by too many requests and improve overall performance across the APIs in your account?

A) AWS automatically scales API gateway services, so no action is required.

B) Disable caching and scale API gateway services.

C) Increase the number of API gateway instances.

D) Enable caching and set throttling limits.

A

D) Enable caching and set throttling limits.

If a cache is configured, then Amazon API Gateway will return a cached response for duplicate requests for a customizable time, but only if under configured throttling limits. This balance between the backend and client ensures optimal performance of the APIs for the applications that it supports.

138
Q

What is Amazon Kinesis Data Streams?

A) A service for analyzing data, creating dashboards and storing data in S3.

B) A service for generating streaming data

C) A service for loading streaming data into data stores.

D) A service on AWS that ingests and stores data streams for processing.

A

D) A service on AWS that ingests and stores data streams for processing.

Amazon Kinesis Data Streams (KDS) is a massively scalable and durable real-time data streaming service. KDS can continuously capture gigabytes of data per second from hundreds of thousands of sources such as website clickstreams, database event streams, financial transactions, social media feeds, IT logs, and location-tracking events. The data collected is available in milliseconds to enable real-time analytics use cases such as real-time dashboards, real-time anomaly detection, dynamic pricing, and more.

139
Q

TRUE / FALSE

The Standard SQS message queue preserve message order and guarantees messages are only delivered once.

A

FALSE

The Standard SQS message queue does not preserve message order nor guarantee messages are delivered only once - these are features of a FIFO message queue. Since Standard SQS message queues are designed to be massively scalable using a highly distributed architecture, receiving messages in the exact order they are sent is not guaranteed. Standard queues provide at-least-once delivery, and in some circumstances, duplicates can occur.

140
Q

TRUE / FALSE

When you build an application layer on top of Amazon SWF, it restricts you to the use of specific programming languages.

A

FALSE

While there are a limited range of SDKs available for SWF, AWS provides an HTTP based API which allows you to interact using any language as long as you phrase the interactions in HTTP requests.

141
Q

Amazon Kinesis Data Firehose is used for …

(Choose 2)

A) Loading streaming data into data lakes, data stores, and analytics tools.

B) Generating analytics dashboards of your streaming data.

C) Capturing, transforming and loading streaming data into Amazon S3

D) Streaming your favourite online movies.

A

A) Loading streaming data into data lakes, data stores, and analytics tools.

C) Capturing, transforming and loading streaming data into Amazon S3

Amazon Kinesis Data Firehose is the easiest way to load streaming data into data stores and analytics tools. It can capture, transform, and load streaming data into Amazon S3, Amazon Redshift, Amazon Elasticsearch Service, and Splunk, enabling near real-time analytics with existing business intelligence tools and dashboards you’re already using today.

142
Q

What is the difference between SNS and SQS?

A) SQS and SNS are basically the same service.

B) SNS is a push notification service, whereas SQS is message system that requires worker nodes to poll a queue.

C) SQS sends messages to people on topics, whereas SNS manages tasks.

D) SNS pulls (polls), whereas SQS is push-based message service.

A

B) SNS is a push notification service, whereas SQS is message system that requires worker nodes to poll a queue.

SNS is a Notification service for sending text based communication of different types to different destinations. SQS is a Queue system for asynchronously manages tasks (called messages)

143
Q

TRUE / FALSE

Amazon SQS offers standard as the default queue type. Standard queues ensure that messages are delivered in the same order as they’re sent.

A

FALSE

If you have an existing application that uses standard queues and you want to take advantage of the ordering or exactly-once processing features of FIFO queues, you need to configure the queue and your application correctly. You can’t convert an existing standard queue into a FIFO queue. To make the move, you must either create a new FIFO queue for your application or delete your existing standard queue and recreate it as a FIFO queue.

144
Q

You have discovered duplicate messages being processed in your SQS queue. How do you resolve this?

A) Enable Long polling so that messages are deleted from the queue when processed.

B) Enable Short polling so that messages are processed faster.

C) Increase the visibility timeout of your queue, so that messages do not become visible once obtained by a consumer.

D) Decrease the visibility timeout of your queue, so that messages do not become visible once obtained by a consumer.

A

C) Increase the visibility timeout of your queue, so that messages do not become visible once obtained by a consumer.

Duplicate messages occur when a consumer does not complete its message processing and the visibility timeout of the message expires, making it visible for another consumer to obtain. Increasing the visibility timeout to enable the consumer processing to complete, will prevent duplicate messages.

145
Q

What happens when you create a topic on Amazon SNS?

A) You cannot create a topic on SNS.

B) The topic will terminate your EC2 instances that aren’t identified by tags.

C) An Amazon Resource Name is created.

D) Nothing, as topics are specific to Amazon SQS.

A

C) An Amazon Resource Name is created.

When a topic is created, Amazon SNS will assign a unique ARN (Amazon Resource Name) to the topic, which will include the service name (SNS), region, AWS ID of the user and the topic name. The ARN will be returned as part of the API call to create the topic. Whenever a publisher or subscriber needs to perform any action on the topic, they should reference the unique topic ARN.

146
Q

Amazon SWF is designed to help users ____.

A) Manage user identification and authorization

B) Store file-based objects

C) Coordinate synchronous and asynchronous tasks

D) Secure their VPCs

A

C) Coordinate synchronous and asynchronous tasks

Similar to SQS SWF manages queues of work, however unlike SQS it can have out-of-band parallel and sequential task to be completed by humans and non AWS services

147
Q

TRUE / FALSE

Amazon’s SQS service guarantees a message will be delivered at least once.

A

TRUE

Standard queues provide at-least-once delivery, which means that each message is delivered at least once.

148
Q

TRUE / FALSE

At a high level an Amazon API Gateway is a “front door” for applications to access data, business logic, or functionality from your backend services.

A

TRUE

Amazon API Gateway is a fully managed service that makes it easy for developers to publish, maintain, monitor, and secure APIs at any scale. With a few clicks in the AWS Management Console, you can create an API that acts as a “front door” for applications to access data, business logic, or functionality from your AWS origin back-end services. Using API Gateway, you can create RESTful APIs and WebSocket APIs that enable real-time two-way communication applications. API Gateway supports containerized and serverless workloads, as well as web applications.

149
Q

TRUE / FALSE

Amazon SWF ensures that a task is assigned only once and is never duplicated.

A

TRUE

One time only completion is a key feature of SWF. At one time this was a key distinction from SQS, however with SQS FIFO queues, this is no longer a distinguishing feature.

150
Q

In SWF, what does a “domain” refer to?

A) The DNS record for the Amazon SWF service

B) A special type of worker instance

C) A collection of related workflows

D) A specialized security group configuration

A

C) A collection of related workflows

Domains provide a way of scoping Amazon SWF resources within your AWS account. All the components of a workflow, such as the workflow type and activity types, must be specified to be in a domain. It is possible to have more than one workflow in a domain; however, workflows in different domains can’t interact with each other.

151
Q

What are the key components of Kinesis Data Firehose?

A) Producers, records of data and consumers

B) Delivery streams, shards, data stores and consumers.

C) Producers, shards and consumers

D) Delivery streams, records of data and destinations.

A

D) Delivery streams, records of data and destinations.

Key components of Kinesis Data Firehose are: delivery streams, records of data and destinations. Producers, shards and consumers are components of Kinesis Data Streams.

152
Q

What does the common term ‘Serverless’ mean according to AWS)

(Choose 2)

A) A native Cloud Architecture that allows customers to shift more operational responsibility to AWS.

B) The ability to run applications and services without thinking about servers or capacity provisioning.

C) A pricing model based on high level commodity measures such as on compute duration and storage capacity.

D) A marketing term for HaaS (Hosting as a Service).

E) The use of Quantum computing to eliminate the need for physical servers.

A

A) A native Cloud Architecture that allows customers to shift more operational responsibility to AWS.

B) The ability to run applications and services without thinking about servers or capacity provisioning.

‘Serverless’ computing is not about eliminating servers, but shifting most of the responsibility for infrastructure and operation of the infrastructure to a vendor so that you can focus more on the business services, not how to manage the infrastructure that they run on. Billing does tend to be based on simple units, but the choice of services, intended usage pattern (RIs), and amount of capacity needed also influences the pricing.

153
Q

As a DevOps engineer you are told to prepare a complete solution to run a piece of code that requires multi-threaded processing. The code has been running on an old custom server using a 4 core Intel Xeon processor. Which of these options best describes the AWS compute services that could be used for multi-threaded processing?

A) EC2, ECS, & Lambda.

B) None of the above.

C) ECS, and EC2.

D) Only a EC2 ‘Bare Steel’ server.

A

A) EC2, ECS, & Lambda.

The exact ratio of cores to memory has varied over time for Lambda instances, however Lambda like EC2 and ECS supports hyper-threading on one or more virtual CPUs (if your code supports hyper-threading).

154
Q

Which of the following services can invoke a Lambda function synchronously (with functionality built-in with the invoking service)?

Choose 3

A) S3

B) Kinesis Data Firehose

C) API Gateway

D) Amazon Lex

E) IAM

F) EC2

A

B) Kinesis Data Firehose

C) API Gateway

D) Amazon Lex

ALB, Cognito, Lex, Alexa, API Gateway, CloudFront, and Kinesis Data Firehose are all valid direct (synchronous) triggers for Lambda functions. S3 is one of the valid asynchronous triggers.

155
Q

You have created a simple serverless website using S3, Lambda, API Gateway and DynamoDB. Your website will process the contact details of your customers, predict an expected delivery date of their order and store their order in DynamoDB. You test the website before deploying it into production and you notice that although the page executes, and the lambda function is triggered, it is unable to write to DynamoDB. What could be the cause of this issue?

A) The availability zone that Lambda is hosted in is down.

B) Your lambda function does not have sufficient Identity Access Management (IAM) permissions to write to DynamoDB.

C) You have written your function in Python which is not supported as a runtime environment for Lambda.

D) The availability zone that DynamoDB is hosted in is down.

A

B) Your lambda function does not have sufficient Identity Access Management (IAM) permissions to write to DynamoDB.

Like any services in AWS, Lambda needs to have a Role associated with it that provide credentials with rights to other services. This is exactly the same as needing a Role on an EC2 instance to access S3 or DDB.

156
Q

You have created a serverless application to add metadata to images that are uploaded to a specific S3 bucket. To do this, your lambda function is configured to trigger whenever a new image is created in the bucket. What will happen when multiple users upload multiple different images at the same time?

A) Multiple instances of the Lambda function will be triggered, one for each image

B) Multiple Lambda functions will trigger, one after the other, until all images are processed

C) A single Lambda functions will be triggered, that will process all images that have finished uploading one at a time

D) A single Lambda functions will be triggered, which will process all images at the same time

A

A) Multiple instances of the Lambda function will be triggered, one for each image

Each time a Lambda function is triggered, an isolated instance of that function is invoked. Multiple triggers result in multiple concurrent invocations, one for each time it is triggered

157
Q

What AWS service can help you to understand how your Lambda functions are performing?

A) DynamoDB

B) AWS X-Ray

C) CloudTrail

D) API Gateway

A

B) AWS X-Ray

AWS X-Ray helps developers analyze and debug production, distributed applications, such as those built using a microservices & serverless architectures. With X-Ray, you can understand how your application and its underlying services are performing to identify and troubleshoot the root cause of performance issues and errors.

158
Q

On Friday morning your marketing manager calls an urgent meeting to celebrate that they have secured a deal to run a coordinated national promotion on TV, radio, and social media over the next 10 days. They anticipate a 500x increase on site visits and trial registrations. After the meeting you throw some ideas around with your team about how to ensure that your current 1 server web site will survive. Which of these best embody the AWS design strategy for this situation.

(Choose 2)

A) Work with your web design team to create some web pages in PHP to run on a 32xlarge EC2 instance to emulate your 5 most popular information web pages and sign up web pages.

B) Create a stand by sign up server to use in case the primary fails due to load.

C) Create a duplicate sign up page that stores registration details in DynamoDB for asynchronous processing using SQS & Lambda.

D) Upgrade your existing server from a 1xlarge to a 32xlarge for the duration of the campaign.

E) Work with your web design team to refactor some web pages with embedded JavaScript for your 5 most popular information web pages and sign up web pages. Host those pages on S3 with static web hosting.

F) Recreate your 5 most popular new customer web pages and sign up web pages on Lightsail and take advantage of AWS auto scaling to pick up the load.

A

C) Create a duplicate sign up page that stores registration details in DynamoDB for asynchronous processing using SQS & Lambda.

Use NoSQL database to collect customer registration for asynchronous processing, and SQS backed by scalable compute to keep up with the requests.

E) Work with your web design team to refactor some web pages with embedded JavaScript for your 5 most popular information web pages and sign up web pages. Host those pages on S3 with static web hosting.

An AWS solution for this situation might include S3 static web pages with client side scripting (JavaScript) to meet high demand of information pages.

159
Q

In which direction(s) does Lambda scale automatically?

A) Up and Out

B) Up

C) Out

D) None - Lambda does not scale automatically

A

C) Out

Lambda scales out automatically - each time your function is triggered, a new, separate instance of that function is started. There are limits, but these can be adjusted on request.

160
Q

Lambda pricing is based on which of these measurements after the free tier?

(Choose 3)

A) The amount of CPU you choose.

B) Duration of each request (in ms).

C) The number of requests for each time the lambda executes in response to an event notification, or invoke call.

D) The amount of memory assigned.

A

B) Duration of each request (in ms).

As of December 2020, the Lambda compute duration is billed in 1ms increments instead of being rounded up to the nearest 100 ms increment per invoke. For example, a function that runs in 30ms on average used to be billed for 100ms. Now, it will be billed for 30ms resulting in a 70% drop in its duration spend.

C) The number of requests for each time the lambda executes in response to an event notification, or invoke call.

The number of requests for each time the lambda executes in response to an event notification, or invoke call is one of the factors involved in Lambda pricing.

D) The amount of memory assigned.

Lambda billing is based on both The MB of RAM reserved and the execution duration in 100ms units. You don’t choose the amount of CPU when setting up a Lambda Function. You can however choose between x86 or Arm/Graviton2 processors which does impact the price. (Note: the CPU choice came into general feature availability on 29 SEP 2021. AWS generally waits 6 months before new feature information is potentially introduced to exams).