Skip to content
Pablo Rodriguez

Knowledge Check

Building Decoupled Architectures Knowledge Check

Section titled “Building Decoupled Architectures Knowledge Check”

Which statement describes the difference between tightly and loosely coupled architectures?

  • Loose coupling increases the complexity of scaling. Tight coupling decreases it.
  • Tightly coupled architectures are more likely to fail than loosely coupled architectures.
  • Loosely coupled architectures must use managed services, and tightly coupled architectures don’t have this limitation.
  • Components in a tightly coupled architecture are highly dependent on each other. In a loosely coupled architecture, components aren’t highly dependent on each other. ✓

Which statements describe Amazon Simple Queue Service (Amazon SQS)? (Select THREE.)

  • Requires a consumer to poll the queue for messages ✓
  • Supports email and text messaging
  • Sends push notifications to consumers
  • Supports standard queues and topics
  • Stores and optionally encrypts messages until they are processed and deleted ✓
  • Enables you to decouple and scale microservices, distributed systems, and serverless applications ✓

Which statements are true when using an Amazon Simple Queue Service (Amazon SQS) standard queue? (Select TWO.)

  • Messages must be processed in the order that they are sent.
  • Messages can be assigned a priority.
  • Messages can be sent in any order. ✓
  • A message might be delivered more than once. ✓
  • A message must be processed only once.

A fleet of Amazon EC2 instances process videos that users upload. Which function can Amazon Simple Queue Service (Amazon SQS) perform in this application?

  • EC2 instances put edited video files in an SQS queue. The application retrieves the videos from the queue.
  • The application places job messages in an SQS queue. EC2 instances with available processing capacity pull the next job message from the queue. ✓
  • An SQS queue receives messages from the application and notifies all available EC2 instances that videos are available.
  • The application writes the video files to an SQS queue. EC2 instances with available processing capacity pull the next video from the queue.

What is Amazon Simple Notification Service (Amazon SNS)?

  • A cost-effective, flexible, and scalable email service that enables developers to send email from within any application
  • A fully managed messaging service for both system-to-system and application-to-person (A2P) communication, which uses publish/subscribe patterns ✓
  • A flexible and scalable outbound and inbound marketing communications service that uses email, short message service (SMS), push, or voice communication channels
  • A serverless event bus that enables easy connection of applications by using data from your own applications, integrated software as a service (SaaS) applications, and AWS services

What are some use cases for Amazon Simple Notification Service (Amazon SNS)? (Select THREE.)

  • Hold input until it can be processed in the order that it’s received.
  • Trigger a single AWS Lambda function when an object is created in an Amazon S3 bucket. ✓
  • Notify multiple systems that user input is ready for processing. ✓
  • Send a text message to systems operators when unusual activity has been detected. ✓
  • Send a push notification to mobile applications when a new software update is available.
  • Gather streaming data from multiple systems.

What are some features of Amazon Simple Notification Service (Amazon SNS)? (Select TWO.)

  • Guaranteed message delivery even when an endpoint isn’t accessible
  • Message delivery to an Amazon Simple Queue Service (Amazon SQS) queue ✓
  • Providing strict message ordering with standard topics.
  • Recall of sent messages
  • Message delivery to a URL ✓

Two different AWS Lambda functions must simultaneously process PDF files that are uploaded to an Amazon S3 bucket. The S3 event notification allows only one action when the PDF files are uploaded. Which solution provides the least complex way to process messages with both Lambda functions efficiently?

  • Send the S3 event to an Amazon Simple Notification Service (Amazon SNS) topic that both Lambda functions subscribe to. ✓
  • Send the S3 event to an Amazon Simple Queue Service (Amazon SQS) queue that both Lambda functions poll.
  • Send the S3 event to Amazon MQ for distribution to both Lambda functions.
  • Upload two copies of each PDF file by using different object key prefixes.

What is Amazon MQ?

  • Identity broker service
  • Message broker service ✓
  • Data migration service
  • Application monitoring service

Which is a common use case for Amazon MQ?

  • Upload a standalone static website to AWS.
  • Connect a virtual private cloud (VPC) to an on-premises network.
  • Decouple components in a new cloud-native application.
  • Leverage an existing on-premises application that uses Apache ActiveMQ to communicate between microservices. ✓