AWS-DA(241-250)
AWS Developer Quiz
Test your knowledge of AWS development concepts and best practices with our engaging quiz aimed at developers!
- 10 challenging questions
- Evaluate your understanding of AWS services like Lambda, DynamoDB, and EC2
- Boost your confidence and readiness for real-world scenarios
On Amazon EC2 instances, a developer has code that requires read-only access to an Amazon DynamoDB database. What is the MOST secure method for the Developer to do this task?
A. Create a user access key for each EC2 instance with read-only access to DynamoDB. Place the keys in the code. Redeploy the code as keys rotate.
B. Use an IAM role with an AmazonDynamoDBReadOnlyAccess policy applied to the EC2 instances.
C. Run all code with only AWS account root user access keys to ensure maximum access to services.
D. Use an IAM role with Administrator access applied to the EC2 instance.
A developer is developing an AWS Lambda function that makes Amazon DynamoDB available. The Lambda function must obtain and change certain properties of an object, or construct the item if it does not exist. Access to the main key is granted to the Lambda function. Which IAM permissions should the developer obtain to enable this capability in the Lambda function?
A. dynamodb:DeleteItem dynamodb:GetItem dynamodb:PutItem
B. dynamodb:UpdateItem dynamodb:GetItem dynamodb:DescribeTable
C. dynamodb:GetRecords dynamodb:PutItem dynamodb:UpdateTable
D. dynamodb:UpdateItem dynamodb:GetItem dynamodb:PutItem
A developer is working on a financial transaction management program. Multi-factor authentication (MFA) will be needed as part of the login procedure to increase security. Which services are available to the developer in order to achieve these requirements?
A. Amazon DynamoDB to store MFA session data, and Amazon SNS to send MFA codes
B. Amazon Cognito with MFA
C. AWS Directory Service
D. AWS IAM with MFA enabled
A programmer is developing an application that will handle a stream of data given by the user. The data stream must be received concurrently and in real time by various Amazon EC2-based processing apps. Each processor must be capable of restarting without losing data if service is interrupted. The Application Architect intends to expand the number of processors in the near future and wants to reduce data duplication. Which solution will meet these criteria?
A. Publish the data to Amazon SQS.
B. Publish the data to Amazon Kinesis Data Firehose.
C. Publish the data to Amazon CloudWatch Events.
D. Publish the data to Amazon Kinesis Data Streams.
A developer is developing a Lambda function to create and export a file. While the program is running, it needs 100 MB of temporary storage for transient files. These files are no longer required after the function has been completed. How can the developer manage temporary files most efficiently?
A. Store the files in EBS and delete the files at the end of the Lambda function.
B. Copy the files to EFS and delete the files at the end of the Lambda function.
C. Store the files in the /tmp directory and delete the files at the end of the Lambda function.
D. Copy the files to an S3 bucket with a lifecycle policy to delete the files
A business is in the process of building a serverless ecommerce web application. The application must perform synchronized, all-or-nothing updates to various products in the company's Amazon DynamoDB inventory database. Which solution will satisfy these criteria?
A. Enable transactions for the DynamoDB table. Use the BatchWriteItem operation to update the items.
B. Use the TransactWriteItems operation to group the changes. Update the items in the table.
C. Set up a FIFO queue using Amazon SQS. Group the changes in the queue. Update the table based on the grouped changes.
D. Create a transaction table in an Amazon Aurora DB cluster to manage the transactions. Write a backend process to sync the Aurora DB table and the DynamoDB table.
A business developed a serverless application that incorporates the customers' preferred actors. The business's data was stored in an Amazon DynamoDB database. The table is divided into three sections: actor, film, and year. Each actor appears in a number of films and may feature in numerous films in a single calendar year. The firm is interested in discovering which of the customers' favorite actors were in the same film and which films were released in the same year. A developer must create the DynamoDB database in such a way that the response time for such queries is as short as possible. Which solution satisfies these criteria?
A. Create a composite primary key with Actor as the partition key and Movie as the sort key Use Year as the sort key for a global secondary index (GSI).
B. Create a composite primary key with Actor as the partition key and Year as the sort key Use Movie as the sort key for a global secondary index (GSI).
C. Create a composite primary key with Movie as the partition key and Actor as the sort key Use Year as the sort key for a global secondary index (GSI).
D. Create a simple primary key with Actor as the partition key. Use Year as the sort key for a local secondary index (LSI).
A developer is working on a mobile app and requires any changes to user profile data to be distributed to all devices that access the same identity. The developer does not wish to maintain the user profile data on a back end. What is the most efficient approach for the Developer to use Amazon Cognito to meet these requirements?
A. Use Cognito federated identities.
B. Use a Cognito user pool.
C. Use Cognito Sync.
D. Use Cognito events.
A developer wishes to revert to a prior version of an AWS Lambda function in the case of deployment issues. How can the developer do this with the FEWEST possible effect on users?
A. Change the application to use an alias that points to the current version. Deploy the new version of the code. Update the alias to use the newly deployed version. If too many errors are encountered, point the alias back to the previous version.
B. Change the application to use an alias that points to the current version. Deploy the new version of the code. Update the alias to direct 10% of users to the newly deployed version. If too many errors are encountered, send 100% of traffic to the previous version.
C. Do not make any changes to the application. Deploy the new version of the code. If too many errors are encountered, point the application back to the previous version using the version number in the Amazon Resource Name (ARN).
D. Create three aliases: new, existing, and router. Point the existing alias to the current version. Have the router alias direct 100% of users to the existing alias. Update the application to use the router alias. Deploy the new version of the code. Point the new alias to this version. Update the router alias to direct 10% of users to the new alias. If too many errors are encountered, send 100% of traffic to the existing alias.
A legacy program running on-premises caches data files locally and writes shared pictures to local drives. What is required to enable horizontal scalability during the application's migration to AWS?
A. Modify the application to have both shared images and caching data written to Amazon EBS.
B. Modify the application to read and write cache data on Amazon S3, and also store shared images on S3.
C. Modify the application to use Amazon S3 for serving shared images; cache data can then be written to local disks
D. Modify the application to read and write cache data on Amazon S3, while continuing to write shared images to local disks.
{"name":"AWS-DA(241-250)", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of AWS development concepts and best practices with our engaging quiz aimed at developers!10 challenging questionsEvaluate your understanding of AWS services like Lambda, DynamoDB, and EC2Boost your confidence and readiness for real-world scenarios","img":"https:/images/course4.png"}