Design High-Performing Architectures Flashcards

1
Q

You have just started work at a small startup in the Seattle area. Your first job is to help containerize your company’s microservices and move them to AWS. The team has selected ECS as their orchestration service of choice. You’ve discovered the code currently uses access keys and secret access keys in order to communicate with S3. How can you best handle this authentication for the newly containerized application?

A

Attach a role with the appropriate permissions to the task definition in ECS.

It’s always a good idea to use roles over hard-coded credentials. One of the best parts of using ECS is the ease of attaching roles to your containers. This allows the container to have an individual role even if it’s running with other containers on the same EC2 instance.

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

A pharmaceutical company has begun to explore using AWS cloud services for their computation workloads for processing incoming orders. Currently, they process orders on-premises using self-managed virtual machines with batch software installed. The current infrastructure design does not scale well and is cumbersome to update. In addition, each processed batch job takes roughly 30-45 minutes to complete. The processing times cannot be reduced due to the complexity of the application code, and they want to make the new solution as hands-off as possible with automatic scaling based on the number of queued orders.

Which AWS service would you recommend they use for this application design that best meets their needs and is cost optimized?

A

AWS Batch

AWS Batch is perfect for long-running (>15 minutes) batch computation workloads within AWS while leveraging managed compute infrastructure. It automatically provisions compute resources and then optimizes workload distribution based on the quantity and scale of your workloads.

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

You have just been hired by a large organization which uses many different AWS services in their environment. Some of the services which handle data include: RDS, Redshift, ElastiCache, DynamoDB, S3, and Glacier. You have been instructed to configure a web application using stateless web servers. Which services can you use to handle session state data?

A

Elasticache and DynamoDB both can be used to store session data.

Amazon RDS can store session state data. It is slower than Amazon DynamoDB, but may be fast enough for some situations.

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

A fully managed service for loading streaming data into AWS. It’s designed to make it easy to capture, transform, and load streaming data into data lakes, data stores, and analytics tools.

A

Amazon Kinesis Data Firehose

It can capture, transform, and deliver streaming data to Amazon S3, Amazon Redshift, Amazon OpenSearch Service (formerly known as Amazon Elasticsearch Service), generic HTTP endpoints, and service providers like Datadog, New Relic, MongoDB, and Splunk.

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

A time-series forecasting service that uses machine learning and provides business insights.

A

Amazon Forecast

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

A fully managed service that allows you to build and run applications that use Apache Kafka to process streaming data. Kafka is often used for real-time streaming of data pipelines and streaming analytics.

A

Amazon Managed Streaming for Apache Kafka (MSK)

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

A fully managed integration service that enables secure transfer of data between Software as a Service (SaaS) applications like Salesforce, Marketo, Slack, and AWS services like S3 and Redshift, in real time.

A

AWS AppFlow

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

A managed message broker service for Apache ActiveMQ and RabbitMQ that makes it easy to set up and operate message brokers in the cloud.

A

Amazon MQ

Amazon MQ supports industry-standard APIs and protocols for messaging, including JMS, NMS, AMQP, STOMP, MQTT, and WebSocket. This means you can easily migrate your existing applications to the service without having to rewrite code.

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

A logical grouping of instances within a single Availability Zone.

A

A cluster placement group

A cluster placement group can span peered VPCs in the same Region. Instances in the same cluster placement group enjoy a higher per-flow throughput limit for TCP/IP traffic and are placed in the same high-bisection bandwidth segment of the network.

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

A group of instances that are each placed on distinct underlying hardware.

A

Spread Placement Groups

Spread placement groups are recommended for applications that have a small number of critical instances that should be kept separate from each other. They ensure that instances are placed on distinct racks, with each rack having its own network and power source.

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

A group of instances that are separated into logical segments, called partitions. Each partition has its own set of racks. Each rack has its own network and power source.

A

Partition Placement Groups

Partition placement groups are recommended for large distributed and replicated workloads, such as Hadoop, Cassandra, and Kafka.

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

____________ are a way to influence the distribution of instances, which can help in optimizing for latency, throughput, or resilience.

A

Placement Groups

You can’t merge placement groups or move an instance from one placement group to another after it’s been launched.

But you can create an AMI from your instance, launch a new instance from the AMI into a placement group, and then terminate the original instance.

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

