AWS Certified Developer - Associate | Free Practice Test | Practice Test 3 | AWS Certification

AWS Certified Developer - Associate | Free Practice Test | Practice Test 3 | AWS Certification

AWS Certified Developer - Associate | Free Practice Test | Practice Test 3 |  AWS Certification

AWS Certified Developer - Associate | Free Practice Test | Practice Test 3 |  AWS Certification


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 An application overwrites an object in Amazon S3, and then immediately reads the same object. Why would the application sometimes retrieve the old version of the object?

A. S3 overwrite PUTS are eventually consistent, so the application may read the old object.

B. The application needs to add extra metadata to label the latest version when uploading to Amazon S3.

C. All S3 PUTS are eventually consistent, so the application may read the old object.

D. The application needs to explicitly specify latest version when retrieving the object.

A. S3 overwrite PUTS are eventually consistent, so the application may read the old object.



Q2 The release process workflow of an application requires a manual approval before the code is deployed into the production environment. What is the BEST way to achieve this using AWS CodePipeline?

A. Use multiple pipelines to allow approval

B. Use an approval action in a stage

C. Disable the stage transition to allow manual approval

D. Disable a stage just prior the deployment stage

D. Disable a stage just prior the deployment stage



Q3 Where should the appspec.yml file be placed in order for AWS CodeDeploy to work?

A. In the root of the application source code directory structure

B. In the bin folder along with all the complied code

C. In an S3 bucket

D. In the same folder as the application configuration files

A. In the root of the application source code directory structure



Q4 An existing serverless application processes uploaded image files. The process currently uses a single Lambda function that takes an image file, performs the processing, and stores the file in Amazon S3. Users of the application now require thumbnail generation of the images. Users want to avoid any impact to the time it takes to perform the image uploads. How can thumbnail generation be added to the application, meeting user requirements while minimizing changes to existing code?

A. Change the existing Lambda function handling the uploads to create thumbnails at the time of upload. Have the function store both the image and thumbnail in Amazon S3.

B. Create a second Lambda function that handles thumbnail generation and storage. Change the existing Lambda function to invoke it asynchronously.

C. Create an S3 event notification with a Lambda function destination. Create a new Lambda function to generate and store thumbnails.

D. Create an S3 event notification to an SQS Queue. Create a scheduled Lambda function that processes the queue, and generates and stores thumbnails.

A. Change the existing Lambda function handling the uploads to create thumbnails at the time of upload. Have the function store both the image and thumbnail in Amazon S3.



Q5 A Developer must re-implement the business logic for an order fulfilment system. The business logic has to make requests to multiple vendors to decide where to purchase an item. The whole process can take up to a week to complete. What is the MOST efficient and SIMPLEST way to implement a system that meets these requirements?

A. Use AWS Step Functions to execute parallel Lambda functions, and join the results.

B. Create an AWS SQS for each vendor, poll the queue from a worker instance, and joint the results.

C. Use AWS Lambda to asynchronously call a Lambda function for each vendor, and join the results.

D. Use Amazon CloudWatch Events to orchestrate the Lambda functions.

D. Use Amazon CloudWatch Events to orchestrate the Lambda functions.



Q6 A customer wants to deploy its source code on an AWS Elastic Beanstalk environment. The customer needs to perform deployment with minimal outage and should only use existing instances to retain application access log. What deployment policy would satisfy these requirements?

A. Rolling

B. All at once

C. Rolling with an additional batch

D. Immutable

A. Rolling



Q7 A Developer has been asked to build a real-time dashboard web application to visualize the key prefixes and storage size of objects in Amazon S3 buckets. Amazon DynamoDB will be used to store the Amazon S3 metadata. What is the optimal and MOST cost-effective design to ensure that the real-time dashboard is kept up to date with the state of the objects in the Amazon S3 buckets?

A. Use an Amazon CloudWatch event backed by an AWS Lambda function. Issue an Amazon S3 API call to get a list of all Amazon S3 objects and persist the metadata within DynamoDB. Have the web application poll the DynamoDB table to reflect this change.

