Application Integration Flashcards

Explain how AWS messaging services like SQS, SNS, and EventBridge facilitate communication between services. (13 cards)

1
Q

A company needs to publish messages to a thousands of subscribers simultaneously using a push mechanism.

Which AWS service should the company use?

  1. AWS Step Functions
  2. Amazon Simple Workflow Service (SWF)
  3. Amazon Simple Notification Service (Amazon SNS)
  4. Amazon Simple Queue Service (Amazon SQS)
A

3. Amazon Simple Notification Service

(Amazon SNS)

Amazon SNS is a publisher/subscriber notification service that uses a push mechanism to publish messages to multiple subscribers. Amazon SNS enables you to send messages or notifications directly to users with SMS text messages to over 200 countries, mobile push on Apple, Android, and other platforms or email (SMTP).

  • Amazon Simple Queue Service (Amazon SQS) is incorrect. SQS is a message queue service used for decoupling applications.
  • Amazon Simple Workflow Service (SWF) is incorrect. SWF is a workflow orchestration service, not a messaging service.
  • AWS Step Functions is incorrect. AWS Step Functions is a serverless workflow orchestration service for modern applications.

Reference:
Amazon Simple Notification Service

Save time with our AWS cheat sheets.

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

A financial services firm wants to build a real-time analytics platform where data can be streamed and analyzed on the fly. They are looking to use Apache Kafka for this, but they want to avoid the overhead of managing the Kafka infrastructure.

Which AWS service would be the best fit for this requirement?

  1. Amazon SQS
  2. Amazon Kinesis
  3. Amazon MSK
  4. Amazon Redshift
A

3. Amazon MSK

Amazon MSK (Managed Streaming for Kafka) is the correct choice as it is a fully managed service that facilitates building and running applications built on Apache Kafka without having to manage the underlying infrastructure. It would allow the financial services firm to focus on building their analytics platform without being concerned about Kafka’s infrastructure management, hence reducing the operational overhead.

Note: While the real AWS exam will often (but not always) expand the abbreviations, you must learn to recognize the services from their abbreviated names.

  • Amazon SQS is incorrect. This is a message queue service used to decouple the components of a cloud application, not suited for setting up and managing a real-time analytics platform based on Apache Kafka.
  • Amazon Kinesis is incorrect. Amazon Kinesis is incorrect as even though it is used for real-time streaming data and can technically be used to build a real-time analytics solution, it is not the best option when the requirement specifically mentions leveraging Apache Kafka. Kinesis has its own streaming data solution that is separate from Kafka.
  • Amazon Redshift is incorrect. This is a data warehousing service designed to work with business intelligence tools for analytical reporting, and it does not offer Apache Kafka as a service, which is what is needed for real-time analytics in this scenario.

Reference:
Amazon Managed Streaming for Apache Kafka features

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

A company is building a serverless workflow that coordinates multiple AWS services into a reliable application. They want a visual workflow that can track the status of each step in the application.

Which AWS service would facilitate creating this kind of workflow?

  1. AWS Lambda
  2. AWS Step Functions
  3. Amazon SNS
  4. Amazon SQS
A

2. AWS Step Functions

AWS Step Functions is the correct answer because it allows developers to coordinate multiple AWS services into serverless workflows. It provides a visual console to visualize the steps in the workflow, helping to build and update applications quickly and monitor the status of each step in the process.

  • AWS Lambda is incorrect. AWS Lambda is incorrect because, while it can run code in response to specific events, it doesn’t offer a direct way to visually orchestrate and coordinate workflows involving multiple AWS services.
  • Amazon SNS is incorrect. Amazon SNS (Simple Notification Service) is incorrect because it is primarily used for sending notifications and not for orchestrating workflows across multiple AWS services.
  • Amazon SQS is incorrect. Amazon SQS (Simple Queue Service) is incorrect because, while it can be used to decouple cloud applications, it doesn’t offer workflow orchestration with visual representation and tracking features.

