AWS-DA(151-160)

Generate an image showing a cloud computing landscape with various AWS services icons like Lambda, S3, DynamoDB, and a quiz interface overlay, depicting developers actively engaged in teamwork and testing their knowledge.

AWS Development Quiz

Test your knowledge of AWS services and best practices with our engaging quiz designed for developers. Answer a range of questions about AWS features, architecture, and configurations to see how well you understand cloud development.

Join fellow developers and enhance your skills with these key topics:

  • AWS Lambda
  • Amazon S3
  • DynamoDB
  • CloudFront
  • KMS and Security
10 Questions2 MinutesCreated by CodingBear201
A developer is developing a website that will be hosted on Amazon's S3 service. Secure browser connections must be supported by the website. Which steps must the developer perform in combination to satisfy this requirement? (Select two.)
A. Create an Elastic Load Balancer (ELB). Configure the ELB to direct traffic to the S3 bucket.
B. Create an Amazon CloudFront distribution. Set the S3 bucket as an origin
C. Configure the Elastic Load Balancer with an SSL/TLS certificate.
D. Configure the Amazon CloudFront distribution with an SSL/TLS certificate.
E. Configure the S3 bucket with an SSL/TLS certificate.
An application has been created by a developer that publishes data to Amazon DynamoDB. Conditional writes have been enabled for the DynamoDB table. Writes are failing during high demand periods owing to a ConditionalCheckFailedException problem. How can the developer improve the dependability of the program when numerous clients try to write to the same record?
A. Write data to an Amazon SNS topic.
B. Increase the amount of write capacity for the table to anticipate short-term spikes or bursts in write operations
C. Implement a caching solution, such as DynamoDB Accelerator or Amazon ElastiCache.
D. Implement error retries and exponential backoff with jitter.
A developer is automating the deployment of a new application using AWS Serverless Application Model (AWS SAM). One AWS Lambda function and one Amazon S3 bucket are included in the new application. The Lambda function must have read-only access to the S3 bucket. How should the developer setup AWS SAM to provide the S3 bucket the appropriate read permissions?
A. Reference a second Lambda authorizer function.
B. Add a custom S3 bucket policy to the Lambda function
C. Create an Amazon Simple Queue Service (SQS) topic for only S3 object reads. Reference the topic in the template.
D. Add the S3ReadPolicy template to the Lambda function's execution role.
A developer must use AWS KMS to encrypt a 100 GB object. What is the BEST course of action?
A. Make an Encrypt API call to encrypt the plaintext data as ciphertext using a customer master key (CMK)
B. Make an Encrypt API call to encrypt the plaintext data as ciphertext using a customer master key (CMK) with imported key material
C. Make a GenerateDataKey API call that returns a plaintext key and an encrypted copy of a data key. Use a plaintext key to encrypt the data
D. Make a GenerateDataKeyWithoutPlaintext API call that returns an encrypted copy of a data key. Use an encrypted key to encrypt the data
A real-time application processes millions of events that are received over an API. Which service might be utilized to enable concurrent processing of data by several users in the most cost-effective manner possible?
A. Amazon SNS with fanout to an SQS queue for each application
B. Amazon SNS with fanout to an SQS FIFO (first-in, first-out) queue for each application
C. Amazon Kinesis Firehose
D. Amazon Kinesis Streams
A developer has created a serverless application that makes use of a variety of AWS services. The business logic is implemented using Lambda functions that rely on third-party libraries. Amazon API Gateway will be used to provide the Lambda function endpoints. The Lambda function will be used to store the data in Amazon DynamoDB. Although the developer is prepared to launch the program, he or she must have the ability to turn back. How, given these criteria, can this deployment be automated?
A. Deploy using Amazon Lambda API operations to create the Lambda function by providing a deployment package.
B. Use an AWS CloudFormation template and use CloudFormation syntax to define the Lambda function resource in the template.
C. Use syntax conforming to the Serverless Application Model in the AWS CloudFormation template to define the Lambda function resource.
D. Create a bash script which uses AWS CLI to package and deploy the application.
A firm is developing an application that will use an Amazon DynamoDB database to monitor athlete performance. A partition key (user id) and a sort key (sport name) uniquely identify each item in the database. The following illustration depicts the table's design:
 
 
(Please note that not all table characteristics are shown.) A developer is requested to create a leaderboard application that would show the best performers (user id) for each sport name depending on their score.
Which approach will enable the developer to most effectively retrieve results from the DynamoDB table?
A. Use a DynamoDB query operation with the key attributes of user_id and sport_name and order the results based on the score attribute.
B. Create a global secondary index with a partition key of sport_name and a sort key of score, and get the results
C. Use a DynamoDB scan operation to retrieve scores and user_id based on sport_name, and order the results based on the score attribute.
D. Create a local secondary index with a primary key of sport_name and a sort key of score and get the results based on the score attribute.
On Amazon EC2 instances in a VPC, a corporation runs a standard three-tier application, including its NoSQL database. The business want to transition to Amazon DynamoDB. A developer observes during testing that the application running on the EC2 instances is unable to write data to the DynamoDB database. The developer must securely provide the application write access to the DynamoDB table. Which combination of acts satisfies these criteria? (Select two.)
A. Create a gateway VPC endpoint for DynamoDB. Specify the VPC ID in the --vpc-id parameter.
B. Create an interface VPC endpoint for DynamoDB. Specify the VPC ID in the --vpc-id parameter.
C. Create an IAM user that allows write access to the DynamoDB table. Add the user to the EC2 Instances.
D. Create an IAM role that allows write access to the DynamoDB table. Add the role to the EC2 instances.
E. Create an IAM group that allows write access to the DynamoDB table. Add the group to the EC2 instances.
A developer is developing a serverless application that needs every ten minutes invocation of an AWS Lambda function. How can the function be triggered in an automated and serverless manner?
A. Deploy an Amazon EC2 instance based on Linux, and edit its /etc/crontab file by adding a command to periodically invoke the Lambda function.
B. Configure an environment variable named PERIOD for the Lambda function. Set the value to 600.
C. Create an Amazon CloudWatch Events rule that triggers on a regular schedule to invoke the Lambda function.
D. Create an Amazon SNS topic that has a subscription to the Lambda function with a 600-second timer.
A developer has submitted an update to an application that is delivered through Amazon CloudFront to a worldwide user base. Users are not able to view the latest modifications once the application is deployed. How can the Developer address this concern?
A. Remove the origin from the CloudFront configuration and add it again.
B. Disable forwarding of query strings and request headers from the CloudFront distribution configuration.
C. Invalidate all the application objects from the edge caches.
D. Disable the CloudFront distribution and enable it again to update all the edge locations.
{"name":"AWS-DA(151-160)", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of AWS services and best practices with our engaging quiz designed for developers. Answer a range of questions about AWS features, architecture, and configurations to see how well you understand cloud development.Join fellow developers and enhance your skills with these key topics:AWS LambdaAmazon S3DynamoDBCloudFrontKMS and Security","img":"https:/images/course7.png"}
Powered by: Quiz Maker