B. Use Amazon S3 Event Notification backed by a Lambda function to persist the metadata into DynamoDB. Have the web application poll the DynamoDB table to reflect this change.

C. Run a cron job within an Amazon EC2 instance to list all objects within Amazon S3 and persist the metadata into DynamoDB. Have the web application poll the DynamoDB table to reflect this change.

D. Create a new Amazon EMR cluster to get all the metadata about Amazon S3 objects; persist the metadata into DynamoDB. Have the web application poll the DynamoDB table to reflect this change.

A. Use an Amazon CloudWatch event backed by an AWS Lambda function. Issue an Amazon S3 API call to get a list of all Amazon S3 objects and persist the metadata within DynamoDB. Have the web application poll the DynamoDB table to reflect this change.



Q8 A Developer must repeatedly and consistently deploy a serverless RESTful API on AWS. Which techniques will work? (Choose two.)

A. Define a Swagger file. Use AWS Elastic Beanstalk to deploy the Swagger file.

B. Define a Swagger file. Use AWS CodeDeploy to deploy the Swagger file.

C. Deploy a SAM template with an inline Swagger definition.

D. Define a Swagger file. Deploy a SAM template that references the Swagger file.

E. Define an inline Swagger definition in a Lambda function. Invoke the Lambda function.

E. Define an inline Swagger definition in a Lambda function. Invoke the Lambda function. D. Define a Swagger file. Deploy a SAM template that references the Swagger file.



Q9 A set of APIs are exposed to customers using the Amazon API Gateway. These APIs have caching enabled on the API Gateway. Customers have asked for an option to invalidate this cache for each of the APIs. What action can be taken to allow API customers to invalidate the API Cache?

A. Ask customers to use AWS credentials to call the InvalidateCache API.

B. Ask customers to invoke an AWS API endpoint which invalidates the cache.

C. Ask customers to pass an HTTP header called Cache-Control:max-age=0.

D. Ask customers to add a query string parameter called INVALIDATE_CACHE when making an API call.

B. Ask customers to invoke an AWS API endpoint which invalidates the cache.



Q10 A Developer uses AWS CodeDeploy to automate application deployment that connects to an external MySQL database. The Developer wants to securely access the encrypted secrets, such as API keys and database passwords. Which of the following solutions would involve the LEAST administrative effort?

A. Save the secrets in Amazon S3 with AWS KMS server-side encryption, and use a signed URL to access them by using the IAM role from Amazon EC2 instances.

B. Use the instance metadata to store the secrets and to programmatically access the secrets from EC2 instances.

C. Use the Amazon DynamoDB client-side encryption library to save the secrets in DynamoDB and to programmatically access the secrets from EC2 instances.

D. Use AWS SSM Parameter Store to store the secrets and to programmatically access them by using the IAM role from EC2 instances.

A. Save the secrets in Amazon S3 with AWS KMS server-side encryption, and use a signed URL to access them by using the IAM role from Amazon EC2 instances.



Q11 An application running on EC2 instances is storing data in an S3 bucket. Security policy mandates that all data must be encrypted in transit. How can the Developer ensure that all traffic to the S3 bucket is encrypted?

A. Install certificates on the EC2 instances.

B. Create a bucket policy that allows traffic where SecureTransport is true.

C. Create an HTTPS redirect on the EC2 instances.

D. Create a bucket policy that denies traffic where SecureTransport is false.

B. Create a bucket policy that allows traffic where SecureTransport is true.



Q12 A company is developing a new online game that will run on top of Amazon ECS. Four distinct Amazon ECS services will be part of the architecture, each requiring specific permissions to various AWS services. The company wants to optimize the use of the underlying Amazon EC2 instances by bin packing the containers based on memory reservation. Which configuration would allow the Development team to meet these requirements MOST securely?

A. Create a new Identity and Access Management (IAM) instance profile containing the required permissions for the various ECS services, then associate that instance role with the underlying EC2 instances.

