Chapter 8: SQS, SWF, and SNS

2018-07-19  本文已影响98人  K1024

Chapter 8: SQS, SWF, and SNS

  1. D. Amazon DynamoDB is not a supported Amazon SNS protocol.
  1. A. When you create a new Amazon SNS topic, an Amazon ARN is created automatically.
  1. A, C, D. Publishers, subscribers, and topics are the correct answers. You have subscribers to an Amazon SNS topic, not readers.
  1. A. The default time for an Amazon SQS visibility timeout is 30 seconds.
  1. D. The maximum time for an Amazon SQS visibility timeout is 12 hours.
  2. B, D. The valid properties of an SQS message are Message ID and Body. Each message receives a system-assigned Message ID that Amazon SQS returns to you in the SendMessage response. The Message Body is composed of name/value pairs and the unstructured, uninterpreted content.
  1. B. Use a single domain with multiple workflows. Workflows within separate domains cannot interact.
  1. A, B, C. In Amazon SWF, actors can be activity workers, workflow starters, or deciders.
  1. B. Amazon SWF would best serve your purpose in this scenario because it helps developers build, run, and scale background jobs that have parallel or sequential steps. You can think of Amazon SWF as a fully-managed state tracker and task coordinator in the Cloud.
  1. D. Amazon SQS does not guarantee in what order your messages will be delivered.
  1. A. Multiple queues can subscribe to an Amazon SNS topic, which can enable parallel asynchronous processing.
  1. D. Long polling allows your application to poll the queue, and, if nothing is there, Amazon Elastic Compute Cloud (Amazon EC2) waits for an amount of time you specify (between 1 and 20 seconds). If a message arrives in that time, it is delivered to your application as soon as possible. If a message does not arrive in that time, you need to execute the ReceiveMessage function again.
  1. B. The maximum time for an Amazon SQS long polling timeout is 20 seconds.
  1. D. The longest configurable message retention period for Amazon SQS is 14 days.
  1. B. The default message retention period that can be set in Amazon SQS is four days.
  1. D. With Amazon SNS, you send individual or multiple messages to large numbers of recipients using publisher and subscriber client types.
  1. B. The decider schedules the activity tasks and provides input data to the activity workers. The decider also processes events that arrive while the workflow is in progress and closes the workflow when the objective has been completed.
  1. C. Topic names should typically be available for reuse approximately 30–60 seconds after the previous topic with the same name has been deleted. The exact time will depend on the number of subscriptions active on the topic; topics with a few subscribers will be available instantly for reuse, while topics with larger subscriber lists may take longer.
  1. C. The main difference between Amazon SQS policies and IAM policies is that an Amazon SQS policy enables you to grant a different AWS account permission to your Amazon SQS queues, but an IAM policy does not.
  1. C. No. After a message has been successfully published to a topic, it cannot be recalled.

知识点总结

上一篇下一篇

猜你喜欢

热点阅读