Reference:
AWS Step Functions features

Save time with our AWS cheat sheets.

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

A new e-commerce company is looking for an AWS service to send transactional emails, such as order confirmations and password resets, to their customers.

Which AWS service would be most appropriate for this task?

  1. Amazon Simple Email Service (Amazon SES)
  2. Amazon Simple Notification Service (Amazon SNS)
  3. Amazon Simple Queue Service (Amazon SQS)
  4. Amazon Elastic Compute Cloud (Amazon EC2)
A

1. Amazon Simple Email Service

(Amazon SES)

Amazon SES is specifically designed to help users send transactional emails, marketing messages, and other types of content to their customers. It provides a reliable and cost-effective way for businesses to communicate with their customer base through emails, which is precisely what the e-commerce company needs for sending transactional emails like order confirmations and password resets.

  • Amazon Simple Notification Service (Amazon SNS) is incorrect. While Amazon SNS can send notifications via email, it is primarily designed to send messages to a distributed set of recipients and is not optimized for transactional emails.
  • Amazon Simple Queue Service (Amazon SQS) is incorrect. Amazon SQS is a message bus service used for decoupling applications that need to pass information between them. It is not suitable for sending emails.
  • Amazon Elastic Compute Cloud (Amazon EC2) is incorrect. Amazon EC2 can host applications and services, but it does not provide specialized functionalities for sending transactional emails, which is what the e-commerce company requires.

Reference:
Amazon SES Features

Save time with our AWS cheat sheets.

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

What is the main benefit of the principle of “loose coupling”?

  1. Reduce operational complexity
  2. Reduce interdependencies so a failure in one component does not cascade to other components
  3. Automate the deployment of infrastructure using code
  4. Enables applications to scale automatically based on current demand
A

2. Reduce interdependencies so a failure in one component does not cascade to other components

As application complexity increases, a desirable attribute of an IT system is that it can be broken into smaller, loosely coupled components. This means that IT systems should be designed in a way that reduces interdependencies—a change or a failure in one component should not cascade to other components.

  • Reduce operational complexity is incorrect. Loose coupling does not reduce operational complexity. In fact, it may increase complexity as you have more services running and more interactions.
  • Automate the deployment of infrastructure using code is incorrect. This is an example of Infrastructure as code – services such as CloudFormation provide this functionality.
  • Enables applications to scale automatically based on current demand is incorrect. This is an example of Elasticity.

Reference:
AWS Well-Architected

Save time with our AWS cheat sheets.

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

A company needs to publish messages to a thousands of subscribers simultaneously using a push mechanism.
Which AWS service should the company use?

  1. AWS Step Functions
  2. Amazon Simple Workflow Service (SWF)
  3. Amazon Simple Notification Service (Amazon SNS)
  4. Amazon Simple Queue Service (Amazon SQS)
A

3. Amazon Simple Notification Service (Amazon SNS)

Amazon SNS is a publisher/subscriber notification service that uses a push mechanism to publish messages to multiple subscribers. Amazon SNS enables you to send messages or notifications directly to users with SMS text messages to over 200 countries, mobile push on Apple, Android, and other platforms or email (SMTP).

  • Amazon Simple Queue Service (Amazon SQS) is incorrect. SQS is a message queue service used for decoupling applications.
  • Amazon Simple Workflow Service (SWF) is incorrect. SWF is a workflow orchestration service, not a messaging service.
  • AWS Step Functions is incorrect. AWS Step Functions is a serverless workflow orchestration service for modern applications.

Reference:
Amazon Simple Notification Service

Save time with our AWS cheat sheets.

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

A financial services firm wants to build a real-time analytics platform where data can be streamed and analyzed on the fly. They are looking to use Apache Kafka for this, but they want to avoid the overhead of managing the Kafka infrastructure.
Which AWS service would be the best fit for this requirement?

  1. Amazon SQS
  2. Amazon Kinesis
  3. Amazon MSK
  4. Amazon Redshift