B. Create four distinct IAM roles, each containing the required permissions for the associated ECS service, then configure each ECS service to reference the associated IAM role.

C. Create four distinct IAM roles, each containing the required permissions for the associated ECS service, then, create an IAM group and configure the ECS cluster to reference that group.

D. Create four distinct IAM roles, each containing the required permissions for the associated ECS service, then configure each ECS task definition to referenׁe the associated IAM role.

C. Create four distinct IAM roles, each containing the required permissions for the associated ECS service, then, create an IAM group and configure the ECS cluster to reference that group.



Q13 A company needs to encrypt data at rest, but it wants to leverage an AWS managed service using its own master key. Which of the following AWS service can be used to meet these requirements?

A. SSE with Amazon S3

B. SSE with AWS KMS

C. Client-side encryption

D. AWS IAM roles and policies

B. SSE with AWS KMS



Q14 When a Developer tries to run an AWS CodeBuild project, it raises an error because the length of all environment variables exceeds the limit for the combined maximum of characters. What is the recommended solution?

A. Add the export LC_ALL=en_US.utf8 command to the pre_build section to ensure POSIX localization.

B. Use Amazon Cognito to store key-value pairs for large numbers of environment variables.

C. Update the settings for the build project to use an Amazon S3 bucket for large numbers of environment variables.

D. Use AWS Systems Manager Parameter Store to store large numbers of environment variables.

D. Use AWS Systems Manager Parameter Store to store large numbers of environment variables.



Q15 A Lambda function is packaged for deployment to multiple environments, including development, test, production, etc. Each environment has unique set of resources such as databases, etc. How can the Lambda function use the resources for the current environment?

A. Apply tags to the Lambda functions.

B. Hardcore resources in the source code.

C. Use environment variables for the Lambda functions.

D. Use separate function for development and production.

C. Use environment variables for the Lambda functions.



Q16 The Developer for a retail company must integrate a fraud detection solution into the order processing solution. The fraud detection solution takes between ten and thirty minutes to verify an order. At peak, the web site can receive one hundred orders per minute. What is the most scalable method to add the fraud detection solution to the order processing pipeline?

A. Add all new orders to an Amazon SQS queue. Configure a fleet of 10 EC2 instances spanning multiple AZs with the fraud detection solution installed on them to pull orders from this queue. Update the order with a pass or fails status.

B. Add all new orders to an SQS queue. Configure an Auto Scaling group that uses the queue depth metric as its unit of scale to launch a dynamically-sized fleet of EC2 instances spanning multiple AZs with the fraud detection solution installed on them to pull orders from this queue. Update the order with a pass or fails status.

C. Add all new orders to an Amazon Kinesis Stream. Subscribe a Lambda function to automatically read batches of records from the Kinesis Stream. The Lambda function includes the fraud detection software and will update the order with a pass or fail status.

D. Write all new orders to Amazon DynamoDB. Configure DynamoDB Streams to include all new orders. Subscribe a Lambda function to automatically read batches of records from the Kinesis Stream. The Lambda function includes the fraud detection software and will update the order with a pass or fail status.

D. Write all new orders to Amazon DynamoDB. Configure DynamoDB Streams to include all new orders. Subscribe a Lambda function to automatically read batches of records from the Kinesis Stream. The Lambda function includes the fraud detection software and will update the order with a pass or fail status.



Q17 A Developer is creating a mobile application with a limited budget. The solution requires a scalable service that will enable customers to sign up and authenticate into the mobile application while using the organizations current SAML 2.0 identity provider. Which AWS service should be used to meet these requirements?

A. AWS Lambda

B. Amazon Cognito

C. AWS IAM

D. Amazon EC2

B. Amazon Cognito



Q18 An application is real-time processing millions of events that are received through an API. What service could be used to allow multiple consumers to process the data concurrently and MOST cost-effectively?

A. Amazon SNS with fanout to an SQS queue for each application

