Who should take this exam?
AWS Certified Developer – Associate is intended for anyone with one or more years of hands-on experience developing and maintaining an AWS-based application. Before you take this exam, we recommend you have:- In-depth knowledge of at least one high-level programming language
- Understanding of core AWS services uses of the services, and basic AWS architecture best practices, including the AWS Shared Responsibility Model, application lifecycle management, and the use of containers in the development process
- Proficiency in developing, deploying, and debugging cloud-based applications using AWS and writing code for serverless applications
- Ability to identify key features of AWS services and use the AWS service APIs, AWS CLI, and SDKs to write applications
- Ability to apply a basic understanding of cloud-native applications to write code
- Ability to author, maintain and debug code modules on AWS
Exam overview
Level: Associate
Length: 130 minutes to complete the exam
Cost: 150 USD (Practice exam: 20 USD)
Format: 65 questions, either multiple choice or multiple responses
Delivery method: Pearson VUE and PSI; testing center or online proctored exam
Q1 A Developer created a dashboard for an application using Amazon API Gateway, Amazon S3, AWS Lambda, and Amazon RDS. The Developer needs an authentication mechanism allowing a user to sign in and view the dashboard. It must be accessible from mobile applications, desktops, and tablets, and must remember user preferences across platforms. Which AWS service should the Developer use to support this authentication scenario?
A. AWS KMS
B. Amazon Cognito
C. AWS Directory Service
D. Amazon IAM
B. Amazon Cognito
Q2 A Developer has created an S3 bucket s3://mycoolapp and has enabled server across logging that points to the folder s3://mycoolapp/logs. The Developer moved 100 KB of Cascading Style Sheets (CSS) documents to the folder s3://mycoolapp/css, and then stopped work. When the developer came back a few days later, the bucket was 50 GB. What is the MOST likely cause of this situation?
A. The CSS files were not compressed and S3 versioning was enabled.
B. S3 replication was enabled on the bucket.
C. Logging into the same bucket caused exponential log growth.
D. An S3 lifecycle policy has moved the entire CSS file to S3 Infrequent Access.
B. S3 replication was enabled on the bucket.
Q3 A Developer is creating an Auto Scaling group whose Instances need to publish a custom metric to Amazon CloudWatch. Which method would be the MOST secure way to authenticate a CloudWatch PUT request?
A. Create an IAM user with PutMetricData permission and put the user credentials in a private repository; have applications pull the credentials as needed.
B. Create an IAM user with PutMetricData permission and modify the Auto Scaling launch configuration to inject the user credentials into the instance user data.
C. Modify the CloudWatch metric policies to allow the PutMetricData permission to instances from the Auto Scaling group.
D. Create an IAM role with PutMetricData permission and modify the Auto Scaling launching configuration to launch instances using that role.
D. Create an IAM role with PutMetricData permission and modify the Auto Scaling launching configuration to launch instances using that role.
Q4 A Developer is working on an application that tracks hundreds of millions of product reviews in an Amazon DynamoDB table. The records include the data elements shown in the table: 1) Name - reviewID Type - Number Description - 16 digit UUID 2) Name - starRating Type - Number Description - Integer 1-5 of user rating 3) Name - comment Type - String Description - User Comment String 4) Name - productID Type - Number Description - Product ID being reviewed Which field, when used as the partition key, would result in the MOST consistent performance using DynamoDB?
A. starRating
B. reviewID
C. comment
D. productID
B. reviewID
Q5 A Developer has written a serverless application using multiple AWS services. The business logic is written as a Lambda function which has dependencies on third-party libraries. The Lambda function endpoints will be exposed using Amazon API Gateway. The Lambda function will write the information to Amazon DynamoDB. The Developer is ready to deploy the application but must have the ability to rollback. How can this deployment be automated, based on these requirements?
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. Deploy using Amazon Lambda API operations to create the Lambda function by providing a deployment package.
Q6 What are the steps to using the AWS CLI to launch a templatized serverless application?
A. Use AWS CloudFormation get-template then CloudFormation execute-change-set.
B. Use AWS CloudFormation validate-template then CloudFormation create-change-set.
C. Use AWS CloudFormation package then CloudFormation deploy.
D. Use AWS CloudFormation create-stack then CloudFormation update-stack.
C. Use AWS CloudFormation package then CloudFormation deploy.
Q7 A Developer is creating a web application that requires authentication, but also needs to support guest access to provide users limited access without having to authenticate. What service can provide support for the application to allow guest access?
A. IAM temporary credentials using AWS STS.
B. Amazon Directory Service
C. Amazon Cognito with unauthenticated access enabled
D. IAM with SAML integration
C. Amazon Cognito with unauthenticated access enabled
Q8 An application takes 40 seconds to process instructions received in an Amazon SQS message. Assuming the SQS queue is configured with the default VisibilityTimeout value, what is the BEST way, upon receiving a message, to ensure that no other instances can retrieve a message that has already been processed or is currently being processed?
A. Use the ChangeMessageVisibility API to increase the VisibilityTimeout, then use the DeleteMessage API to delete the message.
B. Use the DeleteMessage API call to delete the message from the queue, then call Delete Queue API to remove the queue.
C. Use the ChangeMessageVisibility API to decrease the timeout value, then use the DeleteMessage API to delete the message.
D. Use the DeleteMessageVisibility API to cancel the VisibilityTimeout, then use the DeleteMessage API to delete the message.
A. Use the ChangeMessageVisibility API to increase the VisibilityTimeout, then use the DeleteMessage API to delete the message.
Q9 A Developer has implemented a Lambda function that needs to add new customers to an RDS database that is expected to run hundreds of times per hour. The Lambda function is configured to use 512MB of RAM and is based on the following pseudo code: def lambda_handler(event, context ): db = database.connect() db.statement("Insert into customers ( customername ) values ( context.name )") db.close() After testing the Lambda function, the Developer notices that the Lambda execution time is much longer than expected. What should the Developer do to improve performance?
A. Increase the amount of RAM allocated to the Lambda function, which will increase the number of threads the Lambda can use.
B. Increase the size of the RDS database to allow for an increased number of database connections each hour.
C. Move the database connection and close statement out of the handler. Place the connection in the global space.
D. Replace RDS wit Amazon DynamoDB to implement control over the number of writes per second.
C. Move the database connection and close statement out of the handler. Place the connection in the global space.
Q10 A current architecture uses many Lambda functions invoking one another as a large state machine. The coordination of this state machine is legacy custom code that breaks easily. Which AWS Service can help refactor and manage the state machine?
A. AWS Data Pipeline
B. AWS SNS with AWS QS
C. Amazon Elastic MapReduce
D. AWS Step Functions
D. AWS Step Functions
Q11 A Developer is asked to implement a caching layer in front of Amazon RDS. Cached content is expensive to regenerate in case of service failure. Which implementation below would work while maintaining maximum uptime?
A. Implement Amazon ElastiCache Redis in Cluster Mode
B. Install Redis on an Amazon EC2 instance.
C. Implement Amazon ElastiCache Memcached.
D. Migrate the database to Amazon Redshift.
A. Implement Amazon ElastiCache Redis in Cluster Mode
Q12 A current architecture uses many Lambda functions invoking one another as large state machine. The coordination of this state machine is legacy custom code that breaks easily. Which AWS Service can help refactor and manage the state machine?
A. AWS Data Pipeline
B. AWS SNS with AWS SQS
C. Amazon Elastic MapReduce
D. AWS Step Functions
D. AWS Step Functions
Q13 A large e-commerce site is being designed to deliver static objects from Amazon S3. The Amazon S3 bucket will server more than 300 GET requests per second. What should be done to optimize performance? (Choose two.)
A. Integrate Amazon CloudFront with Amazon S3.
B. Enable Amazon S3 cross-region replication.
C. Delete expired Amazon S3 server log files.
D. Configure Amazon S3 lifecycle rules.
E. Randomize Amazon S3 key name prefixes.
A. Integrate Amazon CloudFront with Amazon S3. B. Enable Amazon S3 cross-region replication.
Q14 A company is building a stock trading application that requires sub-millisecond latency in processing trading requests. Amazon DynamoDB is used to store all the trading data that is used to process each request. Afterload testing the application, the development team found that due to data retrieval times, the latency requirement is not satisfied. Because of sudden high spikes in the number of requests, DynamoDB read capacity has to be significantly over-provisioned to avoid throttling. What steps should be taken to meet latency requirements and reduce the cost of running the application?
A. Add Global Secondary Indexes for trading data.
B. Store trading data in Amazon S3 and use Transfer Acceleration.
C. Add retries with exponential back-off for DynamoDB queries
D. Use DynamoDB Accelerator to cache trading data.
A. Add Global Secondary Indexes for trading data.
Q15 A Developer needs temporary access to resources in a second account. What is the MOST secure way to achieve this?
A. Use the Amazon Cognito user pools to get short-lived credentials for the second account.
B. Create a dedicated IAM access key for the second account and send it by mail.
C. Create a cross-account access role and use sts: AssumeRole API to get short-lived credentials.
D. Establish trust and add an SSH key for the second account to the IAM user.
C. Create a cross-account access role and use sts: AssumeRole API to get short-lived credentials.
Q16 An application reads data from an Amazon DynamoDB table. Several times a day, for a period of 15 seconds, the application receives multiple ProvisionedThroughputExceeded errors. How should this exception be handled?
A. Create a new global secondary index for the table to help with the additional requests.
B. Retry the failed read requests with exponential backoff.
C. Immediately retry the failed read requests.
D. Use the DynamoDB UpdateItem API to increase the provisioned throughput capacity of the table.
B. Retry the failed read requests with exponential backoff.
Q17 A Developer has created a large Lambda function, and deployment is failing with the following error: ClientErrorn error occurred (InvalidParameterValueException) when calling the CreateFunction operation: Unzipped size must be smaller than XXXXXXXXX bytes, where XXXXXXXXX is the current Lambda limit What can the Developer do to fix this problem?
A. Submit a limit increase request to AWS Support to increase the function to the size needed.
B. Use a compression algorithm that is more efficient than ZIP.
C. Break the function into multiple smaller Lambda functions.
D. ZIP the ZIP file twice to compress it further.
C. Break the function into multiple smaller Lambda functions.
Q18 Given the source code for an AWS Lambda function in the local store.py containing a handler function called get_store and the following AWS CloudFormation template: TransformWS::Serverless-2016-10-31 Resources: StoreFunc: TypeWS::Serverless::Function Properties: Handler: store.get_store Runtime: python3.6 What should be done to prepare the template so that it can be deployed using the AWS CLI command AWS cloud formation deploy?
A. Use AWS cloud formation compile to base64 encode and embed the source file into a modified CloudFormation template.
B. Use AWS cloud formation package to upload the source code to an Amazon S3 bucket and produce a modified CloudFormation template.
C. Use AWS lambda zip to package the source file together with the CloudFormation template and deploy the resulting zip archive.
D. Use AWS serverless create-package to embed the source file directly into the existing CloudFormation template.
D. Use AWS serverless create-package to embed the source file directly into the existing CloudFormation template.
Q19 An application stores images in an S3 bucket. Amazon S3 event notifications are used to trigger a Lambda function that resizes the images. Processing each image takes less than a second. How will AWS Lambda handle the additional traffic?
A. Lambda will scale out to execute the requests concurrently.
B. Lambda will handle the requests sequentially in the order received.
C. Lambda will process multiple images in a single execution.
D. Lambda will add more compute to each execution to reduce processing time.
A. Lambda will scale out to execute the requests concurrently.
Q20 A company wants to implement continuous integration for its workloads on AWS. The company wants to trigger unit tests in its pipeline for commits on its code repository and wants to be notified of failure events in the pipeline. How can these requirements be met?
A. Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon SNS to trigger notifications of failure events.
B. Store the source code in GitHub. Create a CodePipeline to automate unit testing. Use Amazon SES to trigger notifications of failure events.
C. Store the source code on GitHub. Create a CodePipeline to automate unit testing. Use Amazon CloudWatch to trigger notifications of failure events.
D. Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon CloudWatch to trigger notification of failure events.
A. Store the source code in AWS CodeCommit. Create a CodePipeline to automate unit testing. Use Amazon SNS to trigger notifications of failure events.
Q21 A serverless application uses an API Gateway and AWS Lambda. Where should the Lambda function store its session information across function calls?
A. In an Amazon DynamoDB table
B. In an Amazon SQS queue
C. In the local filesystem
D. In an SQLite session table using SQLITE_ENABLE_SESSION
A. In an Amazon DynamoDB table
Q22 A Developer has created a software package to be deployed on multiple EC2 instances using IAM roles. What actions could be performed to verify IAM access to get records from Amazon Kinesis Streams? (Choose two.)
A. Use the AWS CLI to retrieve the IAM group.
B. Query Amazon EC2 metadata for in-line IAM policies.
C. Request a token from AWS STS and perform a described action.
D. Perform a get action using the "-dry-run argument.
E. Validate the IAM role policy with the IAM policy simulator.
B. Query Amazon EC2 metadata for in-line IAM policies E. Validate the IAM role policy with the IAM policy simulator.
Q23 When writing a Lambda function, what is the benefit of instantiating AWS clients outside the scope of the handler?
A. Legibility and stylistic convention
B. Taking advantage of connection re-use
C. Better error handling
D. Creating a new instance per invocation
B. Taking advantage of connection re-use
Q24 An application on AWS is using third-party APIs. The Developer needs to monitor API errors in the code and wants to receive notifications if failures go above a set threshold value. How can the Developer achieve these requirements?
A. Publish a custom metric on Amazon CloudWatch and use Amazon SES for notification.
B. Use an Amazon CloudWatch API-error metric and use Amazon SNS for notification.
C. Use an Amazon CloudWatch API-error metric and use Amazon SES for notification.
D. Publish a custom metric on Amazon CloudWatch and use Amazon SNS for notification.
D. Publish a custom metric on Amazon CloudWatch and use Amazon SNS for notification.
Q25 A Developer has an application that can upload tens of thousands of objects per second to Amazon S3 in parallel within a single AWS account. As part of new requirements, data stored in S3 must use server-side encryption with AWS KMS (SSE-KMS). After creating this change, the performance of the application is slower. Which of the following is MOST likely the cause of the application latency?
A. Amazon S3 throttles the rate at which uploaded objects can be encrypted using Customer Master Keys.
B. The AWS KMS API calls limit is less than needed to achieve the desired performance.
C. The client encryption of the objects is using a poor algorithm.
D. KMS requires that an alias be used to create an independent display name that can be mapped to a CMK.
B. The AWS KMS API calls limit is less than needed to achieve the desired performance.
Q26 A company wants to migrate its web application to AWS and leverage Auto Scaling to handle pear workloads. The Solutions Architect determined that the best metric for an Auto Scaling event is the number of concurrent users. Based on this information, what should the Developer use to autoscale based on concurrent users?
A. An Amazon SNS topic to be triggered when a concurrent user threshold is met
B. An Amazon Cloudwatch Networking metric
C. Amazon CloudFront to leverage AWS Edge Locations
D. A Custom Amazon CloudWatch metric for concurrent users.
D. A Custom Amazon CloudWatch metric for concurrent users.
Q27 A company is migrating its on-premises database to Amazon RDS for MySQL. The company has read-heavy workloads and wants to make sure it re-factors its code to achieve optimum read performance for its queries. How can this objective be met?
A. Add database retries to effectively use RDS with vertical scaling
B. Use RDS with multi-AZ deployment
C. Add a connection string to use an RDS read replica for reading queries
D. Add a connection string to use a read replica on an EC2 instance.
C. Add a connection string to use an RDS read replica for reading queries
Q28 A Developer is receiving HTTP 400: ThrottlingException errors intermittently when calling the Amazon CloudWatch API. When a call fails, no data is retrieved. What best practice should first be applied to address this issue?
A. Contact AWS Support for a limit increase.
B. Use the AWS CLI to get the metrics
C. Analyze the applications and remove the API call
D. Retry the call with exponential backoff
B. Use the AWS CLI to get the metrics
Q29 A Developer is testing a Docker-based application that uses the AWS SDK to interact with Amazon DynamoDB. In the local development environment, the application has used IAM access keys. The application is now ready for deployment onto an ECS cluster. How should the application authenticate with AWS services in production?
A. Configure an ECS task IAM role for the application to use
B. Refactor the application to call AWS STS AssumeRole based on an instance role
C. Configure AWS access key/secret access key environment variables with new credentials
D. Configure the credentials file with a new access key/secret access key
A. Configure an ECS task IAM role for the application to use
Q30 A Developer created a Lambda function for a web application backend. When testing the Lambda function from the AWS Lambda console, the Developer can see that the function is being executed, but there is no log data being generated in Amazon CloudWatch Logs, even after several minutes. What could cause this situation?
A. The Lambda function does not have any explicit log statements for the log data to send it to CloudWatch Logs.
B. The Lambda function is missing CloudWatch Logs as a source trigger to send log data.
C. The execution role for the Lambda function is missing permissions to write log data to the CloudWatch Logs.
D. The Lambda function is missing a target CloudWatch Log group.
C. The execution role for the Lambda function is missing permissions to write log data to the CloudWatch Logs.
Please leave your valuable feedback in the comment section.
Telegram Group: https://t.me/randomskoolQnA
Telegram Channel: https://t.me/randomskool
0 Response to "AWS Certified Developer - Associate | Free Practice Test | Practice Test 1 | AWS Certification"
Post a Comment
Hey Random,
Please let me know if you have any query :)