Whizlabs Flashcards

1
Q

ElasticBeanstalk

Which Java versions are supported?

A

Java 7 & 8

As well as Corretto 8 & 11

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

ElasticBeanstalk

You need to change the JAVA_HOME, where can this be done?

A

On creation in Modify software -> Environment properties

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

ElasticBeanstalk

You created Single instance configuration and want to deploy using a rolling update, but there is no setting.

What is the reason?

A

Rolling updates can only be done in the “high availability” setting because it needs a load balancer

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

ElasticBeanstalk

What three tags are added per default?

A

elasticbeanstalk:environment-id
elasticbeanstalk:environment-name
Name

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

You work for a large bank and are tasked to build an application that allows 30 large customers to perform more than 1000 online transactions per second swiftly and collectively in the us-east-1 region. The size of each transaction is around 5 KB. Your manager has told you to ensure data is encrypted end-to-end, you decide to use AWS KMS to meet your requirements. While using the SDK and testing you see ThrottlingException error. How will you deliver the application with optimum performance metrics?

A. Send data directly to AWS KMS for encryption.
B. Use LocalCryptoMaterialsCache operation.
C. Use RequestServiceQuotaIncrease operation
D. Use AWS SQS to queue all requests made to AWS KMS.

A

Use LocalCryptoMaterialsCache operation.

LocalCryptoMaterialsCache is an in-memory cache that can be used to save data keys. It is a configurable cache that can configured to be made more secure.

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

You’re the lead developer for a company that uses AWS KMS to decrypt passwords from an AWS RDS MySQL database using an asymmetric CMK. While decrypting the data, you receive an InvalidCiphertextException error which causes the application to fail. You have made sure that the CMK ID used is accurate. What could have caused this error?

A. EncryptionAlgorithm set to default value.
B. EncryptionContext is empty
C. GrantTokens is an empty array.
D. KeyId is empty.

A

EncryptionAlgorithm set to default value.

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

You have been hired as a Database administrator by a start-up. Your first task is to modify a DynamoDB table so that its data expires automatically after a certain period of time. Upon looking at the documentation, you figured out that DynamoDB supports a concept of TTL using which you can achieve the same. What are the steps to use the feature?

A. Enable TTL and use the dataExpiry keyword as a key attribute to store the expiry timestamp.
B. Enable TTL and use any name of your choice as a key attribute to store the expiry timestamp.
C. Enable TTL and use the keyword expiryTTL as a key attribute to store the expiry timestamp.
D. It is by default enabled and will automatically pick a key attribute with timestamp value.

A

B. Enable TTL and use any name of your choice as a key attribute to store the expiry timestamp.

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

You are working as a Senior Software Developer for a large pharmaceutical company. Your lead has asked you to work on a new module in which you need to query a DynamoDB table with multiple Partition Key values at once and store the result in CSV format on S3. Which operation will you use to achieve the same?

A. Scan
B. Query
C. GetItem
D. BatchGetItem

A

D. BatchGetItem

BatchGetItem API allows you to pass multiple Partition Key values in a single request.

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

You have a SAM template used to deploy a Lambda function, and you are now working to create a new version. Your manager has asked you to instantly switch traffic once you have built and tested your version. What is the most efficient, effortless and simple way to achieve this?

A. Use Qualifiers in the Management Console to select the version which you built and tested.
B. Point an alias, PROD to the version which you built and tested.
C. Set DeploymentPreference property of the function resource.
D. Set AutoPublishAlias property of the function resource.

A

D. Set AutoPublishAlias property of the function resource.

The AutoPublishAlias property will create a new alias, create and publish a new version of the Lambda code, point alias to this version and point all event sources to this alias.

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

You have many Lambda functions that read data from the AWS Kinesis stream. Your colleague informs you that our application has too many Lambda function invocations, increasing latency for your application. How can you minimize latency and increase the read throughput of your function efficiently?

A. Create a data stream consumer.
B. Reduce the number of functions and let each function do the work of 2 functions.
C. Configure CloudWatch logs to check the latency and rebuild the Lambda functions.
D. Configure a dead letter queue.

A

A. Create a data stream consumer.

A data stream consumer assures a dedicated connection to each shard. The connection will help maximize throughput and minimize latency. By default, Amazon states that the Lambda function polls each shard at a base rate of 1 per second.

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

You have a stock market trading application. It sends real-time data to AWS Kinesis which is then connected to a Lambda function to process and sort the information before it saves to a DynamoDB table. Customers then consume this table via a dashboard. As soon as the market opens, your customers complain that not all data is delivered to them. Which Lambda CloudWatch metric should you look at first to resolve this problem?

A. Throttles
B. Dwell time
C. ConcurrentExecutions
D. IteratorAge

A

D. IteratorAge

Iterator age will determine the age of stream records processed by functions. Amazon says, “Measures the age of the last record for each batch of records processed. Age is the difference between the time Lambda received the batch and when the last record in the batch was written to the stream. “This then leads to exceeding retention period for Kinesis. This should be the first to look at as data streams are not processed as fast as the stream records are getting generated.

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