B. Amazon SNS with fanout to an SQS FIFO (first-in, firtst-out) queue for each application

C. Amazon Kinesis Firehouse

D. Amazon Kinesis Streams

D. Amazon Kinesis Streams



Q19 A Developer needs to use AWS X-Ray to monitor an application that is deployed on EC2 instances. What steps have to be executed to perform the monitoring?

A. Deploy the X-Ray SDK with the application and use X-Ray annotation.

B. Install the X-Ray daemon and instrument the application code.

C. Install the X-Ray daemon and configure it to forward data to Amazon CloudWatch Events.

D. Deploy the X-Ray SDK with the application and instrument the application code.

A. Deploy the X-Ray SDK with the application and use X-Ray annotation.



Q20 A Developer will be using the AWS CLI on a local development server to manage AWS services. What can be done to ensure that the CLI uses the Developers IAM permissions when making commands?

A. Specify the Developers IAM access key ID and secret access key as parameters for each CLI command.

B. Run the aws configure CLI command, and provide the Developers IAM access key ID and secret access key.

C. Specify the Developers IAM user name and password as parameters for each CLI command.

D. Use the Developers IAM role when making the CLI command.

B. Run the aws configure CLI command, and provide the Developers IAM access key ID and secret access key.



Q21 After installing the AWS CLI, a Developer tries to run the command aws configure but receives the following error: Error: aws: command not found - What is the most likely cause of this error?

A. The aws executable is not in the PATH environment variable.

B. Access to the aws executable has been denied to the installer.

C. Incorrect AWS credentials were provided.

D. The aws script does not have an executable file mode.

A. The aws executable is not in the PATH environment variable.



Q22 An on-premises legacy application is caching data files locally and writing shared images to local disks. What is necessary to allow for horizontal scaling when migrating the application 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.

B. Modify the application to read and write cache data on Amazon S3, and also store shared images on S3.



Q23 A Developer must trigger an AWS Lambda function based on the item lifecycle activity in an Amazon DynamoDB table. How can the Developer create the solution?

A. Enable a DynamoDB stream that publishes an Amazon SNS message. Trigger the Lambda function synchronously from the SNS message.

B. Enable a DynamoDB stream that publishes an SNS message. Trigger the Lambda function asynchronously from the SNS message.

C. Enable a DynamoDB stream, and trigger the Lambda function synchronously from the stream.

D. Enable a DynamoDB stream, and trigger the Lambda function asynchronously from the stream.

C. Enable a DynamoDB stream, and trigger the Lambda function synchronously from the stream.



Q24 A gaming company is developing a mobile game application for iOSֲ® and Android platforms. This mobile game securely stores user data locally on the device. The company wants to allow users to use multiple device for the game, which requires user data synchronization across devices. Which service should be used to synchronize user data across devices without the need to create a backend application?

A. AWS Lambda

B. Amazon S3

C. Amazon DynamoDB

D. Amazon Cognito

D. Amazon Cognito



Q25 An on-premises application is implemented using a Linux, Apache, MySQL and PHP (LAMP) stack. The Developer wants to run this application in AWS. Which of the following sets of AWS services can be used to run this stack?

A. Amazon API Gateway, Amazon S3

B. AWS Lambda, Amazon DynamoDB

C. Amazon EC2, Amazon Aurora

D. Amazon Cognito, Amazon RDS

E. Amazon ECS, Amazon EBS

C. Amazon EC2, Amazon Aurora



Q26 An application displays a status dashboard. The status is updated by 1 KB messages from an SQS queue. Although the status changes infrequently, the Developer must minimize the time between the message arrival in the queue and the dashboard update. What technique provides the shortest delay in updating the dashboard?

A. Retrieve the messages from the queue using long polling every 20 seconds.

B. Reduce the size of the messages by compressing them before sending.

C. Retrieve the messages from the queue using short polling every 10 seconds.

D. Reduce the size of each message payload by sending it in two parts.

A. Retrieve the messages from the queue using long polling every 20 seconds.