A

3. Amazon MSK

Amazon MSK (Managed Streaming for Kafka) is the correct choice as it is a fully managed service that facilitates building and running applications built on Apache Kafka without having to manage the underlying infrastructure. It would allow the financial services firm to focus on building their analytics platform without being concerned about Kafka’s infrastructure management, hence reducing the operational overhead.
Note: While the real AWS exam will often (but not always) expand the abbreviations, you must learn to recognize the services from their abbreviated names.

  • Amazon SQS is incorrect. This is a message queue service used to decouple the components of a cloud application, not suited for setting up and managing a real-time analytics platform based on Apache Kafka.
  • Amazon Kinesis is incorrect. Amazon Kinesis is incorrect as even though it is used for real-time streaming data and can technically be used to build a real-time analytics solution, it is not the best option when the requirement specifically mentions leveraging Apache Kafka. Kinesis has its own streaming data solution that is separate from Kafka.
  • Amazon Redshift is incorrect. This is a data warehousing service designed to work with business intelligence tools for analytical reporting, and it does not offer Apache Kafka as a service, which is what is needed for real-time analytics in this scenario.

Reference:
Amazon Managed Streaming for Apache Kafka features

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

A company is building a serverless workflow that coordinates multiple AWS services into a reliable application. They want a visual workflow that can track the status of each step in the application.
Which AWS service would facilitate creating this kind of workflow?

  1. AWS Lambda
  2. AWS Step Functions
  3. Amazon SNS
  4. Amazon SQS
A

2. AWS Step Functions

AWS Step Functions is the correct answer because it allows developers to coordinate multiple AWS services into serverless workflows. It provides a visual console to visualize the steps in the workflow, helping to build and update applications quickly and monitor the status of each step in the process.

  • AWS Lambda is incorrect. AWS Lambda is incorrect because, while it can run code in response to specific events, it doesn’t offer a direct way to visually orchestrate and coordinate workflows involving multiple AWS services.
  • Amazon SNS is incorrect. Amazon SNS (Simple Notification Service) is incorrect because it is primarily used for sending notifications and not for orchestrating workflows across multiple AWS services.
  • Amazon SQS is incorrect. Amazon SQS (Simple Queue Service) is incorrect because, while it can be used to decouple cloud applications, it doesn’t offer workflow orchestration with visual representation and tracking features.

Reference:
AWS Step Functions features

Save time with our AWS cheat sheets.

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

A new e-commerce company is looking for an AWS service to send transactional emails, such as order confirmations and password resets, to their customers.
Which AWS service would be most appropriate for this task?

  1. Amazon Simple Email Service (Amazon SES)
  2. Amazon Simple Notification Service (Amazon SNS)
  3. Amazon Simple Queue Service (Amazon SQS)
  4. Amazon Elastic Compute Cloud (Amazon EC2)
A

1. Amazon Simple Email Service (Amazon SES)

Amazon SES is specifically designed to help users send transactional emails, marketing messages, and other types of content to their customers. It provides a reliable and cost-effective way for businesses to communicate with their customer base through emails, which is precisely what the e-commerce company needs for sending transactional emails like order confirmations and password resets.

  • Amazon Simple Notification Service (Amazon SNS) is incorrect. While Amazon SNS can send notifications via email, it is primarily designed to send messages to a distributed set of recipients and is not optimized for transactional emails.
  • Amazon Simple Queue Service (Amazon SQS) is incorrect. Amazon SQS is a message bus service used for decoupling applications that need to pass information between them. It is not suitable for sending emails.
  • Amazon Elastic Compute Cloud (Amazon EC2) is incorrect. Amazon EC2 can host applications and services, but it does not provide specialized functionalities for sending transactional emails, which is what the e-commerce company requires.

Reference:
Amazon SES Features

Save time with our AWS cheat sheets.

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

What is the main benefit of the principle of “loose coupling”?

  1. Reduce operational complexity
  2. Reduce interdependencies so a failure in one component does not cascade to other components
  3. Automate the deployment of infrastructure using code
  4. Enables applications to scale automatically based on current demand
