AWS Certified Developer Associate practice questions, page 9 of 18, with answer review and explanations.
Question 41
An application uses Amazon Kinesis Data Streams to ingest and process large streams of data records in real time. Amazon EC2 instances consume and process the data from the shards of the Kinesis data stream by using Amazon Kinesis Client Library (KCL). The application handles the failure scenarios and does not require standby workers. The application reports that a specific shard is receiving more data than expected. To adapt to the changes in the rate of data flow, the `hot` shard is resharded. Assuming that the initial number of shards in the Kinesis data stream is 4, and after resharding the number of shards increased to 6, what is the maximum number of EC2 instances that can be deployed to process data from all the shards?
12
6
4
1
Question 42
A Company runs continuous integration/continuous delivery (CI/CD) pipelines for its application on AWS CodePipeline. A Developer must write unit tests and run them as part of the pipelines before staging the artifacts for testing. How should the Developer incorporate unit tests as part of CI/CD pipelines?
Create a separate CodePipeline pipeline to run unit tests
Update the AWS CodeBuild specification to include a phase for running unit tests
Install the AWS CodeDeploy agent on an Amazon EC2 instance to run unit tests
Create a testing branch in AWS CodeCommit to run unit tests
Question 43
A Developer has written an application that runs on Amazon EC2 instances and generates a value every minute. The Developer wants to monitor and graph the values generated over time without logging in to the instance each time. Which approach should the Developer use to achieve this goal?
Use the Amazon CloudWatch metrics reported by default for all EC2 instances. View each value from the CloudWatch console.
Develop the application to store each value in a file on Amazon S3 every minute with the timestamp as the name.
Publish each generated value as a custom metric to Amazon CloudWatch using available AWS SDKs.
Store each value as a variable and add the variable to the list of EC2 metrics that should be reported to the Amazon CloudWatch console.
Question 44
A developer is trying to get data from an Amazon DynamoDB table called demoman-table. The developer configured the AWS CLI to use a specific IAM user's credentials and executed the following command: The command returned errors and no rows were returned. What is the MOST likely cause of these issues?
The command is incorrect; it should be rewritten to use put-item with a string argument.
The developer needs to log a ticket with AWS Support to enable access to the demoman-table.
Amazon DynamoDB cannot be accessed from the AWS CLI and needs to be called via the REST API.
The IAM user needs an associated policy with read access to demoman-table.
Question 45
A Development team is working on a case management solution that allows medical claims to be processed and reviewed. Users log in to provide information related to their medical and financial situations. As part of the application, sensitive documents such as medical records, medical imaging, bank statements, and receipts are uploaded to Amazon S3. All documents must be securely transmitted and stored. All access to the documents must be recorded for auditing. What is the MOST secure approach?
Use S3 default encryption using Advanced Encryption Standard-256 (AES-256) on the destination bucket.
Use Amazon Cognito for authorization and authentication to ensure the security of the application and documents.
Use AWS Lambda to encrypt and decrypt objects as they are placed into the S3 bucket.
Use client-side encryption/decryption with Amazon S3 and AWS KMS.