Q27 A company is using AWS CodePipeline to deliver one of its applications. The delivery pipeline is triggered by changes to the master branch of an AWS CodeCommit repository and uses AWS CodeBuild to implement the test and build stages of the process and AWS CodeDeploy to deploy the application. The pipeline has been operating successfully for several months and there have been no modifications. Following a recent change to the applications source code, AWS CodeDeploy has not deployed the updates application as expected. What are the possible causes? (Choose two.)

A. The change was not made in the master branch of the AWS CodeCommit repository.

B. One of the earlier stages in the pipeline failed and the pipeline has terminated.

C. One of the Amazon EC2 instances in the companys AWS CodePipeline cluster is inactive.

D. The AWS CodePipeline is incorrectly configured and is not executing AWS CodeDeploy.

E. AWS CodePipeline does not have permissions to access AWS CodeCommit.

B. One of the earlier stages in the pipeline failed and the pipeline has terminated. C. One of the Amazon EC2 instances in the companys AWS CodePipeline cluster is inactive.



Q28 A social media company is using Amazon Cognito in order to synchronize profiles across different mobile devices, to enable end users to have a seamless experience. Which of the following configurations can be used to silently notify users whenever an update is available on all other devices?

A. Modify the user pool to include all the devices which keep them in sync.

B. Use the SyncCallback interface to receive notifications on the application.

C. Use an Amazon Cognito stream to analyze the data and push the notifications.

D. Use the push synchronization feature with the appropriate IAM role.

C. Use an Amazon Cognito stream to analyze the data and push the notifications.



Q29 A websites page load times are gradually increasing as more users access the system at the same time. Analysis indicates that a user profile is being loaded from a database in all the web pages being visited by each user and this is increasing the database load and the page load latency. To address this issue the Developer decides to cache the user profile data. Which caching strategy will address this situation MOST efficiently?

A. Create a new Amazon EC2 Instance and run a NoSQL database on it. Cache the profile data within this database using the write-through caching strategy.

B. Create an Amazon ElastiCache cluster to cache the user profile data. Use a cache-aside caching strategy.

C. Use a dedicated Amazon RDS instance for caching profile data. Use a write-through caching strategy.

D. Create an ElastiCache cluster to cache the user profile data. Use a write-through caching strategy.

B. Create an Amazon ElastiCache cluster to cache the user profile data. Use a cache-aside caching strategy.



Q30 An application needs to use the IP address of the client in its processing. The application has been moved into AWS and has been placed behind an Application Load Balancer (ALB). However, all the client IP addresses now appear to be the same. The application must maintain the ability to scale horizontally. Based on this scenario, what is the MOST cost-effective solution to this problem?

A. Remove the application from the ALB. Delete the ALB and change Amazon Route 53 to direct traffic to the instance running the application.

B. Remove the application from the ALB. Create a Classic Load Balancer in its place. Direct traffic to the application using the HTTP protocol.

C. Alter the application code to inspect the X-Forwarded-For header. Ensure that the code can work properly if a list of IP addresses is passed in the header.

D. Alter the application code to inspect a custom header. Alter the client code to pass the IP address in the custom header.

C. Alter the application code to inspect the X-Forwarded-For header. Ensure that the code can work properly if a list of IP addresses is passed in the header.



Please leave your valuable feedback in the comment section.

>> Follow us on instagram.com/randomskool
>> Join our telegram channel and group :)

         Telegram Group: https://t.me/randomskoolQnA
         Telegram Channel: https://t.me/randomskool


Till then happy coding. 

1 Response to "AWS Certified Developer - Associate | Free Practice Test | Practice Test 3 | AWS Certification"

  1. It is my first visit to your blog, and I am very impressed with the articles that you serve. Give adequate knowledge for me. Thank you for sharing useful material. I will be back for the more great post.
    ecommerce web design agency

    ReplyDelete

Hey Random,

Please let me know if you have any query :)

Adsense

Adsense

Adsense

Adsense