A

2. Reduce interdependencies so a failure in one component does not cascade to other components

As application complexity increases, a desirable attribute of an IT system is that it can be broken into smaller, loosely coupled components. This means that IT systems should be designed in a way that reduces interdependencies—a change or a failure in one component should not cascade to other components.

  • Reduce operational complexity is incorrect. Loose coupling does not reduce operational complexity. In fact, it may increase complexity as you have more services running and more interactions.
  • Automate the deployment of infrastructure using code is incorrect. This is an example of Infrastructure as code – services such as CloudFormation provide this functionality.
  • Enables applications to scale automatically based on current demand is incorrect. This is an example of Elasticity.

Reference:
AWS Well-Architected

Save time with our AWS cheat sheets.

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

Which service records API activity on your account and delivers log files to an Amazon S3 bucket?

  1. Amazon CloudWatch
  2. Amazon S3 Event Notifications
  3. AWS CloudTrail
  4. Amazon CloudWatch Logs
A

3. AWS CloudTrail

AWS CloudTrail is a web service that records activity made on your account and delivers log files to an Amazon S3 bucket. CloudTrail is for auditing whereas CloudWatch is for performance monitoring.

  • Amazon CloudWatch is incorrect as this service performs performance monitoring, not API auditing.
  • Amazon S3 Event Notifications is incorrect. S3 Event Notifications is a feature that notifies you when certain events happen in your S3 buckets, it does not record API activity at the account level.
  • Amazon CloudWatch Logs is incorrect. Amazon CloudWatch Logs lets you monitor and troubleshoot your systems and applications using your existing system, application and custom log files

Reference:
AWS CloudTrail

Save time with our AWS cheat sheets.

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

Which service can be used for building and integrating loosely-coupled, distributed applications?

  1. Amazon EBS
  2. Amazon SNS
  3. Amazon EFS
  4. Amazon RDS
A

2. Amazon SNS

Amazon Simple Notification Service (Amazon SNS) is a web service that makes it easy to set up, operate, and send notifications from the cloud. Amazon SNS is used for building and integrating loosely-coupled, distributed applications.

Note: Sometimes AWS will expand abbreviations in answers and other times, like with this question, you just get the abbreviation. Therefore, there’s no workaround, you have to know your abbreviations!

  • Amazon EBS is incorrect. Amazon Elastic Block Storage (EBS) provides storage volumes for EC2 instances.
  • Amazon EFS is incorrect. Amazon Elastic File System (EFS) provides an NFS filesystem for usage by EC2 instances.
  • Amazon RDS is incorrect. Amazon Relational Database Service (RDS) provides a managed relational database service.

Reference:
Amazon Simple Notification Service

Save time with our AWS cheat sheets.

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

Which services can be used for asynchronous integration between application components?

(Select TWO.)

  1. Amazon SQS
  2. AWS Step Functions
  3. Amazon EC2 Auto Scaling
  4. AWS CloudFormation
  5. AWS Route 53
A

1. Amazon SQS
2. AWS Step Functions

Asynchronous integration is a form of loose coupling between services. This model is suitable for any interaction that does not need an immediate response and where an acknowledgement that a request has been registered will suffice.

Amazon Simple Queue Service (SQS) and AWS Step Functions both provide asynchronous integration. SQS provides a durable message bus and Step Functions is an orchestrated workflow service.

  • Amazon EC2 Auto Scaling is incorrect. Amazon EC2 Auto Scaling helps with horizontal scaling of your EC2 instances. This is not an example of asynchronous integration.
  • AWS CloudFormation is incorrect. AWS CloudFormation automates the deployment of infrastructure based on templates.
  • AWS Route 53 is incorrect. AWS Route 53 is a DNS service that resolves domain names to IP addresses.

Reference:
Architecting for the Cloud

Save time with our AWS cheat sheets.

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