WorksheetsAWS Solutions Architect Associate - Serverless, Data Analytics
Total questions: 67
Worksheet time: 34mins
You have an e-commerce website and you are preparing for Black Friday which is the biggest sale of the year. You expect that your traffic will increase by 100x. Your website already using an SQS Standard Queue, and you're running a fleet of EC2 instances in an Auto Scaling Group to consume SQS messages. What should you do to prepare your SQS Queue?
Contact AWS Support to pre-warm your SQS Standard Queue
Enable Auto Scaling in your SQS queue
Increase the capacity of the SQS queue
Do nothing, SQS scales automatically
You have an SQS Queue where each consumer polls 10 messages at a time and finishes processing them in 1 minute. After a while, you noticed that the same SQS messages are received by different consumers resulting in your messages being processed more than once. What should you do to resolve this issue?
Enable Long Polling
Add DelaySeconds parameter to the messages when being produced
Increase Visibility Timeout
Decrease the Visibility Timeout
Which SQS Queue type allows your messages to be processed exactly once and in order?
SQS Standard Queue
SQS Dead Letter Queue
SQS Delay Queue
SQS FIFO Queue
You have 3 different applications and you'd like to send them the same message. All 3 applications are using SQS. What is the best approach would you choose?
Use SQS Replication Feature
Use SNS + SQS Fan Out Pattern
Send messages individually to 3 SQS queues
You have a Kinesis data stream with 6 shards provisioned. This data stream usually receives 5 MB/s of data and sends out 8 MB/s. Occasionally, your traffic spikes up to 2x and you get a ProvisionedThroughputExceeded exception. What should you do to resolve the issue?
Add more Shards
Enable Kinesis Replication
Use SQS as a buffer to Kinesis
You have a website where you want to analyze clickstream data such as the sequence of clicks a user makes, the amount of time a user takes, and where the navigation begins and how it ends. You decided to use Amazon Kinesis, so you have configured the website to send clickstream data to a Kinesis data stream. When you check the data sent to your Kinesis data stream, you find that the users' data is not ordered and the data for individual users is spread across many shards. How would you fix this problem?
There are too many shards, you should only use 1 shard
You shouldn't use multiple consumers, only one and it should re-order data
For each record sent to Kinesis, add a partition key that represents the identity of the user
You are running an application that produces a large amount of real-time data that you want to load into S3 and Redshift. Also, this data must be transformed before being delivered to its destination. What is the best architecture you can choose?
SQS + AWS Lambda
SNS + HTTP Endpoint
Kinesis Data Streams + Kinesis Data Firehose
Which of the following is NOT a supported subscriber for AWS SNS?
Amazon Kinesis Data Streams
Amazon SQS
HTTP(S) Endpoint
AWS Lambda
Which AWS service helps you when you want to send email notifications to your users?
Amazon SQS with AWS Lambda
Amazon SNS
Amazon Kinesis
You're running many micro-services applications on-premises and they communicate using a message broker that supports the MQTT protocol. You're planning to migrate these applications to AWS without re-engineering each app and modifying the code. Which AWS service allows you to get a managed message broker that supports the MQTT protocol?
Amazon SQS
Amazon SNS
Amazon Kinesis
Amazon MQ
An e-commerce company is preparing for a big marketing promotion that will bring millions of transactions. Their website is hosted on EC2 instances in an Auto Scaling Group with Amazon Aurora as their database. The Aurora database has a bottleneck where many transactions failed during the latest promotion. The Aurora database wasn’t prepared to handle the large increase in transactions. What architecture would you recommend to prevent any future failed transactions?
Use SQS as a buffer to write to Aurora
Host the website in AWS Fargate instead of EC2 instances
Migrate Aurora to RDS for SQL Server
A company uses Amazon Kinesis Data Streams to ingest clickstream data to perform analytical processes. There is a campaign in the next few days so traffic may become unpredictable and grow 100x. What Kinesis Data Stream capacity mode do you recommend?
Provisioned Mode
On-demand Mode
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?
Elastic Container Service (ECS) in EC2 Launch Mode
Elastic Container Registry (ECR)
AWS Fargate on AWS
Amazon Elastic Container Service (ECS) has two Launch Types: ________ and ________.
Amazon EC2 Launch Type and Fargate Launch Type
Amazon EC2 Launch Type and EKS Launch Type
Fargate Launch Type and EKS Launch Type
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?
EC2 Instance Profile
ECS Task Role
You plan 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?
Mount an EFS volume
Mount an EBS volume
Use an EC2 Instance Store
You are deploying an application on an ECS Cluster made of EC2 instances. Currently, the cluster is hosting one application that issues API calls to DynamoDB successfully. Upon adding a second application, which issues API calls to S3, you get authorization issues. What should you do to resolve the problem and ensure proper security?
Edit the EC2 instance role to add permissions to S3
Create an IAM task role for the new application
Enable the Fargate mode
Edit the S3 bucket policy to allow the ECS task
You are migrating your on-premises Docker-based applications to Amazon ECS. You were using Docker Hub Container Image Library as your container image repository. Which is an alternative AWS service that is fully integrated with Amazon ECS?
AWS Fargate
Elastic Container Registry (ECR)
Elastic Kubernetes Service (EKS)
Amazon EC2
Amazon EKS supports the following node types, EXCEPT:
Managed Node Groups
Self-Managed nodes
AWS Fargate
AWS Lambda
A developer has a running website and APIs on his local machine using containers and he wants to deploy both of them on AWS. The developer is new to AWS and doesn’t know much about different AWS services. Which of the following AWS services allows the developer to build and deploy the website and the APIs in the easiest way according to AWS best practices?
AWS App Runner
EC2 Instances + Application Load Balancer
Amazon ECS
AWS Fargate
You have created a Lambda function that typically will take around 1 hour to process some data. The code works fine when you run it locally on your machine, but when you invoke the Lambda function it fails with a "timeout" error after 3 seconds. What should you do?
Configure your Lambda's timeout to 25 minutes
Configure your Lambda's memory to 10 GB
Run your code somewhere else (ex. EC2 instance)
Before you create a DynamoDB table, you need to provision the EC2 instance the DynamoDB table will run on.
True
False
You have provisioned a DynamoDB table with 10 RCUs and 10 WCUs. A month later you want to increase the RCU to handle more read traffic. What should you do?
Increase RCU and keep WCU the same
You need to increase both RCU and WCU
Increase RCU and decrease WCU
You have an e-commerce website where you are using DynamoDB as your database. You are about to enter the Christmas sale and you have a few very popular items and expect they will be read often. Unfortunately, last year due to the huge traffic you had the ProvisionedThroughputExceededException exception. What would you do to prevent this error from happening again?
Increase the RCU to a very high value
Create a DAX Cluster
Migrate the database away from DynamoDB for the time of the sale
You have developed a mobile application that uses DynamoDB as its data store. You want to automate sending welcome emails to new users after they sign up. What is the most efficient way to achieve this?
Schedule a Lambda function to run every minute using CloudWatch Events, scan the entire table looking for new users
Enable SNS and DynamoDB integration
Enable DynamoDB Streams and configure it to invoke a Lambda function to send emails
To create a serverless API, you should integrate Amazon API Gateway with ________.
EC2 Instance
Elastic Load Balancing
AWS Lambda
When you are using an Edge-Optimized API Gateway, your API Gateway lives in CloudFront Edge Locations across all AWS Regions.
True
False
You are running an application in production that is leveraging DynamoDB as its datastore and is experiencing smooth sustained usage. There is a need to make the application run in development mode as well, where it will experience an unpredictable volume of requests. What is the most cost-effective solution that you recommend?
Use Provisioned Capacity Mode with Auto Scaling enabled for both development and production
Use Provisioned Capacity Mode with Auto Scaling enabled for production and use On-Demand Capacity Mode for development
Use Provisioned Capacity Mode with Auto Scaling enabled for development and use On-Demand Capacity Mode for production
Use On-Demand Capacity Mode for both development and production
You have an application that is served globally using CloudFront Distribution. You want to authenticate users at CloudFront Edge Locations instead of authentication requests going all the way to your origins. What should you use to satisfy this requirement?
Lambda@Edge
API Gateway
DynamoDB
AWS Global Accelerator
The maximum size of an item in a DynamoDB table is ________.
1 MB
400 KB
500 KB
400 MB
Which AWS service allows you to build Serverless workflows using AWS services (e.g., Lambda) and supports human approval?
AWS Lambda
Amazon ECS
AWS Step Functions
AWS Storage Gateway
A company has a serverless application on AWS which consists of Lambda, DynamoDB, and Step Functions. In the last month, there are an increase in the number of requests against the application which results in an increase in DynamoDB costs, and requests started to be throttled. After further investigation, it shows that the majority of requests are read requests against some queries in the DynamoDB table. What do you recommend to prevent throttles and reduce costs efficiently?
Use an EC2 instance with Redis installed and place it between the Lambda function and the DynamoDB table
Migrate from DynamoDB to Aurora and use ElastiCache to cache the most requested read data
Migrate from DynamoDB to S3 and use CloudFront to cache the most requested read data
Use DynamoDB Accelerator (DAX) to cache the most requested read data
You are a DevOps engineer in a football company with a website backed by a DynamoDB table. The table stores viewers’ feedback for football matches. You have been tasked to work with the analytics team to generate reports on the viewers’ feedback. The analytics team wants the data in DynamoDB in JSON format and hosted in an S3 bucket to start working on it and create the reports. What is the best and most cost-effective way to convert DynamoDB data to JSON files?
Select DynamoDB table then select Export to S3
Create a Lambda function to read DynamoDB data, convert them to json files, then store the files in an S3 bucket
Use the AWS Transfer Family
Use AWS DataSync
A website is currently in development and will be hosted on AWS. There is a requirement to store user sessions for users logged in to the website with an automatic expiry and deletion of expired user sessions. Which of the following AWS services are best suited for this use case?
Store users’ sessions in an S3 bucket and enable S3 Lifecycle Policy
Store users’ sessions locally in an EC2 instance
Store users’ sessions in a DynamoDB table and enable TTL
Store users’ sessions in an EFS file system
You have a mobile application and would like to give your users access to their own personal space in the S3 bucket. How do you achieve that?
Generate IAM user credentials for each of your application's users
Use Amazon Cognito Identity Federation
Use SAML Identity Federation
Use a Bucket Policy to make your bucket public
You are developing a new web and mobile application hosted on AWS and are working on developing the login and signup page. The application backend is serverless and you are using Lambda, DynamoDB, and API Gateway. Which of the following is the best and easiest approach to configure the authentication for your backend?
Store users' credentials in a DynamoDB
Store users' credentials in an S3 bucket encrypted using KMS
Use Cognito User Pools
Store users' credentials in AWS Secrets Manager
You are running a mobile application where you want each registered user to upload/download images to/from their own folder in the S3 bucket. Also, you want to allow users to sign up and sign in using their social media accounts (e.g., Facebook). Which AWS service should you choose?
AWS Identity and Access Management (IAM)
AWS IAM Identity Center
Amazon Cognito
Amazon CloudFront
You would like to have a database that is efficient at performing analytical queries on large sets of columnar data. You would like to connect to a Data Warehouse using a reporting and dashboard tool such as Amazon QuickSight. Which AWS technology do you recommend?
Amazon RDS
Amazon S3
Amazon Redshift
Amazon Neptune
You have a lot of log files stored in an S3 bucket that you want to analyze, if possible, serverless, to filter and find users that attempted to make an unauthorized action. Which AWS service allows you to do so?
Amazon DynamoDB
Amazon Redshift
S3 Glacier
Amazon Athena
As a Solutions Architect, you have been instructed you to prepare a disaster recovery plan for a Redshift cluster. What should you do?
Enable Multi-AZ
Enable Automated Snapshots, then configure your Redshift cluster to automatically copy snapshots to another AWS Region
Take a snapshot then restore to a a Redshift Global Cluster
Which feature in Redshift forces all COPY and UNLOAD traffic moving between your cluster and data repositories to move through your VPCs?
Enhanced VPC Routing
Improved VPC Routing
Redshift Spectrum
You are running a gaming website that is using DynamoDB as its data store. Users have been asking for a search feature to find other gamers by name, with partial matches if possible. Which AWS technology do you recommend to implement this feature?
Amazon DynamoDB
Amazon Redshift
Amazon OpenSearch Service
Amazon Neptune
________ is an AWS service that allows you to create, run, and monitor ETL (extract, transform, and load) jobs in a few clicks.
AWS Glue
Amazon Redshift
Amazon RDS
Amazon DynamoDB
A company is using AWS to host its public websites and internal applications. Those different websites and applications generate a lot of logs and traces. There is a requirement to centrally store those logs and efficiently search and analyze those logs in real-time for detection of any errors and if there is a threat. Which AWS service can help them efficiently store and analyze logs?
Amazon S3
Amazon OpenSearch Service
Amazon ElastiCache
Amazon QLDB
________ makes it easy and cost-effective for data engineers and analysts to run applications built using open source big data frameworks such as Apache Spark, Hive, or Presto without having to operate or manage clusters.
AWS Lambda
Amazon EMR
Amazon Athena
Amazon OpenSearch Service
An e-commerce company has all its historical data such as orders, customers, revenues, and sales for the previous years hosted on a Redshift cluster. There is a requirement to generate dashboards and reports indicating the revenues from the previous years and the total sales, to easily define requirements for the next year. The DevOps team is assigned to find an AWS service that can help define these dashboards with native integration with Redshift. Which AWS service is best suited?
Amazon OpenSearch Service
Amazon Athena
Amazon QuickSight
Amazon EMR
Which AWS Glue feature allows you to save and track the data that has already been processed during a previous run of a Glue ETL job?
Glue Job Bookmarks
Glue Elastic Views
Glue Streaming ETL
Glue DataBrew
You are a DevOps engineer in a machine learning company with 3 TB of JSON files stored in an S3 bucket. There’s a requirement to analyze these files using Amazon Athena and you have been tasked to find a way to convert each file from JSON to Apache Parquet. Which AWS service is best suited?
S3 Object Versioning
Kinesis Data Streams
Amazon MSK
AWS Glue
You have an on-premises application that is used together with an on-premises Apache Kafka to receive a stream of clickstream events from multiple websites. You have been tasked to migrate this application as soon as possible without any code changes. You decided to host the application on an EC2 instance. What is the best option you recommend to migrate Apache Kafka?
Kinesis Data Streams
AWS Glue
Amazon MSK
Kinesis Data Analytics
You have data stored in RDS, S3 buckets and you are using AWS Lake Formation as a data lake to collect, move and catalog data so you can do some analytics. You have a lot of big data and ML engineers in the company and you want to control access to part of the data as it might contain sensitive information. What can you use?
Lake Formation Fine-Grained Access Control
Amazon Cognito
AWS Shield
S3 Object Lock
Which AWS service is most appropriate when you want to perform real-time analytics on streams of data?
Amazon SQS
Amazon SNS
Amazon Kinesis Data Analytics
Amazon Kinesis Data Firehose
You should use Amazon Transcribe to turn text into lifelike speech using deep learning.
True
False
A company would like to implement a chatbot that will convert speech-to-text and recognize the customers' intentions. What service should it use?
Amazon Transcribe
Amazon Rekognition
Amazon Connect
Amazon Lex
Which fully managed service can deliver highly accurate forecasts?
Amazon Personalize
Amazon SageMaker
Amazon Lex
Amazon Forecast
You want to find objects, people, text, or scenes in images and videos. What AWS service should you use?
Amazon Rekognition
Amazon Polly
Amazon Kendra
Amazon Lex
A start-up would like to rapidly create customized user experiences. Which AWS service can help?
Amazon Personalize
Amazon Kendra
Amazon Connect
A research team would like to group articles by topics using Natural Language Processing (NLP). Which service should they use?
Amazon Translate
Amazon Comprehend
Amazon Lex
Amazon Rekognition
A company would like to convert its documents into different languages, with natural and accurate wording. What should they use?
Amazon Transcribe
Amazon Polly
Amazon Translate
Amazon WordTranslator
A developer would like to build, train, and deploy a machine learning model quickly. Which service can he use?
Amazon SageMaker
Amazon Polly
Amazon Comprehend
Amazon Personalize
Which AWS service makes it easy to convert speech-to-text?
Amazon Connect
Amazon Translate
Amazon Transcribe
Amazon Polly
Which of the following services is a document search service powered by machine learning?
Amazon Forecast
Amazon Kendra
Amazon Comprehend
Amazon Polly
A company is managing an image and video-sharing platform used by customers around the globe. The platform is running on AWS using an S3 bucket to host images and videos and CloudFront as the CDN to deliver content to customers globally with low latency. In the last couple of months, many customers have complained that they have begun to see inappropriate content on the platform in the last week. It will be very expensive and time-consuming for employees to manually approve those images and videos before it's published on the platform. There is a requirement to find a solution that can automatically detect inappropriate and offensive content and give you the ability to set a minimum confidence threshold for items that will be flagged and allow for manual review. Which AWS service can fit the requirement?
Amazon Polly
Amazon Translate
Amazon Lex
Amazon Rekognition
An online medical company that allows you to book an appointment with doctors through a phone call uses AWS to host their infrastructure. They use Amazon Connect and Amazon Lex to receive calls, create workflows, book appointments, and process payments. According to the company’s policy, all calls must be recorded for review. There is a requirement to remove any Personally Identifiable Information (PII) from the call before it's saved. What do you recommend to use to help remove PII from calls?
Amazon Polly
Amazon Transcribe
Amazon Rekognition
Amazon Forecast
Amazon Polly allows you to turn text into speech. It has two important features. First is ________ which allows you to customize the pronunciation of words (e.g., “Amazon EC2” will be “Amazon Elastic Compute Cloud”). The second is ________ which allows you to emphasize words, including breathing sounds, whispering, and more.
Speech Synthesis Markup Language (SSML), Pronunciation Lexicons
Pronunciation Lexicons, Security Assertion Markup Language (SAML)
Pronunciation Lexicons, Speech Synthesis Markup Language (SSML)
Security Assertion Markup Language (SAML), Pronunciation Lexicons
A medical company is in the process of implementing a solution to detect, extract, and analyze information from unstructured medical text like doctors’ notes, clinical trial reports, and radiology reports. Those documents are uploaded and stored on S3 buckets. According to the company’s regulations, the solution must be designed and implemented to keep patients’ privacy by identifying Protected Health Information (PHI) so the solution will be eligible with HIPAA. Which AWS service should you use?
Amazon Comprehend Medical
Amazon Rekognition
Amazon Polly
Amazon Translate
Which of the following services is a full managed, petabyte-scale data warehouse service in the AWS cloud?
Amazon Redshift
Amazon DynamoDB
Amazon ElastiCache
Amazon Aurora
