DVA-C01 : AWS Certified Developer Associate : Part 05

  1. 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?

    • The aws executable is not in the PATH environment variable.
    • Access to the aws executable has been denied to the installer.
    • Incorrect AWS credentials were provided.
    • The aws script does not have an executable file mode.
  2. 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?

    • Modify the application to have both shared images and caching data written to Amazon EBS.
    • Modify the application to read and write cache data on Amazon S3, and also store shared images on S3.
    • Modify the application to use Amazon S3 for serving shared images; cache data can then be written to local disks.
    • Modify the application to read and write cache data on Amazon S3, while continuing to write shared images to local disks.
  3. 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?

    • Enable a DynamoDB stream that publishes an Amazon SNS message. Trigger the Lambda function synchronously from the SNS message.
    • Enable a DynamoDB stream that publishes an SNS message. Trigger the Lambda function asynchronously from the SNS message.
    • Enable a DynamoDB stream, and trigger the Lambda function synchronously from the stream.
    • Enable a DynamoDB stream, and trigger the Lambda function asynchronously from the stream.
  4. A gaming company is developing a mobile game app for iOS and Android platforms. This mobile game securely stores user data locally on the device. The company wants users to have the ability to use multiple devices for the game. The company needs to synchronize user data across devices without creating a backend application.

    Which AWS service or feature should the company use to meet these requirements?

    • AWS Lambda@Edge
    • Amazon S3 Transfer Acceleration
    • Amazon DynamoDB Accelerator (DAX)
    • AWS Amplify with AWS AppSync
  5. 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?

    • Amazon API Gateway, Amazon S3
    • AWS Lambda, Amazon DynamoDB
    • Amazon EC2, Amazon Aurora
    • Amazon Cognito, Amazon RDS
    • Amazon ECS, Amazon EBS
  6. 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?

    • Retrieve the messages from the queue using long polling every 20 seconds.
    • Reduce the size of the messages by compressing them before sending.
    • Retrieve the messages from the queue using short polling every 10 seconds.
    • Reduce the size of each message payload by sending it in two parts.
  7. 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 application’s source code, AWS CodeDeploy has not deployed the updates application as expected.

    What are the possible causes? (Choose two.)

    • The change was not made in the master branch of the AWS CodeCommit repository.
    • One of the earlier stages in the pipeline failed and the pipeline has terminated.
    • One of the Amazon EC2 instances in the company’s AWS CodePipeline cluster is inactive.
    • The AWS CodePipeline is incorrectly configured and is not executing AWS CodeDeploy.
    • AWS CodePipeline does not have permissions to access AWS CodeCommit.
  8. 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?

    • Modify the user pool to include all the devices which keep them in sync.
    • Use the SyncCallback interface to receive notifications on the application.
    • Use an Amazon Cognito stream to analyze the data and push the notifications.
    • Use the push synchronization feature with the appropriate IAM role.
  9. A website’s 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?

    • 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.
    • Create an Amazon ElastiCache cluster to cache the user profile data. Use a cache-aside caching strategy.
    • Use a dedicated Amazon RDS instance for caching profile data. Use a write-through caching strategy.
    • Create an ElastiCache cluster to cache the user profile data. Use a write-through caching strategy.
  10. 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?

    • Remove the application from the ALB. Delete the ALB and change Amazon Route 53 to direct traffic to the instance running the application.
    • Remove the application from the ALB. Create a Classic Load Balancer in its place. Direct traffic to the application using the HTTP protocol.
    • 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.
    • Alter the application code to inspect a custom header. Alter the client code to pass the IP address in the custom header.
  11. A development team is using AWS Elastic Beanstalk to deploy a two-tier application that consists of a load-balanced web tier and an Amazon RDS database tier in production. The team would like to separate the RDS instance from the Elastic Beanstalk.

    How can this be accomplished?

    • Use the Elastic Beanstalk CLI to disassociate the database.
    • Use the AWS CLI to disassociate the database.
    • Change the deployment policy to disassociate the database.
    • Recreate a new Elastic Beanstalk environment without Amazon RDS.
  12. According to best practice, how should access keys be managed in AWS? (Choose two.)

    • Use the same access key in all applications for consistency.
    • Delete all access keys for the account root user.
    • Leave unused access keys in the account for tracking purposes.
    • Embed and encrypt access keys in code for continuous deployment.
    • Use Amazon IAM roles instead of access keys where possible.
  13. The development team is working on an API that will be served from Amazon API gateway. The API will be served from three environments: development, test, and production. The API Gateway is configured to use 237 GB of cache in all three stages.

    Which is the MOST cost-efficient deployment strategy?

    • Create a single API Gateway with all three stages.
    • Create three API Gateways, one for each stage in a single AWS account.
    • Create an API Gateway in three separate AWS accounts.
    • Enable the cache for development and test environments only when needed.
  14. An application running on an Amazon Linux EC2 instance needs to manage the AWS infrastructure.

    How can the EC2 instance be configured to make AWS API calls securely?

    • Sign the AWS CLI command using the signature version 4 process.
    • Run the aws configure AWS CLI command and specify the access key id and secret access key.
    • Specify a role for the EC2 instance with the necessary privileges.
    • Pass the access key id and secret access key as parameters for each AWS CLI command.
  15. A company is migrating from a monolithic architecture to a microservices-based architecture. The Developers need to refactor the application so that the many microservices can asynchronously communicate with each other without impacting performance.

    Use of which managed AWS services will enable asynchronous message passing? (Choose two.)

    • Amazon SQS
    • Amazon Cognito
    • Amazon Kinesis
    • Amazon SNS
    • Amazon ElastiCache
  16. An application runs on multiple EC2 instances behind an ELB.

    Where is the session data best written so that it can be served reliably across multiple requests?

    • Write data to Amazon ElastiCache
    • Write data to Amazon Elastic Block Store.
    • Write data to Amazon EC2 Instance Store.
    • Write data to the root filesystem.
  17. A Developer is creating a Lambda function that will generate and export a file. The function requires 100 MB of temporary storage for temporary files while executing. These files will not be needed after the function is complete.

    How can the Developer MOST efficiently handle the temporary files?

    • Store the files in EBS and delete the files at the end of the Lambda function.
    • Copy the files to EFS and delete the files at the end of the Lambda function.
    • Store the files in the /tmp directory and delete the files at the end of the Lambda function.
    • Copy the files to an S3 bucket with a lifecycle policy to delete the files.
  18. A Developer has developed a web application and wants to deploy it quickly on a Tomcat server on AWS. The Developer wants to avoid having to manage the underlying infrastructure.

    What is the easiest way to deploy the application, based on these requirements?

    • AWS CloudFormation
    • AWS Elastic Beanstalk
    • Amazon S3
    • AWS CodePipeline
  19. An application uses Lambda functions to extract metadata from files uploaded to an S3 bucket; the metadata is stored in Amazon DynamoDB. The application starts behaving unexpectedly, and the Developer wants to examine the logs of the Lambda function code for errors.

    Based on this system configuration, where would the Developer find the logs?

    • Amazon S3
    • AWS CloudTrail
    • Amazon CloudWatch
    • Amazon DynamoDB
  20. An organization is using Amazon CloudFront to ensure that its users experience low-latency access to its web application. The organization has identified a need to encrypt all traffic between users and CloudFront, and all traffic between CloudFront and the web application.

    How can these requirements be met? (Choose two.)

    • Use AWS KMS to encrypt traffic between CloudFront and the web application.
    • Set the Origin Protocol Policy to “HTTPS Only”.
    • Set the Origin’s HTTP Port to 443.
    • Set the Viewer Protocol Policy to “HTTPS Only” or “Redirect HTTP to HTTPS”.
    • Enable the CloudFront option Restrict Viewer Access.
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments