CloudAcademy: Knowledge Check: Compute (SAA-C03) 1 of 2 Flashcards

1
Q

What does selecting the Throttle option do in AWS Lambda?

A. sets the reserve concurrency limit of a Lambda function to zero
B. provides entry points to the Lambda function
C. associates the Lambda function to a particular project, department, or solution
D. sets the unreserved concurrency of an AWS Lambda account to zero

A

A. sets the reserve concurrency limit of a Lambda function to zero

Explanation:
The Throttle option is closely linked to the concurrency setting that we just talked about. Selecting this option sets the reserve concurrency limit of your function to zero.

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

Which of the following statements about event sources in AWS Lambda is true?

A. For poll-based event sources, the mapping is maintained within the event source.
B. For push-based event sources, the mapping is maintained within the Lambda function.
C. For poll-based event sources, the invocation type is always synchronous.
D. For push-based event sources, the invocation type is always asynchronous.
Explanation

A

C. For poll-based event sources, the invocation type is always synchronous.

Explanation:
For poll-based event sources, the invocation type is always synchronous.

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

The control plane does all of the following tasks within Amazon EKS except for which one?

A. Scheduling containers onto nodes
B. Continuous monitoring of all Kubernetes objects
C. Placing containers onto nodes based on compute requirements
D. Provision and maintain worker nodes

A

D. Provision and maintain worker nodes

Explanation:
The control plane schedules containers onto nodes. The term scheduling does not refer to time in this context. Scheduling, in this case, refers to the decision process of placing containers onto nodes in accordance with their declared, compute requirements.The Control Plane also tracks the state of all Kubernetes objects by continually monitoring the objects.So in EKS, AWS is responsible for provisioning, scaling and managing the control plane and they do this by utilizing multiple availability zones for additional resilience.

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

What is an environment in Elastic Beanstalk?

A. A section of deployable code that points to Amazon S3
B. A collection of AWS resources running an application version
C. An EC2 instance containing an application’s code
D. A combination of components in which you can build your application

A

B. A collection of AWS resources running an application version

Explanation:
An AWS Elastic Beanstalkenvironmentis a collection of AWS resources running an application version. You can deploy multiple environments when you need to run multiple versions of an application. For example, you might have development, integration, and production environments. An application version is a very specific reference to a section of deployable code. The application version, not the environment, will point typically to S3, where the deployable code may reside.An environment is the application version deployed on AWS resources and not just an EC2 instance with your uploaded code.The platform is a culmination of components in which you can build your application upon using Elastic Beanstalk.

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

Which pricing model is the best choice to reduce your Amazon EC2 spend on backend processing jobs that can withstand interruptions?

A. On-Demand Instances
B. Spot-Instances
C. Reserved Instances
D. Savings Plans

A

B. Spot-Instances

Explanation:
Spot Instances utilizes spare computing capacity for up to 90% savings over On-Demand instances. There are four general categories of time-flexible and interruption-tolerant tasks that work well with Spot Instances: delayable tasks, optional tasks, tasks that can be sped up by adding additional computing power, and tasks that require a large number of compute instances that you can’t access any other way.

On-Demand instances are cost-effective if you want to run short-term, unpredictable workloads that cannot be interrupted.

Reserved Instances must be purchased for a minimum of 1-3 year terms and are best for long-term, predictable workloads.

Savings plans offer flexible pricing on EC2 and Fargate usage but in exchange for a commitment to a consistent amount of usage.

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

What do ECR repository policies control? (Choose 2 answers)

A. User access to the ECR repositories
B. User actions within an ECR repository
C. Authenticate AWS users to communicate with Docker CLI
D. User actions with ECS clusters

A

A. User access to the ECR repositories
B. User actions within an ECR repository

Explanation:
While IAM policies control access to ECR a service, repository policies control what read/write actionscan be performed within an ECR repository.

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

When installing tools for operations inAmazon EKS, what is kubectl?

A. A command-line tool for communicating with the cluster API server
B. a tool that allows you to use AWS IAM credentials to authenticate against Kubernetes clusters
C. A command-line interface tool that simplifiescreating and managing clusters
D. A graphical user interfacethat allows you to create, manage and communicate with your clusters

A

A. A command-line tool for communicating with the cluster API server

Explanation:
The kubectl tool is a command-line interface, for running commands against Kubernetes clusters.

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

When using Amazon EKS, the _________________ is a tool that allows you to use AWS IAM credentials to authenticate against Kubernetes clusters.

A. AWS IAM authenticator
B. Kubernetes API
C. AWS Key Management Service
D. EC2 access keys

A

A. AWS IAM authenticator

Explanation:
So those unfamiliar with kubectl, kubectl is a command line interface, for running commands against Kubernetes clusters. The AWS IAM authenticator is a tool that allows you to use AWS IAM credentials to authenticate against Kubernetes clusters. And eksctl provides a nice abstraction for creating clusters.

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

If you have to host a server with a specific region and availability zone for a year, the cheapest way to start that instance is to use the _____.

A. EBS-optimized instance
B. Spot instance
C. Dedicated instance
D. Reserved Instance

