Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MQ and ECS

Total questions: 8

Worksheet time: 6mins

Name
Class
Date
1.

You're running many micro-services applications on-premises and they communicate using a message broker that supports MQTT protocol. You're planning to migrate these applications to AWS without re-engineering the applications and modifying the code. Which AWS service allows you to get a managed message broker that supports the MQTT protocol?

a)

Amazon SQS

b)

Amazon SNS

c)

Amazon Kinesis

d)

Amazon MQ

2.

You have multiple Docker-based applications hosted on-premises that you want to migrate to AWS. You don't want to provision or manage any infrastructure; you just want to run your containers on AWS. Which AWS service should you choose?

a)

Elastic Container Service (ECS) in EC2 Launch Mode

b)

Elastic Container Registry (ECR)

c)

AWS Fargate on ECS

d)

Elastic Cloud Compute

3.

Amazon Elastic Container Service (ECS) has two Launch Types: .................. and ..................

a)

EC2 and Fargate

b)

EC2 and EKS

c)

EKS and Fargate

4.

You have an application hosted on an ECS Cluster (EC2 Launch Type) where you want your ECS tasks to upload files to an S3 bucket. Which IAM Role for your ECS Tasks should you modify?

a)

EC2 Instance Profile

b)

ECS Task Role

5.

You're planning to migrate a WordPress website running on Docker containers from on-premises to AWS. You have decided to run the application in an ECS Cluster, but you want your docker containers to access the same WordPress website content such as website files, images, videos, etc. What do you recommend to achieve this?

a)

Mount an EFS volume

b)

Mount an EBS volume

c)

Use an EC2 Instance Store

6.

You are deploying an application on an ECS Cluster made of EC2 instances. Currently, the cluster is hosting one application that is issuing API calls to DynamoDB successfully. Upon adding a second application, which issues API calls to S3, you are getting authorization issues. What should you do to resolve the problem and ensure proper security?

a)

Edit the EC2 instance role to add permissions to S3

b)

Create an IAM task role for the new application

c)

Enable the Fargate mode

d)

Edi the S3 bucket policy to allow the ECS task

7.

Which feature allows an Application Load Balancer to redirect traffic to multiple ECS Tasks running on the same ECS Container instance?

Dynamic Port Mapping

Automatic Port Mapping

ECS Task Definition

ECS Service

a)

Dynamic Port Mapping

b)

Automatic Port Mapping

c)

ECS Task Definition

d)

ECS Service

8.

A leading social media analytics company is contemplating moving its dockerized application stack into AWS Cloud. The company is not sure about the pricing for using Elastic Container Service (ECS) with the EC2 launch type compared to the Elastic Container Service (ECS) with the Fargate launch type.

Which of the following is correct regarding the pricing for these two services?

a)

ECS with EC2 launch type is charged based on EC2 instances and EBS volumes used. ECS with Fargate launch type is charged based on vCPU and memory resources that the containerized application requests

b)

Both ECS with EC2 launch type and ECS with Fargate launch type are charged based on vCPU and memory resources that the containerized application requests

c)

Both ECS with EC2 launch type and ECS with Fargate launch type are charged based on EC2 instances and EBS volumes used

d)

Both ECS with EC2 launch type and ECS with Fargate launch type are just charged based on Elastic Container Service used per hour