__________ allows businesses and developers to convert media files from their original source format into versions that are optimized for various devices, such as smartphones, tablets, and PCs.

A

Amazon Elastic Transcoder

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

__________ is a NoSQL database that supports key-value and document data models, and enables developers to build modern, serverless applications that can start small and scale globally to support petabytes of data and tens of millions of read and write requests per second.

A

Amazon DynamoDB

DynamoDB is designed to run high-performance, internet-scale applications that would overburden traditional relational databases

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

An OLAP database service that is designed for online analytic processing and business intelligence applications

A

Amazon Redshift

It provides powerful query and data manipulation capabilities with high performance and scalability.

Near real-time complex querying on massive data sets.

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

Supports various database engines like MySQL, PostgreSQL, Oracle, MariaDB, and SQL Server, as well as Amazon’s own Aurora.

A

Amazon RDS (Relational Database Service)

17
Q

A MySQL and PostgreSQL-compatible relational database built for the cloud that combines the performance and availability of traditional enterprise databases with the simplicity and cost-effectiveness of open source databases.

A

Amazon Aurora

18
Q

An interactive query service that makes it easy to analyze data directly in Amazon S3 using standard SQL.

A

Amazon Athena

19
Q

___________ is a web service that makes it easy to deploy, operate, and scale an in-memory data store or cache in the cloud. The service improves the performance of web applications by allowing you to retrieve information from fast, managed, in-memory data stores, instead of relying entirely on slower disk-based databases.

A

ElastiCache

There are two types of ElastiCache available: Memcached and Redis.

20
Q

A data transfer service that simplifies, automates, and accelerates moving and replicating data between on-premises storage systems and AWS storage services, or between two AWS storage services.

A

AWS DataSync

Key Features of AWS DataSync:

DataSync automatically handles many of the tasks related to data transfers that can slow down migrations or burden your IT operations.
It uses a purpose-built protocol with built-in validation to ensure data integrity.
DataSync can be used for data migration, transfer for in-cloud processing, and replicating data for business continuity.
21
Q

A hybrid storage service that enables your on-premises applications to seamlessly use AWS cloud storage.

A

AWS Storage Gateway

(File Gateway, Volume Gateway, and Tape Gateway)

Storage Gateway integrates with your existing applications via standard storage protocols.
It provides low-latency access to data through transparent local caching.
Storage Gateway can be used for moving backups to the cloud, using on-premises file shares backed by cloud storage, and providing low latency access to datasets.
22
Q

A service that brings AWS services to the edge of the 5G network, minimizing the latency when connecting to an application from a mobile device.

A

AWS Wavelength

Wavelength enables developers to build applications that deliver single-digit millisecond latencies to mobile devices and end-users.

23
Q

A fully managed service that extends AWS infrastructure, AWS services, APIs, and tools to virtually any datacenter, co-location space, or on-premises facility for a truly consistent hybrid experience.

A

AWS Outposts

The actual Outposts hardware is a rack that is very similar to those found in AWS data centers, which comes fully loaded with compute, storage, and networking.

24
Q

A service provided by AWS to help with migrating applications to AWS. It’s designed to simplify, expedite, and reduce the cost of migrating applications to AWS without requiring significant changes to the applications being migrated.

A

AWS MGN (Application Migration Service)

AWS MGN is the recommended service for lift-and-shift migrations to AWS.

25
Q

A service provided by AWS to help you migrate databases to AWS easily and securely. The source database remains fully operational during the migration, minimizing downtime to applications that rely on the database.

A

AWS DMS (Database Migration Service)

AWS DMS can migrate your data to and from most widely used commercial and open-source databases such as Oracle, PostgreSQL, Microsoft SQL Server, Amazon Redshift, Amazon Aurora, MariaDB, and MySQL

AWS DMS is typically used for database migrations but can also be used for continuous data replication with and without ongoing changes, as it provides both one-time migration and continuous replication capabilities.

26
Q

An AWS offering that simplifies the process of migrating on-premises workloads to AWS. It’s designed to automate, schedule, and track incremental replications of live server volumes, making it easier to coordinate large-scale server migrations.

A

AWS Server Migration Service (SMS)

AWS Server Migration Service is generally best suited for larger-scale migration projects where you need to move multiple on-premises servers to the AWS Cloud.