A

D. Reserved Instance

Explanation:
Amazon EC2 Reserved Instances can be a powerful and cost-saving strategy for running your business. Amazon EC2 Reserved Instances allow you to reserve Amazon EC2 computing capacity for 1 or 3 years, in exchange for a significant discount (up to 75%) compared to On-Demand instance pricing. Reserved Instances can significantly lower your computing costs for your workloads and provide a capacity reservation so that you can have confidence in your ability to launch the number of instances you have reserved when you need them.

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

Which Amazon EC2 instance family is ideal for applications that manage real-time unstructured data processing, or distributed web cache stores?

A. Memory-optimized
B. Compute-optimized
C. Storage-optimized
D. General Purpose

A

A. Memory-optimized

Explanation:
Memory-optimizedinstance types are primarily used for large-scale, enterprise-class, in-memory applications, such as performing real-time processing of unstructured data or for in-memory databases such as SAP HANA.

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

What is the role of a Task definition within Amazon Elastic Container Service (ECS)?

A. To specify one or more containers for a task
B. To launch and terminate Docker containers
C. To schedule long-running applications, services, and batch jobs
D. To distribute task traffic across your containers

A

A. To specify one or more containers for a task

Explanation:
Amazon Elastic Container Service allows you to define tasks through a declarative JSON template called a Task Definition. Within a Task Definition you can specify one or more containers required for your task, including the Docker repository and image, memory and CPU requirements, shared data volumes, and how the containers are linked to each other. You can launch as many tasks as you want from a single Task Definition file that you can register with the service. Task Definition files also allow you to version control your application specification.

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

A video production company currently uses “local transcoding” and relies on video editing and compression software to transcode files on a user’s computer. They have encountered latency in the editing process due to hardware limitations.Which of the following instance types would be recommended to solve the problem of processing latency?

A. Storage-optimized
B. General-purpose
C. Compute-optimized
D. Memory-optimized

A

C. Compute-optimized

Explanation:
Compute-optimized instances would be the best solution for avoiding processing latency because this family of instances has the highest performing processors installed and are used in high-performance applications such as video encoding. While Storage-optimized instances offer low latency because they have SSD-backed instant storage and very high I/O, input/output performance, including very high input/output operations per second, they are best used for high capacity analytic workloads, such as data file systems and log processing applications.General-purpose, instance types have a balanced mix of CPU memory and storage making them ideal for small to medium databases, tests, development servers, and back-end servers.Memory-optimized, instance types are primarily used for large-scale enterprise-class in-memory applications, such as performing real-time processing of unstructured data, for example, applications such as Microsoft Sharepoint.

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

An AWS Lambda function _____ is an operation from an event source that causes the function to invoke.

A. trigger
B. event
C. log
D. stream

A

A. trigger

Explanation:
A trigger is essentially an operation from an event source that causes the function to invoke, and so essentially is triggering that function.

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

How is the worker environment different from the webserver environment in Elastic Beanstalk?

A. The worker environment applies mainly to backend processes, while the webserver environment is associated with HTTP requests.
B. The worker environment is used for authenticating security groups, while the webserver environment is used for routing traffic.
C. The worker environment is used to process SQS queues, while the webserver environment is used for authenticating IAM service roles.
D. The worker environment applies to the configuration of services, while the webserver environment stores the code used to create applications.

A

A. The worker environment applies mainly to backend processes, while the webserver environment is associated with HTTP requests.

Explanation:
When using Elastic Beanstalk, the worker environment applies mainly to backend processes while the webserver environment is associated with HTTP requests.

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

You are managing a VPC for a client in the marketing industry. They have several tasks, such as flyer and coupon creation, which are not mission-critical and can just be restarted if the application terminates. You recommend using spot instances for the greatest cost savings.Under what circumstances will a spot instance terminate? (Choose 2 answers)

A. The customer terminates them.
B. The customer is outbid by another customer.
C. The instance workload is complete.
D. There is not enough unused capacity to meet the demand for spot instances.

A

A. The customer terminates them.
D. There is not enough unused capacity to meet the demand for spot instances.

Explanation:
Spot instances can be terminated by the customer if there is not enough unused capacity to meet the demand for spot instances. Spot instances are billed hourly, but you will not be charged for the hour if the instance is terminated by AWS. If you terminate the instance yourself, you will be charged for the full hour in which the termination occurred.

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

Which Amazon EC2 instance family offers SSD-backed instance storage for high I/O performance?

A. Storage-optimized
B. Compute-optimized
C. Memory-optimized
D. Accelerated-computing

A

A. Storage-optimized

Explanation:
Storage optimized; as expected, these are optimized for enhanced storage. Instances in this family use SSD-backed instance storage for low latency and very high input/output performance, including very high IOPS, which stands for input-output operations per second. These are great for analytic workloads and NoSQL databases, data file systems and lock processing applications.

17
Q

You want to create an application that only runs when your shop is open from 9 am to 5 pm Monday through Thursday. Whichpayment option would offer the greatest cost savings?

