DVA-C01 : AWS Certified Developer Associate : Part 10
DVA-C01 : AWS Certified Developer Associate : Part 10
-
An application writes items to an Amazon DynamoDB table. As the application scales to thousands of instances, calls to the DynamoDB API generate occasional ThrottlingException errors. The application is coded in a language incompatible with the AWS SDK.
How should the error be handled?
- Add exponential backoff to the application logic
- Use Amazon SQS as an API message bus
- Pass API calls through Amazon API Gateway
- Send the items to DynamoDB through Amazon Kinesis Data Firehose
-
An application deployed on AWS Elastic Beanstalk experiences increased error rates during deployments of new application versions, resulting in service degradation for users. The Development team believes that this is because of the reduction in capacity during the deployment steps. The team would like to change the deployment policy configuration of the environment to an option that maintains full capacity during deployment while using the existing instances.
Which deployment policy will meet these requirements while using the existing instances?
- All at once
- Rolling
- Rolling with additional batch
- Immutable
-
A Developer is working on an application that handles 10MB documents that contain highly-sensitive data. The application will use AWS KMS to perform client-side encryption.
What steps must be followed?
- Invoke the Encrypt API passing the plaintext data that must be encrypted, then reference the customer managed key ARN in the KeyId parameter
- Invoke the GenerateRandom API to get a data encryption key, then use the data encryption key to encrypt the data
- Invoke the GenerateDataKey API to retrieve the encrypted version of the data encryption key to encrypt the data
- Invoke the GenerateDataKey API to retrieve the plaintext version of the data encryption key to encrypt the data
-
A Developer is building a web application that uses Amazon API Gateway to expose an AWS Lambda function to process requests from clients. During testing, the Developer notices that the API Gateway times out even though the Lambda function finishes under the set time limit.
Which of the following API Gateway metrics in Amazon CloudWatch can help the Developer troubleshoot the issue? (Choose two.)
- CacheHitCount
- IntegrationLatency
- CacheMissCount
- Latency
- Count
-
An AWS Lambda function must access an external site by using a regularly rotated user name and password. These items must be kept securely and cannot be stored in the function code.
What combination of AWS services can be used to accomplish this? (Choose two.)
- AWS Certificate Manager (ACM)
- AWS Systems Manager Parameter Store
- AWS Trusted Advisor
- AWS KMS
- Amazon GuardDuty
-
A Developer is trying to deploy a serverless application using AWS CodeDeploy. The application was updated and needs to be redeployed.
What file does the Developer need to update to push that change through CodeDeploy?
- dockerrun.aws.json
- buildspec.yml
- appspec.yml
- ebextensions.config
-
A Developer wants to upload data to Amazon S3 and must encrypt the data in transit.
Which of the following solutions will accomplish this task? (Choose two.)
- Set up hardware VPN tunnels to a VPC and access S3 through a VPC endpoint
- Set up Client-Side Encryption with an AWS KMS-Managed Customer Master Key
- Set up Server-Side Encryption with AWS KMS-Managed Keys
- Transfer the data over an SSL connection
- Transfer the data over an SSL connection
-
A company is running a Docker application on Amazon ECS. The application must scale based on user load in the last 15 seconds.
How should a Developer instrument the code so that the requirement can be met?
- Create a high-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 30 seconds
- Create a high-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 5 seconds
- Create a standard-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 30 seconds
- Create a standard-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 5 seconds
-
A company needs to ingest terabytes of data each hour from thousands of sources that are delivered almost continually throughout the day. The volume of messages generated varies over the course of the day. Messages must be delivered in real time for fraud detection and live operational dashboards.
Which approach will meet these requirements?
- Send the messages to an Amazon SQS queue, then process the messages by using a fleet of Amazon EC2 instances
- Use the Amazon S3 API to write messages to an S3 bucket, then process the messages by using Amazon Redshift
- Use AWS Data Pipeline to automate the movement and transformation of data
- Use Amazon Kinesis Data Streams with Kinesis Client Library to ingest and deliver messages
-
A Developer accesses AWS CodeCommit over SSH. The SSH keys configured to access AWS CodeCommit are tied to a user with the following permissions:
DVA-C01 AWS Certified Developer Associate Part 10 Q10 011 The Developer needs to create/delete branches.
Which specific IAM permissions need to be added, based on the principle of least privilege?
-
“codecommit:CreateBranch” “codecommit:DeleteBranch”
-
“codecommit:Put*”
-
“codecommit:Update*”
-
“codecommit:*”
-
-
A Developer has been asked to create an AWS Lambda function that is triggered any time updates are made to items in an Amazon DynamoDB table. The function has been created, and appropriate permissions have been added to the Lambda execution role. Amazon DynamoDB streams have been enabled for the table, but the function is still not being triggered.
Which option would enable DynamoDB table updates to trigger the Lambda function?
- Change the StreamViewType parameter value to NEW_AND_OLD_IMAGES for the DynamoDB table
- Configure event source mapping for the Lambda function
- Map an Amazon SNS topic to the DynamoDB streams
- Increase the maximum execution time (timeout) setting of the Lambda function
-
An application is being developed to audit several AWS accounts. The application will run in Account A and must access AWS services in Accounts B and C.
What is the MOST secure way to allow the application to call AWS services in each audited account?
- Configure cross-account roles in each audited account. Write code in Account A that assumes those roles
- Use S3 cross-region replication to communicate among accounts, with Amazon S3 event notifications to trigger Lambda functions
- Deploy an application in each audited account with its own role. Have Account A authenticate with the application
- Create an IAM user with an access key in each audited account. Write code in Account A that uses those access keys
-
A Developer is building a three-tier web application that should be able to handle a minimum of 5000 requests per minute. Requirements state that the web tier should be completely stateless while the application maintains session state for the users.
How can session data be externalized, keeping latency at the LOWEST possible value?
- Create an Amazon RDS instance, then implement session handling at the application level to leverage a database inside the RDS database instance for session data storage
- Implement a shared file system solution across the underlying Amazon EC2 instances, then implement session handling at the application level to leverage the shared file system for session data storage
- Create an Amazon ElastiCache Memcached cluster, then implement session handling at the application level to leverage the cluster for session data storage
- Create an Amazon DynamoDB table, then implement session handling at the application level to leverage the table for session data storage
-
An Amazon DynamoDB table uses a Global Secondary Index (GSI) to support read queries. The primary table is write-heavy, whereas the GSI is used for read operations. Looking at Amazon CloudWatch metrics, the Developer notices that write operations to the primary table are throttled frequently under heavy write activity. However, write capacity units to the primary table are available and not fully consumed.
Why is the table being throttled?
- The GSI write capacity units are underprovisioned
- There are not enough read capacity units on the primary table
- Amazon DynamoDB Streams is not enabled on the table
- A large write operation is being performed against another table
-
A company runs an e-commerce website that uses Amazon DynamoDB where pricing for items is dynamically updated in real time. At any given time, multiple updates may occur simultaneously for pricing information on a particular product. This is causing the original editor’s changes to be overwritten without a proper review process.
Which DynamoDB write option should be selected to prevent this overwriting?
- Concurrent writes
- Conditional writes
- Atomic writes
- Batch writes
-
A company needs a version control system for collaborative software development. Features of the system must include the following:
– Support for batches of changes across multiple files
– Parallel branching
– Version trackingWhich AWS service will meet these requirements?
- AWS CodePipeline
- Amazon S3
- AWS CodeBuild
- AWS CodeCommit
-
A company is using continuous integration and continuous delivery systems. A Developer now needs to automate a software package deployment to both Amazon EC2 instances and virtual servers running on-premises.
Which AWS service should be used to accomplish this?
- AWS CodePipeline
- AWS CodeBuild
- AWS Elastic Beanstalk
- AWS CodeDeploy
-
A Developer created a new AWS account and must create a scalable AWS Lambda function that meets the following requirements for concurrent execution:
– Average execution time of 100 seconds
– 50 requests per secondWhich step must be taken prior to deployment to prevent errors?
- Implement dead-letter queues to capture invocation errors
- Add an event source from Amazon API Gateway to the Lambda function
- Implement error handling within the application code
- Contact AWS Support to increase the concurrent execution limits
-
A Development team wants to instrument their code to provide more detailed information to AWS X-Ray than simple outgoing and incoming requests. This will generate large amounts of data, so the Development team wants to implement indexing so they can filter the data.
What should the Development team do to achieve this?
- Add annotations to the segment document and the code
- Add metadata to the segment document and the code
- Configure the necessary X-Ray environment variables
- Install required plugins for the appropriate AWS SDK
-
A team of Developers must migrate an application running inside an AWS Elastic Beanstalk environment from a Classic Load Balancer to an Application Load Balancer.
Which steps should be taken to accomplish the task using the AWS Management Console?
- 1. Update the application code in the existing deployment.
2. Select a new load balancer type before running the deployment.
3. Deploy the new version of the application code to the environment. - 1. Create a new environment with the same configurations except for the load balancer type.
2. Deploy the same application version as used in the original environment.
3. Run the swap-environment-cnames action. - 1. Clone the existing environment, changing the associated load balancer type.
2. Deploy the same application version as used in the original environment.
3. Run the swap-environment-cnames action. - 1. Edit the environment definitions in the existing deployment.
2. Change the associated load balancer type according to the requirements.
3. Rebuild the environment with the new load balancer type.
- 1. Update the application code in the existing deployment.