A. Reserved Instances
B. On-demand Capacity Reservations
C. Spot Instances
D. Dedicated Instances

A

B. On-demand Capacity Reservations

Explanation:
On-Demand Capacity Reservations enable you to reserve compute capacity for your Amazon EC2 instances in a specific Availability Zone for any duration. This gives you the ability to create and manage Capacity Reservations independently from the billing discounts offered by Savings Plans or Regional Reserved Instances.

By creating Capacity Reservations, you ensure that you always have access to EC2 capacity when you need it, for as long as you need it. You can create Capacity Reservations at any time, without entering into a one-year or three-year term commitment. The capacity becomes available and billing starts as soon as the Capacity Reservation is provisioned in your account. When you no longer need it, cancel the Capacity Reservation to release the capacity and to stop incurring charges.

18
Q

How can you change between different versions of an AWS Lambda function?

A. By assigning each version a concurrency limit of zero
B. By creating an environment variable for each version
C. By using the Lambda qualifiers section
D. By selecting the Throttle option

A

C. By using the Lambda qualifiers section

Explanation:
Using the Lambda qualifiers section allows you to change between different versions of your function.

19
Q

Which AWS service enables AWS users to run containers on Amazon ECS without provisioning and managing the host EC2 instances?

A. AWS Fargate
B. AWS Auto Scaling
C. AWS OpsWorks Chef
D. AWS Systems Manager

A

A. AWS Fargate

Explanation:
When using the Fargate launch type with tasks within your cluster, Amazon ECS manages your cluster resources.

20
Q

What is the difference between Amazon Elastic Container Service (ECS) and Amazon Elastic Container Registry (ECR)?

A. ECR stores Docker images to be deployed by ECS.
B. ECR is a failover and backup service for ECS clusters.
C. ECR is a central data storage service for stateless ECS clusters.
D. ECR manages EC2 instances and Docker containers deployed by ECS.

A

A. ECR stores Docker images to be deployed by ECS.

Explanation:
Elastic Container Registry is a secure location to store and manage Docker images. It is a fully managed service. Elastic Container Service can pull images from registries withing ECR and deploy them within ECS clusters.

21
Q

Which statement describes the correct relationship between ECR components?

A. An ECR registry contains multiple repositories, which contain multiple Docker images
B. An ECR repository contains multiple registries, which contain multiple EC2 instances.
C. An ECR registry contains multiple Docker images, which contain multiple containers.
D. An ECR repository contains ECS clusters, which contain multiple Docker images.

A

A. An ECR registry contains multiple repositories, which contain multiple Docker images

Explanation:
The correct statement is that ECR registries contain multiple repositories, which contain multiple Docker images.

22
Q

Regarding AWS Elastic Beanstalk, _________ identifies a collection of parameters and settings that define how an environment and its associated resources behave.

A. An application
B. An environment configuration
C. An application Version
D. An environment

A

B. An environment configuration

Explanation:
In AWS Elastic Beanstalk, anenvironment configurationidentifies a collection of parameters and settings that define how an environment and its associated resources behave. When you update an environment’s configuration settings, AWS Elastic Beanstalk automatically applies the changes to existing resources or deletes and deploys new resources (depending on the type of change).

23
Q

Which statementregarding Amazon ECS iscorrect?

A. ECS now manages all EC2 instances for ECS clusters. If you wish to manage instances yourself, you may deploy IaaS EC2 instances and install and run Docker directly.
B. ECS can manage all EC2 instances for all ECS clusters but also allows you to manage instances directly through the ECS service.
C. When deploying ECS clusters, an AWS user must always manage the EC2 instances directly.
D. Amazon ECS can manage instances through multiple integrated AWS services, including OpsWorks, Beanstalk and Systems Manager.

A

B. ECS can manage all EC2 instances for all ECS clusters but also allows you to manage instances directly through the ECS service.

Explanation:
Amazon ECS allows you two deployment options, a Fargate launch and an EC2 launch. In a Fargate launch, the user defines the service requirements, and the service manages the rest. In an EC2 launch, the user is responsible for patching and scaling instances, and must specify the instance type and number of containers in a cluster.

24
Q

Considering Amazon EC2, which purchase option below allows customers to select and controla specific, physical server within an AWS data center solely for their use?

A. dedicated host instances
B. dedicated instances
C. on-demand instances
D. reserved instances

A

A. dedicated host instances

Explanation:
When you launch instances on a Dedicated Host, the instances run on a physical server that is dedicated for your use. While Dedicated instances also run on dedicated hardware, Dedicated Hosts provide further visibility and control by allowing you to place your instances on a specific, physical server. This enables you to deploy instances using configurations that help address corporate compliance and regulatory requirements.

25
Q

Which statement best describes an Amazon Machine Image (AMI)?

A. A temporary virtual machine created during horizontal scaling
B. A virtual machine backup file on a local server hard drive
C.A preconfigured template for your EC2 instances
D. A VMware configuration file for any network deployment

A

C.A preconfigured template for your EC2 instances

Explanation:
Amazon EC2 provides Amazon Machine Images (AMIs), which are preconfigured templates for your instances.